Google UMP SDK: Implementing GDPR Consent in Unity Mobile Games

Why Mobile Games Need a Consent SDK

If your game shows ads from AdMob, Ad Manager, or a mediated waterfall to players in the European Economic Area or the UK, you are legally required to obtain valid consent before any personalized advertising or tracking identifier is used. A web cookie banner does not solve this — native mobile apps have no cookies, and the consent must reach the ad SDKs that run inside your build.

Google's answer is the User Messaging Platform (UMP) SDK, the consent layer that ships with the Google Mobile Ads SDK. It presents an IAB TCF-compliant consent form, stores the player's choices, and exposes a consent signal that AdMob and mediation partners read automatically. For a Unity studio, getting this flow correct is the difference between a healthy eCPM and a wave of policy strikes.

The Consent Flow, Start to Finish

The correct order of operations matters more than any single API call. On every app launch you should:

Initializing the ad SDK before the consent form returns is the most common mistake we see. It produces a non-personalized or non-compliant first impression and can trip automated policy reviews.

A Minimal Unity Implementation

In C#, the skeleton looks like this:

var request = new ConsentRequestParameters();
ConsentInformation.Update(request, (FormError error) => {
  ConsentForm.LoadAndShowConsentFormIfRequired((FormError err) => {
    if (ConsentInformation.CanRequestAds()) InitializeAds();
  });
});

The CanRequestAds() check is your gate. As long as it returns true — either because the player consented or because they are outside a regulated region — you may initialize and request ads. Cache nothing about region yourself; let UMP be the single source of truth.

Testing Without Shipping to the Store

You cannot verify a consent flow from your office in, say, Istanbul unless you simulate an EEA device. UMP supports a debug geography setting and a list of test device hashed IDs:

Always remove debug settings before a production build. Shipping a forced-EEA debug flag to every player is a real and embarrassing incident.

Consent, Mediation, and Your Revenue

When consent propagates correctly, every network in your mediation stack — AdMob, Meta Audience Network, Unity Ads, AppLovin — receives the TCF string and can bid on personalized inventory where allowed. When it breaks, those networks fall back to non-personalized ads at a fraction of the eCPM, and your waterfall quietly bleeds revenue. Treat the consent layer as part of your monetization stack, not a compliance afterthought.

Where FlexyConsent Fits

Native apps need an in-app CMP such as Google's UMP. FlexyConsent covers websites, on desktop and mobile (CMP ID 317 is a web CMP). It sends IAB TCF 2.4 and Google Consent Mode v2 signals. Its reports show decisions by source and region.

Key Takeaways

← Blog Read All →