Hi Super User,
Thank you for reaching out to us.
Let me answer your questions as best as I can.
please answer below question
1) which point we need to take consent? and
2) when to initialize mobile ads sdk? then
3) need to pass any flag during ads request?
4) what if user click on do not consent button ?
Regards,
|
||||||
Hi Super User,
Thank you for your response. Let me provide additional context with regard to your questions.
2) when to initialize mobile ads sdk , after consent screen or in application class?
For example, on app launch we implemented UMP, then we need to wait for user consent every time to initialize mobile sdk ? or we can call mobile sdk in background during that UMP process.
3) need to pass any flag during ads request?
For example, How to build each AdRequest
if user provide consent or not
//1. Create an ad request.
val adRequest = AdRequest.Builder().build()
OR
//2. Create an ad request with flag for do not consent
Bundle extras = new Bundle();
extras.putString("npa", "1");
AdRequest request = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.build();
4) So, we need to create different AdRequest based on user consent ? or sdk auto manage it to display personalized or non personalized ads ?
This question refers to after implementing UMP for consent.
|
||||||
Hi Super User,
Thank you for your response.
With regard to your question, as long as you show the consent information before requesting any ads it should be fine. But, I would suggest to follow the guide on our developer guide to request it at every app launch, usually on Oncreate activity to avoid any further errors.
Regards,
|
||||||