| interface info |
| public static interface AdParam.ErrorCode |
| Ad request result code. |
| Type | Name | Desc |
| int | INNER | Internal error. |
| int | INVALID_REQUEST | Invalid ad request due to unspecified ad slot ID or invalid banner ad size. |
| int | NETWORK_ERROR | Failed to send an ad request due to a network connection error. |
| int | NO_AD | No ad found. |
| int | AD_LOADING | Failed to request the ad again because it is being loaded. |
| int | LOW_API | API version not supported by the HUAWEI Ads SDK. |
| int | BANNER_AD_EXPIRE | Banner ad expired. |
| int | BANNER_AD_CANCEL | Banner ad task removed. |
| Constant |
| public static final int INNER |
Internal error. For example, an invalid response is received from the ad server. Constant value: 0 |
| Constant |
| public static final int INVALID_REQUEST |
Invalid ad request. For example, the ad slot ID is not set or the banner ad size is invalid. Constant value: 1 |
| Constant |
| public static final int NETWORK_ERROR |
Failed to send an ad request due to a network connection error. Constant value: 2 |
| Constant |
| public static final int NO_AD |
The ad request is sent successfully. However, no ad is returned due to a lack of ad resources. Constant value: 3 |
| Constant |
| public static final int AD_LOADING |
Failed to request the ad again because it is being loaded. Constant value: 4 |
| Constant |
| public static final int LOW_API |
API version not supported by the HUAWEI Ads SDK. Constant value: 5 |
| Constant |
| public static final int BANNER_AD_EXPIRE |
Banner ad expired. Constant value: 6 |
| Constant |
| public static final int BANNER_AD_CANCEL |
Banner ad task removed. Constant value: 7 |