Forum Moderators: martinibuster

Message Too Old, No Replies

DFP and async tags

re-generating tags disable ALL prev tags

         

coachm

3:59 pm on Nov 13, 2011 (gmt 0)

10+ Year Member Top Contributors Of The Month



I can't believe what I'm seeing is the case regarding DFP. Before if you wanted to add an ad slot, all you needed to do was grab the ad slot code, and add its corresponding line to the DFP code in the head section.

NOW, let's say you have two ad units/slots and your code is all deployed, and you want to add a third slot.

You add it, generate the tags, BUT the code is different -- the ad unit identifiers change, so that your previous ads already deployed break.

So, the way I'm seeing this is that every time you ad or modify an add unit, then generate the code a second or third time, you need to change ALL the code, just as you are starting out from scratch.

I searched around, and can't find anything on this. Hoping I'm doing something wrong here, but obviously if you serve adsense/other ads through dfp, it's a huge problem.

If you do that, and regenerate the code, Check to see that you didn't break your previously deployed codes.

Solutions?

levo

5:07 pm on Nov 13, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think the div IDs are changed, old code seems to be working, as long as you keep the div IDs same at the header..

DaStarBuG

6:30 am on Nov 14, 2011 (gmt 0)

10+ Year Member



You can simply adapt the DIV id to fit your existing code, you don't need to use the generated IDs (which are the once that change).

The slot is defined via:

googletag.defineSlot('/NetworkCode/Ad_Unit_name', [728, 90],

and then it binds the ID after that to this slot so you have a free choice of DIV id

coachm

4:36 pm on Nov 14, 2011 (gmt 0)

10+ Year Member Top Contributors Of The Month



thanks guys. I need to think about that for a moment, dastarbug, but I'll figure it out, now I know where to look

ember

10:18 pm on Nov 18, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I stopped using dfp because after working fine at first, the ads then started loading really slowly. That fixed itself but then in IE, the ads were distorting the page layout. Too much hassle.

DaStarBuG

3:46 pm on Nov 19, 2011 (gmt 0)

10+ Year Member



I don't have any problems with IE or loading speed