How to modify AdMob SDK code to make it always show non-personalized ads only?

477 views
Skip to first unread message

Martin

unread,
May 31, 2018, 5:21:18 AM5/31/18
to google-adm...@googlegroups.com
Hello,

I do not want to use the Consent SDK to ask users whether they want to see personalized or non-personalized ads. Instead I want to be even safer and show my own custom consent message and always show non-personalized ads only. I don't even want to give users the option to allow personalized ads. Only non-personalized ads should be shown in any case.

How exactly do I have to alter the AdMob SDK code in this case to make it show only non-personalized ads by default for everyone?

Which code changes exactly need to be made to the iOS AdMob SDK implementation to always show non-personalized ads only by default without using the Consent SDK?

Also is there any way to verify whether an app is really serving non-personalized only?

Thank you so much!

mobileadssdk-a...@google.com

unread,
May 31, 2018, 2:52:17 PM5/31/18
to Martin, Google Mobile Ads SDK Developers
Hi Martin,

Thanks for reaching out to us. The default behavior of the Google Mobile Ads SDK is to serve personalized ads. If a user has consented to receive only non-personalized ads, you can configure an GADRequest object with this code to specify that only non-personalized ads should be returned.  You would have to just add the "npa" extra with a value of "1" to each ad request.

Let me know if you have any other questions on this.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/31/18 05:21:18 martin.b...@io-marketing.de wrote:
Hello,

I don't want to use the Consent SDK to ask users whether they want to see personalized or non-personalized ads. Instead I want to be even safer and show my own custom consent message and always show non-personalized ads only.


How exactly do I have to alter the AdMob SDK code in this case to make it show only non-personalized ads by default for everyone?

Which code changes exactly need to be made to the iOS AdMob SDK implementation to always show non-personalized ads only by default without using the Consent SDK?

Thank you so much!

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/075bd4e9-e7d2-4e7d-b16f-28c602d32ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin

unread,
Jun 1, 2018, 5:58:50 AM6/1/18
to Google Mobile Ads SDK Developers
Hi Deepika,

Thank you so much.

Can this "npa" setting and the value also be seen in Xcode's console and device logs when I connect a device to Xcode and open any app that uses AdMob?

Thanks,
Martin

mobileadssdk-a...@google.com

unread,
Jun 1, 2018, 2:11:56 PM6/1/18
to Martin, Google Mobile Ads SDK Developers
Hi Martin,

Currently, the SDK does not provide any API to get this logged via Xcode. You would be able to notice the key being passed if you use a network tool like Charles Proxy but not via the SDK.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages