public enum SharedCriterionField extends Enum<SharedCriterionField> implements EntityField
Enum
to facilitate the selection of fields for SharedCriterion
.Enum Constant and Description |
---|
AppId
A string that uniquely identifies a mobile application to AdWords API.
|
CriteriaType |
DisplayName
Title of this mobile application.
|
Id
ID of this criterion.
|
KeywordMatchType
Match type of this keyword.
|
KeywordText
Text of this keyword (at most 80 characters and ten words).
|
Negative |
PlacementUrl
Url of the placement.
|
SharedSetId |
Modifier and Type | Method and Description |
---|---|
boolean |
isFilterable()
If the field is filterable.
|
static SharedCriterionField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharedCriterionField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final SharedCriterionField AppId
{platform}-{platform_native_id}
", where platform
is "1" for iOS apps and "2" for Android apps, and where platform_native_id
is the mobile application identifier native to the corresponding platform.
For iOS, this native identifier is the 9 digit string that appears at the end of an App Store URL (e.g., "476943146" for "Flood-It! 2" whose App Store link is http://itunes.apple.com/us/app/flood-it!-2/id476943146).
For Android, this native identifier is the application's package name (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link https://play.google.com/store/apps/details?id=com.labpixies.colordrips).
A well formed app id for AdWords API would thus be "1-476943146" for iOS and "2-com.labpixies.colordrips" for Android.public static final SharedCriterionField CriteriaType
public static final SharedCriterionField DisplayName
public static final SharedCriterionField Id
public static final SharedCriterionField KeywordMatchType
public static final SharedCriterionField KeywordText
public static final SharedCriterionField Negative
public static final SharedCriterionField PlacementUrl
For example, "http://www.domain.com".
public static final SharedCriterionField SharedSetId
public static SharedCriterionField[] values()
for (SharedCriterionField c : SharedCriterionField.values()) System.out.println(c);
public static SharedCriterionField valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isFilterable()
EntityField
isFilterable
in interface EntityField
Copyright © 2015. All Rights Reserved.