目录

Result Codes

Result Code

Value

Description

Solution

INNER

0

Internal error.

  1. Verify that the HMS Core (APK) version is 4.0.0.300 or later.
  2. Verify that the network connection is normal.

INVALID_REQUEST

1

Invalid ad request. For example, the ad unit ID is not set or the banner ad dimensions are invalid.

  1. Verify that the ad unit you have applied for has taken effect.
  2. Verify that the app package name in the request is the same as that you used to apply for the ad unit.
  3. Verify that the ad dimensions are set correctly.

NETWORK_ERROR

2

Failed to send the ad request due to a network connection error.

Verify that the network connection is normal.

NO_AD

3

The ad request is sent successfully, but the server returns a response indicating no available ad assets.

Check whether the ad unit ID has taken effect and whether the test device is connected to the correct network. Alternatively, you can contact customer service.

AD_LOADING

4

The ad is being loaded and cannot be requested again.

Check whether the ad request is sent repeatedly.

LOW_API

5

The API version is not supported by Ads Kit.

  1. Verify that the HMS Core (APK) version is 4.0.0.300 or later.
  2. Verify that the value of minSdkVersion in your app is 19 or later.

BANNER_AD_EXPIRE

6

The banner ad has expired.

Request the ad again. Do not cache the ad.

BANNER_AD_CANCEL

7

The banner ad task has been removed.

HMS_NOT_SUPPORT_SET_APP

8

The HMS Core (APK) version does not support the setting of AppInfo.

Update HMS Core (APK) on your device to the latest version.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.