public enum PromotionField extends Enum<PromotionField> implements EntityField
Enum
to facilitate the selection of fields for Promotion
.Enum Constant and Description |
---|
Budget
Monthly budget for this promotion.
|
CallTrackingEnabled
Whether call tracking should be enabled.
|
CampaignIds
IDs of the campaigns associated with this promotion.
|
Creatives
Creatives of this promotion.
|
DestinationUrl
Destination URL to be used for this promotion.
|
Name
Name of this promotion.
|
PhoneNumber
Phone number associated with this promotion.
|
ProductServiceText
Text of the product service.
|
PromotionCriteria
Targeting criteria of this promotion.
|
PromotionId
ID of this promotion.
|
RemainingBudget
Remaining budget for the current month.
|
Status
Status of this promotion.
|
StreetAddressVisible
Whether the street address of the business should be visible.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFilterable()
If the field is filterable.
|
static PromotionField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromotionField[] |
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 PromotionField Budget
public static final PromotionField CallTrackingEnabled
public static final PromotionField CampaignIds
public static final PromotionField Creatives
public static final PromotionField DestinationUrl
public static final PromotionField Name
public static final PromotionField PhoneNumber
public static final PromotionField ProductServiceText
Please note that only Operator.EQUALS
is supported.
public static final PromotionField PromotionCriteria
AdSchedule
BusinessHour
Language
Location
ProductService
Proximity
Please note that Address
is not supported in Proximity
.
Please use GeoPoint
instead.
public static final PromotionField PromotionId
public static final PromotionField RemainingBudget
public static final PromotionField Status
public static final PromotionField StreetAddressVisible
public static PromotionField[] values()
for (PromotionField c : PromotionField.values()) System.out.println(c);
public static PromotionField 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 © 2017. All Rights Reserved.