Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Paid AdMob-Plugin: Support for "npa"-Parameter in request extras (GDPR)
Started by bjoern May 17 2018 05:39 AM

11 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 36 posts
  • Corona SDK

Hello,

 

would it be possible to update the (paid) AdMob plugin so that we can use the "npa"-Parameter in the request's extras in order to receive only non-personalized ads from AdMob?

 

Best regards!



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 531 posts
  • Corona SDK

I think they are working on it or it is on the list.



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,714 posts
  • Corona Staff

Google is not letting people use these new features until May 25th. We can't release our plugin early because of this.

 

Rob



[TOPIC: post.html]
#4

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 36 posts
  • Corona SDK

Google is not letting people use these new features until May 25th. We can't release our plugin early because of this.

 

Rob

 

Hi Rob,

the feature I mentioned is actually usable with older AdMob SDKs as well, however, the "npa" parameter seems to have no effect before May 25th.

So I don't see why Corona could not implement the [request registerNetworkExtras: extras] function in its plugin before May 25h?

 

Best regards!



[TOPIC: post.html]
#5

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 189 posts
  • Corona Staff

Hi,

I'm not sure what you meant by "the feature I mentioned is actually usable with older AdMob SDKs as well, however, the "npa" parameter seems to have no effect before May 25th."

As stated on Admob's documentation site:
 

Note: The Consent SDK will be made available by mid-May. The functionality, however, will not take effect until May 25, 2018. Please do not attempt to use these APIs before May 25, because they may disrupt ad serving on your app.

I can highlight this: Please do not attempt to use these APIs before May 25, because they may disrupt ad serving on your app.

Since Corona is providing access to Admob to a large amount of developers and not just implementing SDK to one app, it would be irresponsible for us to go against Google's directions.

Or maybe I don't understand you right? Can you elaborate on this topic?



[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Contributor

  • 531 posts
  • Corona SDK

I can. You don't need the consent SDK for GDPR for google. I don't plan on using it. All I did for my native app on iOS (read non corona app) is add this:

GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = @{@"npa": @"1"};
[request registerAdNetworkExtras:extras];
[_bannerView loadRequest:request];

The code for Android is also very similar although I don't have it handy. This is supported in most recent versions of Admob including the one you are using currently in the plugin.

 

Edit:

Here is the Android Version for Admob:

 

 

Note: The code in this section can be used with any version of the Google Mobile Ads SDK. It can also be used regardless of whether you used the Consent SDK to gather consent.

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 AdRequest object with the following code to specify that only non-personalized ads should be returned:

 
 
Bundle extras = new Bundle();
extras.putString("npa", "1");

AdRequest request = new AdRequest.Builder()
        .addNetworkExtrasBundle(AdMobAdapter.class, extras)
        .build();

 

From the Google documentation the DFP version for iOS:

 

 

Note: The code in this section can be used with any version of the Google Mobile Ads SDK. It can also be used regardless of whether you used the Consent SDK to gather consent.

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 DFPRequest object with the following code to specify that only non-personalized ads should be returned:

 
 
DFPRequest *request = [DFPRequest request];
GADExtras *extras = [[GADExtras alloc] init];
extras.additionalParameters = @{@"npa": @"1"};
[request registerAdNetworkExtras:extras];


[TOPIC: post.html]
#7

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 189 posts
  • Corona Staff

Well then, it's a good news! We'll include the implementation in the next update.

Thanks for the info!



[TOPIC: post.html]
#8

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 36 posts
  • Corona SDK

Well then, it's a good news! We'll include the implementation in the next update.

Thanks for the info!

 

 

Thanks agramonte, this is what I meant.

 

Can you tell if this update will be released early enough for us to update our apps till May 25th?

Because - just to point that out - since there will be no option in AdMob's dashboard to serve only non-personalized ads, this will be the only way for us to make our apps with AdMob compliant till May 25th. Without that option, AdMob will still always serve personalized ads.

 

Best regards!



[TOPIC: post.html]
#9

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 189 posts
  • Corona Staff

We have a really tight schedule, but I'll see what I can do. But isn't it would be better to just wait for Admob consent specific apis to become available to you on 25th and then update your apps accordingly?



[TOPIC: post.html]
#10

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 104 posts
  • Corona SDK

We want to update our apps as soon as possible, before May 25th.

 

If the NPA flag is already available and usable now, adding support for it now gives us the ability to start rolling out updates.

 

In the other forum post you said you had implemented this AdRequest configuration already (https://forums.coronalabs.com/topic/72096-gdpr-compliance/page-6?hl=gdpr).

 

Hence, if it is already implemented, and it works with your current AdMob version, please roll it out. 



[TOPIC: post.html]
#11

karpovpw

[GLOBAL: userInfoPane.html]
karpovpw
  • Contributor

  • 189 posts
  • Corona Staff

Hi perflubron,

As a second thought I can agree that adding this ability earlier should not harm anyone. Will give it more priority on a task system.

Thanks for your feedback, guys.



[TOPIC: post.html]
#12

bjoern

[GLOBAL: userInfoPane.html]
bjoern
  • Enthusiast

  • 36 posts
  • Corona SDK

Hi perflubron,

As a second thought I can agree that adding this ability earlier should not harm anyone. Will give it more priority on a task system.

Thanks for your feedback, guys.

 

So glad to hear this!

 

Best regards!




[topic_controls]
[/topic_controls]