Skip to content

NativeTemplateStyle

The NativeTemplateStyle class configures the visual styling template and color customization for native overlay ads.

Constants

Templates

  • NativeTemplateStyle.SMALL
  • NativeTemplateStyle.MEDIUM
  • NativeTemplateStyle.Small
  • NativeTemplateStyle.Medium

Properties

template_id / TemplateId

The template layout choice ("small" or "medium").

var template_id: String
public string TemplateId { get; set; }

main_background_color / MainBackgroundColor

The background color of the native ad layout container.

var main_background_color: Color # Or null
public Color? MainBackgroundColor { get; set; }

primary_text / PrimaryText

TextStyle configuration for the ad's main title/heading text.

var primary_text: NativeTemplateTextStyle
public NativeTemplateTextStyle PrimaryText { get; set; }

secondary_text / SecondaryText

TextStyle configuration for the ad's body/description text.

var secondary_text: NativeTemplateTextStyle
public NativeTemplateTextStyle SecondaryText { get; set; }

tertiary_text / TertiaryText

TextStyle configuration for third-tier textual metadata.

var tertiary_text: NativeTemplateTextStyle
public NativeTemplateTextStyle TertiaryText { get; set; }

call_to_action_text / CallToActionText

TextStyle configuration for the clickable button / Call To Action text field.

var call_to_action_text: NativeTemplateTextStyle
public NativeTemplateTextStyle CallToActionText { get; set; }