Adsense Problem

USHost247

Madly Diligent
Joined
Jul 8, 2009
Messages
8,102
Reaction score
1,036
FP$
5,440
I added a 468x60 banner from adsense to the top of a forum I am working on and this is on the outside of the banner:

Code:
 (adsbygoogle = window.adsbygoogle || []).push({});

As shown here in the image below. How do I fix it? As I do not see any mistakes.
Image: http://prntscr.com/4j57to

ad_header file:
Code:
<xen:if is="@uix_searchPosition != 1 && @uix_navStyle != 2 && !(@uix_navStyle == 3 && @uix_pageStyle != 1)">
	<xen:if hascontent="true">
		<div class="funbox">
		<div class="funboxWrapper">
		<xen:contentcheck>
		
			<xen:if hascontent="true">
				<xen:contentcheck>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- genforumtopheader -->
<ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:60px"
     data-ad-client="ca-pub-0621805371967736"
     data-ad-slot="5046736815"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
					
					</xen:contentcheck>
			<xen:elseif is="{$visitor.is_admin} && @uix_previewAdPositions" />
				<div>{xen:phrase 'template'}: ad_above_content</div>
			</xen:if>
		
		</xen:contentcheck>
		</div>
		</div>
		
	</xen:if>
</xen:if>
 
Try removing the following:

Code:
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

This just runs a script to have a link to Google Adwords, I believe. This may fix the problem! Let me know how it goes! :great:

EDIT: If that doesn't work, try changing it to:
Code:
 (adsbygoogle = window.adsbygoogle || []).push
 
Back
Top Bottom