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
ConsentInformationinstance.Declaration
Swift
public init(hasUserConsent: Bool? = nil, doNotSell: Bool? = nil, isChildDirected: Bool? = nil, isCMPAutomationEnabled: Bool = false, cmpDebugSettings: CMPDebugSettings? = nil)Parameters
hasUserConsentWhether the user has given consent to be served personalized ads.
doNotSellWhether the user has opted out of data sale.
isChildDirectedWhether the user is a child. Review the Children’s Online Privacy Protection Act (COPPA).
isCMPAutomationEnabledEnables automatic consent gathering using UMP before initializing ad mediation.
cmpDebugSettingsSettings to debug the CMP integration.