DRE
Well-known member
Today I got a violation by Google for this thread.
I have never displayed ads in that subforum because I use a conditional to exclude my ad from that subforum. For some reason, I still got in trouble from Google. Is it because the code shows in the source code? How can I prevent the google ads from showing up at all in a template since conditionals still show the google ads in the source code? BTW I removed the ad code so you won't see it in the source if you look now but yes, google ads do show in the source code even when using a conditional.
This is the template conditional I use in ad_above_content and other ad templates:
(17 is the subforum that I've excluded from Google ads, that this thread is in)
I have never displayed ads in that subforum because I use a conditional to exclude my ad from that subforum. For some reason, I still got in trouble from Google. Is it because the code shows in the source code? How can I prevent the google ads from showing up at all in a template since conditionals still show the google ads in the source code? BTW I removed the ad code so you won't see it in the source if you look now but yes, google ads do show in the source code even when using a conditional.
This is the template conditional I use in ad_above_content and other ad templates:
(17 is the subforum that I've excluded from Google ads, that this thread is in)
Code:
<xen:if is="in_array({$forum.node_id}, array(17,134))"><xen:else /><xen:hook name="ad_above_content" />
<div class="gad_t"><script type="text/javascript"><!--
google_ad_client = "ca-pub-blahblah";
/* Top Banner */
google_ad_slot = "blahblah";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></xen:if>