目录

Ads Kit Framework Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

21800001 System Error

Message

System internal error.

Description

This error code is reported when a system error occurs.

Possible causes

Failed to connect to Ads Kit.

Solution

1. Restart the device and try again.

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

21800003 Ad Loading Failed

Message

Failed to load the ad request.

Description

Ad loading failed.

Possible causes

1. The network is abnormal.

2. The ad request parameters are incorrect.

3. The server does not have any suitable ads to display.

Solution

1. Check the network status.

2. Check whether the ad request parameters meet the requirements based on the API reference.

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

21800004 Ad Display Failed

Message

Failed to display the ad.

Description

Failed to display the ad.

Possible causes

The network is abnormal.

Solution

Check the network status.

21800005 Failed to Parse Ad Data

Message

Failed to parse the ad response.

Description

Failed to parse ad data.

Possible causes

Ad response data lacks key attributes or contains structural errors.

Solution

Check the ad response data.

401 Invalid Ad Request Parameters

Message

Invalid input parameter. Possible causes: 1. Mandatory parameters are left unspecified.

2. Incorrect parameter types. 3. Parameter verification failed.

Description

Invalid ad request parameters.

Possible causes

The ad request parameters written by the app are invalid.

Solution

Check whether the ad request parameters are valid by referring to the development guide.

801 Error Code Returned When an Ad Is Requested

Message

Device not supported.

Description

This error code is reported when the device supports the target SysCap but does not support a specific API.

Possible causes

The device does not support this API.

Solution

Check whether the device supports this API.