<xen:hook name="ad_header" />
<style>
.dmax1 { width: 320px; height: 50px; }
@media(min-width: 500px) { .dmax1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .dmax1 { width: 728px; height: 90px; } }
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- dmax1 -->
<ins class="adsbygoogle dmax1"
style="display:inline-block"
data-ad-client="ca-pub-2682737960191725"
data-ad-slot="9582185490"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<xen:hook name="ad_header" />
<style>
.dmax1 { width: 320px; height: 50px; }
@media(min-width: 500px) { .dmax1 { float: right; width: 468px; height: 60px; } }
@media(min-width: 1000px) { .dmax1 { float: right; width: 728px; height: 90px; } }
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- dmax1 -->
<ins class="adsbygoogle dmax1"
style="display:inline-block"
data-ad-client="ca-pub-2682737960191725"
data-ad-slot="9582185490"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Just had this months payment come throughSince setting this up properly to use the different add sizes per layout size, my adsense revenue has gone back up.
It went down when I switched to using 468x60 banners top and bottom, but now I'm using 728x90 again for the desktop size, and shrinking down through the responsive views, it's gone up almost 50% in the last month since making the change back
can you show me how to place this on my sidebar..Just had this months payment come through
Earnings and change
+£XX.XX (106%)
Sorry, place what on your sidebar?can you show me how to place this on my sidebar..
Sorry, place what on your sidebar?
I don't currently use the sidebar location. As the sidebar is re-located to the bottom of the forum in responsive mode, you could just use a skyscraper add which is 120x600 in dimension.
Then place the code in one of the 3 ad_sidebar locations
ad_sidebar_below_visitor_panel
ad_sidebar_bottom
ad_sidebar_top
<xen:if is="!{$visitor.user_id}">
<div style="padding: 0; text-align: center">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-XXXXXXXXXXXXX";
width = document.documentElement.clientWidth;
/* VxON iPhone Header 2 */
google_ad_slot = "XXXXXXXX";
google_ad_width = 234;
google_ad_height = 60;
if (width > 483) {
/* VxON Smaller Header */
google_ad_slot = "XXXXXXXX";
google_ad_width = 468;
google_ad_height = 60;
}
if (width > 743) {
/* Forum Header */
google_ad_slot = "XXXXXXXXX";
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>
<xen:if is="!{$visitor.user_id}">
<div style="padding: 0; text-align: center">
<style type="text/css">
.responsive-header { width: 234px; height: 60px; }
@media(min-width: 484px) { .responsive-header { width: 468px; height: 60px; } }
@media(min-width: 744px) { .responsive-header { width: 728px; height: 90px; } }
</style>
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Responsive Header -->
<ins class="adsbygoogle responsive-header"
style="display:inline-block"
data-ad-client="ca-pub-XXXXXXXXXXX"
data-ad-slot="XXXXXXXXXX"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</xen:if>
<xen:if is="!{xen:helper ismemberof, $visitor, 6, 4, 3}">
<center>
<script type="text/javascript">
google_ad_client = "ca-pub-AAAAAAAAA";
width = document.documentElement.clientWidth;
google_ad_slot = "XXX";
google_ad_width = 234;
google_ad_height = 60;
if (width > 500) {
google_ad_slot = "YYY";
google_ad_width = 468;
google_ad_height = 60;
}
if (width > 1024) {
google_ad_slot = "ZZZ";
google_ad_width = 728;
google_ad_height = 90;
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</xen:if>
I'm using this code on my site:
Code:<xen:if is="!{xen:helper ismemberof, $visitor, 6, 4, 3}"> <center> <script type="text/javascript"> google_ad_client = "ca-pub-AAAAAAAAA"; width = document.documentElement.clientWidth; google_ad_slot = "XXX"; google_ad_width = 234; google_ad_height = 60; if (width > 500) { google_ad_slot = "YYY"; google_ad_width = 468; google_ad_height = 60; } if (width > 1024) { google_ad_slot = "ZZZ"; google_ad_width = 728; google_ad_height = 90; } </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></center> </xen:if>
and it works fine in IE8
View attachment 55500
Error message;
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
Timestamp: Thu, 29 Aug 2013 11:11:00 UTC
Message: Syntax error
Line: 208
Char: 1
Code: 0
URI: http://www.vauxhallownersnetwork.co.uk/index.php
We use essential cookies to make this site work, and optional cookies to enhance your experience.