sticky-header-ad
Sticky Header Ads
Out of page formats for mobile and desktop that are sticky at the top of the page. This is similar to the Anchor Ads provided by Google Ad Manager.
See also
- https://googleads.github.io/google-publisher-tag-samples/display-anchor-ad/js/demo.html
- https://support.google.com/admanager/answer/10452255?hl=en
Integration
In your index.ts import and register the module.
import { createStickyHeaderAd } from '@highfivve/module-sticky-header-ad';
moli.registerModule(createStickyHeaderAd());
Next you need to add the required HTML and CSS on your page. See the sticky header ads documentation
Important
The data-refs are not configurable and are currently hardcoded. Make sure that they are correct.
Single Page Apps
This module is NOT ready for single page applications yet.
Resources
Functions
createStickyHeaderAd()
createStickyHeaderAd():
IModule
Sticky Headers Ad
Provides the javascript integration for sticky header ads, which consist of
- close button feature
- removing HTML if the advertiser provides the entire ad creative
- removing HTML if ad is empty
- showing HTML if ad is none-empty
Returns
IModule