« MBS Xojo Plugins, ver… | Home | MBS Xojo Plugins, ver… »

Google Admob Update

For the next version of MBS Xojo Plugins we include an update for Google Admob to the version 10.14 of the SDK. With the update, we get new classes to show a consent form to ask user whether he likes to get tracked for advertisement. To quote Google's documentation:

Under the Google EU User Consent Policy, you must make certain disclosures to your users in the European Economic Area (EEA) along with the UK and obtain their consent to use cookies or other local storage, where legally required, and to use personal data (such as AdID) to serve ads. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). To support publishers in meeting their duties under this policy, Google offers the User Messaging Platform (UMP) SDK. The UMP SDK has been updated to support the latest IAB standards. All of these configurations can now conveniently be handled in Interactive Media Ads privacy & messaging.

We got these four new classes:

Now you may do the following steps:

  1. You call requestConsentInfoUpdateWithParameters on UMPConsentInformationMBS to check the state.
  2. If consentStatus property is ConsentStatusObtained or ConsentStatusNotRequired, you can start showing ads and skip the next two steps.
  3. When you get the callback, you use UMPConsentFormMBS class with loadAndPresentIfRequiredFromViewController to show the dialog.
  4. You get another callback and then you can check status. If no error happened, the user allowed it.
  5. You check canRequestAds property and if true, you can start loading ads.

For more details, check the original documentation from google, e.g. UMP SDK.

You may need to quickly implement this early in 2024 to comply with requirements from Google's play store:

In case you missed it, we announced new consent management platform requirements for serving ads in the EEA and UK. Beginning January 16, 2024, Google will require all publishers to use a Google-certified consent management platform (CMP) when serving ads to users in the European Economic Area or the UK.

Please try the new classes, add them to your iOS apps if you do advertisments and let us know how they work.

The biggest plugin in space...
31 12 23 - 09:44