Skip to content

Start.io Native Ad Layout

Category Requires Version
Monetization > Advertising API 21, Android 5.0 Lollipop 1

Overview

A layout component for showing Start.io native ads. Native ads use the app's own UI elements (Labels, Buttons, Images) so they blend naturally with your content.

Permissions

Events

Ad Clicked

Called when the user clicks on the native ad.

Ad Failed To Load

Called when a native ad fails to load.

Params
error Code Number
error Message Text

Ad Impression

Called when a native ad impression is recorded.

Ad Loaded

Called when a native ad has been loaded successfully.

Params
asset Dictionary Dictionary

Methods

Load Ad

Initiates a request to load a new native ad. This will not do anything if an ad is already loading or if ads are disabled.

Properties

Ad Enabled

Boolean Default: True ➖ Read Write - Designer Blocks

Specifies whether ads should be enabled. If set to false, no ads will be loaded or shown.

Ads Number

Number Default: 1 ➖ Read Write - Designer Blocks

The number of native ads to request. Only the first ad is displayed automatically.

Body Label

Component ➖ Write - Designer Blocks

The label component for the ad body text.

Call To Action Button

Component ➖ Write - Designer Blocks

The button component for the ad call-to-action.

Boolean Default: True ➖ Write - Designer Blocks

Enables the Start.io disclosure/consent box.

Headline Label

Component ➖ Write - Designer Blocks

The label component for the ad headline.

Height

Number ➖ Read Write - Blocks

Specifies the component's vertical height, measured in pixels.

Height Percent

Number ➖ Write - Blocks

Specifies the component's vertical height as a percentageof the height of its parent Component.

Icon Image

Component ➖ Write - Designer Blocks

The image component for the ad icon.

Primary Image Size

Text Default: SIZE150X150 ➖ Read Write - Designer Blocks

The size of the primary image in native ads.

Boolean Default: False ➖ Write - Designer Blocks

Explicitly sets user's consent.

Test Mode

Boolean ➖ Read Write - Designer Blocks

If enabled, test ads will be shown. This should be used during development to avoid generating false impressions. Always enabled when in companion.

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.

Width

Number ➖ Read Write - Blocks

Specifies the component's horizontal width, measured in pixels.

Width Percent

Number ➖ Write - Blocks

Specifies the component's horizontal width as a percentageof the Width of its parent Component.