Support Forums - Classified Ads Script Osclass
Osclass plugin support => Advertisement Manager Plugin => Topic started by: piter on July 14, 2019, 03:24:52 AM
-
I have Adsense (working) banner created in form of this script
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "XXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
This banner is attached to all categories and to its own Banner Group.
The code which shows the banner <?php echo show_banner( {BANNER_GROUP_ID} ); ?> has been added to many places on various pages.
I added the code to the same files and places as you used in Banner Ads Plugin.
If I add the code to JavaScript (9) the banner does not display.
If I add the code to Body (for text & html banners, adsense code) (10) the banner does not display either.
-
Again, please reply.
If I paste the banner code directly into the php files all banners are displayed on the pages.
But the same banners wont display if set via this plugin.
I pasted the script into the Javascript (9) and it does not work.
I pasted the script into the Body (10) section it doesnt work either...
I tried any type of Adsense banners (automatic, In-feed, In-article, Display) and none works if added to the plugin...
-
@piter
You can test plugin functionality with putting just some text to body of banner. You can place script of adsense directly to body.
Make sure to replace {BANNER_GROUP_ID} with id of banner group.