|
||||||
|
||||||
Hello Bastian,
Thank you for reaching out to us.
For us to further investigate this, could you please provide us with a sample app with your implementation of SDK 20.3.0 with targeted V31 via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.
Regards,
|
||||||
Hello Robot,
Thank you for your response.
As far as we know, there is no need for workmanager dependency when using Mobile Ads SDK. But since this is an android requirement, that's why it's probably working when adding the workmanager dependency.
Regards,
|
||||||
|
||||||
Hi Kirill Buriko,
I was unable to replicate this issue. Here is how I modified the AdMob Banner Java sample :
- TargetSdkVersion 31
- Targeted play-services-ads 20.3.0.
- Added androidx.work:work-runtime:2.7.0-beta01
If you could reply back with a minimal sample app or steps to modify the sample app to demonstrating this problem, I will be able to continue troubleshooting this for you.
Hi Robert,
We are unable to replicate this error on our end. Our sample worked without error targeting sdk 31 and the work-runtime 2.7.
Could you try removing ads from your application and seeing if the problem persists?
Thanks, Nick
Hi Robert,
I understand your concern, and will continue to look into a long term solution.
In the interim, is it correct to say that the work around of importing `work-runtime 2.7.0' solves your immediate issue? If not, please feel free to reach out.
Hi Robot Android,
I am glad that adding work-runtime 2.7.0 fixes the problem. I have let the engineering team know about the issue, and they will consider further changes.
If you need additional support, please feel free to reach out.
Hello Bastiaan,
Thank you for reaching out. I understand your concern about implementing a work around in production.
That said, the issue has been reported to engineering and is under review, but I can not give an estimate on to when the solution will be approved and implement.
Please let me know if you run into any further issues.
- Nick
Hello Assaf Cohen,
Thank you for reaching out. I understand your concern.
The issue has been reported to engineering and a fix is in progress.
Please let me know if you run into any further issues,
Hi rootBerz,
Can you please try adding 'work-runtime 2.7.0' implementation to your build.gradle? This solved the issue for the previous publisher, and reason it should work for you as well.
|
Thanks,
Hi Bastian,
That is correct. The fix requires modifying the AndroidManifest.xml by adding the AD_ID declaration. I have included a code sample below for your convenience.
<application> <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/> <!-- Required permissions for GMA SDK version 20.3.0 or lower to work on Android S devices --> <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> </application> </manifest>
Hi Bastiaan,
Yes, this fix is tested and good for production.
Cheers,