NativeParameters

@objcMembers
public class NativeParameters : NSObject

Represents parameters for a native ad request, including assets, event trackers, and configuration settings.

  • An array of NativeAsset objects representing the assets required for the native ad request.

    Declaration

    Swift

    public var assets: [NativeAsset]?
  • An array of NativeEventTracker objects specifying the event tracking settings for the native ad.

    Declaration

    Swift

    public var eventtrackers: [NativeEventTracker]?
  • The version of the native ad specification being used. Defaults to “1.2”.

    Declaration

    Swift

    public var version: String
  • The context in which the ad appears. See ContextType for possible values.

    Declaration

    Swift

    public var context: ContextType?
  • A more detailed context in which the ad appears. See ContextSubType for possible values.

    Declaration

    Swift

    public var contextSubType: ContextSubType?
  • The design/format/layout of the ad unit being offered. See PlacementType for possible values.

    Declaration

    Swift

    public var placementType: PlacementType?
  • The number of identical placements in the ad layout. Defaults to 1.

    Declaration

    Swift

    public var placementCount: Int
  • The sequence number of the ad. Defaults to 0.

    Declaration

    Swift

    public var sequence: Int
  • Indicates whether the supply source/impression supports returning an assetsurl instead of an asset object. Defaults to 0, indicating no support.

    Declaration

    Swift

    public var asseturlsupport: Int
  • Indicates whether the supply source/impression supports returning a dco URL instead of an asset object. Defaults to 0, indicating no support.

    Declaration

    Swift

    public var durlsupport: Int
  • Indicates whether the supply source/impression supports returning a dco URL instead of an asset object. Defaults to 0, indicating no support.

    Declaration

    Swift

    public var privacy: Int
  • ext

    A placeholder for custom JSON agreed to by the parties to support flexibility beyond the standard specification.

    Declaration

    Swift

    public var ext: [String : Any]?