for amp page responsive google adsense ads

Posted in: Newspaper
Post count: 68

hi, i see google adsense amp ads auto responsive. What do you think of that? Will an update come? or how can we do it until the update comes?

example new code in google adsense:

<amp-ad width="100vw" height=320
type="adsense"
data-ad-client="ca-pub-11111111111111111"
data-ad-slot="1111111111111111111"
data-auto-format="rspv"
data-full-width>
<div overflow></div>
</amp-ad>

in my amp page newspaper:
<amp-ad width="300" height="250" type="adsense" data-ad-client="ca-pub-11111111111" data-ad-slot="111111"></amp-ad>

Post count: 35449

Hi,

For the moment there is no news about amp ads auto responsive
You can try to set the both code in amp ads and try different screens to see the results.

Thank you!

Post count: 68

i change amp code and added responsive, great, here example: https://hizli.gen.tr/25408/kuaza-amp

but i see amp js url. what different ?
Your code:
<script async custom-element="amp-auto-ads" src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js"></script>

Adsense:
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

Which one do I use? for fast and for good.

thanks

  • This reply was modified 7 years by kuaza.
Post count: 35449

Hi,

The firs one is for auto ads -> https://amp.dev/documentation/components/amp-auto-ads and the second one is a normal ad -> https://amp.dev/documentation/components/amp-ad?format=websites

Thank you!

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