Forum Moderators: martinibuster
Does anybody know how it is possible to show a custom unit on the desktop, but when people open the site on a mobile it shows another custom size to suit the mobile device?
<style>
.header { width: 320px; height: 100px; }
@media(min-width: 550px) { .header { width: 468px; height: 60px; } }
@media(min-width: 750px) { .header { width: 728px; height: 90px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- header -->
<ins class="adsbygoogle header"
style="display:inline-block"
data-ad-client="ca-pub-xxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxx"</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Don't forget that in the USA, this is Memorial Day.
There's a guy on YouTube who like me has most of's traffic coming from mobile. He managed to double his income by simply using some custom AdSense units which changed between desktop and mobile. I was quite able to understand the code though.
It's always puzzled me how you can be perfectly within the rules on the desktop
I think there's a fine balance with offering up AdSense which doesn't hinder the persons experience on your website
I don't know why everyone is being so sceptical about him
Exactly right. And because of this fine balance, anyone claiming to have almost doubled their earnings by shuffling ad placements is either (a) bombarding his/her users with ads, or (b) lying. Given no changes in content, traffic, layout or advertiser spending, that kind of increase is impossible otherwise.