forked from organicmaps/organicmaps
[iOS] fix "user_lang" param in mopub ad request
This commit is contained in:
parent
a7aa8e2f2d
commit
3d97cc514e
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ final class MopubBanner: NSObject, Banner {
|
|||
let config = MPStaticNativeAdRenderer.rendererConfiguration(with: settings)!
|
||||
request = MPNativeAdRequest(adUnitIdentifier: placementID, rendererConfigurations: [config])
|
||||
let targeting = MPNativeAdRequestTargeting()
|
||||
targeting.keywords = "user_lang:\(AppInfo.shared().twoLetterLanguageId)"
|
||||
targeting.keywords = "user_lang:\(AppInfo.shared().twoLetterLanguageId ?? "")"
|
||||
targeting.desiredAssets = [kAdTitleKey, kAdTextKey, kAdIconImageKey, kAdCTATextKey]
|
||||
if let location = MWMLocationManager.lastLocation() {
|
||||
targeting.location = location
|
||||
|
|
Loading…
Add table
Reference in a new issue