CCPA Preparation: SharedPreferences for RDP Signal

117 views
Skip to first unread message

Raj D

unread,
Apr 24, 2020, 3:46:43 PM4/24/20
to Google Mobile Ads SDK Developers
I'm implementing compliance with CCPA in our app and have been working off this document:

It describes two methods for enabling the RDP signal: an extras parameter on every ad request and a SharedPreferences setting. I'm wondering if it is necessary to use both methods, or if it is sufficient to just use SharedPreferences. I would prefer not to have to change the ad request code in our MoPub adapter for AdMob. As a follow-up question, with the SharedPreferences option, how do we make sure we are using the correct SharedPreferences object? The example code in that document is just getting the SharedPreferences file for some activity. In our app, we typically use the now-deprecated PreferenceManager.getDefaultSharedPreferences object. Will AdMob check all of these SharedPreference files, or do we need to make sure we're using the correct one?

Thanks in advance for any assistance.

Raj D

unread,
Apr 29, 2020, 7:37:18 PM4/29/20
to Google Mobile Ads SDK Developers
I was hoping someone from Google might have some insights on the questions above.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 29, 2020, 11:25:10 PM4/29/20
to r...@astarsoftware.com, google-adm...@googlegroups.com

Hi Raj,

 

Thank you for reaching out to us.

 

I'm afraid that you will need to use both the extras parameter, as well as the SharedPreferences setting, in order to enable restricted data processing for the AdMob SDK. I would also recommend sticking to the documentation (of using this.getPreferences), since the AdMob SDK checks for SharedPreferences files on relevant activities only (that is, the ones that actually request the ads).

 

Regards,

Ziv Yves Sanchez

Mobile Ads SDK Team



ref:_00D1U1174p._5001UaSw8T:ref
Reply all
Reply to author
Forward
0 new messages