PrebidRequest
@objcMembers
public class PrebidRequest : NSObject
Class that contains properties and methods to configure Prebid request.
-
The position of the ad on the screen.
Declaration
Swift
public var adPosition: AdPosition
-
A flag that determines whether SKOverlay should be supported for interstitials
Declaration
Swift
public var supportSKOverlayForInterstitial: Bool
-
Initializes a new
PrebidRequestwith the given parameters.Declaration
Swift
public init( bannerParameters: BannerParameters? = nil, videoParameters: VideoParameters? = nil, nativeParameters: NativeParameters? = nil, isInterstitial: Bool = false, isRewarded: Bool = false )Parameters
bannerParametersThe banner parameters for the ad request.
videoParametersThe video parameters for the ad request.
nativeParametersThe native parameters for the ad request.
isInterstitialIndicates if the request is for an interstitial ad.
isRewardedIndicates if the request is for a rewarded ad.
-
Sets the GPID for the ad request.
Declaration
Swift
public func setGPID(_ gpid: String?)Parameters
gpidThe GPID to set.
-
Sets the impression-level OpenRTB configuration string for the ad unit.
Declaration
Swift
public func setImpORTBConfig(_ ortbConfig: String?)Parameters
ortbConfigThe impression-level OpenRTB configuration string to set. Can be
nilto clear the configuration. -
Returns the impression-level OpenRTB configuration string.
Declaration
Swift
public func getImpORTBConfig() -> String? -
Sets the global OpenRTB configuration string for the ad unit. It takes precedence over
Targeting.setGlobalOrtbConfig.Declaration
Swift
public func setGlobalORTBConfig(_ ortbConfig: String?)Parameters
ortbConfigThe global OpenRTB configuration string to set. Can be
nilto clear the configuration. -
Returns the global OpenRTB configuration string.
Declaration
Swift
public func getGlobalORTBConfig() -> String?