We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesAds KitAndroid-JavaScriptResult Codes

Result Codes

Expand

Result Code

Value

Description

Solution

ERROR_CODE_SUCCESS

1000

An ad is successfully loaded.

-

ERROR_CODE_PARAMS

1001

Parameter verification failed.

Make sure that all parameters in the ad request are correctly set.

ERROR_CODE_LOW_API

1002

The API version is not supported by Ads Kit.

  • Verify that the HMS Core (APK) version is 6.0.0.300 or later.
  • Verify that the value of minSdkVersion in your app is 21 or later.

ERROR_CODE_EMPTY_AD_ID

1003

The ad unit ID is left empty.

Verify that the ad unit ID has been set.

ERROR_CODE_AD_LOADING

1004

The ad is being loaded and cannot be requested again.

Check whether the ad request is sent repeatedly.

ERROR_CODE_NO_AD

1005

No ad is returned from the server.

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

ERROR_CODE_HTTP_ERROR

1006

HTTP request failed.

Verify that the network connection is normal.

ERROR_CODE_TRIGGER_DISTURB

1007

No ad is returned because the do-not-disturb mode is enabled.

Try to request an ad again later.

ERROR_CODE_BANNER_AD_EXPIRE

1008

The banner ad has expired.

Request the ad again. Do not cache the ad.

ERROR_CODE_BANNER_AD_CANCEL

1009

The banner ad task has been removed.

ERROR_CODE_SERVER_ERROR

1010

Server error.

Verify that the ad unit ID is available.

ERROR_CODE_INNER_ERROR

1011

Internal error.

  • Verify that the HMS Core (APK) version is 6.0.0.300 or later.
  • Verify that the network connection is normal.

ERROR_CODE_SDK_ERROR

1012

Your app has not integrated the Petal Ads API, or the API integrated in your app is of an earlier version.

  • Verify that your app has integrated the Petal Ads API.
  • Verify that the Petal Ads API integrated in your app is of a version later than 13.4.45.300.

ERROR_CODE_AD_CONTAINER_NOT_EXIST

1050

The ad unit container view does not exist.

Verify that the ad unit container has been set in the ad request.

ERROR_CODE_NO_SIZE_FIT

1051

No ad dimensions match the ad unit container view.

Verify that the ad dimensions are set correctly.

ERROR_CODE_NO_AD_DESTROYED

1052

The ad object has been destroyed.

  • Check whether the destroy method has been called to destroy the ad object.
  • Check whether the ad object has been created.

ERROR_CODE_INVALID_CONTAINER

1053

Invalid ad container.

Verify that the ad container is correctly set.

ERROR_CODE_NETWORK_ERROR

1054

Network connection error.

Verify that the network connection is normal.

ERROR_CODE_API_NO_PERMISSION

3004

Not authorized to call this sensitive API.

Sign in to Petal Publisher Center, click My apps in the navigation tree on the left, find your app, and click Settings in the Operation column. On the page displayed, add the corresponding domain name to Domain name trustlist.

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

Search in References
Enter a keyword.