ADK API Reference
    Preparing search index...

    Interface ArticleTemplateParams

    Template parameters for True Native articles to be used in templates for rendering content.

    interface ArticleTemplateParams {
        advertiser: string;
        assetCaption: string;
        body: string;
        headline: string;
        lead: string;
        srcAttrs: string;
        url: string;
        video: string;
    }
    Index

    Properties

    advertiser: string

    Advertiser name, HTML-escaped.

    assetCaption: string

    Caption text for the main asset, HTML-escaped.

    body: string

    Article body HTML, including its body wrapper. Timestamp placeholders (%timestamp% or [timestamp]) in the body are replaced at render time.

    headline: string

    Headline, HTML-escaped.

    lead: string

    Lead text, HTML-escaped.

    The text string is split on newline characters (\n) and each segment is wrapped in a <p> element. Empty lines produce empty paragraphs.

    srcAttrs: string

    src and srcset attributes for the main asset concatenated into a single string, to be used in an <img> element.

    Undefined when there is no image or the asset is a video.

    url: string

    Teasers: destination URL.

    Articles: the publisher's URL for the current article.

    video: string

    Video player HTML.

    Undefined when there is no video asset.