<div style="text-align: center;">
</div>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567";
/* blabla */
google_ad_slot = "1311156088";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 3">
YOUR AD CODE
</xen:if>
<xen:if is="!{xen:helper ismemberof, $visitor, 1, 2, 3">
YOUR AD CODE
</xen:if>
To specify usergroups that WILL see the ad:
Code:<xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 3"> YOUR AD CODE </xen:if>
Where 1, 2 and 3 are usergroups that will see the ad.
To specify usergroups that WON'T see the ad:
Where 1, 2 and 3 are usergroups that will not see the ad.Code:<xen:if is="!{xen:helper ismemberof, $visitor, 1, 2, 3"> YOUR AD CODE </xen:if>
(Notice the ! before the {xen:helper tag... ! always means NOT basically... So if you were reading that in English it would read IF IS NOT MEMBER OF 1, 2, 3 )
[code]<xen:if is="!{xen:helper ismemberof, $visitor, 1, 2, 3">
<xen:hook name="ad_above_top_breadcrumb" />
<xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 3">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567";
/* blablaCI nach x Beiträgen quer */
google_ad_slot = "1311156088";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</xen:if>
Hi
when I insert this code and try to save it in ACP, I get a template syntax error in this line:
Code:[code]<xen:if is="!{xen:helper ismemberof, $visitor, 1, 2, 3">
If I use the other code, same error, also in line 1.
The whole code looks like this in that specific ad_template:
Code:<xen:hook name="ad_above_top_breadcrumb" /> <xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 3"> <script type="text/javascript"><!-- google_ad_client = "ca-pub-1234567"; /* blablaCI nach x Beiträgen quer */ google_ad_slot = "1311156088"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </xen:if>
<xen:hook name="ad_above_top_breadcrumb" />
<xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 3}">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567";
/* blablaCI nach x Beiträgen quer */
google_ad_slot = "1311156088";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</xen:if>
http://support.google.com/adsense/bin/answer.py?hl=en&answer=1346295#Google_ad_limit_per_pageCurrently, AdSense publishers may place up to three AdSense for content units on one webpage
We use essential cookies to make this site work, and optional cookies to enhance your experience.