Complete guide to setting up the Google UMP SDK on iOS

Last update: November 30th 2026
  • Implementation of a certified consent management platform to comply with the GDPR in Europe.
  • Technical integration of the information request flow and deployment of privacy forms.
  • Tracking permission management through synchronization with the App Tracking Transparency framework.
  • Verification of consent statuses before loading personalized ads.

Close-up of a monitor displaying programming code in a modern development environment.

If you develop apps and monetize them with ads, you know that privacy is a real headache. Especially if you have users in the European Economic Area, the UK, or Switzerland, you can't just launch your app and hope for the best; you need a system that legally manages consent. This is where Google's User Messaging Platform (UMP) SDK comes in —a free tool that lets you display privacy notices and ensure you don't run into legal trouble while maintaining your revenue from personalized advertising.

It's not just about adding a banner that says "I agree"; it's about integrating a certified Consent Management Platform (CMP) that communicates correctly with the Ad SDK. If you don't, Google will drastically limit the ads you can show to European users, resulting in a significant drop in your revenue . In this article, we'll break down how to set up this entire system on iOS, from configuring it in the AdMob console to writing the Swift code, so your app is fully compliant and runs smoothly.

Pre-configuration in the AdMob console

Software developer working on a laptop with an iPhone connected for application testing.

Before you touch a single line of code, you need to get everything set up in the control panel. There's no point in installing the SDK if there's no published message to display. You should go to the Privacy and Messaging section of your AdMob account and create the type of message you need. The most common is for European regulations (GDPR), but there are also options for US state laws or explanatory messages for iOS IDFA.

When designing the message, remember to select the relevant apps and configure the languages. It's crucial that the link to your privacy policy is valid and up-to-date, as this is a mandatory requirement. A very important detail is that the message must be in "Published" status ; if it remains in draft, the SDK won't find anything to display, and the consent flow will simply be skipped, leaving you unprotected against regulations.

  Key tips on iOS software and how to get started developing

Installing the SDK in the Xcode project

Hands holding a smartphone with a blank screen, ideal for illustrating the appearance of privacy consent forms.

To add the UMP SDK to your project, Google strongly recommends using Swift Package Manager (SPM) as it's the most modern and streamlined option. Simply go to File > Add Packages and paste the URL of the official GitHub repository. When selecting the version, it's best to choose "Up to Next Major Version" to receive automatic updates without breaking your code.

If for some reason you prefer other methods, you can use CocoaPods by adding the line pod 'GoogleUserMessagingPlatform' to your Podfile, although you should know that Google has announced that support for this manager will enter read-only mode in December 2026. There is also the option to manually download the framework, but it is the most tedious option as it requires manage dependencies manually and ensure that the files are copied correctly into the app bundle.

Once the package is installed, don't forget to add the AdMob Application ID in your Info.plist file under the key GADApplicationIdentifierWithout this identifier, the SDK will not be able to link your application to the messages you have created in the console.

Consent implementation flow

Workspace with laptop, smartphone and notebook, representing configuration planning in AdMob.

The technical process follows a logical sequence that must be executed each time the application starts. The first step is to call requestConsentInfoUpdateThis method is the brains of the operation, as it checks if the user has already made a decision, if consent has expired, or if An immediate update is required. of the privacy information.

After receiving the update response, the next step is to invoke loadAndPresentIfRequiredThis function is responsible for loading the necessary forms and automatically displaying them to the user if the SDK detects that it's needed. It's vital not to attempt to initialize the Ads SDK before this process is complete, as you could request data without permission. Once the flow is finished, you should check the property canRequestAds; only if it returns true will you be able to Request personalized ads Risk free.

  How to Create a Cryptocurrency from Scratch: The Ultimate Step-by-Step Guide in 2025

Privacy and ATT Options Management

Programmer working with his MacBook in an outdoor environment, reflecting the modern development lifestyle.

It's not enough to ask for permission at the beginning; the law requires that the user can change their mind at any time. Therefore, you should check if the status of privacyOptionsRequirementStatus It indicates that offering an entry point is mandatory. If so, you must implement a button in your app's settings that calls... presentPrivacyOptionsFormallowing the user manage your privacy preferences whenever you want.

In the Apple ecosystem, GDPR consent is not the same as App Tracking Transparency (ATT). While the UMP manages data processing, the ATT controls access to the IDFA. The best practice is to configure an explanatory IDFA message in AdMob so that the UMP SDK displays it just before the Apple system prompt . This way, the user understands why you're asking for permission to track them and is more likely to grant it.

System testing and debugging

Testing the UMP can be frustrating because, if you're in Spain or Latin America, the form will only appear if the SDK detects that you're in a regulated area. To avoid traveling to Europe, you can use the debugging modeFirst, run the app and look in the logs for your device's hashed ID; then, add it to UMPDebugSettings.testDeviceIdentifiers.

Additionally, you can force the geographic location using the property geography = .EEAThis tricks the SDK into thinking the device is in the European Economic Area, allowing you to validate that the forms are deploying correctly. If you need to simulate a first-time installation from scratch to see the complete flow, you can use the method reset()But be very careful of Remove this code before uploading the app to the App Store, as it would erase the user's consent on each restart.

Properly integrating the UMP SDK into iOS involves coordinating configuration in the AdMob console, installation via Swift Package Manager, and executing a logical workflow that prioritizes privacy over monetization. By properly managing information updates, form submissions, and the privacy access point, you ensure your app complies with international regulations and optimize the delivery of personalized ads through seamless synchronization with Apple's tracking system.

  PHP Resources on the Web: Boost Your Web Development with PHP

FAQ

Is it mandatory to use the UMP SDK on iOS?

It is essential for those who monetize with AdMob and have traffic in the EEA, UK or Switzerland, since without a certified CMP personalized ads cannot be served.

What is the difference between UMP consent and Apple's AT&T?

The UMP manages legal consent for data processing according to the GDPR, while the ATT is the iOS system permission to access the IDFA advertising identifier.

What happens if the consent form does not appear during the tests?

This usually happens if the message in AdMob has not been published, if the app ID is incorrect, or if the device is not set as a test device in a regulated geography.

Can I load ads while the privacy form is displayed?

Ad requests should not be made while the consent form is visible on screen to avoid privacy conflicts.

How do I allow the user to change their privacy decision later?

A button must be implemented in the app interface that invokes the privacy options form presentation method when the SDK indicates that it is required.

Can I use CocoaPods to install the UMP SDK?

It's possible, but Google recommends using Swift Package Manager since the CocoaPods repository will be switched to read-only mode in December 2026.

What does the UMP SDK reset method do?

Clear the consent state stored on the device to simulate the experience of a user installing the application for the first time.

TecnoDigital

TecnoDigital

Passionate about technology and software development, I delve into the world of systems and computing with the aim of fostering innovation and solving complex challenges.