// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.lib.selectorfields.v201609.cm;
import com.google.api.ads.adwords.lib.selectorfields.EntityField;
import com.google.api.ads.adwords.lib.selectorfields.Filterable;
/**
* A {@code Enum} to facilitate the selection of fields for {@code TrafficEstimator}.
*/
public enum TrafficEstimatorField implements EntityField {
// Fields constants definitions
/**
* A string that uniquely identifies a mobile application to AdWords API.
* The format of this string is "<code>{platform}-{platform_native_id}</code>", where <code>platform</code> is "1" for iOS apps and "2" for Android apps, and where <code>platform_native_id</code> 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.
*/
@Filterable
AppId(true),
/**
*
*/
@Filterable
CriteriaType(true),
/**
* Title of this mobile application.
*/
@Filterable
DisplayName(true),
/**
* ID of this criterion.
*/
@Filterable
Id(true),
/**
* Match type of this keyword.
*/
@Filterable
KeywordMatchType(true),
/**
* Text of this keyword (at most 80 characters and ten words).
*/
@Filterable
KeywordText(true),
/**
* ID of this mobile app category.
* A complete list of the available mobile app categories is available <a href="/adwords/api/docs/appendix/mobileappcategories">here</a>.
*/
MobileAppCategoryId(false),
/**
* The category to target or exclude.
* Each subsequent element in the array describes a more specific sub-category.
* For example, <code>{"Pets & Animals", "Pets", "Dogs"}</code> represents the "Pets & Animals/Pets/Dogs" category.
* A complete list of available vertical categories is available <a href="/adwords/api/docs/appendix/verticals">here</a> This field is required and must not be empty.
*/
Path(false),
/**
* Url of the placement.
* <p>For example, "http://www.domain.com".
*/
@Filterable
PlacementUrl(true),
/**
* Id of this user interest.
* This is a required field.
*/
UserInterestId(false),
/**
* Name of this user interest.
*/
UserInterestName(false),
/**
* Parent Id of this user interest.
*/
UserInterestParentId(false),
/**
* Determines whether a user list is eligible for targeting in the display network.
*/
@Filterable
UserListEligibleForDisplay(true),
/**
* Determines whether a user list is eligible for targeting in the google.com (search) network.
*/
@Filterable
UserListEligibleForSearch(true),
/**
* Id of this user list.
* This is a required field.
*/
UserListId(false),
/**
*
*/
@Filterable
UserListMembershipStatus(true),
/**
*
*/
UserListName(false),
/**
* Id of this vertical.
*/
VerticalId(false),
/**
* Id of the parent of this vertical.
*/
VerticalParentId(false),
;
private final boolean isFilterable;
private TrafficEstimatorField(boolean isFilterable) {
this.isFilterable = isFilterable;
}
@Override
public boolean isFilterable() {
return this.isFilterable;
}
}