HMS-Core / hms-ads-demo-java

HUAWEI Ads SDK sample code. HUAWEI Ads SDK provides the banner, native, rewarded, interstitial and splash ad formats for integration.
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/ads-sdk-introduction?ha_source=hms1
Apache License 2.0
57 stars 20 forks source link

No banner ad is shown with "Ad failed to load with error code 0" message #8

Closed 4ntoine closed 3 years ago

4ntoine commented 3 years ago

I've cloned, compiled and launched the demo app on ZTE device with HMS Core 5.0.2.301 (apk) downloaded and installed manually.

I can't see any banner shown, but i can see "Ad failed to load with error code 0" toast instead:

device-2021-01-06-005354

device-2021-01-06-005608

Here is the full log file attached. adkit.log.txt.zip

Let me know if i did anything wrong.

PS. ZTE Blade V8 Android 7.0

chenqiuwei commented 3 years ago

Try to change the country/region in your phone to other countries, don't set to US.

Thanks.

4ntoine commented 3 years ago

@chenqiuwei It did not help - I've tried to set language to "English (UK)" and "French" and got "Ad failed to load with error code 3" in all the cases. Is there anything i can provide to assist resolving it?

chenqiuwei commented 3 years ago

You can use a HUAWEI Phone to test, and if you are connected to a network from US, pls try use VPN to connect to another country. HUAWEI Ads don't advertise to users from US.

Following the development guide: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-dev-process-0000001050064964

Thanks.

4ntoine commented 3 years ago

I thought it does not require Huawei phone, but just any phone with HMS core apk installed. Can you clarify if it is expected to work on non-Huawei devices?

You can use a HUAWEI Phone to test, and if you are connected to a network from US, pls try use VPN to connect to another country. HUAWEI Ads don't advertise to users from US.

Following the development guide:

https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-dev-process-0000001050064964

Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/HMS-Core/hms-ads-demo-java/issues/8#issuecomment-756487249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGOWT6WDMYQYMY4CBAVYATSYZNCRANCNFSM4VWGHAKA .

chenqiuwei commented 3 years ago

Yes. Currently, only Huawei devices are supported.

4ntoine commented 3 years ago

@chenqiuwei thanks for the clarification