Skip to main content

Consent Management Platform

About The CMP

This page is only intended to serve as a quick reference to the CMP API. For more information about the CMP, click here.

app.overwolf.isCMPRequired()

Returns whether or not a user is required to be informed about the CMP.

import { app } from 'electron';

await app.overwolf.isCMPRequired();

app.owElectronApp.overwolf.openAdPrivacySettingsWindow();

Opens the Ad privacy settings window. Use with CMPWindowOptions object.

CMPWindowOptions object

ParameterTypeDescription
purposesenum purposes, features, vendorsOpens the CMP type tab. Default tab is Purposes.
modalboolWhether this is a modal window. This only works when the window is a child. Default is true.
parentBrowserWindowSpecify parent window. Default is null.
centerboolShow window in the center of the screen. Default is true.
backgroundColorstringControl the CMP preloader background window.
preLoaderSpinnerColorstringControl the CMP preloader color (spinner).
widthnumberControl the CMP Window width.
heightnumberControl the CMP Window height.
xnumberControl the CMP Window left position.
ynumberControl the CMP Window top position.
languagestringThe language the CMP will be displayed in.

Supported languages

Use the following table for the language parameter:

NameKey Code
Englishen
Germande
Portuguesept
Spanishes
Frenchfr
Italianit
Polishpl

Example:

owElectronApp.overwolf.openAdPrivacySettingsWindow(
{
// Set color of the loading spinner.
preLoaderSpinnerColor: '#ff0000',

// Set the x position of the window.
x: 0,

// Set the y position of the window.
y: 0,
}
);

app.overwolf.openCMPWindow()

Opens the built-in CMP window.

Deprecated

This API is deprecated. Use app.overwolf.openAdPrivacySettingsWindow() instead.

app.overwolf.openCMPWindow({
// defaults to purposes if not defined
tab?: ['purposes' | 'features' | 'vendors']
});