Google Adsense Verification Code

Posted in: Newspaper
Post count: 63

I have just created new account with Google Adsense and I need to add the AdSense verification code to my site. (according to Google in the head tag)

Where is the best place to place the code for both Desktop and Mobile pages and posts

Google indicates that the code should appear on all site pages and posts.

Thanks

Post count: 18283

Hello !

For ads please follow our guide here: https://forum.tagdiv.com/ads-adsense-overview/

Thank you !

Post count: 63

Thanks for the prompt reply. And what about other AdNetworks such as Media.net and maybe others?

Post count: 18283

Hello !

Depending on their requirements we can guide you on how to add them on your website. Please let us know what they provide ( a code to be added in theme files; a shortcode to be rendered on the first page, etc. )

Thank you !

Post count: 63

For example for one of the ad unit.

They always provide 2 code Head & Body

Head:
Note: Place this code in head tag across website. It’ll remain same for all media.net ad units under this account.

<script type=”text/javascript”>
window._mNHandle = window._mNHandle || {};
window._mNHandle.queue = window._mNHandle.queue || [];
medianet_versionId = “3121199”;
</script>
<script src=”https://contextual.media.net/dmedianet.js?cid=8CUUGK7QW&#8221; async=”async”></script>

Body:
Note: Place this code where ads should appear. Ensure it is across pages with content and regular traffic.

<div id=”997013110″>
<script type=”text/javascript”>
try {
window._mNHandle.queue.push(function (){
window._mNDetails.loadTag(“997013110”, “300×250”, “997013110”);
});
}
catch (error) {}
</script>
</div>

Post count: 18283

Hello !

Those codes can be inserted in here: https://www.screencast.com/t/D0a4FFxBji

Please make sure you clear your cache after and let us know the result !

Thank you !

Post count: 63

2 questions though:

1. Since it is not Google Adsense code – Do I need to wrap it (as mentioned in your guide) with your tags

Using this code:
<div class=”td-all-devices”>
<!– Your NON AdSense code here – this ad will show on all devices –>
</div>

2. What about the body code: you didn’t answer on where to place it?
3. Does body code should be wrapped with your tags
4. Last question: where is it better to place the code (for both desktop and mobile) via the template (composer) or via the Theme Panel?

Post count: 18283

Hello !

1. Normally you shouldn’t. Try pasting it simply there and if it doesn’t work then wrap it in our tags. This usually depends on the code.

2. Please take a closer look at my screenshot: https://www.screencast.com/t/DWhzIL2XEbB You have a place for the HEAD and a place for the Body.

3. Again, this applies like in the answer 1.

4. I personally would recommend you the theme panel. That is where I will put it.

Thank you !

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