MMNativeWrapper Protocol Reference

Conforms to NSObject
Declared in MMNativeWrapper.h

Overview

This protocol should be used by any objects which represent a data container for Native information returned by a mediator. Because the Millennial SDK is responsible for layout and display of individual components, the SDK being mediated to must offer these values.

For more details on native mediation, including configuring which properties are required to present a correct impression of

  nativeType required method

Name of the native type.

@property (nonatomic, readonly) NSString *nativeType

Discussion

Name of the native type.

Declared In

MMNativeWrapper.h

  title required method

The header title for the native content. If this value is unavailble, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeTextAsset *title

Discussion

The header title for the native content. If this value is unavailble, nil should be returned.

Declared In

MMNativeWrapper.h

  callToAction required method

The text for a “call to action” button presented as part of the native ad. If this value is unavailable, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeTextAsset *callToAction

Discussion

The text for a “call to action” button presented as part of the native ad. If this value is unavailable, nil should be returned.

Declared In

MMNativeWrapper.h

  disclaimer required method

The disclaimer text indicating that the presented content is an advertisement. If this value is unavailable, nil should be returned. If no value is provided, the SDK will use preset default text as the required disclaimer.

@property (nonatomic, readonly, nullable) MMNativeTextAsset *disclaimer

Discussion

The disclaimer text indicating that the presented content is an advertisement. If this value is unavailable, nil should be returned. If no value is provided, the SDK will use preset default text as the required disclaimer.

Declared In

MMNativeWrapper.h

  icon required method

The icon (small image) associated with the native content. If this value is unavailable, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeImageAsset *icon

Discussion

The icon (small image) associated with the native content. If this value is unavailable, nil should be returned.

Declared In

MMNativeWrapper.h

  mainImage required method

The main image associated with the native content. If this value is unavailable, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeImageAsset *mainImage

Discussion

The main image associated with the native content. If this value is unavailable, nil should be returned.

Declared In

MMNativeWrapper.h

  body required method

The body text associated with the native content. If this value is unavailable, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeTextAsset *body

Discussion

The body text associated with the native content. If this value is unavailable, nil should be returned.

Declared In

MMNativeWrapper.h

  rating required method

Rating information for the presented content, as a text value. If this value is unavailable or cannot be represented as text, nil should be returned.

@property (nonatomic, readonly, nullable) MMNativeTextAsset *rating

Discussion

Rating information for the presented content, as a text value. If this value is unavailable or cannot be represented as text, nil should be returned.

Declared In

MMNativeWrapper.h