NativeGoogleImaAdDescription
public class NativeGoogleImaAdDescription : GoogleImaAdDescription
An AdDescription object that will be added to the player when using the Google Ima ad integration.
Remark
- Subclass of
GoogleImaAdDescription, but additionally provides an interface to pass renderingSettings and make requests via adsResponse.
-
The
IMAAdsRenderingSettingsto be used to request the Google IMA ad.Declaration
Swift
public var renderingSettings: IMAAdsRenderingSettings? -
The response string returned from a GET request of an adTagUrl.
Declaration
Swift
public var adsResponse: String? -
Constructs a NativeGoogleImaAdDescription.
Declaration
Swift
override public init(src: String, timeOffset: String? = nil)Parameters
srcthe source of the ad.
timeOffsetthe optional time offset, defaults to nil.
-
Constructs a NativeGoogleImaAdDescription.
Declaration
Swift
public convenience init(src: String, timeOffset: String? = nil, renderingSettings: IMAAdsRenderingSettings? = nil)Parameters
srcThe adTagUrl source string.
timeOffsetThe optional time offset, defaults to nil.
renderingSettingsThe ads rendering settings which will be used when requesting an ad, defaults to nil.
-
Constructs a NativeGoogleImaAdDescription.
Declaration
Swift
public init(adsResponse: String, timeOffset: String? = nil, renderingSettings: IMAAdsRenderingSettings? = nil)Parameters
adsResponseThe response string returned from a GET request of an adTagUrl.
timeOffsetThe optional time offset, defaults to nil.
renderingSettingsThe ads rendering settings which will be used when requesting an ad, defaults to nil.
-
Declaration
Swift
required convenience public init(from decoder: Decoder) throws