NativeData

@objcMembers
public class NativeData : NSObject, JsonDecodable

Class representing native data elements in the ad markup.

  • The type of data element being submitted from the Data Asset Types table. Required for assetsurl/dcourl responses, not required for embedded asset responses.

    Declaration

    Swift

    public var type: Int?
  • The length of the data element being submitted. Required for assetsurl/dcourl responses, not required for embedded asset responses. Where applicable, must comply with the recommended maximum lengths in the Data Asset Types table.

    Declaration

    Swift

    public var length: Int?
  • The formatted string of data to be displayed. Can contain a formatted value such as “5 stars” or “$10” or “3.4 stars out of 5”.

    Declaration

    Swift

    public var value: String?
  • 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 NativeData object with the provided JSON dictionary.

    Declaration

    Swift

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

    Parameters

    jsonDictionary

    A dictionary containing the JSON data to initialize the object.

  • Undocumented

    Declaration

    Swift

    public override init()