Sticky Ad Integration
As with the Flying Carpet Ad, the Sticky Ad requires an additional script to be loaded in the head of the page:
< script async custom-element = "amp-sticky-ad" src = "https://cdn.ampproject.org/v0/amp-sticky-ad-1.0.js" ></ script > |
To use the sticky feature, the normal Ad TAG must be loaded inside the amp-sticky-ad container. Within the Ad TAG, the desired sizes can be defined:
< amp-sticky-ad layout = "nodisplay" > |
The style of amp-sticky-ad can be customized with the following CSS classes:
amp-sticky-ad
amp-sticky-ad-close-button
amp-sticky-ad-top-padding