DFP Mobile In-app implementation checklist
These are the main steps for getting started with DFP Mobile In-app:
Step 1: Determine your ad strategy
Before you begin, you need a plan for what sizes you want to use in your app and the ad placements. Click here for options and best practices.
Step 2: Design your inventory structure
Design the inventory structure to use minimal additional ad units (if any) and leverage DFP’s targeting capabilities to distinguish app requests from those for web. Click here for some recommendations.
Step 3: Integrate and set up the SDK with your app
- Download the Google Mobile ads (GMA) SDK.
- Use the Android or iOS quick start guides in the developer documentation to integrate the GMA SDK into your app.
- Depending on your ad strategy and inventory structure, you can request DFP ad units in various supported sizes and formats (e.g., banners, interstitials, and native).
- For additional parameters like key-values, audience segments, location, audience pixels, etc., refer to the “Targeting” section in the developer documentation for Android and iOS.
- We don’t have a Windows version of our GMA Ads SDK for DFP. To serve ads in Windows Phone apps, you can use the simplified URL format.
- App developers can also see GMA API references with Google Play Services, code samples on the GitHub page, subscribe to the blog, follow the Google+ community, or ask questions on the forum.
Step 4: Configure ad units and traffic in DFP
- Depending on your inventory structure, use existing ad units or create any additional ad units, key-values and audience segments you need.
The ad units will be called from your app, and any custom criteria can be added as extra parameters in the request.
- Traffic line items and creatives for mobile apps the same way you do for websites.
A single line item can deliver to both websites and apps. Learn more about targeting.
- To get the ad unit ID to be used in your app, from the “Inventory” tab, click Generate tags for these ad units, and select the Mobile Applications tag type.
It will have the form
Step 5: Test your setup
You’re now ready to test your app and see some ads serving. Click here for some recommended ways to test your app.