-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load fail event is not triggered #30
Comments
responseInfo has object{}, array[], string“”, (), / in logcat android studio it will look fine, but when executed by cWebView, it will not be like logcat, it has to be handled in detail. it's pretty easy using the 'com.google.code.gson:gson:2.10.1' implementation but the 300-400 kb jar will add up. Otherwise it should all be handled carefully. |
fix event #30 on.banner.failed.load on.appOpenAd.failed.loaded on.interstitial.failed.load on.rewardedInt.failed.load
Users should use their own methods
document.addEventListener('on.interstitialAd.responseInfo', (data) => {
}); If there is free time, I will create a function to handle Cleansing data from unnecessary or invalid characters it's simply from the document.addEventListener('on.interstitialAd.responseInfo block |
This is not a javascript side problem, while we calling the javascript method from java(kotlin) code, so we have to handle it from java(kotlin) code. The above mentioned code is kotlin |
sorry I only fixed Load fail event is not triggered I tested the method you suggested doesn't work on a real device.
|
No, I'm not tested . Did you understand the error?
|
I tested several times with the original adUnitId, everything was fine. I don't get any error
https://groups.google.com/g/google-admob-ads-sdk/c/T7uNaa7AoFo |
This issue is not related to that. Whenever call the javascript methode from kotlin with the error details as a parameter this issue is occurring. I think it is easy to solve, I will check and let you know the status. |
@EMI-INDO Great, this issue has been resolved. |
loadAdError responseInfo get obj val Escape character issue: #30 - code - message - domain - responseInfoId - responseInfoExtras - responseInfoAdapter - responseInfoMediationAdapterClassName - responseInfoAdapterResponses
I have seen this issue before, but I am not concerned about it due to some other testing on this plugin.
Ad load error, return the following errors
cordova.fireDocumentEvent('on.appOpenAd.failed.loaded, {"responseInfo":"{\n \"Response ID\": \"null\",\n \"Mediation Adapter Class Name\": \"\",\n \"Adapter Responses\": [],\n \"Response Extras\": {}\n}","code":3,"message":"Ad unit doesn't match format. <https:\/\/support.google.com\/admob\/answer\/9905175#4>","domain":"com.google.android.gms.ads","cause":"null"}');
Escape character issue, you can just copy the above code and paste it to the VSC in .js file.
The same thing I was seen for interstitial ads too, I think the same issue is existing in banner and other ads too.
"javascript:cordova.fireDocumentEvent('on.interstitial.failed.load', ${errorData});"
"javascript:cordova.fireDocumentEvent('on.interstitialAd.responseInfo', ${result});"
"javascript:cordova.fireDocumentEvent('on.appOpenAd.failed.loaded, ${errorData}');"
"javascript:cordova.fireDocumentEvent('on.interstitial.revenue', ${result});"
....
....
....
and etc.. places. Please fix this
I just get this from chatGPT, please check and update it
The text was updated successfully, but these errors were encountered: