--
---
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.
--
---
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/402fa7a3-e1d4-4e86-bcf9-8b65341b3410%40googlegroups.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
--
---
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/e81929d0-14ee-4d7b-911a-8ca8c0af5bfe%40googlegroups.com.
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();
}
}
use form.load();
and the use form.show() in onLoaded();
apparently you should wait the load to finish before showing.
--
---
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/c20a4ec0-c509-4d32-93af-6cd9665ca858%40googlegroups.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.RegardsSam
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
> <http://googleadsdeveloper.blogspot.com>
> > <http://googleadsdeveloper.blogspot.com
> <http://googleadsdeveloper.blogspot.com>>
> > > <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/>>
> > > <https://plus.google.com/115658573333388777174/
> <https://plus.google.com/115658573333388777174/>
> > <https://plus.google.com/115658573333388777174/
> <https://plus.google.com/115658573333388777174/>>>
> > > > =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> > > >
> > > > 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
> > > > 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/e80543ad-8c69-46a0-a783-00314f76665e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-admob-ads-sdk/e80543ad-8c69-46a0-a783-00314f76665e%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/google-admob-ads-sdk/e80543ad-8c69-46a0-a783-00314f76665e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-admob-ads-sdk/e80543ad-8c69-46a0-a783-00314f76665e%40googlegroups.com>>
>
> >
> > >
> >
> <https://groups.google.com/d/msgid/google-admob-ads-sdk/e80543ad-8c69-46a0-a783-00314f76665e%40googlegroups.com
> <https://groups.google.com/d/msgid/google-admob-ads-sdk/e80543ad-8c69-46a0-a783
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
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/619b1a0b-e17f-4a36-85b8-263cfd6f0b68%40googlegroups.com.
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.
--
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@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/619b1a0b-e17f-4a36-85b8-263cfd6f0b68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
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/CAEOjo-JjMwKToOTs9qFneAyE1zERkyakd7f_gPKWsaGGv9Nb6A%40mail.gmail.com.