MoPub マーケットプレイスと特定の広告ネットワークでは、ユーザーの位置情報を使ってさらに広告を絞り込むことができます。あなたのアプリケーションが位置情報へのアクセス権を既に持っている場合、MoPub SDK は広告リクエストのため自動的に位置情報の取得を試みます。`MoPub.h`の`locationUpdatesEnabled` を使い、この機能を無効にすることができます。 位置情報へのアクセス権が承認されていない場合、MoPub SDKがユーザーへアクセス権を要求することは決してありません。
You can also choose to pass the location yourself by passing any CLLocation to MPAdView which will forward what you supply to the location property down to the underlying ad network.
adview上では、コンマ区切りで一覧にしたキーワードをアプリからMoPub へ渡すことができます。 キーワードはキーと値の組み合わせ(例えば m_age:24) の形式にする必要があります。“&” と “=”を除く、任意の文字が使用できます。スペースは使用でき、特殊文字は非推奨です。
MPAdView *adView = [[MPAdView alloc] initWithAdUnitId:@"AD_UNIT_ID" size:MOPUB_BANNER_SIZE]; adView.delegate = self; adView.keywords = @"m_age:24,m_gender:m,m_marital:single"; [adView loadAd];
注意: ネイティブ広告では、MPNativeAdRequestTargeting クラスを使ってキーワードを渡すことができます。ネイティブ広告の組み込みガイドを参照してください。
Location & Data PassingPassing LocationThe MoPub Marketplace and certain ad networks can use your user’s location to send more targeted ads. If your app already has location permissions, the MoPub SDK will automatically attempt to acquire location data for ad requests. You can use `locationUpdatesEnabled` in `MoPub.h` to opt out of this functionality. The MoPub SDK will never prompt the user for permission if location permissions are not currently granted. You can also choose to pass the location yourself by passing any CLLocation to MPAdView which will forward what you supply to the location property down to the underlying ad network. Passing KeywordsYou can pass keywords from your app to MoPub as a comma-separated list in the ad view. They should be in the format of key value pairs (e.g. m_age:24). You can use any characters except for “&” and “=”. Spaces are allowed, and special characters are discouraged. MPAdView *adView = [[MPAdView alloc] initWithAdUnitId:@"AD_UNIT_ID" size:MOPUB_BANNER_SIZE]; adView.delegate = self; adView.keywords = @"m_age:24,m_gender:m,m_marital:single"; [adView loadAd];
Example: m_gender:m m_age:25 Negative Targeting: -m_age:25 Note: For native ads, you can pass in keywords using the MPNativeAdRequestTargeting class. See the Native Ads Integration guide. |