Force AdSense SLOT and CLIENT

Posted in: Newsmag
Post count: 26

We need to manually specify the AdSense Slot and Client. We are editing:

/wp-content/themes/Newsmag/includes/wp_booster/wp-admin/panel/td_panel_data_source.php

As follows:

But it does not apply instantly, even if we remove Cached files.

Any other place where we can change it to apply changes instantly?

Thanks 🙂

Post count: 6600

Hi,

I’m not sure what you want to do, this where the adsense’s slot and data client are are checked and updated. Pasting you adsense code into theme panel’s ad sport isn’t helping? Please provide more details on this.

Thanks

Post count: 26

Thanks again 🙂 But, we want to show different adsense accounts randomly. That is why we need to mannually set AD SLOT and CLIENT ID in the site’s source, right before printing it out.

Note: We want to keep the responsive feature, so we just want to modify the exact SLOT and CLIENT parameters before printing.

Thank you 🙂

Post count: 1291

Hi,

The ad render is done here – http://screencast.com/t/IW3aLPtPmXPehttp://screencast.com/t/tJyusQ6P7D8
You have to add a function which returns various AD SLOT and CLIENT ID depending on some parameters.
Hope this helps.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.