LOG IN OR SIGN UP
Log in to your account
Sign up

Run DoubleClick Ads On Your WordPress Site

18 February 2017 | 0 comments | Posted by Che Kohler in nichemarket Advice

Run double click for publishers on wordpress

Monetizing your website is a great way to generate a passive income and if you're passionate about content and generating it regularly it can even turn into a full-time occupation for some. While AdSense is one of the easiest ways to get started and make money off your website it doesn't offer a whole lot of control for its publishers. If you're a personal blog ready to step up your inventory to drive better ad sales or you're business that wants to create an additional revenue channel, then DoubleClick is the answer.

What is DoubleClick?

DFP stands for DoubleClick for Publishers and as the name implies, it’s used by various publishers as either an ad server or it can provide a lot of benefits to manage the sales process on behalf of the company. Several popular ad networks such as AdSense by Google, are usually run on DFP if the publisher chooses to. One of the biggest challenges in the advertising world, for publishers, is to find a solution to display ads optimised for – desktops and mobile devices, simultaneously.

If you’re using website builder for creating your website you shouldn’t be worried about this since almost all best website builders make this resize in automate mode. But if you decided to use WordPress, then please read the instruction below. In the following guide, you will learn to build responsive ads that resize themselves according to the device used by your visitors.

Step 1: Create a Double-click account

Visit DoubleClick and follow the prompts to create an account.

Protip! To create a DoubleClick account you will need an Adsense account. Check out our blog post Turn Your Content Into Cash to find out how to set up an AdSense account.

Step 2: Download and Install the DoubleClick Plugin

  1. Download the ‘DoubleClick for WordPress’ plugin. The method does not require you to copy and paste header and copy tags. The plugin automatically generates it by itself.
  2. To integrate, first head over to the settings page in your WordPress configuration. Choose the ‘DoubleClick for WordPress’ and enter your network code from DFP.
Protip! Alternatively or if you're not running WordPress you can install the code via Google Tag Manager

Step 3: Ad Placement

You have now set up your plugin and are ready to place advertisements. There are 2 ways to place your advertisements – Reusable Widget and Theme Function.

Reusable Widget Method

  1. The space allocated for the ‘identifier’ field is the name of the line item in DoubleClick for Publishers. For the ad to load successfully, you need to match the same identifier set in the widget with the line item name. If the field is left blank, the plugin loads a random inventory from the DFP account.
  2. The next setting is the ‘Breakpoints’. Here you must provide the exact size you want your ad to resize up to. Options for a tablet, mobile, and desktop are provided, enter your preferred resolution. The ‘Lazy Load’ option can be checked if you want the ad to first load before it’s visible on the user’s screen.
  3. If you would like a universal size for your ad to show on all devices, then provide the breakpoint as the same resolution in all device fields. If you wish to increase the size on a desktop and lower the ad size on a mobile, provide the appropriate Inventory Size for each of the devices.

Theme Function Method

  1. This is an advanced user method and should be used by people who are proficient in coding. The variable defined by the plugin to make it possible for you to define breakpoints directly in the theme is – global $DoubleClick.
  2. The variable to register a breakpoint is – $DoubleClick->register_breakpoint($identifier,$args) and the variable to place an ad is – $DoubleClick->place_ad($identifer,$size,$breakpoints).
  3. For individually targeting breakpoints and defining them use the functions.php variable.

Step 4: Targeting Criteria

  1. This is the final step; this part is meant to set up the type of ad and what the line items should serve.
  2. For example, you might be running a clothing business where you sell garments in your online store. You could place ads related to the fashion industry in your ad. So, creating custom criteria for clothes can allow you to check the option in the ‘Targeting Criteria settings’.
  3. The WordPress command is Page for targeting ‘admin’ and ‘front-page’ values.
  4. The Category command groups up all the values of a common class in the WordPress category.
  5. Tag is the WordPress command that is used to control all the tags related to WordPress.
  6. To define the target in DFP, you need to choose the ‘New Key’ option in ‘Custom Targeting’. Enter the name of the category whether sports, literature, food, etc. and choose the ‘Value types’.
  7. If you know what your category is specific about, then choose the first option. If it’s an unclassified group of thousands of articles, choose the 2nd option ‘Users will select from predefined targeting values’. On the next page, select the appropriate values up to 200 at a time.
  8. For every new line item under custom criteria, select the relevant value within the menu. And the line item will only showcase the targeted category of ads. And that’s it!

You are on your way to placing advertisements using the DoubleClick without any headers or tag commands. The ads will be resized based on the type of resolution provided in the 2nd step, so ensure you provide the required breakpoints.

Contact us

If you want to know more about monetizing your site don’t be shy we’re happy to assist. Simply contact us here

Tags: Google Adsense, WordPress

Previous: {{ previousBlog.sTitle }}

Posted {{ previousBlog.dtDatePosting }}

Next: {{ nextBlog.sTitle }}

Posted {{ nextBlog.dtDatePosting }}

You might also like

Ways to generate high quality traffic

5 Effective Ways to Drive Traffic to Your Website

19 March 2024

Posted by Brigitte Evans in Industry Experts


An introduction to sourcing high quality traffic for your niche and why you should focus on channels that can give you the best chance of reaching id...

Read more
rage bail

The Dark Side of Engagement: Why Rage Baiting is Winning

23 April 2024

Posted by Che Kohler in nichemarket Advice


A look at the popular growth hack used by influencers on social media and why this tactic might garner results in the short term but is harmful in th...

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter