Adsense doesn't show, what did I miss ?

Posted in: Newsmag
Post count: 161

Hello,

Sorry, I’m not a coder, I’m a DIY :).

Somehow my adsesne code doesn’t show up.

I placed the below code code in the header here : /wp-content/themes/Newsmag/header.php

********************************************************************

<!doctype html >
<!–[if IE 8]> <html class=”ie8″ <?php language_attributes(); ?>> <![endif]–>
<!–[if IE 9]> <html class=”ie9″ <?php language_attributes(); ?>> <![endif]–>
<!–[if gt IE 8]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<title><?php wp_title(‘|’, true, ‘right’); ?></title>
<meta charset=”<?php bloginfo( ‘charset’ );?>” />
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php
wp_head(); /** we hook up in wp_booster @see td_wp_booster_functions::hook_wp_head */
?>
<script async=’async’ src=’https://www.googletagservices.com/tag/js/gpt.js’></script&gt;
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>

<script>
googletag.cmd.push(function() {
googletag.defineSlot(‘/213402929/HuaHin-large’, [728, 90], ‘div-gpt-ad-1501384756039-0′).addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>

****************************************************
And then I put this below one in Theme panel / Ads / header ad :

<!– /213402929/HuaHin-large –>
<div id=’div-gpt-ad-1501385127267-0′ style=’height:60px; width:468px;’>
<script>
googletag.cmd.push(function() { googletag.display(‘div-gpt-ad-1501385127267-0’); });
</script>
</div>
******************************

But as you can see here : https://huahin-chaam.com/, nothing shows up…..

Can you help me with this ?

Thanks in advanced.

Post count: 23312

Hello Berbi,

Unfortunately, I do not exactly know what kind of Ad do you are using on your website, sorry! Please keep in mind that the theme has been designed to use only the Google AdSense code and if you want to use other ads, you should check the following useful guide here -> https://forum.tagdiv.com/newsmag-using-other-ads/ Also, before adding some ads to your website, please check our documentation here -> https://forum.tagdiv.com/newsmag-header-ads/ Also, you can try using the AdRotate plugin if you want to have more features for Ads. Notice that plugin is not tested one but it seems to work as expected with our product.

Thanks for the message!

Post count: 161

Catalin, this is a Google Adsense code, as said in my topic. Strangely, it doesn’t work, where there should be a banneer on the header ads.

Can you give me a clue to solve this ?

Thanks.

Post count: 161

Oops, well, it’s now working….. I have simply deleted and re-installed the code for the 10th time, and this time it has worked…. Well, sorry about this, and thanks anyway….

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