How to set up AdSense using DFPs build in AdSense option – Async Version

It is time for a new Chapter of my DFP Small Business Tutorial. In Oktober 2011 Google introduced the new Google Publisher Tag for DFP Small Business. The new Google Publisher Tags has a number of new benefits and improvements over the existing Google Ad Manager Tags including faster page loads due to an asynchronous JavaScript fetch. This tutorial explains how to set up AdSense using DFPs build in AdSense option by using the asynchronous Google Publisher Tags. Read more about the new Google Publisher Tags here: DFP goes asynchronous with its new Google Publisher Tag. Time to switch

If you are using the old Google Ad Manager Tags read the old version of this tutorial here: How to set up Google AdSense using DFP Small Business build in AdSense option

In the Chapter How to set up Google AdSense as Line Item using DFP Small Business I told you how to set up AdSense as a Third Party Creative. I choose this way because the build in AdSense Feature of DFP didn’t offer all the functionality that AdSense provided. Or at least I did not now how to do it. However things have changed.

The build in AdSense Feature of DFP provides everything we need to set up AdSense without the need for creating a lot of Line Items and Creatives and still have the full functionality of the old set up.

So how to use the build in AdSense Feature to display AdSense on your website?

I assume you already set up DFP Small Business to serve Ads on your website which means you created Ad Units and implemented the tags into your HTML source code.

Now go to your Inventory Tab in DFP and select the Ad Unit you want to display AdSense in. Click on override next to “AdSense inventory settings – Disabled”

override_adsense

and check the checkbox before “Maximize revenue of unsold and remnant inventory with AdSense”. This interface should look familiar to you now. Make your AdSense Settings and Styling Settings and click Save.

override_adsense_expanded

Now your Ad Unit will serve AdSense Ads on this Ad Unit.

 

ATTENTION:

Due to changes in DFP Small Business and AdSense Reportings tracking AdSense served via DFP with Custom Channels is no longer possible!
The part below is no longer needed / does not work anymore.

 

BUT even though AdSense is served now, we still don’t have a Channel attached to the AdSense Ad to track its performance. This was the main reason for me to suggest my first method to serve AdSense Ads as Third Party Creatives. But fortunately there is a way to attach a channel (or other attributes) to AdSense via DFP Tags.

You can override AdSense Settings on a per page and per unit level.

Available keys:

New parameter Example Allowed values
adsense_channel_ids 271828183+314159265 valid AdSense channel IDs, separated by ‘+’
adsense_ad_types text_image text, image, text_image
adsense_ad_format 250x250_as 468x60_as, 234x60_as, 125x125_as, 120x600_as, 160x600_as, 180x150_as, 120x240_as, 200x200_as, 250x250_as, 300x250_as, 336x280_as, 728x90_as
adsense_background_color #000000 hexadecimal colors
adsense_border_color #000000 hexadecimal colors
adsense_link_color #000000 hexadecimal colors
adsense_text_color #000000 hexadecimal colors
adsense_url_color #000000 hexadecimal colors
adsense_ui_features rc:10 rc:10 for very rounded corners, rc:6 for slightly rounded corners, rc:0 for square corners (default)

So how do we attach an AdSense Channel to our Ad Unit? First you need to create your Custom Channel in AdSense for this specific Ad Unit. Login to AdSense, go to “My Ads > Custom Channels”.

If you did not create your custom channels yet this is the time to do so. Read this for more information on AdSense custom channels: Different strategies to use AdSense Channels

Next to the channel name for your AdSense Ad Unit you find the Channel ID which is a 10+ digit number, note it down.

adsense_channel_id

Now we need to edit the DFP Small Business Ad Unit Tag that we implemented in our website header to add the custom AdSense Channel to our Ad Unit.

You now have to options

  1. you can attach one or more AdSense Channels to all Ad Units on the page by using: googletag.pubads().set(“key”, “value”); (see the bottom of this page for an example)
  2. or you can attach a channel to each Ad Unit on a page individually by using: var slot = googletag.defineSlot(“/1234567/skyscraper”, [160, 600]).addService(googletag.pubads());slot.set(“param”, “value”);(recommended)

For this tutorial I assume that you have more then one Ad Unit on a single page so we choose the second option to attach our AdSense Channel IDs to our Ad Units.
If you want to overwrite other AdSense settings, check the above table for keys and values you can override.

key: adsense_channel_ids
and value is the AdSense Channel ID you noted down earlier.

So this is what your DFP Small Business header Tag (the new Google Publisher Tag asynchronous version) looks like before we attach channels:

<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:’) +
‘//www.googletagservices.com/tag/js/gpt.js’;
var node = document.getElementsByTagName(‘script’)[0];
node.parentNode.insertBefore(gads, node);
})();</script>

 

<script type=’text/javascript’>
googletag.cmd.push(function() {
googletag.defineSlot(‘/1025030/PatFra-LR-1P-First_Aid’, [336, 280], ‘div-gpt-ad-1319984924533-0′).addService(googletag.pubads());
googletag.defineSlot(‘/1025030/PatFra-LR-1P-Threads-Urology’, [336, 280], ‘div-gpt-ad-1319984924533-1′).addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>

And this is the way you attach AdSense Channels to your DFP Ad Units:

<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:’) +
‘//www.googletagservices.com/tag/js/gpt.js’;
var node = document.getElementsByTagName(‘script’)[0];
node.parentNode.insertBefore(gads, node);
})();</script>

 

<script type=’text/javascript’>
googletag.cmd.push(function() {
var slot1 = googletag.defineSlot(‘/1025030/PatFra-LR-1P-First_Aid’, [336, 280], ‘div-gpt-ad-1319984924533-0′).addService(googletag.pubads());slot1.set(“adsense_channel_ids”, “38234470929″);
var slot2 = googletag.defineSlot(‘/1025030/PatFra-LR-1P-Threads-Urology’, [336, 280], ‘div-gpt-ad-1319984924533-1′).addService(googletag.pubads());slot2.set(“adsense_channel_ids”, “3867876929″);
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>

If you want to attach multiple channels to one Ad Unit use + to add more then one channel ID:

slot.set(“adsense_channel_ids”, “4132147310+4132127310+4132147319“);

Take note of the Counter in var slotX and slotX.set
where X is 1,2,3…. depending on the number of Ad Units you have on the page.

Now your DFP Small Business Ad Unit serves AdSense whenever there is no other creative to be served and AdSense is tracked by custom channels.

This way you don’t need to create line items and orders for each of your websites and AdSense Ad Units which should save you a lot of time.

 

Example for attaching the same AdSense Channel to all Ad Units on a single page:

<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:’) +
‘//www.googletagservices.com/tag/js/gpt.js’;
var node = document.getElementsByTagName(‘script’)[0];
node.parentNode.insertBefore(gads, node);
})();</script>

 

<script type=’text/javascript’>
googletag.cmd.push(function() {
googletag.defineSlot(‘/1025030/PatFra-LR-1P-First_Aid’, [336, 280], ‘div-gpt-ad-1319984924533-0′).addService(googletag.pubads());
googletag.defineSlot(‘/1025030/PatFra-LR-1P-Threads-Urology’, [336, 280], ‘div-gpt-ad-1319984924533-1′).addService(googletag.pubads());
googletag.pubads().set(“adsense_channel_ids”, “38234470929″);
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>

Next Step: How to run Split Tests with DFP Small Business
Previous Step: How to set up Google AdSense using DFP Small Business build in AdSense option


Posted by Last Updated: 30.10.2011

  • http://www.facebook.com/Barcelona.Budget Barcelona Budget

    Many Thanks for your Tutorial!
    It helped me a lot. Note that currently all custom channels are added to the generated code . There is no need to edit the Ad unit tag in your page.

  • Michael Scheel

    What do you mean by that?
    I am talking about custom AdSense Channels and not DFP Placements.
    Or do you know a method to attach custom AdSense Channels to DFP Ad Units that I did not wrote about here?

    If you mean the option “Copy AdSense targeting” for placements, this will double your channels in your AdSense report which makes the report a little cluttered. You don’t have that if you use my approach.

    But I will write a tutorial for how to use placements in the near future too.

  • http://www.dfptutorial.com Michael Scheel

    What do you mean by that?
    I am talking about custom AdSense Channels and not DFP Placements. Or do you know a method to attach custom AdSense Channels to DFP Ad Units that I did not wrote about here?

    If you mean the option “Copy AdSense targeting” for placements, this will
    double your channels in your AdSense report which makes the report a
    little cluttered. You don’t have that if you use my approach.

    But I will write a tutorial for how to use placements in the near future too.

  • Chris Prescher

    Thanks very much for your excellent tutorial! I have one question about the example you show above. In this line: //var slot = googletag.defineSlot(“/1234567/skyscraper”, [160, 600]).addService(googletag.pubads()); //

    What does the “1234567″ value represent? Or is the total value between the “” just the name of the DFP Ad Unit?

    Thank you.

    • http://www.dfptutorial.com Michael Scheel

      Actually that number is your network code.
      It is generated automatically when you generate the tags so don’t worry about it.
      But you can find it in your Admin Tab if you are interested ;)

  • http://pulse.yahoo.com/_M6XTT7S4Y6N4FGJA2272SOE6XU Josh K

    Thanks for this info. I got it working for my page with two DFP units when attaching a single channel to each, but when I put in multiple channels as you said, NONE of the channels show up anymore in my AdSense reports. Are you sure they are separated with ‘+’ in the way that they used to be? Have you tested this info? Here’s my code:

    var slot1 = googletag.defineSlot(‘/999999/GLACT-un-Embed1-300×250-DFP’, [300, 250], ‘div-gpt-ad-1321480187312-0′).addService(googletag.pubads());slot1.set(“adsense_channel_ids”, “4527406406+1361970647+0909760914″);var slot2 = googletag.defineSlot(‘/999999/GLACT-un-Embed2-300×250-DFP’, [300, 250], ‘div-gpt-ad-1321480187312-1′).addService(googletag.pubads());slot2.set(“adsense_channel_ids”, “3671592071+1361970647+0909760914″);

    As you can see, the first channel is different for each, and the other two for each unit are shared between the two units.

    • http://www.dfptutorial.com Michael Scheel

      I never tried it but that is what the DFP API Reference says:
      http://www.google.com/support/dfp_sb/bin/answer.py?answer=1650154&expand=pubservice_details

      adsense_channel_ids
      google_ad_channel
      271828183+314159265
      valid AdSense channel IDs, separated by ‘+’

      if you can’t figure it out then try asking in the DFP Help Forums, maybe this is a bug:
      http://www.google.com/support/forum/p/dfp/label?lid=3252383d7b5553d9&hl=en

      Please let me know if you find the reason for it not working.

      • http://pulse.yahoo.com/_M6XTT7S4Y6N4FGJA2272SOE6XU Josh K

        I’ve posted about the bug here, after experimenting more and having no success:
        http://www.google.com/support/forum/p/dfp/thread?tid=32f60e7edeaabc3f&hl=en 

        It’s been a few days and no response. I guess not many people are using AdSense Channels on their DFP units. I’ve tried doing it with a comma instead of a plus and it doesn’t work at all no matter what. One channel works perfectly, but more than one I cannot get to log at all.

      • http://pulse.yahoo.com/_M6XTT7S4Y6N4FGJA2272SOE6XU Josh K

        Also, you might want to adjust your css code. The code you display shows up extremely tiny on Chrome/Win7.

        • http://www.dfptutorial.com Michael Scheel

          Thanks for the info. I will work on the CSS with the next update.

          Try sending a bug report to DFP.
          Last time I did this I got a response from support within 48 hours.
          They are much quicker then AdSense Support ;)

  • Tony Page

    This is all excellent stuff, Michael, and your tutorials have been a real help to me as I move from site wide AdSense to DFP usin AdSense as the remnant (although currently only) advertising. One question, why do you disable AdSense and then override it, rather than simply enable it as the remnant choice?
    Thanks again, 
    Tschuess!

  • Tony Page

    This is all excellent stuff, Michael, and your tutorials have been a real help to me as I move from site wide AdSense to DFP usin AdSense as the remnant (although currently only) advertising. One question, why do you disable AdSense and then override it, rather than simply enable it as the remnant choice?Thanks again from Australia, 
    Tschuess!

    • http://www.dfptutorial.com Michael Scheel

      What do you mean by “disable AdSense”?
      You can either set AdSense as a global fallback option via the network setting or you can set it for each individual ad unit. I like to use the individual ad unit settings because different ad placements require different styling on my site.

      • http://profile.yahoo.com/NR5IYK7E4LJ4ZCSIXX4I7R4TVQ Khoa

         Hi,

        When I check your source code, I saw the code of ads manager like the  following:
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-80597-27']);
        _gaq.push (['_gat._anonymizeIp']);
        _gaq.push(['_trackPageview']);
        _gaq.push(['_trackPageLoadTime']);

        (function() {
        var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
        ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
        var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
        })();
        GS_googleAddAdSenseService(“ca-pub-5988350962952956″);
        GS_googleEnableAllServices();
        GA_googleAddAttr(“Passing”, “Pattern”);
        GA_googleAddSlot(“ca-pub-5988350962952956″, “DFPTut-Rectangle-Home”);
        GA_googleAddSlot(“ca-pub-5988350962952956″, “DFPTut-Rectangle-Post-1″);
        GA_googleAddSlot(“ca-pub-5988350962952956″, “DFPTut-Rectangle-Post-2″);
        GA_googleAddSlot(“ca-pub-5988350962952956″, “DFPTut-Passing-Patterns”);
        GA_googleFetchAds();

        And in the body I saw:
        GA_googleFillSlot(“DFPTut-Rectangle-Post-1″);

        I understand that that code is to call the adsense.
        But when I created ads unit, order, line time, creatives as you mentioned then I cannot get the code like your.

        Please could you advise how  can I got the same code as you.

        Many thanks

        NAK

        • http://www.dfptutorial.com Michael Scheel

          The first part:

          var _gaq = _gaq || [];
          _gaq.push(['_setAccount', 'UA-80597-27']);
          _gaq.push (['_gat._anonymizeIp']);
          _gaq.push(['_trackPageview']);
          _gaq.push(['_trackPageLoadTime']);

          (function() {
          var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
          ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’;
          var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
          })();

          is Google Analytics code and has nothing to do with DFP.

          I also use the old ad manager tags here on dfp tutorial because I did not find the time to update yet.
          So don’t take the source code of this page as example ;)

      • Travelsignposts

        (This is Tony Page, don’t know why I couldn’t post as earlier!) 
        Sorry for the delay in responding, Michael, I thought I’d get an email alert. Yes, I was referring to enabling it via the network setting.

        In relation this, I have a question re a possible double counting issue using the custom channel linking. I came across this comment on the DFP forum:

        “DFP Backfill numbers will show up in the aggregate performance reports, but not when filtering by ad unit or ad size.”

        Does
        this mean that if I link up my DFP ad unit that uses AdSense as the
        remnant option to an AdSense Custom Channel that the pageviews are counted twice in AdSense aggregate performance reports?

        The reason I ask is because I am currently experiencing a sudden rise in the number of Adsense pageviews being reported, 30% or more above the Analytics pageview count. Obviously this is different technology and not ad impression based, but the difference does appear to bear some relationship to the DFP remnant numbers.

        Have you had any experience of this?

        • http://www.dfptutorial.com Michael Scheel

          I don’t see pageviews doubled in AdSense using custom channels in my reports.

          • Travelsignposts

             Thanks for the response, Michael. It looks like I’ll have to find another explanation, as the increase is unfortunately lowering my CTR and presumably quality score. Such is life!

  • http://twitter.com/CarlottaDaldoss Carlotta Daldoss

    Hi Michael, first of all THANK YOU for your great job with this tutorial… I think I could solve so many things in only one day that we’ll take me months without this!

    I have a question if you (or someone reading) experience this. I place 2 orders of clients of us in some ad units of my page and for the most of the time it works fine, and then without any change it start to show adsense or a white space.

    I understood that adsense only enter if you didn’t sell the space so I cannot understand why they appears in that ad unit sold and also why only sometimes. when this happen the image of our customer ad disappear and is not shown even if I refresh the page, only empty space or adsense.

    Any idea?

    thanks again,
    Carlotta 

    • http://www.dfptutorial.com Michael Scheel

      You should give this part of the tutorial a read: http://www.dfptutorial.com/how-to-make-adsense-compete-with-your-other-ad-inventory-in-dfp-small-business/

      It might be that you enabled AdSense for these Ad Units, set your campaign type to network or lower and defined a Value CPM (not a rate which is the price you get for your Ads from your third party client).

      If you did this AdSense will show if it thinks it can deliver a better eCPM then your Value CPM.

      Regarding the white space problem, try to disable the single request mode and if this does not help switch to the synchronous version, the async version has problems in some setups. I switched to the sync version myself.

  • http://twitter.com/AntonioRomero Antonio Romero

    Hello,

    can we combine both? 
    Defining var slot1, slot2 etc

    And at the same attaching the same channel to every adunit with
    googletag.pubads().set(“adsense_channel_ids”, “38234470929″); 

    or do we have to add that “382344….” to each var slot1, slo2 with “+”??

    Thanks

    • http://www.dfptutorial.com Michael Scheel

      You net to create a separate slot for each ad unit however you can attach the same channel id to each slot.

  • http://twitter.com/AntonioRomero Antonio Romero

    Another question,

    do we need to create ad in google adsense and then assing the channels, or it is enough with creating the channels, assign them to ad units, and let DFP publish adsense ads?

    BR

    • http://www.dfptutorial.com Michael Scheel

       You just need the channel unless you want to implement AdSense as Line Item and not as fallback option, then you need the real ad unit as well (however then you would not net to define the channel IDs and attach them to the ad slots :) )

  • albo82

    Hi, thanks for this wonderful guide

    I’m trying to use var.slot1 but doesn’t show me any advertising!

    is there any mistake?

    googletag.cmd.push(function() {
    var slot1 = googletag.defineSlot(‘/17676156/atbf_728_prova’, [728, 90],
    ‘div-gpt-ad-1349270454725-0′).addService(googletag.pubads());slot1.set(“adsense_channel_ids”, “0211110617″);
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
    });

    THANKS

    • http://www.dfptutorial.com Michael Scheel

       Do you have a Line Item with Creative running for this ad unit?
      Did you set your Ad Unit to use AdSense as fallback?

      If you did all that and still have problems try to not use single request mode and if that does not help use synchronous rendering.

      • albo82

        I followed this page in which we are writing since i’m using async version. so i m using adsense as “override”
        the problem is that when i write the original code it works:

        googletag.cmd.push(function() {googletag.defineSlot(‘/17676156/atbf_728_prova’, [728, 90], ‘div-gpt-ad-1350394427092-0′).addService(googletag.pubads());googletag.pubads().enableSingleRequest();googletag.enableServices();});

        ………….but when i use the “var slot” it doesn’t work

        googletag.cmd.push(function() {var slot1 = googletag.defineSlot(‘/17676156/atbf_728_prova’, [728, 90], ‘div-gpt-ad-1349270454725-0′).addService(googletag.pubads());slot1.set(“adsense_channel_ids”, “0211110617″);googletag.pubads().enableSingleRequest();googletag.enableServices();});

        • http://www.dfptutorial.com Michael Scheel

          Did you use the DFP code and added the var slot part or did you copy my code and modified it.

          There is a formating error due to wordpress where ‘ is sometimes shown as ` and then it does not work.
          This might be the reason

          • http://www.tospitakimou.gr/ Chris

            I have the same problem with my page. I inserted the “var slot” code for
            every single channel but none of my adsense ads where shown. I removed
            it and was all ok again. Is the problem focused on the ‘ character?
            What’s the correct one to be used?
            Thanks for your time.

          • http://www.dfptutorial.com Michael Scheel

            Custom channels wont work anymore with the DFP AdSense option

  • http://twitter.com/NZJaso Jason

    Hi Michael,

    Just wondering if you have any updates as to how this is working? Has anyone been able to implement multiple channels to ad units using the ‘+’?

    I note that on Google’s known issues page that the new Adsense UI will not display reporting data for ad units and custom channels in DFP. Is this statement correct for users?

    Lastly, I’ve read that there are issues of double-counting of impressions in Adsense with people using custom channels. Is this the case?

    Would be great to get some clarity around these points before spending many hours creating channels and editing tags!

    Thanks!

    • http://www.dfptutorial.com Michael Scheel

      I checked my stats and they are still reporting the custom channels defined in DFP SB.
      I can’t tell if it works with multiple channels but why shouldn’t it?
      I don’t have the double counting problem either.
      The reason for this was the asynchronous loading with the single request method as far as I remember.
      If you encounter the problem first try to disable single request and if that does not fix it use synchronous loading of ad units.

  • José F.

    Hi Michael,

    First of all, thank you for this great tutorial.

    I have followed all the steps you pointed out above but I am not getting any data on my adsense channel report:

    1.- I created the dfp ad units.

    2.- I tagged one page

    3.- I created new adSense channels (I see the picture above where targetable option is “no” and I have “yes”, might it be that the problem?).

    4.- I rewrote the tags code so I added the ad units to the new created adSense channels

    5.- I can’t see any data on the adSense channel report

    6.- I waited 24 hours until I wrote this post :-)

    Is there something I am missing? Bassically I am ussing DFP to serve adSense plus some “house adds” on my pages. I want adSense advertisers being able to target this channels as it’s been being until now.

    Just one more questions… Are the adSense channels and DFP placements same from the advertisers point of view?

    Any help would be greatly appreciated.

    Again, thank you very much!

    • http://www.dfptutorial.com Michael Scheel

      I forgott to add a comment I added in the other article to this article:

      Due to changes in DFP Small Business and AdSense Reportings tracking AdSense served via DFP with Custom Channels is no longer possible!

      • José F.

        Michael, thank you for your time. It is strange… I started to see new data in adSense reports after 3 days. But there they are. I followed the steps above. Anyway… after all these ongoing changes, what do you think is the best way to go if I want adWords advertisers beeing able to reach my site?

        With adSense I created a custom channel and I clicked on “Show this custom channel to advertisers as a target”. What is the best way to go when adSense is integrated into DFP?

        P.S. As far as I know, allowing advertisers to reach my site through adSense custom channels increase my revenue so that’s the reason why I am quite interested in doing so in DFP.

        • http://www.dfptutorial.com Michael Scheel

          I don’t think this is possible in DFP. AdSense in DFP is a fallback option if you have unsold inventory left. If you use DFP just to serve AdSense you might want to rethink your approach if you have a lot of advertisers booking your custom channels.

          Anyway, try my forum http://www.AdSenseExperts.com for these kind of discussions. It’s a better place then comments on a blog ;)

          • José F.

            Thanks Michael

  • TempestMaker

    So now that we can’t attach channels with this method, might it make sense to go back to the line item adsense method? My understanding is the disadvantages to that are 1) load speed, since it requires a call to DFP then a call to adsense, and 2) convenience, since you have to set up all the line items. On the other hand, it will allow advertisers to target your channels directly (and preserve any direct targeting already in place if one is using adsense without DFP now). Sound about right?

    • http://www.dfptutorial.com Michael Scheel

      If you are using DFP to mainly serve AdSense then yes, switching back to the line item method is the best approach.
      If you use it as fallback then keep the DFP AdSense option to compete AdSense with your third party inventory

      • TempestMaker

        Thanks Michael. I just noticed, in the DFP SB settings to create a placement (a group of Ad Units), there is a “Google Adwords” checkbox, followed by this option:

        “Copy AdSense targeting

        If you maintain targetable channels in your AdSense account, copy
        site targeting settings from an AdSense channel to continue to generate
        revenue from AdWords campaigns that are targeting your site.”

        Would that work? Or does it just generate the code mentioned above, which no longer works?