Skip to content

Instantly share code, notes, and snippets.

@vaishalighuman
Last active September 4, 2023 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaishalighuman/afac13793a1448191f0fe98eb0d27962 to your computer and use it in GitHub Desktop.
Save vaishalighuman/afac13793a1448191f0fe98eb0d27962 to your computer and use it in GitHub Desktop.
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