---
updatedAt: 2026-02-04T10:14:54.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# Changing the locale language for ads

If you serve Google ads via the Bitmovin Player to a non-English speaking audience, it is possible to change the locale of the ads so the UI elements within the ad (eg: `Skip Ad` button) will be displayed to your viewers in their own language, rather than in English.

Since version `8.14.0` of the Bitmovin web-player-sdk, you can directly [access the IMA-SDK from Google](https://developer.bitmovin.com/playback/docs/how-can-i-access-the-ima-sdk-of-html5-player) via our player, which allows you to manipulate ads for this purpose.

## Example

```javascript
const playerConfig = {
  key: '<KEY>',
  advertising: {
      adBreaks: [
        {
          tag: {
            url:'<VAR-URL>',
            type: 'vast'
          },
          id: 'Ad',
          position: 'pre'
        }
      ],
    beforeInitialization : (IMAAdConfig) => {
        //example that changes the ad locale to French
        //eg: instead of "Skip Ad", the button will show "Ignorer l'annonce"
        IMAAdConfig.setLocale('fr');
    }
  }
};  
```

The above results in the following:

![](https://files.readme.io/a5a6acd-Screenshot_2021-06-18_at_10.51.52.png)