capacitor-community / admob

Community plugin for using Google AdMob
MIT License
213 stars 66 forks source link

CORS error during prepare reward Ad #232

Closed solymosiz closed 3 months ago

solymosiz commented 1 year ago

On Android in angular framework, during reward video prepare I run into cors error. Test ads works, sometimes live ads works too, but there are many cases, when this procedure throws android error, which looks like this:

023-03-06 16:49:13.623 29978-29978/? E/Ads: JS: Access to XMLHttpRequest at 'https://...' from origin 'https://googleads.g.doubleclick.net' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute. (https://googleads.g.doubleclick.net/mads/gma?caps=inlineVideo_interactiveVideo...preqs=108&seq_num=109&target_api=32:0)

After some retry I have to wait minutes or hours (i guess too many request from the server).

solymosiz commented 1 year ago

Ads are still not working. Where this error is coming from? How should I handle this kind of errors?

distante commented 3 months ago

Will close for now. If it still happens please share a repo. Looks like a configuration problem in your app. Nothing to do with the plugin.