Class GeoTarget
Represents a location in the world, for targeting.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class GeoTarget : IMessage<GeoTarget>, IEquatable<GeoTarget>, IDeepCloneable<GeoTarget>, IBufferMessage, IMessage
Constructors
GeoTarget()
Declaration
public GeoTarget()
GeoTarget(GeoTarget)
Declaration
public GeoTarget(GeoTarget other)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoTarget | other |
Properties
CanonicalParent
Output only. The name of the direct parent that defines the canonical name
of the geo target. For example, if the current geo target is "San
Francisco", its canonical name would be "San Francisco, California, United
States" thus the canonical_parent would be the name of California and the
canonical_parent of California would be the name of United states Format:
networks/{network_code}/geoTargets/{geo_target}
Declaration
public string CanonicalParent { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
CanonicalParentAsGeoTargetName
GeoTargetName-typed view over the CanonicalParent resource name property.
Declaration
public GeoTargetName CanonicalParentAsGeoTargetName { get; set; }
Property Value
| Type | Description |
|---|---|
| GeoTargetName |
DisplayName
Output only. The display name of the GeoTarget.
Declaration
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
GeoTargetName
GeoTargetName-typed view over the Name resource name property.
Declaration
public GeoTargetName GeoTargetName { get; set; }
Property Value
| Type | Description |
|---|---|
| GeoTargetName |
HasCanonicalParent
Gets whether the "canonical_parent" field is set
Declaration
public bool HasCanonicalParent { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDisplayName
Gets whether the "display_name" field is set
Declaration
public bool HasDisplayName { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasRegionCode
Gets whether the "region_code" field is set
Declaration
public bool HasRegionCode { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasTargetable
Gets whether the "targetable" field is set
Declaration
public bool HasTargetable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasType
Gets whether the "type" field is set
Declaration
public bool HasType { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Name
Identifier. The resource name of the GeoTarget.
Format: networks/{network_code}/geoTargets/{geo_target_id}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ParentNames
Output only. All parents of the geo target ordered by ascending size.
Declaration
public RepeatedField<string> ParentNames { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
RegionCode
Output only. The Unicode CLDR region code of the geo target.
Declaration
public string RegionCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Targetable
Output only. Whether the geo target is targetable.
Declaration
public bool Targetable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
Output only. The location type (unlocalized) for this geographical entity.
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |