Skip to content

Commit

Permalink
Expose option to update user data
Browse files Browse the repository at this point in the history
  • Loading branch information
georgechoustoulakis committed Jul 22, 2024
1 parent 314a22c commit 7b150aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions adscript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
9 changes: 9 additions & 0 deletions adscript/src/integration/AdScriptConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 7b150aa

Please sign in to comment.