Types of Views for native ads

Each type of native ad has a set of required and optional subviews that are necessary for binding an ad.

  1. Types of native ads and assets
  2. Asset descriptions

Types of native ads and assets

SubView Type Required
age TextView Yes
body TextView Yes
callToAction Button Yes
domain TextView No
feedback Button No
icon ImageView Yes
image (deprecated) ImageView No
media MediaView No
price TextView No
rating View implements Rating No
reviewCount TextView No
sponsored TextView Yes
title TextView Yes
warning TextView Yes

Asset descriptions

  1. age
  2. body
  3. callToAction
  4. domain
  5. feedback
  6. icon
  7. image
  8. media
  9. price
  10. rating
  11. reviewCount
  12. sponsored
  13. title
  14. warning

age

Subview for age data.

body

Subview for the main ad text.

callToAction

Subview with a call to action.

domain

Subview for domain data.

feedback

The feedback asset allows the user to specify the reason before closing the ad. User feedback makes it possible to select more relevant ads.

Note.

The developer must define what to do with the ad after the reason for closing it is chosen (for example, hide the ad or show a text). If there is no further action defined, the SDK will register the reason for closing, but the ad will not be hidden.

Subview to process the reason for closing the ad.

icon

Subview for the icon.

image

Attention.

This asset is deprecated. Use the new media asset.

Subview for the main ad image.

media

Use this asset for displaying media content, such as an image (an alternative to the image asset) or a video.
Note.

We don't recommend setting a view for image and media at the same time.

If you do transmit views for image and media simultaneously, make sure that the passed views are not displayed at the same time.

How media content is displayed in 'media': if the response to the ad request contains media content, 'media view' displays it after buffering.

Tip.

To check for media content, use the getMedia method of the NativeAdAssets object. If the response to the ad request contains media content, the method returns a nonzero NativeAdMedia object.

Subview for media content (image or video).

price

Subview for data about the price of the advertised app.

rating

Subview that implements the Rating interface for data about the app's rating.

reviewCount

Subview for data about the number of app reviews.

sponsored

Subview for data about the advertising network.

title

Subview for the ad title.

warning

Subview for the warning or disclaimer.