[英]Huawei Ads: check hms sdk available error
I'm trying to implement huawei ads in my app.我正在尝试在我的应用中实施华为广告。
I'm testing on samsung galaxy s7 with HMS Core 5.0.2.301 installed.我正在安装 HMS Core 5.0.2.301 的三星 Galaxy s7 上进行测试。
I've tried running sample from https://github.com/HMS-Core/hms-ads-demo-java我试过从https://github.com/HMS-Core/hms-ads-demo-java运行样本
But I keep getting onRewardAdFailedToLoad error 3 which indicates no ads但我不断收到onRewardAdFailedToLoad 错误 3 ,表示没有广告
Also in logcat I see this line: check hms sdk available error
同样在 logcat 我看到这一行:
check hms sdk available error
What should I do to resolve it?我应该怎么做才能解决它?
LogCat:日志猫:
I/HiAdSDK.LocationUtils: loc_tag sendAsyncLocationByNative failed because switch is off
I/HiAdSDK.LocationUtils: loc_tag isLocationAvailable = false, return null
I/HiAdSDK.Decouple.PPSApiServiceManager: call remote method: reqRewardAd
V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
I/HiAdSDK.Decouple.PPSApiServiceManager: call reqRewardAd code: 200 msg: null
I/HiAdSDK.RewardAdLoader: onAdFailed, errorCode:204
Error Code 3 means the ad request is successful, but the server does not return any available ad asset.错误代码 3 表示广告请求成功,但服务器未返回任何可用的广告资源。 Currently, Huawei Ad Kit supports Huawei devices, please use Huawei phones to test your app.
目前Huawei Ad Kit支持华为设备,请使用华为手机测试您的应用。
If you do not have an Huawei phone, you can use Cloud Debugging of AppGallery Connect to test it.如果您没有华为手机,可以使用AppGallery Connect的云调试进行测试。 Cloud Debugging tests your app using mainstream Huawei devices provided by Huawei.
云调试使用华为提供的主流华为设备测试您的应用。 You can run your app on the latest and most popular Huawei devices to test app functions.
您可以在最新最流行的华为设备上运行您的应用程序来测试应用程序功能。
Please kindly refer to: https://stackoverflow.com/a/63877454/13329100请参考: https://stackoverflow.com/a/63877454/13329100
For more details, see: Error Codes Supported Devices有关详细信息,请参阅: 错误代码支持的设备
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.