diff --git a/adscript/README.md b/adscript/README.md index 2cfc1fe1..d9971f5e 100644 --- a/adscript/README.md +++ b/adscript/README.md @@ -92,3 +92,11 @@ If the metadata has changed during playback, you can update it with: ```javascript adScriptConnector.updateMetadata(newMetadata); ``` + +## Updating userInfo + +If the user info has changed during playback, you can update it with: + +```javascript +adScriptConnector.updateUser(i12n); +``` \ No newline at end of file diff --git a/adscript/src/integration/AdScriptConnector.ts b/adscript/src/integration/AdScriptConnector.ts index 9ea97547..e8be118d 100644 --- a/adscript/src/integration/AdScriptConnector.ts +++ b/adscript/src/integration/AdScriptConnector.ts @@ -62,6 +62,15 @@ export class AdScriptConnector { this.adScriptIntegration?.updateMetadata(metadata); } + /** + * Updates the additional information about logged user (customerID, deviceID, profileID, ...) from client´s database. + * For more information, see the [Additional Information Settings](https://adscript.admosphere.cz/en_adScript_browser.html) section. + * @param i12n The Additional Information + */ + updateUser(i12n: { [key: string]: string }): void { + this.adScriptIntegration?.updateUser(i12n); + } + /** * Destroy the connector. */