Hi,

I just notice the new code for the Matched content is really close to the responsive code and I was wondering what will be the best way to make it work:

Matched content code:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Content Comment -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-XXXXXX"
     data-ad-slot="ABC"
     data-ad-format="autorelaxed"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Responsive ad code:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Content Comment -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-XXXXXX"
     data-ad-slot="DEF"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

The only difference I can spot is:

data-ad-format="auto" ==> data-ad-format="autorelaxed"

Thank you

Comments

emilorol created an issue. See original summary.

jcnventura’s picture

Thanks for the tip on matched content.. Yes, this should be easy to add.

algazaras’s picture

Hi there,

Were you able to solve this issue?

Thanks a lot

  • jcnventura committed fee8a6f on 8.x-1.x
    Issues #2810479 and #2838951: support matched content and responsive...

  • jcnventura committed a3c4f24 on 7.x-1.x
    Issues #2810479 and #2838951: support matched content and responsive...
jcnventura’s picture

Status: Active » Fixed

  • jcnventura committed 77531e0 on 7.x-1.x
    Issues #2810479 and #2838951: better responsive ad detection
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.