Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » Adding DFP Tags

  • Resolved AbCOM80



    I am tying to add DFP tags to this plug in in order to start a marketing campaign. On the code space I added the tag code, and setup al the options on position, page shown, etc. but nothing really happens.

    Can someone help me out on this one? I already created everything on DoubleCLick for Publishers, no I just need to activate the spaces to display on my WP site.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Spacetime


    It would help if you could paste the url to your page where the code should appear and screenshot of Ad Inserter settings.

    Thanks for the response.

    I just donĀ“t find it very clear on where to put this code, which is for my home leaderboard 728×90:

    <html lang=”en-us”>
    <meta http-equiv=”Content-type” content=”text/html; charset=utf-8″>
    <title>Widgets Magazine</title>
    <style type=”text/css” media=”screen”>
    <script type=’text/javascript’>
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];
    (function() {
    var gads = document.createElement(‘script’);
    gads.async = true;
    gads.type = ‘text/javascript’;
    var useSSL = ‘https:’ == document.location.protocol;
    gads.src = (useSSL ? ‘https:’ : ‘http:’) +
    var node = document.getElementsByTagName(‘script’)[0];
    node.parentNode.insertBefore(gads, node);

    <script type=’text/javascript’>
    googletag.cmd.push(function() {
    googletag.defineSlot(‘/30747816/abarrotero_home_leaderboard’, [728, 90], ‘div-gpt-ad-1435991423179-0’).addService(googletag.pubads());


    AND then I have this other code (which is for the body):

    <!– /30747816/abarrotero_home_leaderboard –>
    <div id=’div-gpt-ad-1435991423179-0′ style=’height:90px; width:728px;’>
    <script type=’text/javascript’>
    googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-1435991423179-0’); });

    The URL of the website where it needs to be shown is:

    Thank you for your help.

    By the way, those are the tags generated by the DFP

    I cannot give you access to the website, I am sorry, it is the companies website and I am not authorized for that. I just wanted to follow up basic steps to setup DFP tags on your plug in.

    The scenario is this:

    Everything is set on DoubleClick (Google DFP) and the tags have been generated. The only thing missing are the ad spaces on wordpress theme. Any suggestions?

    Thanks for your help!

    Plugin Author Spacetime


    Then I can not help much as the insertion mainly depends on the theme used.

    Ad Inserter can not generate ad spaces on wordpress theme, it can only insert code at positions provided by WP and implemented by the theme used.

    Of course, any custom position can be achieved by manually placing code directly into theme PHP files.

    Ad Inserter supports typical positions that work for many themes. Please check general instructions:

    thank you man!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding DFP Tags’ is closed to new replies.