YMANativeAdAssets

Objective-C

@interface YMANativeAdAssets : NSObject

Swift

class YMANativeAdAssets : NSObject

Class with native ad assets.

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

Properties

age

Age restrictions.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *age;

Swift

var age: String? { get set }

body

The main ad text.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *body;

Swift

var body: String? { get set }

callToAction

Call-to-action button label.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *callToAction;

Swift

var callToAction: String? { get set }

domain

The domain.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *domain;

Swift

var domain: String? { get set }

favicon

The webpage’s favicon (YMANativeAdImage).

Declaration

Objective-C

@property (nonatomic, strong, nullable) YMANativeAdImage *favicon;

Swift

var favicon: YMANativeAdImage? { get set }

feedbackAvailable

Notifies whether to show the menu icon (feedbackButton).

Declaration

Objective-C

@property (nonatomic) BOOL feedbackAvailable;

Swift

var feedbackAvailable: Bool { get set }

icon

The app’s icon (YMANativeAdImage).

Declaration

Objective-C

@property (nonatomic, strong, nullable) YMANativeAdImage *icon;

Swift

var icon: YMANativeAdImage? { get set }

image

The main image (YMANativeAdImage).

Declaration

Objective-C

@property (nonatomic, strong, nullable) YMANativeAdImage *image;

Swift

var image: YMANativeAdImage? { get set }

media

The media content (YMANativeAdMedia).

Declaration

Objective-C

@property (nonatomic, strong, nullable) YMANativeAdMedia *media;

Swift

var media: YMANativeAdMedia? { get set }

price

The price of the advertised app.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *price;

Swift

var price: String? { get set }

rating

The app’s rating.

Declaration

Objective-C

@property (nonatomic, strong, nullable) NSNumber *rating;

Swift

var rating: NSNumber? { get set }

reviewCount

The number of app reviews.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *reviewCount;

Swift

var reviewCount: String? { get set }

Data about the advertising network (ad and age labels).

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *sponsored;

Swift

var sponsored: String? { get set }

title

The ad title.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *title;

Swift

var title: String? { get set }

warning

The warning.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *warning;

Swift

var warning: String? { get set }