NativeAdMarkupAsset

@objcMembers
public class NativeAdMarkupAsset : NSObject, JsonDecodable

Represents an asset in the native ad markup, which can be a title, image, data, or link.

  • id

    Optional if asseturl/dcourl is being used; required if embeded asset is being used

    Declaration

    Swift

    public var id: Int?
  • Set to 1 if asset is required. (bidder requires it to be displayed).

    Declaration

    Swift

    public var required: Int?
  • Title object for title assets. See TitleObject definition.

    Declaration

    Swift

    public var title: NativeTitle?
  • img

    Image object for image assets. See ImageObject definition.

    Declaration

    Swift

    public var img: NativeImage?
  • Data object for ratings, prices etc.

    Declaration

    Swift

    public var data: NativeData?
  • Link object for call to actions. The link object applies if the asset item is activated (clicked). If there is no link object on the asset, the parent link object on the bid response applies.

    Declaration

    Swift

    public var link: NativeLink?
  • ext

    This object is a placeholder that may contain custom JSON agreed to by the parties to support flexibility beyond the standard defined in this specification

    Declaration

    Swift

    public var ext: [String : Any]?
  • Initializes a new instance of NativeAdMarkupAsset from a JSON dictionary.

    Declaration

    Swift

    public required init(jsonDictionary: [String : Any])

    Parameters

    jsonDictionary

    A dictionary representing the asset in the native ad markup.

  • Initializes a new instance of NativeAdMarkupAsset with default values.

    Declaration

    Swift

    public override init()