目录

AdParam.ErrorCode

Interface Info

public static interface AdParam.ErrorCode

Result codes to ad requests.

Public Field Summary

Qualifier and Type

Field and Description

static final int

INNER

Internal error.

static final int

INVALID_REQUEST

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

static final int

NETWORK_ERROR

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

static final int

NO_AD

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

static final int

AD_LOADING

The ad is being loaded and cannot be requested again.

static final int

LOW_API

The API version is not supported by HUAWEI Ads Kit.

static final int

BANNER_AD_EXPIRE

The banner ad has expired.

static final int

BANNER_AD_CANCEL

The banner ad task is removed.

static final int

HMS_NOT_SUPPORT_SET_APP

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

Public Fields

[h2]INNER

Fields

public static final int INNER

Internal error. For example, an invalid response is received from the ad server.

For details, please refer to Constant-values.

[h2]INVALID_REQUEST

Fields

public static final int INVALID_REQUEST

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

For details, please refer to Constant-values.

[h2]NETWORK_ERROR

Fields

public static final int NETWORK_ERROR

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

For details, please refer to Constant-values.

[h2]NO_AD

Fields

public static final int NO_AD

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

For details, please refer to Constant-values.

[h2]AD_LOADING

Fields

public static final int AD_LOADING

The ad is being loaded and cannot be requested again.

For details, please refer to Constant-values.

[h2]LOW_API

Fields

public static final int LOW_API

The API version is not supported by HUAWEI Ads Kit.

For details, please refer to Constant-values.

[h2]BANNER_AD_EXPIRE

Fields

public static final int BANNER_AD_EXPIRE

The banner ad has expired.

For details, please refer to Constant-values.

[h2]BANNER_AD_CANCEL

Fields

public static final int BANNER_AD_CANCEL

The banner ad task is removed.

For details, please refer to Constant-values.

[h2]HMS_NOT_SUPPORT_SET_APP

Fields

public static final int HMS_NOT_SUPPORT_SET_APP

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

For details, please refer to Constant-values.