Google Product Forums

Re: Multiple targeting keys with the new GPT library tags,


premesh May 4, 2012 9:29 AM
Posted in group: DoubleClick for Publishers

Categories: Trafficking :

<script type='text/javascript'>var googletag=googletag||{};googletag.cmd=googletag.cmd||[];(function(){var a=document.createElement("script");a.async=true;a.type="text/javascript";var c="https:"==document.location.protocol;a.src=(c?"https:":"http:")+"//www.googletagservices.com/tag/js/gpt.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);})();</script> <script type='text/javascript'>googletag.cmd.push(function(){googletag.pubads().setTargeting("url","http://www.mysite.com");googletag.pubads().setTargeting("pageType","LIST");googletag.pubads().setTargeting("page","1");googletag.pubads().setTargeting("classId","10597");googletag.pubads().setTargeting("categoryId","20");googletag.defineSlot("/1060606/rnkr_list_default_u1_728x90",[728,90],"div-gpt-ad-1335566320868-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u2_300x250",[300,250],"div-gpt-ad-1335566457353-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u3_300x250",[300,250],"div-gpt-ad-1335566512775-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u4_300x250",[300,250],"div-gpt-ad-1335566699267-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u5_728x90",[728,90],"div-gpt-ad-1335566745359-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u6_728x90",[728,90],"div-gpt-ad-1335566785777-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u7_728x90",[728,90],"div-gpt-ad-1335566833491-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u9_728x90",[728,90],"div-gpt-ad-1335566871093-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u10_728x90",[728,90],"div-gpt-ad-1335566904694-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u11_728x90",[728,90],"div-gpt-ad-1335566961390-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u12_728x90",[728,90],"div-gpt-ad-1335567154345-0").addService(googletag.pubads());googletag.defineSlot("/1060606/rnkr_list_default_u13_728x90",[728,90],"div-gpt-ad-1335567340117-0").addService(googletag.pubads());googletag.enableServices();});</script>