Basic native ad setup

This example demonstrates a basic native ad setup. It loads a simple, unstyled teaser template and connects the builtin Placement provider, which requests ads from the platform. Visit the landing page for an ad by clicking the teaser in the result box.

Setup
adk.config()
    .addTemplate('com.advisible.native.teaser', adk.template.config()
        .url('teaser.html'))
    .addContainer('native-teaser', adk.container.config()
        .provider('adk.placement'))
    .apply()
    .init(advisibleID)
Template
<a href="%url%">
    <img height="100" %srcAttrs% />
    <h2>%headline%</h2>
    %advertiser%
    %lead%
</a>
Result