AdRequestTokenConfiguration

@objc(YMAAdRequestTokenConfiguration)
@objcMembers
public final class AdRequestTokenConfiguration : NSObject

A class with data for generating request token.

  • A type of ad.

    Declaration

    Swift

    public let adType: AdType?
  • A target information about user.

    Declaration

    Swift

    public let targetInfo: AdTargetInfo
  • A size of the banner if the type of ad is a banner.

    Declaration

    Swift

    public let bannerAdSize: BannerAdSize?
  • A set of arbitrary input parameters.

    Declaration

    Swift

    public let parameters: [String : String]?
  • Initializes a new object of the AdRequestTokenConfiguration class.

    Declaration

    Swift

    public init(
        adType: AdType? = nil,
        bannerAdSize: BannerAdSize? = nil,
        parameters: [String: String]? = nil
    )

    Parameters

    adType

    A type of ad.

    bannerAdSize

    A size of the banner if the type of ad is a banner.

    parameters

    A set of arbitrary input parameters.

    Return Value

    An object of the AdRequestTokenConfiguration class, configuration for generating request token.