This guide is for publishers who want to use the Google Mobile Ads SDK to load and display ads from the DU Ad Platform via mediation. It covers how to add the DU Ad Platform to an ad unit's mediation configuration, how to set up Ad Network Optimization (ANO), and how to integrate the DU Ad SDK and adapter into an iOS app.
Supported ad formats and features
The AdMob mediation adapter for the DU Ad Platform has the following capabilities:
|Ad Network Optimization (ANO)|
- Xcode 7.0 or higher
- iOS Deployment target of 8.0 or higher
- Minimum required Google Mobile Ads SDK 7.14.0
Step 1: Set up the DU Ad Platform
Select iOS as the System type and fill out the remaining form fields. Once you have filled in your app details, click Next at the bottom of the page.
Next, create a placement by clicking the Create placement button.
Enter the name of the placement in the Placement name field, select an Ad Format, and click Save.
You should see your newly created placement and its corresponding Placement ID (PID). Click Next to continue to the next step.
You will find your App ID and Placement ID listed on this screen under the Embed the App ID section. Copy these values as you will need them in an upcoming step.
Next, click the Upload button and upload a DU Ad SDK integrated IPA of your app.
Once you have uploaded your app’s IPA, click Next to continue to the next step. Enter the App Store address of your app in the App Store Address field and click the Submit for review button to complete the process for adding your app to the DU Ad Platform dashboard.
In addition to the App ID and Placement ID, you'll also need your DU Ad Platform user name and Account Token to set up your AdMob ad unit ID.
Navigate to the Account tab in your DU Ad dashboard to locate your Account Token. You can find your user name in the top-right corner of your dashboard.
Step 2: Configure mediation settings for your AdMob ad unit
You will now need to add the DU Ad Platform to the mediation configuration for your ad unit. To do so, first sign in to your AdMob account.
Next, navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add DU Ad as an ad source.
To create a new mediation group, select Create Mediation Group.
Enter your ad format and platform, then click Continue.
Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units.
Associate this mediation group with your existing AdMob ad units. Then click Done.
You should now see the ad units card populated with the ad units you selected.
Add the DU Ad Platform as an ad source
In the Ad Sources card, select Add Ad Network. Then select DU Ad Platform.
Enable the Optimize feature, then enter the user name and Account Token obtained in the previous section to set up ANO for the DU Ad Platform. Then enter an eCPM value for the DU Ad Platform and click Continue.
Enter the Placement ID and App ID obtained in previous section.
Step 3: Import the DU Ad Platform SDK and adapter
- Download the latest version of the
DU Ad Platform iOS SDK and link
DUModuleSDK.frameworkin your project.
- Download the latest version of the DU Ad Platform Adapter
DuAdAdapter.frameworkin your project.
- Add the
libsqlite3.0.tbdto your project.
- Go to the Build Settings of your project and add
-ObjCin Other Linker Flags.
Step 4: Additional code required
No additional code is required for DU Ad Platform integration.
Step 5: Test your implementation
No additional steps are required to test the implementation.
EU consent and GDPR
Under the Google EU User Consent Policy, you must ensure that certain disclosures are given to, and consents obtained from, users in the European Economic Area (EEA) regarding the use of device identifiers and personal data. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). When seeking consent, you must identify each ad network in your mediation chain that may collect, receive, or use personal data and provide information about each network's use. Google currently is unable to pass the user's consent choice to such networks automatically.
The section below shows you how to enable or disable personalized ads for DU Ad Platform.
In SDK version
1.1.0, DU Ad Platform added the
getConsentStatus methods. The following sample code shows how to pass
consent information to the DU Ad Platform SDK. If you choose to call this method, it is
recommended that you do so prior to requesting ads via the Google Mobile Ads SDK.
#import <DUModuleSDK/DUModuleSDK.h> // … [DUAdNetwork setConsentStatus:YES];
See DU Ad Platform’s privacy notice for more details.