[object Object] Icon

Encoding
Learn how to create, start, manage and modify Encodings

[object Object] Icon

Player
Learn how to create, start, manage and modify Players

[object Object] Icon

Analytics
Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Fri Jun 18 2021

How can I change 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 via our player, which allows you to manipulate ads for this purpose.

Example:

1const playerConfig = {
2 key: '<KEY>',
3 advertising: {
4 adBreaks: [
5 {
6 tag: {
7 url:'<VAR-URL>',
8 type: 'vast'
9 },
10 id: 'Ad',
11 position: 'pre'
12 }
13 ],
14 beforeInitialization : (IMAAdConfig) => {
15 //example that changes the ad locale to French
16 //eg: instead of "Skip Ad", the button will show "Ignorer l'annonce"
17 IMAAdConfig.setLocale('fr');
18 }
19 }
20};

The above results in the following:

locale_ads

Give us feedback