Exception reported on several devices. (resource ID may change: #0x2040002, #0x2040003, #0x3040002, #0x3040005)
with 'com.google.android.ads.consent:consent-library:1.0.8'
mConsentForm = new com.google.ads.consent.ConsentForm.Builder(mCurrentActivity, new URL(getResources().getString(R.string.privacy_link)) )
.withListener(new com.google.ads.consent.ConsentFormListener()
{
@Override
public void onConsentFormLoaded()
{
// Consent form has loaded successfully, now show it
mConsentForm.show();
}
@Override
public void onConsentFormOpened()
{
// Consent form was displayed.
}
@Override
public void onConsentFormClosed(
com.google.ads.consent.ConsentStatus consentStatus, Boolean userPrefersAdFree )
{
// [Omissis] Our code...
mConsentForm = null;
}
@Override
public void onConsentFormError( String errorDescription )
{
// Consent form error. Would be nice to have some proper logging
Log.e( TAG, "onConsentFormError: "+errorDescription );
// [Omissis] Our code...
}
})
.withPersonalizedAdsOption()
.withNonPersonalizedAdsOption()
.withAdFreeOption()
.build();
mConsentForm.load();
Exception reported on several devices. (resource ID may change: #0x2040002, #0x2040003, #0x3040002, #0x3040005) with 'com.google.android.ads.consent:consent-library:1.0.8'
Here how ConsentForm is called: