Skip to content

l10nelw/wp-magazine-sites-dfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of DoubleClick For Publishers (DFP) ad management service on a Wordpress site with multiple sections.

Sections (categories) can be ad-targeted, e.g. fashion ads in the Fashion section. The correct ad codes are deployed on a page depending on the section it belongs to.

Implementation includes a non-standard ad unit (called skinner) that runs a clickable background image.

Ad code generating tool is included in this repo.

Customise these files as necessary:

functions.php - Code here is to be added to the Wordpress site's functions.php, or equivalent area if provided by a framework. If <head> area provided, you can add the code within ad_head() into it, and remove the ad_head() definition and add_action() line.

adunits.py - Python script that generates a CSV file that can be imported into DFP to bulk-create ad units.

About

DoubleClick for Publishers implementation for Wordpress site with ad-targetable sections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors