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
IMAAdsRenderingSettings
to 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
src
the source of the ad.
timeOffset
the optional time offset, defaults to nil.
-
Constructs a NativeGoogleImaAdDescription.
Declaration
Swift
public convenience init(src: String, timeOffset: String? = nil, renderingSettings: IMAAdsRenderingSettings? = nil)
Parameters
src
The adTagUrl source string.
timeOffset
The optional time offset, defaults to nil.
renderingSettings
The 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
adsResponse
The response string returned from a GET request of an adTagUrl.
timeOffset
The optional time offset, defaults to nil.
renderingSettings
The ads rendering settings which will be used when requesting an ad, defaults to nil.
-
Declaration
Swift
required convenience public init(from decoder: Decoder) throws