feat: add ads localize (#4113)
* add prop adLanguage; add docs * add native code ios&android for adLanguage props * add missing function to adsLoader and imafactory * Update docs/pages/component/ads.md Language correction Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com> --------- Co-authored-by: Guy <guyha@reshet.tv> Co-authored-by: Olivier Bouillet <62574056+freeboub@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,12 @@
|
||||
}
|
||||
|
||||
func setUpAdsLoader() {
|
||||
adsLoader = IMAAdsLoader(settings: nil)
|
||||
guard let _video else { return }
|
||||
let settings = IMASettings()
|
||||
if let adLanguage = _video.getAdLanguage() {
|
||||
settings.language = adLanguage
|
||||
}
|
||||
adsLoader = IMAAdsLoader(settings: settings)
|
||||
adsLoader.delegate = self
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user