Adds Adsense ads after the content on post pages, in Jetpack Mobile theme
300 x 250 ads didn't work for me. But 250 x 250 worked like a charm.
Also, if you want to center the ad (as Anton was pointing out), just edit line 45 to look something like this:
return $content . '<center>' . $ads . '</center>';
Can you explain me step by step what to do?
1) At Google Adsense account I must to create the mobile ad block. What kind of Ad? Which Ad format? Single or double? Impossible to choose the size...
2) At plugin settings:
Enter your google_ad_client ID here: ca-mb-pub-1000000000000000 or mb-pub-1000000000000000 or pub-1000000000000000?
Enter your google_ad_slot ID here: understand.
Enter the ad width/height here: here I can choose any size of mobile Ads?
Tried different ways, but field for Adsense is blank...
PS. Maybe change the code of the plugin a little like that:
44. ?> 45. <div align="center"><?php return $content . $ads; ?></div> 46. <?php
to center Ads?
Works nicely. Only problem is that only 300 pixels of adsense ad width is visible (ad width is 320). Rest 20 pixels are shown as yellow. Similar problem happens also without this plugin with 300x250 ad (lower half of the ad is yellow).
So I suppose the problem is in Jetpack Mobile theme and not in this plugin.
Works fine for me
You must log in to submit a review. You can also log in or register using the form near the top of this page.