ConsentInformation
public struct ConsentInformation : Equatable
Consent configuration settings object
-
Returns the user’s consent to serve personalized ads
Declaration
Swift
public let hasUserConsent: Bool?
-
Returns whether the user has opted out of data sale
Declaration
Swift
public let doNotSell: Bool?
-
Returns whether the user is a child
Declaration
Swift
public let isChildDirected: Bool?
-
Enables automatic consent gathering using UMP before initializing ad mediation.
Declaration
Swift
public let isCMPAutomationEnabled: Bool
-
Settings to debug the CMP integration.
Declaration
Swift
public let cmpDebugSettings: CMPDebugSettings?
-
Creates a new
ConsentInformation
instance.Declaration
Swift
public init(hasUserConsent: Bool? = nil, doNotSell: Bool? = nil, isChildDirected: Bool? = nil, isCMPAutomationEnabled: Bool = false, cmpDebugSettings: CMPDebugSettings? = nil)
Parameters
hasUserConsent
Whether the user has given consent to be served personalized ads.
doNotSell
Whether the user has opted out of data sale.
isChildDirected
Whether the user is a child. Review the Children’s Online Privacy Protection Act (COPPA).
isCMPAutomationEnabled
Enables automatic consent gathering using UMP before initializing ad mediation.
cmpDebugSettings
Settings to debug the CMP integration.