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

Constant-values

com.huawei.hms.ads.ActivateStyle

Expand

Qualifier and Type

Constant Field

Value

public static final int

BOTTOM_BANNER

1

public static final int

CONFIRM_DIALOG

2

com.huawei.hms.ads.AdParam.ErrorCode

Expand

Qualifier and Type

Constant Field

Value

public static final int

INNER

0

public static final int

INVALID_REQUEST

1

public static final int

NETWORK_ERROR

2

public static final int

NO_AD

3

public static final int

AD_LOADING

4

public static final int

LOW_API

5

public static final int

BANNER_AD_EXPIRE

6

public static final int

BANNER_AD_CANCEL

7

public static final int

HMS_NOT_SUPPORT_SET_APP

8

com.huawei.hms.ads.AudioFocusType

Expand

Qualifier and Type

Constant Field

Value

public static final int

GAIN_AUDIO_FOCUS_ALL

0

public static final int

NOT_GAIN_AUDIO_FOCUS_WHEN_MUTE

1

public static final int

NOT_GAIN_AUDIO_FOCUS_ALL

2

com.huawei.hms.ads.ContentClassification

Expand

Qualifier and Type

Constant Field

Value

public static final String

AD_CONTENT_CLASSIFICATION_W

"W"

public static final String

AD_CONTENT_CLASSIFICATION_PI

"PI"

public static final String

AD_CONTENT_CLASSIFICATION_J

"J"

public static final String

AD_CONTENT_CLASSIFICATION_A

"A"

com.huawei.hms.ads.Gender

Expand

Qualifier and Type

Constant Field

Value

public static final int

UNKNOWN

0

public static final int

MALE

1

public static final int

FEMALE

2

com.huawei.hms.ads.NonPersonalizedAd

Expand

Qualifier and Type

Constant Field

Value

public static final int

ALLOW_ALL

0

public static final int

ALLOW_NON_PERSONALIZED

1

com.huawei.hms.ads.TagForChild

Expand

Qualifier and Type

Constant Field

Value

public static final int

TAG_FOR_CHILD_PROTECTION_UNSPECIFIED

-1

public static final int

TAG_FOR_CHILD_PROTECTION_FALSE

0

public static final int

TAG_FOR_CHILD_PROTECTION_TRUE

1

com.huawei.hms.ads.UnderAge

Expand

Qualifier and Type

Constant Field

Value

public static final int

PROMISE_FALSE

0

public static final int

PROMISE_TRUE

1

public static final int

PROMISE_UNSPECIFIED

-1

com.huawei.hms.ads.BannerAdSize

Expand

Qualifier and Type

Constant Field

Value

public static final BannerAdSize

BANNER_SIZE_360_57

new BannerAdSize(360, 57)

public static final BannerAdSize

BANNER_SIZE_360_144

new BannerAdSize(360, 144)

public static final BannerAdSize

BANNER_SIZE_160_600

new BannerAdSize(160, 600)

public static final BannerAdSize

BANNER_SIZE_300_250

new BannerAdSize(300, 250)

public static final BannerAdSize

BANNER_SIZE_320_100

new BannerAdSize(360, 100)

public static final BannerAdSize

BANNER_SIZE_320_50

new BannerAdSize(320, 50)

public static final BannerAdSize

BANNER_SIZE_468_60

new BannerAdSize(468, 60)

public static final BannerAdSize

BANNER_SIZE_728_90

new BannerAdSize(728, 90)

public static final BannerAdSize

BANNER_SIZE_ADVANCED

new BannerAdSize(FULL_WIDTH, ADVANCED_HEIGHT, AdSizeType.ADVANCED)

public static final BannerAdSize

BANNER_SIZE_DYNAMIC

new BannerAdSize(MATCH_PARENT, MATCH_PARENT)

public static final BannerAdSize

BANNER_SIZE_INVALID

new BannerAdSize(0, 0)

public static final BannerAdSize

BANNER_SIZE_SMART

new BannerAdSize(FULL_WIDTH, AUTO_HEIGHT)

com.huawei.hms.ads.nativead.DetailedCreativeType

Expand

Qualifier and Type

Constant Field

Value

public static final int

BIG_IMG

901

public static final int

VIDEO

903

public static final int

THREE_IMG

904

public static final int

SMALL_IMG

905

public static final int

SINGLE_IMG

909

public static final int

SHORT_TEXT

913

public static final int

LONG_TEXT

914

com.huawei.hms.ads.nativead.NativeAdAssetNames

Expand

Qualifier and Type

Constant Field

Value

public static final String

TITLE

"1"

public static final String

CALL_TO_ACTION

"2"

public static final String

ICON

"3"

public static final String

DESC

"4"

public static final String

AD_SOURCE

"5"

public static final String

IMAGE

"8"

public static final String

MEDIA_VIDEO

"10"

public static final String

CHOICES_CONTAINER

"11"

com.huawei.hms.ads.nativead.NativeAdConfiguration.ChoicesPosition

Expand

Qualifier and Type

Constant Field

Value

public static final int

TOP_LEFT

0

public static final int

TOP_RIGHT

1

public static final int

BOTTOM_RIGHT

2

public static final int

BOTTOM_LEFT

3

public static final int

INVISIBLE

4

com.huawei.hms.ads.nativead.NativeAdConfiguration.Direction

Expand

Qualifier and Type

Constant Field

Value

public static final int

ANY

0

public static final int

PORTRAIT

1

public static final int

LANDSCAPE

2

com.huawei.hms.ads.nativead.NativeAdConfiguration.MediaAspect

Expand

Qualifier and Type

Constant Field

Value

public static final int

ASPECT_CUSTOM_SIZE

-1

public static final int

ASPECT_UNKNOWN

0

public static final int

ASPECT_ANY

1

public static final int

ASPECT_LANDSCAPE

2

public static final int

ASPECT_PORTRAIT

3

public static final int

ASPECT_SQUARE

4

com.huawei.hms.ads.reward.RewardAdStatusListener.ErrorCode

Expand

Qualifier and Type

Constant Field

Value

public static final int

INTERNAL

0

public static final int

REUSED

1

public static final int

NOT_LOADED

2

public static final int

BACKGROUND

3

com.huawei.hms.ads.vast.openalliance.ad.beans.parameter.RequestOptions

Expand

Qualifier and Type

Constant Field

Value

public static final String

AD_CONTENT_CLASSIFICATION_W

"W"

public static final String

AD_CONTENT_CLASSIFICATION_PI

"PI"

public static final String

AD_CONTENT_CLASSIFICATION_J

"J"

public static final String

AD_CONTENT_CLASSIFICATION_A

"A"

public static final int

TAG_FOR_CHILD_PROTECTION_UNSPECIFIED

-1

public static final int

TAG_FOR_CHILD_PROTECTION_FALSE

0

public static final int

TAG_FOR_CHILD_PROTECTION_TRUE

1

public static final int

TAG_FOR_UNDER_AGE_OF_PROMISE_FALSE

-1

public static final int

TAG_FOR_UNDER_AGE_OF_PROMISE_TRUE

0

public static final int

TAG_FOR_UNDER_AGE_OF_PROMISE_UNSPECIFIED

1

com.huawei.hms.ads.vast.openalliance.ad.constant.NonPersonalizedAd

Expand

Qualifier and Type

Constant Field

Value

public static final int

PERSONALIZED

0

public static final int

NON_PERSONALIZED

1

IsQueryUseEnabled

Whether search keywords can be used.

Expand

Attribute

Value

Description

QUERY_USE_ENABLED

1

Search keywords can be used.

QUERY_USE_DISABLED

0

Search keywords cannot be used.