AdUnit
@objcMembers
public class AdUnit : NSObject, DispatcherDelegate
Undocumented
-
Undocumented
Declaration
Swift
public var pbAdSlot: String? { get set }
-
Undocumented
Declaration
Swift
public init(configId: String, size: CGSize?, adFormats: Set<AdFormat>)
-
Undocumented
Declaration
Swift
dynamic public func fetchDemand(completion: @escaping (_ result: ResultCode, _ kvResultDict: [String : String]?) -> Void)
-
Undocumented
Declaration
Swift
dynamic public func fetchDemand(completionBidInfo: @escaping (_ bidInfo: BidInfo) -> Void)
-
Undocumented
Declaration
Swift
dynamic public func fetchDemand(adObject: AnyObject, completion: @escaping (_ result: ResultCode) -> Void)
-
This method obtains the context data keyword & value for adunit context targeting if the key already exists the value will be appended to the list. No duplicates will be added
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use addExtData method instead.") public func addContextData(key: String, value: String)
-
This method obtains the context data keyword & values for adunit context targeting the values if the key already exist will be replaced with the new set of values
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use updateExtData method instead.") public func updateContextData(key: String, value: Set<String>)
-
This method allows to remove specific context data keyword & values set from adunit context targeting
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use removeExtData method instead.") public func removeContextData(forKey: String)
-
This method allows to remove all context data set from adunit context targeting
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use clearExtData method instead.") public func clearContextData()
-
This method obtains the ext data keyword & value for adunit targeting if the key already exists the value will be appended to the list. No duplicates will be added
Declaration
Swift
public func addExtData(key: String, value: String)
-
This method obtains the ext data keyword & values for adunit targeting the values if the key already exist will be replaced with the new set of values
Declaration
Swift
public func updateExtData(key: String, value: Set<String>)
-
This method allows to remove specific ext data keyword & values set from adunit targeting
Declaration
Swift
public func removeExtData(forKey: String)
-
This method allows to remove all ext data set from adunit targeting
Declaration
Swift
public func clearExtData()
-
This method obtains the context keyword for adunit context targeting Inserts the given element in the set if it is not already present.
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use addExtKeyword method instead.") public func addContextKeyword(_ newElement: String)
-
This method obtains the context keyword set for adunit context targeting Adds the elements of the given set to the set.
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use addExtKeywords method instead.") public func addContextKeywords(_ newElements: Set<String>)
-
This method allows to remove specific context keyword from adunit context targeting
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use removeExtKeyword method instead.") public func removeContextKeyword(_ element: String)
-
This method allows to remove all keywords from the set of adunit context targeting
Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Please, use clearExtKeywords method instead.") public func clearContextKeywords()
-
This method obtains the keyword for adunit targeting Inserts the given element in the set if it is not already present.
Declaration
Swift
public func addExtKeyword(_ newElement: String)
-
This method obtains the keyword set for adunit targeting Adds the elements of the given set to the set.
Declaration
Swift
public func addExtKeywords(_ newElements: Set<String>)
-
This method allows to remove specific keyword from adunit targeting
Declaration
Swift
public func removeExtKeyword(_ element: String)
-
This method allows to remove all keywords from the set of adunit targeting
Declaration
Swift
public func clearExtKeywords()
-
Undocumented
Declaration
Swift
public func setAppContent(_ appContentObject: PBMORTBAppContent)
-
Undocumented
Declaration
Swift
public func getAppContent() -> PBMORTBAppContent?
-
Undocumented
Declaration
Swift
public func clearAppContent()
-
Undocumented
Declaration
Swift
public func addAppContentData(_ dataObjects: [PBMORTBContentData])
-
Undocumented
Declaration
Swift
public func removeAppContentData(_ dataObject: PBMORTBContentData)
-
Undocumented
Declaration
Swift
public func clearAppContentData()
-
Undocumented
Declaration
Swift
public func getUserData() -> [PBMORTBContentData]?
-
Undocumented
Declaration
Swift
public func addUserData(_ userDataObjects: [PBMORTBContentData])
-
Undocumented
Declaration
Swift
public func removeUserData(_ userDataObject: PBMORTBContentData)
-
Undocumented
Declaration
Swift
public func clearUserData()
-
Undocumented
Declaration
Swift
public func setGPID(_ gpid: String?)
-
Undocumented
Declaration
Swift
public func getGPID() -> String?
-
Undocumented
Declaration
Swift
public func setOrtbConfig(_ ortbObject: String?)
-
Undocumented
Declaration
Swift
public func getOrtbConfig() -> String?
-
This method allows to set the auto refresh period for the demand
Declaration
Swift
public func setAutoRefreshMillis(time: Double)
Parameters
time
refresh time interval
-
This method stops the auto refresh of demand
Declaration
Swift
public func stopAutoRefresh()
-
Undocumented
Declaration
Swift
public func resumeAutoRefresh()