| title | description | hide_table_of_contents | sidebar_position |
|---|---|---|---|
UID2 GMA Plugin for iOS |
A guide for publishers using GMA for ad requests on iOS apps. |
false |
13 |
import Link from '@docusaurus/Link';
The UID2 Google Mobile Ads (GMA) Plugin for iOS enables publishers that use the Google Mobile Ads (GMA) SDK to send UID2 tokens as secure signals in ad requests from iOS apps. This is done automatically, with no direct coding needed from the app developer.
This plugin simplifies integration with Google Mobile Ads (GMA) for any publishers who want to support UID2 for apps running on iOS devices.
This documentation is for the UID2 GMA Plugin for iOS version 1.0.0 or later.
This plugin is in the following open-source GitHub repository:
To run this plugin, install the following:
- Google Mobile Ads SDK v10.7.0 or later:
- SDK for iOS v1.7.0 or later:
- UID2 GMA Plugin for iOS v1.0.0
Prerequisite: Install the Google Mobile Ads SDK and the SDK for iOS.
Install the UID2 iOS GMA Plugin via Swift Package Manager or CocoaPods to an existing app with the SDK for iOS and the Google Mobile Ads SDK installed.
There are three installation options:
Add the following dependency to Package.swift:
dependencies: [
.package(url: "https://github.com/IABTechLab/uid2-ios-plugin-google-gma.git", exact: "1.0.0")
]In the XCode user interface, under Package Dependencies, add the following entry for your apps:
| Name | Location | Dependency Rule |
|---|---|---|
| uid2-ios-plugin-google-gma | git@github.com:IABTechLab/uid2-ios-plugin-google-gma.git |
Exact Version: 1.0.0 |
Add the following entry in your Podfile:
pod 'UID2GMAPlugin', '1.0.0'