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

Ad load failed with error code: 3 #16

Open Kogerro opened 2 years ago

Kogerro commented 2 years ago

Hi,

I have problems with displaying of Native, Reward and Interstitial Ads - all of them return "Ad load failed with error code: 3", meaning "No ad found".

Logcat states: "HiAdSDK.InterstitialAdManager: onAdFailed, errorCode:204 "

I understand, that there may be no regular ads available, however those are test ads that I would expect to be always ready, for testing purposes. Is there any way to have a reliable source of test ads for, well, testing?

Mike-mei commented 2 years ago

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

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

DanteLiu1996 commented 2 years ago

hwads.txt

Xuejiao-Shi commented 2 years ago

@DanteLiu1996 您好,根据日志分析,当前时间是2022年5月7日,您在请求的时候,携带的时间是2022-05-09,广告任务在未来的这个时间不一定会投放,就不会有广告返回。请调整测试设备的系统时间后重试。 image

DanteLiu1996 commented 2 years ago

谢谢,问题已解决

@.> 时间: 2022年5月7日 (周六) 17:57 主题: [External] Re: [HMS-Core/hms-ads-demo-java] Ad load failed with error code: 3 (#16) @.> @.>, @.

@DanteLiu1996 https://github.com/DanteLiu1996 您好,从日志来看当前时间不对。 [image: image] https://user-images.githubusercontent.com/99166105/167249278-cfe8aec4-a04b-4923-aa72-c56629bdffcd.png [image: image] https://user-images.githubusercontent.com/99166105/167249285-33294f13-9598-49bb-a7ee-5e1a71ba80be.png 请调整测试设备的系统时间后重试。

— Reply to this email directly, view it on GitHub https://github.com/HMS-Core/hms-ads-demo-java/issues/16#issuecomment-1120178784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVZNPRXW7SXLEFS66DCWKITVIY5ADANCNFSM5ECBYFLQ . You are receiving this because you were mentioned.Message ID: @.***>

DanteLiu1996 commented 2 years ago

hwads.txt 又出现了类似的错误码,但是这次时间是同步的,设备型号是mate 40 pro+

Xuejiao-Shi commented 2 years ago

您好,感谢您的反馈,经确认您使用的是HUAWEI Mate 40 RS保时捷设计,广告在这个高端机型上不返回,请更换其他机型后重新尝试。

DanteLiu1996 commented 2 years ago

谢谢

@.> 时间: 2022年5月10日 (周二) 13:59 主题: [External] Re: [HMS-Core/hms-ads-demo-java] Ad load failed with error code: 3 (#16) @.> @.>, @.

您好,感谢您的反馈,经确认您使用的是HUAWEI Mate 40 RS保时捷设计,广告在这个高端机型上不返回,请更换其他机型后重新尝试。

— Reply to this email directly, view it on GitHub https://github.com/HMS-Core/hms-ads-demo-java/issues/16#issuecomment-1121962691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVZNPRX6C5EY4IGZ47QH7RLVJH3KZANCNFSM5ECBYFLQ . You are receiving this because you were mentioned.Message ID: @.***>