[MAPSME-6523] [ios] Added user_lang to Mopub banner keywords.

This commit is contained in:
Ilya Grechuhin 2018-01-15 15:57:43 +03:00 committed by Roman Kuznetsov
parent 03f1044407
commit a81f6224d1

View file

@ -143,6 +143,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.desiredAssets = [kAdTitleKey, kAdTextKey, kAdIconImageKey, kAdCTATextKey]
if let location = MWMLocationManager.lastLocation() {
targeting.location = location