setActiveLanguage function, which allows you to manually set the
language for the displayed campaigns, ensuring that the ads are presented in the correct language based on the user’s preference.
Usage
You can callsetActiveLanguage whenever the language changes on your site. For example, if your website uses internationalization
(i18n) and the user switches languages, this function ensures that the banners also switch to the appropriate language
- Parameter: The function accepts a string value representing the language code (e.g., ‘en’ for English, ‘fr’ for French).
- Effect: Once the language is set, all campaigns will automatically refresh and display based on the selected language.