question

Izzy avatar image
Izzy asked

When will Amazon Mobile Ads Docs be updated for GDPR ?

Currently there are no instructions in either Android or iOS with how to pass user consent to the AmazonAd Call, all we have is this on the FAQ, it doesnt tell us how to inject the 2 keys or even give sample code for making the Ad Request, I believe Amazon should invest some time into updating their docs with this info and making things more clear for us developers like all the other Ad Networks did. Some developers are even saying that "Amazon is not registered as a vendor on IAB, therefore with a CMP, it's not possible to add Amazon in consentString." in this post can someone clear this up and clarify , thanks very much Amazon is a great ad network and I would like to keep using but at the same time complying with EU laws thanks!

https://forums.developer.amazon.com/questions/183863/mobile-ads-gdpr.html

Q: Has your SDK been updated for GDPR?
We have updated our iOS SDK version 2.2.17.0 and Android SDK version 5.9.0 in the event you wish to pass user consent information, as defined by the EU IAB Transparency & Consent Framework to Amazon bidders.

Note that the application is responsible for storing and persisting user consent or legitimate interest information in the GDPR keys (see sample code below). The SDK consumes two GDPR keys, IABConsent_SubjectToGDPR and IABConsent_ConsentString, from NSUserDefaults(iOS) and SharedPreferences(Android) and injects them into the “bid” request.

Alternatively, if you are relying on legitimate interest as your GDPR processing justification, please provide a GDPR key aps_gdpr_pub_pref_li and set the value to 1.

mobile adsandroidios
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered

Hi Izzy,

The sample is included in that same FAQ that you copied from (https://developer.amazon.com/docs/mobile-ads/mb-faq.html):

Sample code for IOS:

NSUserDefaults *userDefaults = NSUserDefaults.standardUserDefaults;
  [defaults setObject:@"1" forKey:@"IABConsent_SubjectToGDPR"];
  // Consent String is not an arbitrary string, please follow the guidelines at
  //  http://advertisingconsent.eu to set a proper consent string value.
  [defaults setObject:@"SAMPLE_VALUE" forKey:@"IABConsent_ConsentString"];
  // set the "aps_gdpr_pub_pref_li" property only if you are relying on legitimate  
  // interest as your processing justification
  [defaults setObject:@"1" forKey:@"aps_gdpr_pub_pref_li"];

Sample code for Android:

SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
  Editor editor = preferences.edit();
  editor.putString("IABConsent_SubjectToGDPR", "1");
  // Consent String is not an arbitrary string, please follow the guidelines at
  // http://advertisingconsent.eu to set a proper consent string value.
  editor.putString("IABConsent_ConsentString", "SAMPLE_VALUE");
  // set the "aps_gdpr_pub_pref_li" property only if you are relying on legitimate
  // interest as your processing justification
  editor.putString("aps_gdpr_pub_pref_li", "1");
  editor.apply();

Please note that the GDPR support is not enabled by default, and thus ads are not displayed. It is enabled only when a mobile application sets following fields:

  • "IABConsent_SubjectToGDPR" (Subject to GDPR)
  • "IABConsent_ConsentString" (Consent String)

or

  • "aps_gdpr_pub_pref_li" ( Legitimate Interest)

Things to note:

Hope it helps.

2 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mayayo avatar image mayayo commented ·

Do we still need to follow those steps if we just want to show ads in the US?

0 Likes 0 ·
Hong Zhang avatar image Hong Zhang commented ·

Could you please provide an example of obtaining a valid consent string to be used with Amazon mobile ads?

0 Likes 0 ·
Izzy avatar image
Izzy answered

Hello, @Levon@Amazon other developers on the forums are saying that amazon is not registered on https://vendorlist.consensu.org/vendorlist.json therefor it is impossible for us to provide a consent string , I actually just copy and pasted all the text on the https://vendorlist.consensu.org/vendorlist.json and put it in to a text file and searched for "amazon" and indeed you guys are not on that list so can you please explain this or when you will be on this list? we cannot fully comply with GDPR until you are on this list and then only can we get the consent string, and how come you guys dont have the consent string on the mobile ads doc, or how come this can't be more simple like AdMob?

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

maxsms avatar image
maxsms answered

Exactly, a Consent String comprises of a bunch of fields, of which a vendor id is one of them, to which Amazon don't appear to have one. No vendor id means it's impossible to create a Consent String.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Izzy avatar image
Izzy answered

amazon no update on this ? you guys are not listed on the vendorlist therefor there is no consent string to put ?????

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.