Categories: Tagging : DFP Small Business :

Ad Slot Naming - What Am I Seeing here?

Showing 1-6 of 6 messages
Ad Slot Naming - What Am I Seeing here? ichcmmirande 7/24/12 2:19 PM I've seen a couple of references indicating that ad slot names need to be unique. I'm confused on what actually comprises an "ad slot name"? For example, I'm initializing ads as follows (simplified):     googletag        .defineSlot( '/<network_code>
Re: Ad Slot Naming - What Am I Seeing here? Ingraye 7/25/12 7:01 AM The ID value must be unique so that DFP can identify them in your code (the div and display command).  It basically creates a relationship between Ad Unit <--> ID.  You'll see that when you generate tags, the ID value is a long string but is the same
Re: Ad Slot Naming - What Am I Seeing here? ichcmmirande 7/25/12 7:48 AM So as long as the "divId" param is unique, everything should work fine? Or do both the "divId" and "unitName" need to be unique?
Re: Ad Slot Naming - What Am I Seeing here? Ingraye 7/25/12 8:52 AM Some sample (code taken from the examples in DFP help page): <script> googletag.cmd.push(function() { googletag.defineSlot("/1234/travel", [728, 90], "div-gpt-ad-123456789-0") .addService(googletag.pubads()); googletag.pubads().enableSingleRequest()
Re: Ad Slot Naming - What Am I Seeing here? ichcmmirande 7/25/12 9:03 AM Correct. That much I understand. What I am asking is: Can I define multiple slots which use the same "unitName' param (in you code above, that is "/1234/travel" )? 
Re: Ad Slot Naming - What Am I Seeing here? Ingraye 7/25/12 9:30 AM No.  You can't reuse the same Ad Unit on the same page.