We had added the adsense code in header on desktop and tablet it is working fine, we had notice that for screen width less then 768, Ad unit height is maximum 50px but as per gogole policy up to 100px is allowed above the fold.
if ( td_screen_width < 768 ) {
/* Phones */
document.write(‘<ins class=”adsbygoogle” style=”display:inline-block;width:320px;height:50px”
Also, we are trying to use the media.net ads which allows up to 250 height on top…Please advice how to increase height up to 100px if we use gogole adsense …..
and how to change height to 250px if we use media.net
Hello,
For adsense you can choose different sizes for each device from the theme panel: http://screencast.com/t/1asLNRQRR
The ad dimensions are provided by goggle so I cannot say for sure if you can have a custom width and height as google will not be able to provide it.
Thank you!
Please ignore the below msg and see the corrected one here:
The above CSS is generated by you theme when we enter the responsive code to the ads section in theme panel: So we want that please advice how to increase height for device >768px.
2nd, adsense ads showing on desktop but not showing on mobile but when we deactivate the mobile theme plugin….it start showing on mobile also….so mobile theme active means no adsense ads on mobile and deactivate means adsense ads on mobile…please advice how to solve it…
Hi
You can set a size for each ad that you use, for different devices – http://screencast.com/t/FC4poaG5fYZX
If you use the mobile theme plugin, please note that it has its own ads spots where you can paste the adsense code – http://screencast.com/t/xSLtzzquyCn Please read the mobile theme plugin tutorial – https://forum.tagdiv.com/the-mobile-theme/ and please note that it is an optional plugin.
Thanks!