Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.AdWords.v201809.LocationGroups Class Reference

Represents a criterion containing a function that when evaluated specifies how to target based on the type of the location. These "location groups" are custom, dynamic bundles of locations (for instance "High income areas in California" or "Airports in France"). More...

Inheritance diagram for Google.Api.Ads.AdWords.v201809.LocationGroups:
Google.Api.Ads.AdWords.v201809.Criterion

Classes

class  Fields
 List of all supported fields for the LocationGroups class. More...
 
class  FilterableFields
 List of all supported filterable fields for the LocationGroups class. More...
 
class  SelectableFields
 List of all supported selectable fields for the LocationGroups class. More...
 

Properties

long feedId [get, set]
 Feed to be used for targeting around locations. This is required for distance targets. This field can be selected using the value "FeedId". More...
 
bool feedIdSpecified [get, set]
 
Function matchingFunction [get, set]
 Matching function to filter out locations targeted by the criteria. This allows advertisers to target based on the semantics of the location. This field can be selected using the value "MatchingFunction". This field is required and should not be More...
 
- Properties inherited from Google.Api.Ads.AdWords.v201809.Criterion
long id [get, set]
 ID of this criterion. This field can be selected using the value "Id".This field can be filtered on. This field is required and should not be More...
 
bool idSpecified [get, set]
 
CriterionType type [get, set]
 This field can be selected using the value "CriteriaType".This field can be filtered on. This field is read only and will be ignored when sent to the API. More...
 
bool typeSpecified [get, set]
 
string CriterionType [get, set]
 Indicates that this instance is a subtype of Criterion. Although this field is returned in the response, it is ignored on input and cannot be selected. Specify xsi:type instead. More...
 

Detailed Description

Represents a criterion containing a function that when evaluated specifies how to target based on the type of the location. These "location groups" are custom, dynamic bundles of locations (for instance "High income areas in California" or "Airports in France").

Examples:

For income demographic targeting, we need to specify the income tier and the geo which it targets. Areas in California that are in the top national income tier can be represented by:

 Function function = new Function(); function.setLhsOperand(Arrays.asList(
(Operand) new IncomeOperand(IncomeTier.TIER_1));
function.setOperator(Operator.AND); function.setRhsOperand(Arrays.asList(
(Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(21137L))));
 

For place of interest targeting, we need to specify the place of interest category and the geo which it targets. Airports in France can be represented by:

  Function function = new Function();
function.setLhsOperand(Arrays.asList( (Operand) new
PlacesOfInterestOperand(PlacesOfInterestOperand.Category.AIRPORT));
function.setOperator(Operator.AND); function.setRhsOperand(Arrays.asList(
(Operand) new GeoTargetOperand(Lists.newArrayList(new CriterionId(2250L))));
 

NOTE: Places of interest and income targeting are read only.

This is disabled for AdX when it is contained within Operators: ADD, SET.

Property Documentation

long Google.Api.Ads.AdWords.v201809.LocationGroups.feedId
getset

Feed to be used for targeting around locations. This is required for distance targets. This field can be selected using the value "FeedId".

bool Google.Api.Ads.AdWords.v201809.LocationGroups.feedIdSpecified
getset

true, if a value is specified for feedId, false otherwise.

Function Google.Api.Ads.AdWords.v201809.LocationGroups.matchingFunction
getset

Matching function to filter out locations targeted by the criteria. This allows advertisers to target based on the semantics of the location. This field can be selected using the value "MatchingFunction". This field is required and should not be

null when it is contained within Operators : ADD.


The documentation for this class was generated from the following file: