Tutorials

How to make content sticky

Stickiness is a way of increasing viewability for ads. This example demonstrates how to create a sticky container that snaps to the fixed-position header element on this page.

Setup
adk.config()
    .addContainer('my-container', adk.container.config()
        .provider('adk.hello')
        .sticky()
        .stickyMarginTop(64))
    .apply()
    .init(publisherId)
Result