This article will cover setting up your ad campaign with the DFP service. Using this service will require your to have an active AdSense account. If you don't have this, you can register for an account here .
The AdSense account activation can take a few days, as it has to be manually approved by the Google staff.
Once you get your account approved, you will be able to log into the DFP interface using this link.
Table of content :
1. Creating a new Ad Unit
2. Creating a new Order Creating a new creative
4. Generating tags
Ad units represents an advertising space, that you can use to display your ads. Our mobile apps use a small banner located in the bottom of your screen for this purpose.
Once you've logged into your account, select the Inventory tab, and Ad units from the menu on the left side of the screen. Clicking the "New ad unit" button will open up the ad unit creation menu.
There are a few parameters that we need to set up for this ad unit:
- Name : name this unit with a descriptive name, so you can easily find it within the ad unit interface after.
- Description : This field is optional, and usually contains your personal notes about this ad unit.
- Size : Select fixed size from the dropdown menu, and enter 320x50 inside the field.
- Target window : select _top option from the dropdown menu.
- Placements : A placement is a group of ad units that advertisers can target all at once. We won't need this for the mobile app, but if you ever need this in the future, it can easily be set up from the Placements menu on the left side.
- AdSense inventory settings : Leave this setting at default value.
- Ad unit frequency caps : This rule will allow you to limit the number of times that users are shown creatives. You can set frequency caps for an ad unit and associate them with labels. If you'd like to set that kind of label, click on the "Add a labeling rule button".
Once you've set everything up, click on the Save button in the bottom left.
In this step, we will cover setting up your order. Orders are basically your ad campaigns, and you can modify them to determine in which way will your ads display ( number of impressions, including creatives, time specific ads, etc.)
To create a new order, click on the Orders tab and select My orders from the left menu. Click on the New Order button to create a new order.
- Name : Assign a a new name for your new order
- Advertiser : Here's where you can set your advertiser's name. If you plan to host ads from one of the ad networks, type them in here. For example, you can set Google AdSense here, if you plan to serve that network's ads. If you only plan to serve your own ads, you can create a new company, and name it as you wish.
- Trafficker : This determines a person within your organization, responsible for uploading ads, and tracking the ad performance. This is set to your account by default.
- Labels : This is an optional field, if you want to add previously created labels to your order. You can leave this field empty, unless you want to apply specific labels.
- Name : Enter a descriptive name here
- Inventory sizes : Set this to standard and enter 320x50 dimensions.
- Labels: This is an optional field, if you want to add previously created labels to your order. You can leave this field empty, unless you want to apply specific labels.
- Comments : You can set some comments inside this fields if you want.
- Type : This field will determine delivery priority for this ad campaign. If you're unsure what to enter here, select Network type.
- Start time and End time : You can set start and end time for your ad campaign here. If you have no specific time period when you'd like this campaign to deliver ads, select Immediately for start time and Unlimited for end time.
- Goal : leave this at 100 %
- Rate : This field will allow you to set the price for your ads. There are few options here. Set the one that you prefer, and adjust the price.
- Value CPM : You can leave this empty for now.
This set of settings is entirely optional and it will allow you to customize what adds to display, in which manner and when.
- Display creatives : This option will allow you to determine how many creatives ( your manually created ads ) you want to display within this line item.
- Rotate creatives : Select a way in which your creatives are rotated.
Optimized: The creative with the highest click-through rate will be shown more often.
Weighted: Creatives rotate at a frequency you specify on the "Creatives" tab.
Sequential: Creatives rotate in the order you specify. You must enter a number between 1 and 80 for each creative
- Day and time : Here you can specify the times when your line item will be available for delivery.
- Frequency : You can modify this option to determine how many times will the same user be able to see your line item ads.
This part is used to determine which ad units will be connected to this order/line item.
To add your ad unit to the line item, click on the Inventory button on the left side of the interface displayed on the image. Click on the Ad Units and find the one that you want to add. Click on the include button on it's right side and your ad unit should be added.
Other than Inventory tab, there are a few others you can use to additionally modify your ad delivery.
- Custom criteria will allow you to set some custom filters. We recommend not using this until you're more familiar with the service.
- Geography tab will restrict/allow you to set a specific list of countries where your ads will be delivered.
- Devices tab offers ad restrictions depending on the user's device.
- Connection tab will let you restrict/allow ad delivery to users with specific connection type.
All of the above are optional, and you don't need to edit this when initially creating your campaign. You can always edit this later on.
At this point we have our order, line item that will serve ads, and ad unit that represents the advertising space, created. Now we need to add the actual ads to your app.
Click on the Orders tab, and select My line items from the left menu. Click on the line item that you've previously created.
There should be an "Add creatives" button under the name of your line item. Click on it to add a new creative to your line item.
Note that you won't be able to serve the ads coming from the AdSense service, inside the Android, iPhone or iPad apps, due to the restriction from the Google.
You have several choices here :
- Flash : A creative containing animation, sound, video, or interactive features. Requires a Flash (SWF) file.
- Image : A basic image creative. Requires a GIF, JPG, or PNG file.
- Custom Supply : your own custom creative code.
- Doubleclick Tag : A creative hosted by Doubleclick. Provide an URL rather than a snippet for the creative.
- Text ad : A simple plain-text creative.
- Text and image : A 320x50 creative containing an image and animated text.
- AdMob : A creative that is filled by making a request to AdMob.
- SDK mediation : A creative that uses SDKs in your mobile application to send impressions to ad networks.
- System-defined template : A creative based on a standard DFP creative template.
- User-defined template : A creative based on a user-defined creative template.
Again, there are several fields that need to be entered in this step:
- Name : A simple name for your creative.
- Image files : this is where you need to upload your image that will act as an ad. Leave the 1x density option selected.
- Click-through URL : Enter the URL for the landing page that should appear when someone clicks the ad.
Next fields are optional, and should be entered only if you previously created them.
- Labels: You can assign previously created labels using this field.
- Third-party impression URL : This optional URL is pinged when the creative appears. The URL can contain DoubleClick for Publishers macros.
- Alt text : This optional text is served along with the image creative, primarily for accessibility. The text must be 500 characters or fewer
You add campaign should be all set and activated now. The last thing we need to do is to generate the codes, which we need to enter inside the app builder.
Click on the Inventory tab and select Generate tags from the menu on your left. You should automatically be offered available ad units, that you an generate tags for. Click on the include button, next to the ad unit you wish to generate code for.
Once you have the ad unit added, click on the Generate tags button in the bottom of your screen.
New window will open and you will see a "Tag options" menu. Select Mobile applications from the dropdown menu.
New ad unit ID will automatically be created. Copy that ID, as we'll need to enter it inside the builder.
In our case, the needed ID is /19522774/Testadunit .
Once you have acquired the generated code, all that's left to do is to enter this code inside the builder. The code is the same for iPhone, Android and HTML5 app, so if you have all of them published, you will need to enter the same code three times.
Once you're logged in inside the app builder, open your app. Go to Settings -> Advertising. If the module isn't yet activated, click the Activate button. From the dropdown menu, select DoubleclickForPublishers, as your ad service provider.
Then, enter the code you've generated inside the fields, for each app respectively.
Click on the save button, and if the app is already published, make sure you republish the changes, and notify us to manually update the app in the stores.
This is it. Your ads should be displaying without issues.
DFP service offers a lot of customization and we realize that we only scratched the surface with this tutorial, but it should allow you to set up your first ad campaign with our service.
For any specific questions, or if you just need some help with this, please contact us at email@example.com.
Back to the top of the page