Last active
September 4, 2023 11:55
-
-
Save vaishalighuman/afac13793a1448191f0fe98eb0d27962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Add the following script tags only in the <head> to include amp-amp-story-auto-ads component.: | |
<script async custom-element="amp-story-auto-ads" src="https://cdn.ampproject.org/v0/amp-story-auto-ads-0.1.js"></script> | |
2. Add the following script tag after <amp-story-page> where you want to see ads: | |
<amp-story-auto-ads> | |
<script type="application/json"> | |
{ | |
"ad-attributes": { | |
"type": "doubleclick", | |
"data-slot": "/21928950349,22741064198/currynaari_com_webstory_1x1" | |
} | |
} | |
</script> | |
</amp-story-auto-ads> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment