Native ad assets

Note

The library includes both the required and optional assets. In the advertising rules perspective, it's enough that required components are displayed. In practice, layouts that use a complete set of assets are more clickable. That's why we recommend that you use the design based on a complete set of possible components.

Ad component

Component

Type

Required

Title

titleLabel

UILabel

Yes

Domain

domainLabel

UILabel

Yes

Disclaimer

warningLabel

UILabel

Yes

The “Ad” label and the age restriction label

sponsoredLabel

UILabel

Yes

Menu icon

feedbackButton

UIButton

Yes

Action button

callToActionButton

UIButton

Yes

Media

mediaView

YMANativeMediaView

Yes

App icon

iconImageView

UIImageView

Yes, for app advertising

Price

priceLabel

UILabel

Yes, for app advertising

Favicon

faviconImageView

UIImageView

No

Review count

reviewCountLabel

UILabel

No

Rating

ratingView

UIView

No

Text

bodyLabel

UILabel

No

The list of required assets defines the set of data for which, if those assets are present, a View must be provided for rendering.

Tip

We recommend that you use a layout that can render a complete set of both required and optional ad assets.