testData

Overview

If set, default native ad test data are overridden. Accepts JSON object with following structure:

string title - Title of the native ad.

string description - Description of the native ad.

string imageUrl - Link to the main image of the native ad.

string iconUrl - Link to the icon of the native ad.

string callToAction - Text of the call to action button.

Examples

<RNAatkitUnifiedNativeAd
    name="NativeAd"
    testData={
        {
            title: "Your custom title",
            description: "Your custom description of the native ad.",
            imageUrl: "main_image_url",
            iconUrl: "icon_url",
            callToAction: "Your CTA"
        }
    }
/>

Last updated