setPublisherCC

Functionality

The function setPublisherCC allows the publisher to define the country code where its business entity is established, determining the legislation of reference to be considered in AdConsent options. This value is by default 'US'.

Syntax

function adconsent()

argument name

type

optional

value

description

argument name

type

optional

value

description

command

string

 

'setPublisherCC'

 

parameter

string

 

'US', 'DE', 'FR', 'PT', 'IT', 'AT', …

2-letter country language code. Default value is 'US'.

callback

function

✔️

function(message:JSON, success:boolean)

The callback function that is called with the function call result.

parameter

This is a string holding the 2-letter code for the country where the publisher's business entity is established.

Description

The country code is used by the IAB Europe Transparency and Consent Framework (TCF) Specifications to determine the legislation of reference. It can be used in the GDPR consent zone to specify if some specific rule other than the generic EU Law can be applied when asking the user for consent. There are countries like Germany where, e.g., consent for Purpose 1 doesn't need to be disclosed. This means that for German based publishers a different configuration for the CMP can be set where the CMP may not ask the user about Purpose 1 consent. So, setting this value correctly is a must if some out of the ordinary CMP configurations are required by the publisher.

Scope

The function must be called before AdConsent is started. Calls after AdConsent has started will be ignored.

Example

Setting the publisher country code to 'DE' (Germany)

adconsent('setPublisherCC', 'DE');