A single content item inside a CleverTap Native Display unit.

All fields are optional/nullable because a campaign may populate only some of them (e.g. a text-only banner has no mediaUrl). Render defensively.

interface CleverTapDisplayUnitContent {
    actionUrl: null | string;
    iconUrl: null | string;
    mediaUrl: null | string;
    message: null | string;
    title: null | string;
}

Properties

actionUrl: null | string

Clickthrough destination (typically a deeplink) for this content item, or null if not set.

iconUrl: null | string

URL of the icon asset for icon-based templates, or null if not set.

mediaUrl: null | string

URL of the media asset (image/video/gif) for this content item, or null if not set.

message: null | string

Body text configured for this content item, or null if not set.

title: null | string

Heading text configured for this content item, or null if not set.