new ConsentForm form is not showing

1,907 views
Skip to first unread message

Michal Bukáček

unread,
May 22, 2018, 4:56:35 AM5/22/18
to Google Mobile Ads SDK Developers
Hi,
I can not display dialogue with the consent and handling of personal information and I do not know why, I did not find anything in the log.
I have in AdMob console set only one  Ads provider (Google)

ConsentForm form = new ConsentForm.Builder(context, privacyUrl)
                .withListener(new ConsentFormListener() {
                    @Override
                    public void onConsentFormLoaded() {
                        // Consent form loaded successfully.
                    }

                    @Override
                    public void onConsentFormOpened() {
                        // Consent form was displayed.
                    }

                    @Override
                    public void onConsentFormClosed(
                            ConsentStatus consentStatus, Boolean userPrefersAdFree) {
                        // Consent form was closed.
                    }

                    @Override
                    public void onConsentFormError(String errorDescription) {
                        // Consent form error.
                    }
                })
                .withPersonalizedAdsOption()
                .withNonPersonalizedAdsOption()
                // .withAdFreeOption()
                .build();

                form.load();
                form.show();


in page https://developers.google.com/admob/android/eu-consent is text
The Google-rendered consent form is not supported if any of your publisher IDs use the commonly used set of ad technology providers. Attempting to load the Google-rendered consent form will always fail in this case.

I do not know much what it means but maybe it's a reason, I do not know ..
Thanks Michal

zaid.q...@gmail.com

unread,
May 22, 2018, 5:22:08 AM5/22/18
to google-adm...@googlegroups.com

I noticed there is new functionality in the AdMob console called "EU User Consent" (AdMob>Blocking Controls>EU User Consent).

There is a section on there called "Ad technology Providers". 

There are two choices: (1) Commonly used set of Providers  (2) Custom List of providers.

I think the default option is "Commonly used set of Providers" and it is a list of 200 Ad technology providers. I think I read the Consent SDK fails if
more than 12 is selected and you will have to create your own dialog for this.

I think for Consent sdk selecting the "custom list" and only selecting 12 from that list might work !??!?!

Can someone from the Ad team confirm?

Michal Bukáček

unread,
May 22, 2018, 5:32:08 AM5/22/18
to google-adm...@googlegroups.com
Yes,  I have selected my own list and just one provider (Google) no more and the form will not show up.
Maybe this will work after May 25th :)



Dne úterý 22. května 2018 11:22:08 UTC+2 zaid.q...@gmail.com napsal(a):
Hi Michael

Lee Armstrong

unread,
May 22, 2018, 7:31:50 AM5/22/18
to Google Mobile Ads SDK Developers
I am seeing this too even after just setting one provider.  Not able to show the consent form.

We must be able to test and deploy this before the 25th?

Michal Bukáček

unread,
May 22, 2018, 8:31:07 AM5/22/18
to Google Mobile Ads SDK Developers
I find only one bug with form loading 


E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build:  (I68fa98814b)
                                                                    OpenGL ES Shader Compiler Version: E031.25.03.02
                                                                    Build Date: 08/07/15 Fri
                                                                    Local Branch: 
                                                                    Remote Branch: 
                                                                    Local Patches: 
                                                                    Reconstruct Branch: 






Dne úterý 22. května 2018 11:32:08 UTC+2 Michal Bukáček napsal(a):

mobileadssdk-a...@google.com

unread,
May 22, 2018, 1:35:43 PM5/22/18
to Michal Bukáček, Google Mobile Ads SDK Developers

Hi Michael,

Please refer to this link https://support.google.com/admob/answer/7666519#providers about setting the number of ad providers.

As per this issue - if you have more than 12 ad providers, you cannot use the Google rendered consent form and must implement obtaining consent from the user. Once collected, you can use the setConsentStatus() to set the consent status.

Regards

Sam

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
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/90dd73ee-5199-416a-9910-84aa0d87b0f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

oliver....@erasys.de

unread,
May 23, 2018, 5:24:36 AM5/23/18
to Google Mobile Ads SDK Developers
I'm having the same problem like Lee and Michal: I have only 1 provider selected, but the consent form doesn't show up.

I used iOS, and the "consentform.html" returns "Error: consent form can be used with custom provider selection only."

This happens if the "publisher_consent_type" is not 2. What can I do? 

Giorgos Neokleous

unread,
May 23, 2018, 5:27:32 AM5/23/18
to Google Mobile Ads SDK Developers
Just use custom providers with your selection as Admob if that's the only one you use. After you save these options,wait for an hour and it should be good to go.

oliver....@erasys.de

unread,
May 23, 2018, 5:28:47 AM5/23/18
to Google Mobile Ads SDK Developers
Thanks, I hope the waiting for an hour works :)

oliver....@erasys.de

unread,
May 23, 2018, 6:33:27 AM5/23/18
to Google Mobile Ads SDK Developers
And it did! It works now, thanks for the help.

mobileadssdk-a...@google.com

unread,
May 23, 2018, 11:41:45 AM5/23/18
to oliver....@erasys.de, Google Mobile Ads SDK Developers
Thanks Oliver and Giorgos.

Regards

Sam


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
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.

Ralph Schiffhauer

unread,
May 24, 2018, 9:29:00 AM5/24/18
to Google Mobile Ads SDK Developers
Hi Michael,

you can not call form.show after form.load because form.load is async!
Call form.load in onConsentFormLoaded().

Ralph

Tomas Stubbs

unread,
May 24, 2018, 12:07:13 PM5/24/18
to google-adm...@googlegroups.com
Hi, 
Also having trouble showing the consent form, I first tried it yesterday, and seeing that someone was told to wait an hour after updating custom providers I decided to leave it a while. 

Today I'm still getting errors, I tried putting form.show() after onConsentFormLoaded(), but that method is never called. After calling form.load(), onConsentFormError() is passed this error description "Error: invalid data. Unexpected end of input"

Any ideas on the reason for this? I don't see anyone else getting the same error... I'm passing a valid privacy URL and calling all the builder options (personal and non-personal ads, plus ad free option)

thanks tomas

EDIT: I didn't at first notice an error that's logged just before the error quoted "I/chromium: [INFO:CONSOLE(3)] "The key "viewport-fit" is not recognized and ignored.", source: file:///android_asset/consentform.html (3)"

I should also mention that the call to requestConsentInfoUpdate() on ConsentInformation is also failing, onFailedToUpdateConsentInfo() is triggered but the error description passed is null.

mobileadssdk-a...@google.com

unread,
May 24, 2018, 12:19:57 PM5/24/18
to Tomas Stubbs, Google Mobile Ads SDK Developers
Hi,

Perhaps review this issue - https://github.com/googleads/googleads-consent-sdk-android/issues/11 - as the error seems similar.

Can you check your publisher Id is correct?

Regards

Sam


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/24/18 09:07:13 tomas....@gmail.com wrote:
Hi, 
Also having trouble showing the consent form, I first tried it yesterday, and seeing that someone was told to wait an hour after updating custom providers I decided to leave it a while. 

Today I'm still getting errors, I tried putting form.show() after onConsentFormLoaded(), but that method is never called. After calling form.load(), onConsentFormError() is passed this error description "Error: invalid data. Unexpected end of input"

Any ideas on the reason for this? I don't see anyone else getting the same error... I'm passing a valid privacy URL and calling all the builder options (personal and non-personal ads, plus ad free option)

thanks tomas

--

---
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.

Tomas Stubbs

unread,
May 24, 2018, 12:54:39 PM5/24/18
to Google Mobile Ads SDK Developers
Hi Sam, you are right... I had truncated the app_id to get the publisher_id, but didn't realize the "ca-app-" prefix was not supposed to be there. That fixed the problem with getting the consent information.

Additionally, the post you linked to mentioned having the latest version of the API (1.0.1), updating to that version has also fixed the consent form not showing.

Thanks a lot for your help!
tomas

kozy...@gmail.com

unread,
May 28, 2018, 1:48:13 AM5/28/18
to Google Mobile Ads SDK Developers
I am having trouble showing the consent form, too.

 Error: consent form can be used with custom provider selection only.
on the callback onConsentFormError(String errorDescription)

I use Custom set of ad technology providers


my code is

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

//https://developers.google.com/admob/android/quick-start
MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347511713");
requestConsentInfoUpdate();
}


ConsentForm consentForm;

private void requestConsentInfoUpdate(){
final ConsentInformation consentInformation = ConsentInformation.getInstance(this);
consentInformation.addTestDevice("636D3F99609***************");
consentInformation.setDebugGeography(DebugGeography.DEBUG_GEOGRAPHY_EEA);
String[] publisherIds = {"pub-*************"};
consentInformation.requestConsentInfoUpdate(publisherIds, new ConsentInfoUpdateListener() {
@Override
public void onConsentInfoUpdated(ConsentStatus consentStatus) {
if(consentInformation.isRequestLocationInEeaOrUnknown()) {
switch (consentStatus){
case PERSONALIZED:
case NON_PERSONALIZED:
Log.e("Log", consentStatus.toString());
break;
case UNKNOWN:
default:
consentForm = makeConsentForm(MainActivity.this);
consentForm.load();
break;
}
}
}
@Override
public void onFailedToUpdateConsentInfo(String errorDescription) {
Log.e("Log", errorDescription);
}
});
}

private ConsentForm makeConsentForm(Context context){
URL privacyUrl = null;
try {
privacyUrl = new URL("https://myurl.com/policies/privacy/");
} catch (MalformedURLException e) {
e.printStackTrace();
}
return new ConsentForm.Builder(context, privacyUrl)

.withListener(new ConsentFormListener() {
@Override
public void onConsentFormLoaded() {
                  consentForm.show();
}
@Override
public void onConsentFormOpened() {
}
@Override
public void onConsentFormClosed(ConsentStatus consentStatus, Boolean userPrefersAdFree) {

}
@Override
public void onConsentFormError(String errorDescription) {
                  Log.e("Log", errorDescription);
}
})
.withPersonalizedAdsOption()
.withNonPersonalizedAdsOption()
.withAdFreeOption()
.build();
}

}

It's been more than 24 hours since I first experienced the above errors.

I would appreciate any help or comments.
Thank you for reading my poor English.
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Tihomir RAdeff

unread,
May 29, 2018, 10:16:01 AM5/29/18
to Google Mobile Ads SDK Developers
use form.load();
and the use form.show() in onLoaded();
apparently you should wait the load to finish before showing.

kozy...@gmail.com

unread,
May 29, 2018, 10:53:56 AM5/29/18
to Google Mobile Ads SDK Developers


2018年5月29日火曜日 23時16分01秒 UTC+9 Tihomir RAdeff:
use form.load();
and the use form.show() in onLoaded();
apparently you should wait the load to finish before showing.

 Thank you Tihomir RAdeff.

As I wrote the code in the previous post.

I invoked consentForm.load() in onConsentInfoUpdated.
And I run consentForm.show() in onConsentFormLoaded()

Is it right?

mobileadssdk-a...@google.com

unread,
May 29, 2018, 12:19:02 PM5/29/18
to kozy...@gmail.com, Google Mobile Ads SDK Developers
Hi,

Do you have less than 12 Ad technology providers in your custom list? The consent form will error if you have more than 12.

Regards

Sam


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
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.

kozy...@gmail.com

unread,
May 29, 2018, 12:27:24 PM5/29/18
to Google Mobile Ads SDK Developers


2018年5月30日水曜日 1時19分02秒 UTC+9 mobileadssdk-a...@google.com:
Hi,

Do you have less than 12 Ad technology providers in your custom list? The consent form will error if you have more than 12.

Regards

Sam


Thank you Sam.

I use Custom set of ad technology providers
And only Google selected by default

Can you think of anything else?
Message has been deleted

mobileadssdk-a...@google.com

unread,
May 31, 2018, 3:03:25 PM5/31/18
to 冨永 幸治, google-adm...@googlegroups.com
Hi,

The reason you are getting the full list is that you do not have billing information configured for your account.

This means that no settings from your account are being passed through to the SDK.  You will also not be able to serve any ads for this account.

If you add billing information that should resolve the issue.

Regards

Sam








=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/30/18 20:57:28 kozy...@gmail.com wrote:
Thank you Sam

> Are you providing the correct pub id in the request?
Yes, I double checked.
No white space etc.

pub-5436733609569943

String[] publisherIds = {"pub-5436733609569943"};

Please check my setup.


I am testing the sdk, so I did NOT upload the apk to developer console yet.
And, I referred to the following
https://developers.google.com/admob/android/quick-start
I set
MobileAds.initialize(this, "ca-app-pub-3940256099942544~3347511713");
according to
"Note: If you haven't created an AdMob account and registered an app
yet, now's a great time to do so. If you're just looking to experiment
with the SDK in a Hello World app, though, you can use this App ID to
initialize the SDK: ca-app-pub-3940256099942544~3347511713."

This was cause?

Regard,

Kôzi
kozy...@gmail.com


On 2018/05/31 12:04, mobileadssdk-advisor+support@google.com wrote:
> Ok,
>
> Are you providing the correct pub id in the request?
>
> If you can provide the pub id you are using, I can check the setup for you.
>
> Regards
>
> Sam
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and Google+ page:
> http://googleadsdeveloper.blogspot.com
> https://plus.google.com/115658573333388777174/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 05/30/18 15:44:19 kozy...@gmail.com wrote:
>
> Thank you Sam.
>
> Please look at my screenshot.
> (Sorry for in Japanese)
>
> I am using "Custom set of ad technology providers"
> ("広告技術プロバイダのカスタム グループ" in Japanese)
> And, I did NOT choose any ad technology providers other than Google
> (checked by default)
>
> Of course, I set the publisherIds.
> requestConsentInfoUpdate(publisherIds, ~~~
>
> Am I right?
>
> Regard,
>
> Kôzi
> kozy...@gmail.com
>
> On 2018/05/31 2:41, mobileadssdk-advisor+support@google.com wrote:
> > Hi,
> >
> > According to the response you have, there are too many providers
> for the
> > consent form to show.
> >
> > You need to restrict the number of ad technology providers to 12
> or less
> > in order for the consent form to show.  Please review this article
> > <https://support.google.com/admob/answer/7666519
> <https://support.google.com/admob/answer/7666519>> for help.
> >
> > Regards
> >
> > Sam
> >
> >
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > Also find us on our blog and Google+ page:
> > http://googleadsdeveloper.blogspot.com
> <http://googleadsdeveloper.blogspot.com>
> > https://plus.google.com/115658573333388777174/
> <https://plus.google.com/115658573333388777174/>
> > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> >
> > On 05/29/18 23:19:31 kozy...@gmail.com wrote:
> >
> > Hi, Sam
> >
> > Thank you for your help.
> > Finally CharlesProxy worked on Android 5 and I got a session.
> >
> > I hope you find out what happened.
> >
> > Kôzi
> > kozy...@gmail.com
> >
> > On 2018/05/30 11:36, mobileadssdk-advisor+support@google.com wrote:
> > > Hi,
> > >
> > > I'm sorry that Charles has caused you issues.
> > >
> > > I would suggest using a lower version of Android, eg Android 5,
> > as it
> > > has less restrictions. An article like this
> > >
> >
> <https://medium.com/@hackupstate/using-charles-proxy-to-debug-android-ssl-traffic-e61fc38760f7
> <https://medium.com/@hackupstate/using-charles-proxy-to-debug-android-ssl-traffic-e61fc38760f7>
>
> >
> <https://medium.com/@hackupstate/using-charles-proxy-to-debug-android-ssl-traffic-e61fc38760f7
> <https://medium.com/@hackupstate/using-charles-proxy-to-debug-android-ssl-traffic-e61fc38760f7>>>
>
> >
> > > might help you also.
> > >
> > > Regards
> > >
> > > Sam
> > >
> > >
> > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > Also find us on our blog and Google+ page:
> > > http://googleadsdeveloper.blogspot.com
> <http://googleadsdeveloper.blogspot.com>
> > <http://googleadsdeveloper.blogspot.com
> <http://googleadsdeveloper.blogspot.com>>
> > > https://plus.google.com/115658573333388777174/
> <https://plus.google.com/115658573333388777174/>
> > <https://plus.google.com/115658573333388777174/
> <https://plus.google.com/115658573333388777174/>>
> > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > >
> > > On 05/29/18 14:10:37 kozy...@gmail.com wrote:
> > >
> > > Thank you so much.
> > >
> > > I have been fighting with CharlesProxy for almost 6 hours, but
> I can
> > > not
> > > capture it well.
> > >
> > > It may be caused by testing on Android 7.
> > >
> >
> https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html>
>
> >
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html>>
>
> >
> > >
> >
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html>
>
> >
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html
> <https://android-developers.googleblog.com/2016/07/changes-to-trusted-certificate.html>>>
>
> >
> > >
> > >
> > > I think that it worked on Fiddler 4, so I attach that file.
> > >
> > > Next, I will try it with the emulator of Android 6.
> > >
> > > Thank you for reading my poor English.
> > >
> > > Kôzi
> > > kozy...@gmail.com
> > >
> > > On 2018/05/30 1:34, mobileadssdk-advisor+support@google.com wrote:
> > > > Are you able to capture the network logs using Charles proxy
> > > >
> > >
> >
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/>
>
> >
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/>>
>
> >
> > >
> >
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/>
>
> >
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
> <https://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/>>>> so
>
> >
> > >
> > > > that I can better understand what error you are getting? Please
> > > reply to
> > > > this private email with the logs attached.
> > > >
> > > > Regards
> > > >
> > > > Sam
> > > >
> > > >
> > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > > Also find us on our blog and Google+ page:
> > > > http://googleadsdeveloper.blogspot.com
> > > >
> > > > On 05/29/18 09:27:24 kozy...@gmail.com wrote:
> > > >
> > > >
> > > >
> > > > 2018年5月30日水曜日 1時19分02秒 UTC+9
> > mobileadssdk-a...@google.com:
> > > >
> > > > Hi,
> > > >
> > > > Do you have less than 12 Ad technology providers in your custom
> > > > list? The consent form will error if you have more than 12.
> > > >
> > > > Regards
> > > >
> > > > Sam
> > > >
> > > >
> > > > Thank you Sam.
> > > >
> > > > I use */Custom set of ad technology providers/*
> > > > And only Google selected by default
> > > > //*//*
> > > >
> > > > Can you think of anything else?
> > > >
> > > > --
> > > >
> > > > ---
> > > > 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
> > > >
> > >
> >

Lương Đỗ Xuân

unread,
Jun 1, 2018, 12:05:59 AM6/1/18
to Google Mobile Ads SDK Developers
Hi, you can make it same here:

PACConsentInformation.sharedInstance.requestConsentInfoUpdate(forPublisherIdentifiers: [GlobalConfig.admobPublisherID]) {(_ error: Error?) -> Void in

            if let error = error {

                // Consent info update failed.

            } else {

                // Consent info update succeeded. The shared PACConsentInformation

                // instance has been updated.

                

                if PACConsentInformation.sharedInstance.isRequestLocationInEEAOrUnknown { // check user in EU ?

                    switch PACConsentInformation.sharedInstance.consentStatus {

                    case .personalized: // The user has granted consent for personalized ads.

                        // show personalized ad

                        break

                    case .nonPersonalized: // The user has granted consent for non-personalized ads.

                        // show no-personalized ad

                        break

                    case .unknown: // The user has neither granted nor declined consent for personalized or non-personalized ads.

                        // show consent form

                        guard let privacyUrl = URL(string: "https://www.google.com/about/company/user-consent-policy.html"),

                            let form = PACConsentForm(applicationPrivacyPolicyURL: privacyUrl) else {

                                print("incorrect privacy URL.")

                                return

                        }

                        form.shouldOfferPersonalizedAds = true

                        form.shouldOfferNonPersonalizedAds = true

                        form.shouldOfferAdFree = true

                        form.load {(_ error: Error?) -> Void in

                            self.printD("EU consent Load complete.")

                            if let error = error {

                                // Handle error.

                                self.printD("EU consent Error loading form: \(error.localizedDescription)")

                            } else {

                                // Load successful.

                                form.present(from: self) { (error, userPrefersAdFree) in

                                    if let error = error {

                                        // Handle error.

                                    } else if userPrefersAdFree {

                                        // User prefers to use a paid version of the app.

                                    } else {

                                        // Check the user's consent choice.

                                        let status = PACConsentInformation.sharedInstance.consentStatus

                                    }

                                }

                            }

                        }

                        

                    }

                } else {

                    // default persionalized ad

                    // TODO

kozy...@gmail.com

unread,
Jun 1, 2018, 12:15:33 AM6/1/18
to Google Mobile Ads SDK Developers
Hi Sam

OK, I got it.

Thank you for your help.

Regard,

Kôzi
kozy...@gmail.com

2018年6月1日金曜日 4時03分25秒 UTC+9 mobileadssdk-a...@google.com:

private management

unread,
Jul 7, 2018, 1:45:43 PM7/7/18
to Michal Bukáček, Google Mobile Ads SDK Developers

Do you dont handling personal information?

--

---
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.

private management

unread,
Jul 7, 2018, 1:49:45 PM7/7/18
to Michal Bukáček, Google Mobile Ads SDK Developers

Create a new account by connecting of your main account  the original acount for private account like a anything bank account and personal message for your relatives or your trusted friend  ..and new account thats account for a services and communities thanks.

On May 22, 2018 4:56 PM, "Michal Bukáček" <mic...@bukacek.cz> wrote:
--

mobileadssdk-a...@google.com

unread,
Jul 9, 2018, 1:04:11 PM7/9/18
to private management, Google Mobile Ads SDK Developers, Michal Bukáček

Sorry I'm not sure I understand your question, can you please clarify?


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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