Skip to content
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

Ad failed with error code 0 - onAdFailed error code 499 #15

Open
sametguzeldev opened this issue Jul 29, 2021 · 13 comments
Open

Ad failed with error code 0 - onAdFailed error code 499 #15

sametguzeldev opened this issue Jul 29, 2021 · 13 comments

Comments

@sametguzeldev
Copy link

sametguzeldev commented Jul 29, 2021

Hello.

I am testing your apk on EMUI 8 and Android version 8 tablet that has HMS Core 6.0.0.304.
I am getting Ad failed with error code 0 - onAdFailed error code 499 for all ad types.
It works for EMUI & Android 10 Version but doesn't work below that.
When I check the official page it says EMUI 3.0 or later is enough.
image

Here is the log:
com.huawei.hms.ads.sdk-logcat.txt

Thanks in advance.

@Mike-mei
Copy link
Contributor

Mike-mei commented Jul 29, 2021

It shows that your network failed in your log, requesting ads requires internet access.
20210729-162917(WeLinkPC)

@sametguzeldev
Copy link
Author

I do have a working connection. It did popped up two consent pop ups and I've accepted them. I can make a video recording if needed.

@Mike-mei
Copy link
Contributor

Sure, please provide your video record.

@sametguzeldev
Copy link
Author

sametguzeldev commented Jul 30, 2021

The video was more than 10MB so I could not upload that to here.
Please watch it from here

I show my Wi-Fi settings and I browse through AppGallery at the start to prove that I have an active working internet connection. Then I open the application and you can see the results. I accept two consents but still ad error code 0.

@Mike-mei
Copy link
Contributor

Mike-mei commented Aug 3, 2021

In order to locate your issue quickly, please run the following command to obtain full logs:

  1. adb logcat -v time >d:/hwads.txt
  2. Reproduce the problem scenario.
  3. Press Ctrl + C and copy the log to here

@sametguzeldev
Copy link
Author

Hello there. I will be sending it today!

@sametguzeldev
Copy link
Author

Here are the logs you've requested. hwads.txt

I've done the same steps as the video and only in the app. Tried to load banner and Interstitial Ads.

@Mike-mei
Copy link
Contributor

Mike-mei commented Aug 6, 2021

It shows in your log: countryCode by ro.product.locale.region is:US, is your local area set to the US? The area should be set to other regions except for the US.
Method for setting regions in your phone: settings-> system -> language and input -> language and region -> region

@sametguzeldev
Copy link
Author

Hello again.

I've gone into system > language and input > language. But I don't see anything related to changing the region. I can only change device language. My AppGallery region is set to Turkey.
Screenshot_20210806-100427

I've also used adb shell getprop to see it and as you've said it says it is the US.
image

But I don't know how to change it. I tried to change it with setprop but did not work.

@Mike-mei
Copy link
Contributor

Mike-mei commented Aug 6, 2021

Click the language here then you can see the button to change region.
image

@sametguzeldev
Copy link
Author

sametguzeldev commented Aug 6, 2021

I've already checked that before sending it to you but only has an option to add a language. Currently UK is selected.
Screenshot_20210806-115800

The three dot on the top right corner only offers to "Remove Preferred Language" fyi

@sametguzeldev
Copy link
Author

Any updates on this ? 😄

@Mike-mei
Copy link
Contributor

Please insert a SIM card (except US) into your phone and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants