Hi,
I set up everything thanks to the article from bleen.net.
I added the DFP block where I want but the ad is not showing up.

In the header, I have (consider XXXXXXXX as my network id):

<!--//--><![CDATA[//><!--
  googletag.defineSlot("/XXXXXXXX/Side_Ad_200x200", [200, 200], "dfp-ad-side_ad_200x200")
    .addService(googletag.pubads());
//--><!]]>

<!--//--><![CDATA[//><!--
  googletag.cmd.push(function() {
    googletag.pubads().enableAsyncRendering();
    googletag.pubads().enableSingleRequest();
    googletag.pubads().collapseEmptyDivs();
  });
  googletag.enableServices();
//--><!]]>

And on my block:

<div class="panel-pane pane-block pane-dfp-side_ad_200x200">
	<div class="pane-content">
    	<div id="dfp-ad-side_ad_200x200-wrapper" class="dfp-tag-wrapper">
			<div id="dfp-ad-side_ad_200x200" class="dfp-tag-wrapper" style="display: none;">
		  		<script type="text/javascript">
   					googletag.cmd.push(function() {
      					googletag.display("dfp-ad-side_ad_200x200");
    				});
  				</script>
  				<iframe id="google_ads_iframe_/XXXXXXXX/Side_Ad_200x200_0" name="google_ads_iframe_/XXXXXXXX/Side_Ad_200x200_0" width="200" height="200" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" src="javascript:&quot;<html><body style='background:transparent'></body></html>&quot;" style="border: 0px; vertical-align: bottom;"></iframe>
  				<iframe id="google_ads_iframe_/XXXXXXXX/Side_Ad_200x200_0__hidden__" name="google_ads_iframe_/XXXXXXXX/Side_Ad_200x200_0__hidden__" width="0" height="0" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" src="javascript:&quot;<html><body style='background:transparent'></body></html>&quot;" style="border: 0px; vertical-align: bottom; visibility: hidden; display: none;"></iframe>
			</div>
		</div>  
	</div>
</div>

I also checked a similar issue, but it didn't help me. Have I missed something?
Cheers,

Comments

bleen’s picture

 googletag.defineSlot("/XXXXXXXX/Side_Ad_200x200", [200, 200], "dfp-ad-side_ad_200x200")
    .addService(googletag.pubads());

remove that initial slash ...

Also, the last person that had this problem had his/her ad blocker on (doh!!!) Make sure that is off on your end.

Other than that, I dont see any problem

rylai-1’s picture

My bad, I saw a thread about this and wanted to try with an additional slash and forgot to remove it.
Either way it still doesn't work.

bleen’s picture

Did you ever solve your issue?

bleen’s picture

Status: Active » Closed (cannot reproduce)

reopen if you can give clear steps to reproduce