adConfig

The adConfig() call communicates the game's current configuration to the Ad Placement API. The API uses this information to filter the types of ads it requests so they are suitable for the game (eg. video ads that require sound if sound is enabled). A call should be made to adConfig() when the game app is initialised and then any time the configuration changes, like when a user mutes or unmutes the game.

adConfig parameters

Name Type Description
sound string Whether the game is playing sound:
- ‘on’
- ‘off’ (default)