[Huawei Developers] muraliameakula:
We recently received a question from a developer outside the Chinese mainland regarding onRewardAdFailedToLoad error 3 that keeps returning when the developer is testing their app's integration with HUAWEI Ads Kit. The developer used a Samsung Galaxy S7, which has HMS Core (APK) 5.0.2.301 installed. This error indicates that no ad is returned during the testing phase. On top of this, they also discovered check hms sdk available error in the logcat logs.

For details about this specific issue, please refer to https://stackoverflow.com/questions/65723806/huawei-ads-check-hms-sdk-available-error.

A solution for this problem is as follows:

First, onRewardAdFailedToLoad error 3 and the returned error code (204) in the developer's logs indicate that an ad request was successfully sent, but the server did not return an ad. According to the developer, a Samsung Galaxy S7 was used for testing. Unfortunately, for HUAWEI Ads Kit, only Huawei devices can currently be used for testing, and for this reason it is advised that the developer uses a Huawei device.

Supported Huawei devices are listed in the figure below. We are committed to optimizing our services to support HUAWEI Ads Kit integration on non-Huawei devices in the near future.

Some of you may ask: Are there any other solutions if no Huawei device is available for testing?

Of course yes. Huawei's Cloud Debugging allows you to test your app on wide range of popular Huawei devices. For details about this, please refer to https://stackoverflow.com/a/63877454/13329100.

Along with error 3, error 499 also frequently occurs if no ad is returned. If this error code is returned, check whether the test device meets the following requirements:

1. The device is a Huawei mobile phone sold outside the Chinese mainland.

2. The device is connected to networks outside the Chinese mainland, excluding the United States.

3. The area in system settings is outside the Chinese mainland.

4. The device time is the current time.

5. The device has the latest version of HMS Core (APK) installed.

6. The device is inserted with a SIM card registered outside the Chinese mainland.

For details about other error codes that are frequently returned during integration with Ads Kit, please refer to Error Codes.

Now that we've proposed solutions for some common error codes that developers may encounter when integrating their apps with the HUAWEI Ads Kit, let's take a look at what HUAWEI Ads Kit is and the capabilities that this kit provides.

Introduction to HUAWEI Ads Kit​

Currently, HUAWEI Ads Kit mainly provides two capabilities: Publisher Service and Identifier Service.

Publisher Service

HUAWEI Ads Publisher Service is a monetization service that leverages Huawei's extensive data capabilities to display targeted, high-quality ad content in your apps to a large audience of Huawei device users.

We offer a range of ad formats so you can choose whichever suits your app best, including banner, native, rewarded, interstitial, splash, and roll ads. You can use the HUAWEI Ads SDK to integrate these ads into your app to bring in revenue using our high-quality advertising services.

We also offer the Publisher Service Reporting API for you to obtain traffic monetization report data, including the number of ad requests, number of returned ads, click-through rate, and impression rate.

Identifier Service

Ads Kit provides the Open Advertising Identifier (OAID) and install referrer capabilities for advertisers to deliver personalized ads and attribute conversions.

An OAID is a non-permanent device identifier. You can use them to provide personalized ads for users while protecting their privacy. In addition, third-party tracking platforms can provide conversion attributions for advertisers based on OAIDs.

You and advertisers can obtain app install referrers through APIs provided by Huawei. Advertisers can use install referrers to attribute conversions to different promotion channels.

Stack Overflow and HMS Core​

As the world's largest technical discussion platform, Stack Overflow is an open platform for developers around the world to raise programming-related questions. You are welcome to post your questions about HMS Core integration in Huawei's own section (https://stackoverflow.com/questions/tagged/huawei-mobile-services) on Stack Overflow.

For more details, please refer to the following links:

HUAWEI Ads Kit official website: https://developer.huawei.com/consumer/en/hms/huawei-adskit?ha_source=hms1

Integration guide to HUAWEI Ads Publisher Service: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/publisher-service-dev-process-0000001050064964

Integration guide to HUAWEI Ads Identifier Service: https://developer.huawei.com/consum...e-dev-process-0000001050064984?ha_source=hms1

Ads Kit client sample code: https://developer.huawei.com/consum...ample-code-0000001050066947-V5?ha_source=hms1

Ads Kit server sample code: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Examples-V5/server-sample-code-0000001056563536-V5

To learn more, please visit:

HUAWEI Developers official website

Development Guide

Reddit to join developer discussions

GitHub or Gitee to download the demo and sample code

Stack Overflow to solve integration problems

Follow our official account for the latest HMS Core-related news and updates.

Original Source