简体   繁体   English

华为广告:检查 hms sdk 可用错误

[英]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.

相关问题 检查华为移动服务 (HMS) 的可用性 - Check the Huawei Mobile Services (HMS) availability Unity要求接入华为HMS SDK,package名称必须以.HUAWEI结尾 - Unity requires access to Huawei HMS SDK, package name must end with .HUAWEI HMS和华为设备兼容性 - HMS and Huawei devices compatibility getCurrentLocation in Huawei (HMS Location) - getCurrentLocation in Huawei (HMS Location) java.lang.NoClassDefFoundError: 解析失败: Lcom/huawei/hms/ads/identifier/AdvertisingIdClient; - java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/hms/ads/identifier/AdvertisingIdClient; 添加华为套件时出现“Could not find com.huawei.hms:location:6.0.0.302”错误 - Error "Could not find com.huawei.hms:location:6.0.0.302" while adding Huawei Kits 在 GMS 设备上实施了华为全广告 SDK 广告但广告没有出现 为什么? - Implemented the Huawei Full ads SDK Ads on the GMS devices but Ads not coming Why? 无法解决在 gradle 中添加 HMS Huawei repos - Could not resolve in adding HMS Huawei repos in gradle 如何在华为设备上支持HMS应用链接 - How to support app linking on Huawei devices with HMS android 和 gradle 7.0.0 中的华为 HMS 插件冲突 - Conflict with Huawei HMS plugin in android with gradle 7.0.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM