Reference documentation and code samples for the Google Ads Ad Manager V1 Client class GeoTarget.
Represents a location in the world, for targeting.
Generated from protobuf message google.ads.admanager.v1.GeoTarget
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the GeoTarget
. Format: networks/{network_code}/geoTargets/{geo_target_id}
↳ display_name
string
Output only. The display name of the GeoTarget.
↳ canonical_parent
string
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}
↳ parent_names
array
Output only. All parents of the geo target ordered by ascending size.
↳ region_code
string
Output only. The Unicode CLDR region code of the geo target.
↳ type
string
Output only. The location type (unlocalized) for this geographical entity.
↳ targetable
bool
Output only. Whether the geo target is targetable.
getName
Identifier. The resource name of the GeoTarget
.
Format: networks/{network_code}/geoTargets/{geo_target_id}
string
setName
Identifier. The resource name of the GeoTarget
.
Format: networks/{network_code}/geoTargets/{geo_target_id}
var
string
$this
getDisplayName
Output only. The display name of the GeoTarget.
string
hasDisplayName
clearDisplayName
setDisplayName
Output only. The display name of the GeoTarget.
var
string
$this
getCanonicalParent
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}
string
hasCanonicalParent
clearCanonicalParent
setCanonicalParent
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}
var
string
$this
getParentNames
Output only. All parents of the geo target ordered by ascending size.
setParentNames
Output only. All parents of the geo target ordered by ascending size.
var
string[]
$this
getRegionCode
Output only. The Unicode CLDR region code of the geo target.
string
hasRegionCode
clearRegionCode
setRegionCode
Output only. The Unicode CLDR region code of the geo target.
var
string
$this
getType
Output only. The location type (unlocalized) for this geographical entity.
string
hasType
clearType
setType
Output only. The location type (unlocalized) for this geographical entity.
var
string
$this
getTargetable
Output only. Whether the geo target is targetable.
bool
hasTargetable
clearTargetable
setTargetable
Output only. Whether the geo target is targetable.
var
bool
$this