I am creating a site that uses the Google DoubleClick for Publishers ad serving system. Since we have targeted ads for several sections of sites, several pages and articles, we have more than 30 ad units, usually all with the same name, for example:
ad_sports_top_banner_300x250 ad_home_skyscraper_720x90
and etc.
When I go to DFP systems and ask to generate tags, it usually spits out something like this to add to:
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/1234567/ad_home_skyscraper_728x90', [728, 90], 'div-gpt-ad-1234567890123-0').addService(googletag.pubads());
googletag.defineSlot('/1234567/ad_sports_top_banner_300x250', [300, 250], 'div-gpt-ad-1234567890123-1').addService(googletag.pubads());
and something like this to add to where I want to add:
<div id='div-gpt-ad-1234567890123-0' style='width:728px; height:90px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1234567890123-0'); });
</script>
</div>
As far as I can tell, most things are pretty obvious, the first 7-digit number is my customer identifier, followed by the name of the ad, followed by the 13-digit identifier of the ad.
, , .., , , onye , :
googletag.defineSlot('/1234567/ad_$SectionNameGoesHere_$TypeOfAdGoesHere', [$width, $height], 'div-gpt-ad-1234567890123-0').addService(googletag.pubads());
, , -, , - 13- , , -, . , , Google 13- . , , , .
- , ? , , ?
.