目录

interface info
public static interface AdParam.ErrorCode
Ad request result code.

Constant Summary

TypeNameDesc
intINNERInternal error.
intINVALID_REQUESTInvalid ad request due to unspecified ad slot ID or invalid banner ad size.
intNETWORK_ERRORFailed to send an ad request due to a network connection error.
intNO_ADNo ad found.
intAD_LOADINGFailed to request the ad again because it is being loaded.
intLOW_APIAPI version not supported by the HUAWEI Ads SDK.
intBANNER_AD_EXPIREBanner ad expired.
intBANNER_AD_CANCELBanner ad task removed.

Constants

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