The DFP DFP Module is very similar to the DART Module but uses more JavaScript and is more developer friendly.
To activate the DFP module:
- Click the Modules menu.
The Module page appears.
- From the left pane, click Advertising.
A list of advertising modules appears.
-
Check the Double Click for Publishers box.
-
Click the Save Configuration button at the bottom of the left pane.
To open the DFP Module:
-
From the Structure menu, select DFP Ad Tags, Global DFP Settings.
The DFP Module appears with three tabs:
-
Global DFP Settings
-
DFP Test Settings
-
List
The Global DFP Settings tab is open by default.
The Global Enter Global DFP Settings contains six sections:
-
Global Tag Settings
-
Global Display Options
-
Global Targeting
-
Ad Test Settings
-
Inject Javascript
To enter Global Tag Settings:
-
In the Network ID field, enter the ID provided by Ad Ops or Google.
-
In the Default Ad Unit Pattern, enter up to five levels of hierarchy the site will use when no other hierarchy is found.
Typically tokens are used.
**Note: The DFP Click URLs field helps provide analytics for advertising clients. However, NBC does not use it. **
-
Check the Render Ads Asynchronously box to load page content without waiting for ads to load.
-
Check the Disable initial load box to stop the initial retrieval of ads from Google when the page first loads.
This setting can be useful if you want an ad to display only when a user takes action on the page, such as clicking Next in a photo gallery.
-
Check the Combine all ad requests into a single request box to speed your page load.
-
Check the Enable DFP Ad Categories box to have ad categories entered by others to be redirected to Ad Categories that you have set and check the boxes for the categories you want to use.
**Note: You may receive editorial requests that do not correspond to the categories of ads being sold. For example, an editorial request might ask for the color red, when a category called warm colors is actually for sale. Enable DFP Ad Categories to redirect requests to the appropriate category. **
To enter Global Display Options:
-
On the left pane, click Global Display Options.
-
In the Global Slug field, enter the text required to appear above your ad, such as Advertisement.
Note: To leave the slug blank, enter .
- In the Collapse empty divs section, click the appropriate radio button to specify what the site should do when no ad is loaded in a block:
**To**: | **Click**: |
Leave a blank block | **Never** |
Have blocks expanded by default | **Collapse only if no ad is served** |
Have blocks collapsed by default | **Expand only if an ad is served** |
- Check the Hide slug if no ad is served (recommended) box to leave the slug blank for any ad that does not load.
To enter Global Targeting:
-
On the left pane, click Global Targeting.
-
In the Key field, enter a category such as color.
-
In the Value field, enter a member of that category, such as green.
To add tokens:
-
Place your cursor in the field to which you want to add tokens.
-
Click the Browse Available Tokens link.
A list of available token types appears.
- Click the arrow next to the required token type.
A list of token hyperlinks appears.
- Click on the token hyperlink.
The token appears in the field in which you last placed your cursor.
You can enter whatever key and whatever value you want.
The key | value pair appears in the html code of your site.
**Note: The key | value pairs appear in the html code of your site as a <script type src= setting, separated by semicolons. **
To enter Ad Test Settings:
- On the left pane, click Ad Test Settings.
The Ad Test Settings section appears.
You can use the settings in this section to create a test page in which all of the ads for a particular campaign are trafficked to a test page that the client can view. When you enter the ?adtest=true query string to any url of your site, the new prefix, site, and zone you specify on this page replaces the prefix, site, and zone of your URL to create this test page.
To view this page, add ?adtest=true query to the URL in your browser.
You can also add tokens.
To inject Javascript:
- On the left pane, click Inject JavaScript.
The Inject JavaScript screen appears.
-
In the Inject JavaScript field, enter any JavaScript that the page needs to work.
-
Click the Save configuration button.
The List tab enables you to enter settings for individual ad tags. It appears with the following sections:
-Tag Settings
-
Display Options
-
Targeting Ad
-
Backfill Ad Settings
To enter Tag Settings:
- Click List.
The List tab appears.
- Click the Add link.
The Tag settings screen appears.
-
In the Ad Slot Name field, enter a human-readable name, such as Top Banner.
-
In the Sizes field, enter the dimensions of your ad, such as 300x600.
-
In the Ad Unit Pattern field, enter five levels of content hierarchy for this individual ad slot, separated by slashes, such as: sports/baseball/Major Leagues/National League/Phillies.
You can also add tokens.
To enter Display Options:
-
On the left pane, click Display Options.
-
In the Slug field, enter the text required to appear above your ad, such as Advertisement.
Note: To leave the slug blank, enter .
- Check the Create a block for this ad tag box to create a structured block.
This creates a Drupal block that makes it easy to place an ad tag in the correct place. The block appears on your list of Blocks page (Structure=>Block.)
- Check the Render this tag without JavaScript box if the ad is to appear in email only.
To enter Global Targeting:
-
On the left pane, click Global Targeting.
-
In the Key field, enter a category such as day part.
-
In the Value field, enter a member of that category, such as prime time.
You can also add tokens.
You can enter whatever key and whatever value you want.
The key | value pair appears in the html code of your site.
If your ad inventory runs out and you need to fill ad space for a time, you can use Adsense to generate relevant ads for your pages.
To use Adsense ads:
- From the Adsense Ad Type dropdown select: Both image and text ads, Only image ads, Only text ads
- Click the Save button.
Note: You can use the Exportable Scheduler Module to schedule when an ad tag shows up if there is no ad available. This enables you to avoid charges from Google for having ad tags on your page.
To enable the Exportable Scheduler Module:
- Click the Modules menu.
- Click Advertising.
- Check the Exportable Scheduler Modle box.
- Click the Save configuration button. **_