Welcome to WebmasterWorld Guest from 35.171.45.91

Forum Moderators: martinibuster

Message Too Old, No Replies

DFP and async tags

re-generating tags disable ALL prev tags

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

Preferred Member

10+ Year Member

joined:Nov 15, 2007
posts:620
votes: 2


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?
5:07 pm on Nov 13, 2011 (gmt 0)

Senior Member

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

joined:Dec 12, 2004
posts:662
votes: 15


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..
6:30 am on Nov 14, 2011 (gmt 0)

Full Member

10+ Year Member

joined:Oct 12, 2005
posts: 262
votes: 0


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
4:36 pm on Nov 14, 2011 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 15, 2007
posts:620
votes: 2


thanks guys. I need to think about that for a moment, dastarbug, but I'll figure it out, now I know where to look
10:18 pm on Nov 18, 2011 (gmt 0)

Senior Member from US 

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

joined:Apr 26, 2005
posts:2312
votes: 628


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.
3:46 pm on Nov 19, 2011 (gmt 0)

Full Member

10+ Year Member

joined:Oct 12, 2005
posts: 262
votes: 0


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