Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

argument name

type

optional

value

description

command

string

'setDefaultLocale'

parameter

string

✔️

'en', 'de', 'fr', 'pt', 'it', ...

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

callback

function

✔️

function(message:JSON, success:boolean)

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

...

The function must be called before AdConsent shows the GUI. Calls after AdConsent has shown the GUI will be ignored.

Example

Setting the default language to be German (de)

Code Block
adconsent('setDefaultLocale', 'de');

...