Responsive Custom Ads shortcodes not working properly with Google Adsense

Posted in: Newspaper
Post count: 5

“Responsive” Google Adsense ads are not displaying properly using Custom Ad shortcodes. Below is code from my Google Adsense account for a “Responsive Link Ad” (client and slot numbers redacted).

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Responsive Link Ad –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-xxxxxxxxxxxxxxxx”
data-ad-slot=”xxxxxxxxxx”
data-ad-format=”link”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

I performed two tests. First, I entered the Adsense code from Google for a “Responsive Link Ad” in Custom Ad 2. I placed the shortcode [td_block_ad_box spot_id="custom_ad_2"] in the visual editor. After saving, you’ll see the ad appears as 336×280 link ad, not a responsive ad.

1. Responsive Adsense code entered in Custom Ad 2 of theme panel. https://www.screencast.com/t/5gHxCVjMJ
2. Shortcode inserted in visual editor. https://www.screencast.com/t/eiRIrnXd
3. Ad display using shortcode (appears as 336×280 link ad and not as a responsive ad). https://www.screencast.com/t/eiRIrnXd

In my second test I didn’t use the shortcode, but manually added Google code in text editor at the end of the post. The responsive ad displays properly using this manual method.

4. Responsive Link Ad code entered manually in text (without shortcode). https://www.screencast.com/t/o3ZoLQcVw
5. When I enter Google code manual in the text editor, the ad displays properly. https://www.screencast.com/t/XmBscT3Mh

My conclusion is responsive Adsense ads do not display properly using Custom ad shortcodes.

Please let me know what additional information you need to recreate this bug.

Thanks!

Post count: 20688

Hi,

It would be useful if we could inspect this situation first hand. We may need to make some tests if possible, please send us an email at contact@tagdiv.com and provide admin login information. Also paste a link to this topic in the email.

Thanks

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