Skip to content

XMediator::Api::ConsentInformation

Consent configuration settings object. InitSettings, XMediatorSdk.SetConsentInformation

Public Functions

Name
ConsentInformation(bool? hasUserConsent =null, bool? doNotSell =null, bool? isChildDirected =null, bool isCMPAutomationEnabled =false, CMPDebugSettings cmpDebugSettings =null)
Creates a new ConsentInformation instance.
override bool Equals(object obj)
override int GetHashCode()
override string ToString()

Protected Functions

Name
bool Equals(ConsentInformation other)

Public Properties

Name
bool? HasUserConsent
bool? DoNotSell
bool? IsChildDirected
bool IsCMPAutomationEnabled
CMPDebugSettings CMPDebugSettings

Public Functions Documentation

function ConsentInformation

ConsentInformation(
    bool? hasUserConsent =null,
    bool? doNotSell =null,
    bool? isChildDirected =null,
    bool isCMPAutomationEnabled =false,
    CMPDebugSettings cmpDebugSettings =null
)

Creates a new ConsentInformation instance.

Parameters:

  • hasUserConsent Whether the user has given consent to serve 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.

function Equals

override bool Equals(
    object obj
)

function GetHashCode

override int GetHashCode()

function ToString

override string ToString()

Protected Functions Documentation

function Equals

bool Equals(
    ConsentInformation other
)

Public Property Documentation

property HasUserConsent

bool? HasUserConsent;

property DoNotSell

bool? DoNotSell;

property IsChildDirected

bool? IsChildDirected;

property IsCMPAutomationEnabled

bool IsCMPAutomationEnabled;

property CMPDebugSettings

CMPDebugSettings CMPDebugSettings;

Updated on 2024-11-07 at 18:31:49 +0000