Skip to content

Google DFP - Objective-C

The Pulse iD platform can also serve real-time ads with dynamic creative optimization using Google DFP.

Follow the instructions to integrate DFP.

This capability only works when an app is in foreground mode (i.e. when the app is open).

First, set up Google DFP SDK as per Google's instructions. Click here for Google Quickstart.

Second, enable DFP feature on your app using the Pulse Platform.

Third, set up a campaign and copy its tag into your Google DFP ad serving setup

Finally, add the getDFPTags method to Google AdMob’s customTargeting method. For example :

//declare the ad banner and assign it the unit ID 
self.bannerView.adUnitID = @"/<yourDFPAccount>/<Your_DCO_Banner>";
self.bannerView.rootViewController = self;
//add GADBannerViewDelegate in the view controller class  
self.bannerView.delegate = self;
DFPRequest *request = [DFPRequest request];
// Notify DFP using custom parameters to load Pulse Creative
request.customTargeting = [[PulseSDK sharedClient] getDFPTags];