| title | UID2 IMA Plugin for iOS |
|---|---|
| description | A guide for publishers using IMA for ad requests on iOS apps. |
| hide_table_of_contents | false |
| sidebar_position | 15 |
| displayed_sidebar | docs |
import Link from '@docusaurus/Link';
The UID2 Interactive Media Ads (IMA) Plugin for iOS enables publishers that use the Google IMA SDK for iOS 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 Interactive Media Ads (IMA) for any publishers who want to support UID2 for apps running on iOS devices.
This documentation is for the UID2 IMA Plugin for iOS version 1.0.0 or later.
This plugin is in the following open-source GitHub repository:
To integrate with UID2, you'll need to have a UID2 account. If you haven't yet created an account, first follow the steps described on the Account Setup page.
When initial account setup is complete, you'll receive instructions and a link to access the UID2 Portal, where you can create your credentials for the production environment and configure additional values, if needed. For details, see Getting Started with the UID2 Portal.
The steps you'll take in the UID2 Portal are different depending on whether your implementation will be client-side, client-server, or server-side. Specific instructions are in each implementation guide. For a summary, see Client-Side, Client-Server, or Server-Side Integration?
To run this plugin, install the following:
- Google IMA SDK v3.19.1 or later:
- SDK for iOS v1.7.0 or later:
- UID2 IMA Plugin for iOS v1.0.0
Prerequisite: Install the Google Interactive Ads SDK and the SDK for iOS.
Install the UID2 iOS IMA Plugin via Swift Package Manager or CocoaPods to an existing app with the SDK for iOS and the Google Interactive 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-ima.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-ima | git@github.com:IABTechLab/uid2-ios-plugin-google-ima.git |
Exact Version: 1.0.0 |
Add the following entry in your Podfile:
pod 'UID2IMAPlugin', '1.0.0'