How to set up DFP Small Business for serving Ads on your sites

Because of a the high demand on this I created Understanding DFP Small Business as a separate tutorial.

Over time I will move the valuable comments and discussions from this thread over to the tutorial itself, so that you have it all in one place. Until then, make sure to also check the comments here.

Now, take a look at the current Table Of Contents.

This entry was posted in Advanced AdSense Publishers and tagged . Bookmark the permalink.

100 Responses to How to set up DFP Small Business for serving Ads on your sites

    • Vijendra says:
      Hi admin,

      Yesterday I have create my adsense account through this method and I have paste that code on my blog (
      (Resource no longer exists)) but the ads are not displaying on my blog. Please help me.

      Thank you
    • Nick says:
      Hi! First off Thank you so much for taking the time to write this forum. Very helpful. I am about to start using DFP on my site and I have a few questions regarding setting up my Google Adsense using DFP. My first question is:

      1) When implementing the inventory ad units should I enable the Google Adsense Inventory setting for all the Google Adsense ad units I implement?

      2) Above you state that I have to go into my adsense account and get the code for every Adsense ad unit and paste the code in the snippet box. Where is this snippet box?

      I look forward to hearing from you.

      Thanks,

      Nick
      • admin says:
        1) When implementing the inventory ad units should I enable the Google Adsense Inventory setting for all the Google Adsense ad units I implement?
        No.
        The option below for AdSense inventory settings can be ignored (should be turned off) because it only offers a very limited functionality to customize and we are going to set up our AdSense Campaign later.

        You'll most likely lose money if you use this option and not set up an AdSense campaign like I will describe later.
        How to setup Ad Units so that you can serve Ads via DFP Small Business

        Read this for how to set up Adsense with DFP: How to set up Google AdSense using DFP Small Business
        2) Above you state that I have to go into my adsense account and get the code for every Adsense ad unit and paste the code in the snippet box. Where is this snippet box?
        It is the box which you see when you create a "line item" and select "third party >>"

        Hope this helps
        • dora says:
          I'm a total newbie when it comes to DFB and therefore I have what could be silly question.

          When not using Adsense,
          Does DFP help you to find new advertisers from who you have to create new orders for? or you have to find the advertisers some other way on your own...

          thanks in advance
    • RW5396 says:
      hey I set up a line item with adsense tag pasted to creative and in the DFP reporting on the ad server side I don't see the clicks being reported, and the revenue I see is not being added to overall revenue in my adsens account. where are the clicks being reported and i am assuming it is all adsense revenue so why am I not seeing it being added ?
  1. admin says:
    If you have any questions regarding this tutorial or DFP Small Business in general feel free to ask them here.

    Of course feedback is also very welcome :)
    • jfuqua says:
      This is the best tutorial I've found for this so far. Many thanks. I can't say I fully understand everything yet which is the reason for this post.

      Currently, I chain my networks. Network A default to Network B, etc. This is based usually on the average CPM of each.

      I assume I will need to removed all defaults from each network so that, if the first network DFP goes to isn't going to fill the space, it'll go to the second option. Is this correct?

      Thanks.
  2. Dogs and things says:
    Hi,

    It has taken me a few days to understand the basics of working with DFP, your writings helped me a lot.

    Although I'm not sure DFP will be of great help for my site I decided to give this a good go, thinking that if it won´t help it certainly won´t hurt.

    One thing I found of great help is the mass upload using CSV sheets. As I am using many different ad units being able to upload those through CSVs cut down work.

    Nevertheless, a lot of work needs to be done adding Line Items, creatives and editing my sites files. I have not finished all of that yet, over the next couple of days it'll be done.

    I´m not even sure if there's much use in using all those individual units, for my small site I could as well use three different units instead of nearly 200. But I figure it won´t hurt to do all this as it'll help me get a lot better insight in what exactly is going on on my site. I plan to monitor all individual units for at least three months and then see if I can draw any helpful conclusions when it comes to optimization.

    One very nice thing I achieved already is the fact that I can confirm that roughly an hour after starting to work on DFP the icon that indicates ads open in a new window appeared in all of my units. And I haven´t even started serving ads through DFP!

    All I did was setting the target window to blank for all my uploaded units.

    Even if this is going to be my biggest benefit from using DFP I consider all the work worth my while as I believe this new behavior will be good for my site.

    But I'm pretty sure there´ll more benefits for me. We'll see.

    Greetings.
    • admin says:
      One very nice thing I achieved already is the fact that I can confirm that roughly an hour after starting to work on DFP the icon that indicates ads open in a new window appeared in all of my units. And I haven´t even started serving ads through DFP!

      All I did was setting the target window to blank for all my uploaded units.
      Very nice. Even though I did not watch it carefully and noticed it a few days later, I think the same thing happened on my websites.

      I'll be very interested to hear if other Publishers noticed the same.
  3. Dogs and things says:
    Have you, or anyone else, noticed that the leaderboard and large rectangle served through DFP are showing the old format for text ads?
  4. admin says:
    I don't serve leaderboards but the large rectangle is still the new format.

    I don't use the build in AdSense option of DFP because it has very limited functionality. I serve my AdSense AD Units with DFP as Third Party Ads so they should not change at all.
  5. Dogs and things says:
    I'm not aware that I am using the build in AdSense option. How can I check if I am or not?

    I followed your above instructions to set up DFP, if I'm not mistaken those instructions make me serve AdSense units as Third Party Ads. Is that correct?
  6. admin says:
    Yes, you are correct.

    You have the option to enable AdSense inventory settings when creating a new Ad Unit. This option should not be used because it offers only limited AdSense functionality.
  7. Dogs and things says:
    You are right, I just figured this out.

    I had uploaded my units using a csv file and had set AdSense inventory settings to NO.

    I did the same in the Network Settings.

    However, when I prepared the units I wanted to use for testing I set the AdSense inventory settings both for the units as for the Network settings to Yes.

    I just undid those settings and few minutes later the new formats are displaying.

    Fortunately the solution was very simple, because I found those new formats much more productive and had decided that if DFP was not able to deliver those I would not continue using DFP until this issue was solved.

    This tool definitely has a pretty steep learning curve, although once you find out how things work it's pretty simple, like most complicated things.

    Greetings.
    • Dogs and things says:
      Just a small but useful tip for beginners, like me:

      Pretagging your pages with the code that goes in the <head> section avoids the 60 minute lag that occurs when you first start serving ads through DFP.

      If you don´t pretag it will take up to 60 minutes before ads start showing, if you pretag your pages and wait for more than an hour before you ad the DFP tags to your AD Unit code ads will start showing immediately.
  8. Dogs and things says:
    Is it possible to rotate different sized creatives inside one AD unit?
  9. admin says:
    Yes it is possible.

    I currently run a 300x250px medium rectangle on a 336x280px large rectangle Ad Unit. However if you define multiple sizes for a line item e.g. 300x250px and 336x280px and create a creative for each they will only run on Ad Units with matching sizes.

    To have a medium rectangle run in my large rectangle Ad Unit I created a large rectangle creative and pasted my medium rectangle AdSense code in it.

    So now my medium rectangle is running as "fake" large rectangle ;)

    It is not a very elegant solution but it was the only one I
    could come up with. Maybe someone has a better idea.
  10. Dogs and things says:
    It certainly is clever thinking and seems to be an acceptable solution.

    I'll go and do some testing...
  11. LenBackus says:
    How would one set up a cascade with DFP?
    • DFPexpert says:
      DFP Small Business is a nice Tool that provides free Ad serving for web publishers.

      DFP Consultant
      (Resource no longer exists)
  12. admin says:
    DFP Small Business Line Item Settings Explained is now part of the separate DFP tutorial.
  13. zargai says:
    You are so genius mate. Very great web site with nice tutorial. i am very new to DFP i just added adsense via DFP lets see how it works.

    Thanks Admin you are great
  14. zargai says:
    Hello Admin thanks for making such a helpful site, i have joined the DFP and now i got few questions from you if you can answer that will be great.

    The inventory earning in DFP will be paid to adsense account ? or is there any payment option in DFP i coudnt find any.

    and i can see i have got paid more in DFP but if i login to Adsense account the figures are very low.

    how this all works where i will be getting paid ? DFP or Adsense Account ? and why both have different figures ?

    Please help

    Thanks

    H Afridi
  15. admin says:
    DFP Small Business is an Ad Server not an Advertising Program like AdSense.

    So if you sell Ads on your site directly and put them into your DFP AdServer then you have to get payed from the Advertiser directly.

    I don't really understand what you mean with AdSense paying more in DFP then in AdSense.

    DFP (if AdSense is served as third party creative like described in my tutorial here) is not able to count clicks and earnings from AdSense just impressions.

    To see what you earned in AdSense you have to go to your AdSense account.

    Also you should read this: Different strategies to use AdSense Channels
    • zargai says:
      And also let me tell you. I have a very big Arab Music Site. What are the high pay keywords or channels ? my cpc=.10usd now a days :( can you help me increasing it?

      my site is (Resource no longer exists) let me know what to change?

      Thanks
  16. zargai says:
    Thanks for your response ok i got ur point now.

    one more thing sir why the impression figures in DFP are not the same as adsense account?

    DFP Adsense Impression = 8,855
    Adsense Account = 4,211

    so how this works?

    Thanks
  17. admin says:
    For your first question:

    Are you sure you are seeing "Ad unit impressions" in your AdSense Report or "Page Views"?

    Pageviews are only counted for the first Ad Unit. See this thread for more information:
    AdSense Stats discrepancies explained: Clicks > PIs

    In regards to your second question, please use our Website Reviews Forum for this kind of requests. You can ask for a review after you have been registered for 7 days and made at least 10 posts.
  18. admin says:
    I don't really quite get your question. Do you switched from a different Ad Server like OpenX to DFP or did you do the Network Chain with DFP?

    You can set CPM prices for you campaigns in DFP and let AdSense to compete with them.
  19. jfuqua says:
    Sorry for the confusion. I'm somewhat new to all this. I may be a bit confused as to what DFP does. Let me explain in a bit more detail.

    Right now, I have five ad networks chained together through the networks themselves. If Network A doesn't fill the space, it defaults to whoever I have at Network B and so on. With five networks chained together, I think it sometimes slows the site.

    Since I now have a non-network advertiser I am wanting to mix in, I am looking at DFP or something which allows me to do this.

    So my question is whether I need to add creatives for all my networks or just my top network and any non-network advertisers. If I need to add creatives for all, does DFP automatically try to send to the top tier, then two, etc.? If it does, wouldn't I need to remove my defaults at the various networks and replace with some special code sending it back to DFP?

    Thanks.
  20. admin says:
    Which Networks are you talking about?

    AdSense should be by far the best paying Network.

    There are only very limited settings where AdSense is not the best paying.

    But yes, I would only serve your best paying Network when your sold Advertising is not displayed. Or what you could do is set up an alternate URL for AdSense which serves a html page with your second network ad code in case that AdSense can't deliver an AD. But I doubt that you'll find a case where you would need a third backup network.
    • jfuqua says:
      Thanks again.
  21. jfuqua says:
    I've had very little luck with Adsense so it's at the bottom of my chain. I use a number of different CPM ad networks.

    I read your post on cascading. Is this the method used if I want to default back to DFP?

    What I am looking for is DFP to look at all my ad networks and pull the highest-paying ad.
  22. admin says:
    That is not possible because DFP is just an AdServer.
    It works with AdSense because DFP and AdSense are both from Google but
    competing third party Ad Networks with it based on real CPM or CPC is not possible,
    as far as I know. But you can ask in the DFP Help Forums to see if anyone has an Idea:
  23. admin says:
    First you should claim your site on Google DoubleClick Ad Planner

    Read more about DoubleClick Ad Planner here: DoubleClick Ad Planner Marketplace

    If your currency in DFP Small Business is set to US Dollar you can take part in the DoubleClick Ad Planner Marketplace.

    Therefor you need to set prices for your placements in DFP Small Business.

    The setting is called "CPM in Ad Planner"

    Then check the checkboxes for:

    Offer this placement to advertisers through:
    • DoubleClick Ad Planner
    and your inventory is available in DoubleClick Ad Planner.

    For being available in AdWords I think you need to use AdSense.
    • BattleStrats says:
      First you should claim your site on Google DoubleClick Ad Planner
      Read more about DoubleClick Ad Planner here: DoubleClick Ad Planner Marketplace

      If your currency in DFP Small Business is set to US Dollar you can take part in the DoubleClick Ad Planner Marketplace.

      Therefor you need to set prices for your placements in DFP Small Business.

      The setting is called "CPM in Ad Planner"

      Then check the checkboxes for:

      Offer this placement to advertisers through:

      • DoubleClick Ad Planner
      and your inventory is available in DoubleClick Ad Planner.

      For being available in AdWords I think you need to use AdSense.


      Under AdPlanner when your setting up each of your sites and then it gives you the option to choose advertising accepted. Is it best to list as many sizes as possible to show your flexible?
  24. BattleStrats says:
    Can you explain exactly what the benefits are for not using the built in Google adsense? I am guessing you weren't referring to the limited functionality of how the ad LOOKS because I pressed OVERRIDE and it gave me the option to customize how the adsense ads looked.

    And on Ad Planner how does a person figure out what a reasonable CPM is? If you don't set a CPM do the ads not still compete and give you the higher offer?
  25. admin says:
    They updated the AdSense Settings in DFP recently with more options in regards to the layout however you still can't assign channels to Ads which makes detailed tracking impossible.
    • BattleStrats says:
      How does one figure out a reasonable CPM? And if you are only serving Adsense through your tutorial does CPM matter?
  26. admin says:
    A "reasonable" CPM is the CPM that advertisers are willing to pay.

    I would check my AdSense RPM (former eCPM) and add 50cent to 1$ for starters.
  27. admin says:
    Are you that flexible?

    I can't/won't implement all available ad formats.
  28. BattleStrats says:
    probably only within the post content..if it wrapped around text I would think so...not however for my homepage.
  29. TheChiro says:
    I hope this hasn't been answered yet. Here's my dilemma. I have multiple ad networks, and certain ones I want "prioritized" or to show more than others. So say I have Adsense, X network and Y network all for a single ad unit.

    Is it possible to make each of them show up a percentage of the time? I.E. Adsense 60%, X 30%, Y 10%. I saw the percent of remaining inventory so I'm not sure if I would use that or not (I'm afraid if this is wrong and I do it that I'll have a lot of blank spots popping up).

    Or if this is even possible. :/
  30. admin says:
    In your line item settings set "Rotate creatives" to weighted and save.

    After that go to the creatives of this line item and you'll see that the "Weight" option changed from N/A to a number. Here you can edit the weight for each creative. If you set one creative to weight 1 and one to 10 then the second one will be shown 10 times more often.
    • TheChiro says:
      In your line item settings set "Rotate creatives" to weighted and save.

      After that go to the creatives of this line item and you'll see that the "Weight" option changed from N/A to a number. Here you can edit the weight for each creative. If you set one creative to weight 1 and one to 10 then the second one will be shown 10 times more often.
      So even if the creatives are in different orders, this still holds true?
  31. admin says:
    The order the creatives are displayed in the line item settings has nothing to do with the display order.

    The "Type" and "Rotate creatives" Setting for line items are the settings which determine display order
  32. TheChiro says:
    Either we aren't on the same page or I'm just not understanding this. So this is what I have

    Adsense (order) -> ATF LR Gst (Line item) with targeting to "ATF LR Gst" -> 1 creative (to make this simple) YieldBuild (order) -> ATF LR Gst (Line item) with targeting to "ATF LR Gst" -> 1 creative

    These creatives are in totally different orders but are targeting the same ad unit. So should I still make each of the line items "weighted" and edit each creative accordingly and will that give the desired affect I'm looking for? I just figured the "weighted" items only for creatives in the same line item.

    Or am I just doing this totally wrong :/
  33. admin says:
    Ah you have different orders competing for the same ad unit.

    Then you need to work with Type settings and define different delivery goals.
    • krystal56 says:
      I'm new to DFP and I'm confused about one thing. How do you get advertisers? In your guide you give details about setting up Orders and Line Items, but I'm unsure as to how I go about getting advertisers. Do they contact you or do you contact them.

      Just wanted to say this is a fantastic site and I'm happy that I found it!!!
      • admin says:
        How do you get advertisers? In your guide you give details about setting up Orders and Line Items, but I'm unsure as to how I go about getting advertisers. Do they contact you or do you contact them.

        That is a challenge every Website owner has to face on its own.

        There are several ways to approach this:

        1) Advertisers ask you.

        2) You ask advertisers.

        3) You contract someone to bring you advertisers.

        4) You use advertising networks like AdSense

        Most of us will use a combination of the above options.


        To 1) Make it easy for advertisers to contact you by providing contact details, provide them with basic statistics and a Mediakit. However you will most likely only be contacted if you reach enough people with your website and become known in your niche.

        To 2) This is hard work and I made the experience that the time spent is not worth the outcome but that might differ for different websites and niches.

        To 3) This is what I did too. I have an exclusive contract with a big advertising marketer. They have the biggest health vertical in Germany. The downside is that I have to split earnings with them. Next to AdSense this is a nice extra income without me working for it.

        To 4) The easiest way and most likely the best for 90% of all small to medium sized websites. The good thing is that you can run any combination of these 4 options :)
    • quaeng says:
      Hi admin,

      thanks for this great guide. I tried to implement AdSense into DFP by using your new setup. Unfortunately the ad units on my site stayed empty. Is there any way how I could track down the mistake I made? I ran through your guide twice but nothing changed.

      regards

      Patrick
  34. miles says:
    admin thanks for the clear instructions and your experience with DFP. Today I followed much of your guide and got DFP working on my site.

    One issue I found or have no answer for:

    I have several sitewide spots within my website. I noticed with DFP is it impossible to have the same ad spot running on a page. The place where the 2nd ad spot appears will be blank. Does anyone know how to work around this or are we honestly not able to repeat spots on a page?
  35. admin says:
    Of course this is possible ;) In your line item settings set "Display creatives" to "as many as possible"
    That should do the trick unless I misunderstood your problem.

    Then you need to explain again what you did and what your problem is exactly ;)
  36. admin says:
    I just wrote a new chapter of my tutorial. Go check it out: How to roadblock creatives, run site takeovers or serve a Wallpaper Ad with DFP
  37. admin says:
    Which AdSense setup Version did you use? The Line Item Version or the build in AdSense Version?

    Do you by any chance use Ad Block?
  38. pixar says:
    To attach channels to the new asynchronous code, does it work the same as mentioned above ?

    Like ...
    googletag.cmd.push(function() { 
      googletag.defineSlot(
        '/1073361/336x280_cat-pages_ATF', 
        [336, 280], 
        'div-gpt-ad-1321463691918-1'
      ).addService(
        googletag.pubads()
      ); 
      GA_googleAddAdSenseSlotAttr(
        "336x280_cat-pages_ATF", 
        "google_ad_channel", 
        1273635613
      ");
    ....
  39. pixar says:
    Think I found it, now you have to use
    googletag.pubads().set(
      "adsense_channel_ids", 
      "1273635613"
    ); 
    instead of
    GA_googleAddAdSenseSlotAttr(
      "336x280_cat-pages_ATF", 
      "google_ad_channel", 
      "1273635613"
    );
     
  40. admin says:
    you find full instructions here on how to attach AdSense channels to the new asynchronous dfp code:

    How to set up AdSense using DFPs build in AdSense option - Async Version
    • pixar says:
      Thx admin,

      however, if I implement the directions on that page, no ads show up anymore. (it works well without the edit )

      I have 3 ads on my page, and I changed a part of the header code from
      <script type='text/javascript'>
      googletag.cmd.push(function() {
        googletag.defineSlot(
          '/1073361/160x600_img-pages_left_ATF', 
          [160, 600], 
          'div-gpt-ad-1321528770977-0'
        ).addService(googletag.pubads());

      googletag.defineSlot( '/1073361/728x90_img-pages_bottom_BTF', [728, 90], 'div-gpt-ad-1321528770977-1' ).addService(googletag.pubads());

      googletag.defineSlot( '/1073361/728x90_img-pages_top_ATF', [728, 90], 'div-gpt-ad-1321528770977-2' ).addService(googletag.pubads());

      googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script>
      to
      <script type='text/javascript'> 
      googletag.cmd.push(function() {
        var slot1 = googletag.defineSlot(
          '/1073361/160x600_img-pages_left_ATF', 
          [160, 600], 
          'div-gpt-ad-1321528770977-0'
        ).addService(googletag.pubads());

      slot1.set("adsense_channel_ids", "8348056594"); var slot2 = googletag.defineSlot( '/1073361/728x90_img-pages_bottom_BTF', [728, 90], 'div-gpt-ad-1321528770977-1' ).addService(googletag.pubads());

      slot2.set("adsense_channel_ids", "8008306723"); var slot3 = googletag.defineSlot( '/1073361/728x90_img-pages_top_ATF', [728, 90], 'div-gpt-ad-1321528770977-2' ).addService(googletag.pubads());

      slot3.set("adsense_channel_ids", "0001099950"); googletag.pubads().enableSingleRequest(); googletag.enableServices();

      }); </script>
       
  41. admin says:
    The code you posted is correct in regards to the AdSense Channels and the use of slot set

    If you don't see ads make sure you use the same DIV ID in your header and body code.

    The DIV IDs are randomly generated each time you click on generate tags.
    • pixar says:
      I tried it again, with the same result.

      When I implement the new code, all adsense ads on the page dissapear.

      The DIV ID is correct.

      DFP works well without attaching the channels.

      Strange..
  42. pixar says:
    When you setup a new channel, you have the option to copy the Adsense Targeting.
    (You can copy the selected channels targeting settings )


    However, once a placement is made, that option is not available anymore.

    In the dfp help texts, they say that this is possible, ( How does placement targeting work? - DFP Small Business Help ) but I don't see that option anymore once a placement is created.



    Anyone has an idea how to copy the a certain Adsense 'channel targeting setting' to an existing placement ?

    Thx!
  43. admin says:
    link to your page?
  44. admin says:
    without a test page where you have implemented the code that breaks the ad I can't really help you.

    Check your code again, it works perfect for me with:
     <script type='text/javascript'>
    googletag.cmd.push(function() {
    var slot1 = googletag.defineSlot('/1025031/PatFra-3rd-LR-1P-Threads-Schulmedizin', [336, 280], 'div-gpt-ad-1319895692625-13').addService(googletag.pubads());slot1.set("adsense_channel_ids", "2777822898");
    var slot2 = googletag.defineSlot('/1025031/PatFra-3rd-LR-W-Threads-Schulmedizin', [336, 280], 'div-gpt-ad-1319895692625-32').addService(googletag.pubads());slot2.set("adsense_channel_ids", "4841233170");
    googletag.defineSlot('/1025030/PatFra-LR-Last-post', [336, 280], 'div-gpt-ad-1319888893242-15').addService(googletag.pubads());
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
    });
    </script>
    
    To your other question:

    Anyone has an idea how to copy the a certain Adsense 'channel targeting setting' to an existing placement ?

    In your screenshot you already have copied settings from AdSense to your placement.

    Delete the placement and create a new one to assign a different AdSense Channel to the placement. I could not figure out another way to do it. If you have an existing placement without assigned AdSense targeting yet, then you can do it like the description in the help
  45. pixar says:
    Hi admin,

    I found the error.

    It is because of the different kinds of " that are used for 'param' and 'value'.

    With your last example, it worked fine.

    In the example I took from the site first, (How to set up AdSense using DFPs build in AdSense option - Async Version) the " are different.
    var slot1 = googletag.defineSlot(
      '/1025030/PatFra-LR-1P-First_Aid',  
      [336, 280],  
      'div-gpt-ad-1319984924533-0&#8242;
    ).addService(googletag.pubads());

    slot1.set("adsense_channel_ids", "38234470929&#8243;); var slot2 = googletag.defineSlot( '/1025030/PatFra-LR-1P-Threads-Urology', [336, 280], 'div-gpt-ad-1319984924533-1&#8242; ).addService(googletag.pubads()); slot2.set("adsense_channel_ids", "3867876929&#8243;);
    Notice the &8242; and &8243; which is an espcaped unicode character, representing the typographic 'correct'  quote characters.  Not so 'correct' for code.

    last example:
    <script type='text/javascript'>
    googletag.cmd.push(function() {
      var slot1 = googletag.defineSlot(
        '/1025031/PatFra-3rd-LR-1P-Threads-Schulmedizin', 
        [336, 280], 
        'div-gpt-ad-1319895692625-13'
      ).addService(googletag.pubads());
      slot1.set("adsense_channel_ids", "2777822898");
      var slot2 = googletag.defineSlot(
        '/1025031/PatFra-3rd-LR-W-Threads-Schulmedizin', 
        [336, 280], 
        'div-gpt-ad-1319895692625-32'
      ).addService(googletag.pubads());
      slot2.set("adsense_channel_ids", "4841233170");
      googletag.defineSlot(
        '/1025030/PatFra-LR-Last-post', 
        [336, 280], 
        'div-gpt-ad-1319888893242-15'
      ).addService(googletag.pubads()); 
      googletag.pubads().enableSingleRequest();
    googletag.enableServices(); 
    }); 
    </script>
    Now it works fine :-)
    In your screenshot you already have copied settings from AdSense to your placement.
    I have set up the placements without attaching targeting from an Adsense channel. I had read you can do that later, and that was the plan. But now it seems I can't do that anymore, after the placement is created.

    Many thanks for the assistance !
  46. admin says:
    The " problem is caused by CSS styling. In my original source code the " is correct.

    I will adress the CSS issue tomorrow. Thanks for pointing this out ;)
  47. pixar says:
    Question: if you attach your Adsense channels to DFP: Inside Adsense, these channels do not have to be connected to an Adsense ad, right ?

    These can be channels with no connection to Adsense ads, with the only purpose to create channels for the ads shown trough DFP ?

    I was wondering if this had an influence on targeting. If inside Adsense a channel is open for targeting, but no Adsense Ad is connected to that channel, will advertisers be able to use that channel ? ( for targeted advertising )

    Targeted advertising is also accomplished trough DFP directly ( placements), but I wondered if the Adsesne channel targeting is also still valid, if no Adsense ad is connected to an Adsense Channel.
  48. pixar says:
    I would like to set up a simular split test, as described on How to run Split Tests with DFP Small Business.

    Now I show a big rectangle (336x280) on my site, and I would like to test with a medium rectangle (200x250).
    I first created a new AdSense Channel for the medium rectangle to track the results and a medium rectangle AdSense Ad Unit to which I assigned the newly created AdSense Channel.
    Ok, I created a new channel, a new Adsense unit and connected the ad unit to the channel.
    Then I created a second creative for my medium rectangle inside the Line Item which serves the Ads inside my first posts.
    I don't use a line item for servings my big rectangle.

    I just created that ad unit in my inventory, and serve that ad unit trough the generated tags.

    I only use orders and line items to let Adsense compete with external networks.

    It is not completely clear how I should proceed to set up a split test ..

    Should I treat the big rectangle as an 'external network', and setup an order and line item for it ?

    Thx for any advice!
    • admin says:
      Question:

      These can be channels with no connection to Adsense ads, with the only purpose to create channels for the ads shown trough DFP ?
      You can't attach adsense channels to DFP Ad Units without AdSense.

      Use the DFP Reporting tools for statistics on DFP Ad Unit performance.

      I don't use a line item for servings my big rectangle.
      If you want to run AdSense in a Split Test you need to set up AdSense as Line Items.

      There is no other way. The build in AdSense option is a fall back.
  49. pixar says:
    I have setup Adsense as Line item, and added 3 creatives for a split test:

    Big Rectangle, Text+images Big rectangle, Images Medium rectangle, Images However, the medium rectangle does not show ad impressions.

    The ads are divided between the two big rectangles.

    Can't you run a split test with 3 creatives ?

    Or can't a medium rectange be shown in a big rectangle ad unit ?

    Thx
  50. admin says:
    You can show a medium rectangle in a large rectangle ad unit but not vice versa.

    And yes, you can run split tests with as many creatives as you want
  51. geartalk says:
    I used your tutorial to move from OpenX to DFP SB and it worked out fine.

    There are some things I liked better with OpenX but in general it's been an improvement.

    The biggest help was your mentioning OpenX terminology and how it relates to terminology on DFP SB.

    So, perhaps you could include a new section of your tutorial specifically for OpenX users.

    Lots of folks dumping OpenX for DFP SB.
    • nunoperalta says:
      Hello,

      I moved to DFP so that I could use some features that AdSense doesn't provide by itself (Ajax-compatible and Open in New Tab).

      I read most of this thread, but I still have some questions.

      1) Once I'm just using AdSense ads (no other networks), do I need to worry about Orders and Line Items? Or, I simply create Ad units and Placements? At the moment I'm just using those and the ADs seem showing well so far.

      2) Although my AdSense earnings seem increasing, the Channels performance seem frozen. Is this because I have to set "adsense_channel_ids" to my ad units?

      3) Some ADs (at least the 468x60 ones) are not returning any AD. They just display a blank space. Other ADs that work well, sometimes they also show a blank space, but not always.

      However, with AdSense without DFP, they were always showing ADs. Do you have any clue about what can be the cause of this?

      As for the 468x60 ads, in the "Winning line item", they say "Winning line item information not found.".

      Most ADs say "AdSense won.".

      But, again, I'm only using AdSense in my DFP, so I'm not sure why isn't AdSense "winning" for the 468x60 ads.

      Thank you very much!

      Nuno
      • admin says:
        1) Once I'm just using AdSense ads (no other networks), do I need to worry about Orders and Line Items? Or, I simply create Ad units and Placements? At the moment I'm just using those and the ADs seem showing well so far.
        you don't need orders and line items if you want to use DFP just to serve AdSense.

        I don't really know why you sometimes get a blank page however it might be due to the "ideology" of Google that if they can't serve ads fast enough they don't serve them at all to give the user the best (fastest) experience. They do it on their search engine and might as well do it on our sites with dfp.
  52. nunoperalta says:
    Hello again,

    I have to say that the (2) was true. Once I added the Channel IDs, AdSense is now reporting earnings well for each channel. As for (3), it was because of a glitch in the code that was giving the wrong dimensions. The 468x60 ads are now showing ads.

    However, I would still like an answer for (1) and the problem of sometimes ads showing a blank space (even if it is rare), while it never happened with AdSense itself, before.

    Thanks.
  53. nunoperalta says:
    Thank you for answering!

    Well, your answer about blank ads makes sense. However, I don't think that is a good policy of them. Isn't there a way that if there aren't ads to show, there is always a "fallback"?

    What I mean is, some fixed or random ad of myself to show in that place when AdSense doesn't have any ads to display.

    Thanks again.
  54. admin says:
    I would try their support forum and ask there.

    Maybe it is a bug or someone can help you with it :)
  55. nunoperalta says:
    Do you mean here?
    Google Groups

    I posted at the same time I asked on this forum, but seems no one replied there.

    Thank you for your help!
  56. admin says:
    yes thats it
    • ciso says:
      Sorry. Double post :)
  57. ciso says:
    Hi,
    I'm quite new to DSP.

    I created a 728x90 ad space. Suppose that I want to show an ad for a total of 4.000.000 impressions. How do I set up another ad to be shown when the first is not shown?

    I tried setting the second one type-4 with 100% impressions, but the first ad is not display enough time.

    Thank you!
  58. admin says:
    Set the second one as house priority and the first one as standard.

    DFP Small Business Line Item Settings Explained
    • ciso says:
      Set the second one as house priority and the first one as standard.

      DFP Small Business Line Item Settings Explained
      Thank you very much.

      Is this way I can't set an "endless" advertising campaign, right?

      The second ad is adsense, but I don't want to use the build in option.
    • ciso says:
      Set the second one as house priority and the first one as standard.

      DFP Small Business Line Item Settings Explained
      I read couple of time your guide, but I still can't understand the difference between types.

      Why do you suggest me to use House instead of Network?

      Thank you!
  59. admin says:
    why not? If your Campaigns run out AdSense takes over. And more than that you can compete your CPC/CPM Campaigns against it

    You can set any ad campaign to endless if I am not mistaking :)
    • ciso says:
      why not? If your Campaigns run out AdSense takes over. And more than that you can compete your CPC/CPM Campaigns against it

      You can set any ad campaign to endless if I am not mistaking :)
      Because managing adsense ad is easy in the Adsense panel than in the DFP one :)

      For what I understand only Sponsorship can be set to endless.
  60. admin says:
    No.

    Sponsorship, Network, Price Priority and House can be set to "unlimited" end time.

    Do you change your AdSense settings often?
    • ciso says:
      No.

      Sponsorship, Network, Price Priority and House can be set to "unlimited" end time.

      Do you change your AdSense settings often?

      Yes, you are right about the "unlimited" time :) I'm trying different solutions with adsense so in the next months I will make a lot of changes :)
  61. admin says:
    Ok, for split testing running AdSense as Line Item is the better choice.

    However once you found your best performing ad unit settings you should consider using the build in AdSense option.

    I switched mine nearly a year ago now :)
  62. admin says:
    You can use network as well, you just need a lower priority :)
    • ciso says:
      You can use network as well, you just need a lower priority :)
      Isn't Network automaticaly "low priority" than Standard?

      Sorry to bother you with all those questions :)
  63. admin says:
    yes, read the link I gave you :)

Leave a Reply to pixar Cancel reply

Your email address will not be published. Required fields are marked *

*