Merci de votre visite. Cette page est disponible en anglais uniquement.

IOS Ad Targeting Options

Besides ad unit size, there are a number of targeting options you can include in the request that is sent to the Amazon Mobile Ad Network. For example, you may include latitude and longitude gathered from the device as well as the user's age. To set targeting options, you must construct an AmazonAdOptions object and pass it to the loadAd method in AmazonAdView or AmazonAdInterstitial.

Optional - Including Latitude and Longitude

If your app or the device is enabled to provide the latitude and longitude coordinates, you can configure the Amazon Mobile Ads to provide these values to the Amazon Mobile Ad Network as part of an ad request. Requests that contain geographic location may earn higher CPMs. (This option is not available for devices in Europe.)


AmazonAdOptions *options = [AmazonAdOptions options];
options.usesGeolocation = YES;

Optional - Floor Price

When making load ad requests, you can specify a floor price in micro-dollars. For example, if you wanted to earn a minimum of $0.85 per thousand ads returned, then you would specify "850000" micro-dollars. The floor price is set through the advanced options using the key "ec".

Important: The Amazon Mobile Ad Network is designed to maximize your revenue opportunity. Setting floor price may limit your revenue potential as it might prevent several paid campaigns from running on your placement. Amazon recommends not setting this value in most cases. If you do set a floor price, please double-check your value as setting a high floor price, even unintentionally, may severely limit your fill rate and revenue, requiring a new app version to fix.

The code shown in the following example will only allow ads to be returned if they have a CPM of $0.85 or greater.


AmazonAdOptions *options = [AmazonAdOptions options];
[options setAdvancedOption:@"850000" forKey:@"ec"];