REST Resource: networks.geoTargets

  • A GeoTarget represents a location in the world for targeting purposes.

  • The GeoTarget resource has several fields providing information about the location, such as name, parent names, display name, region code, type, and whether it's targetable.

  • You can retrieve a specific GeoTarget object using the get method or a list of GeoTarget objects using the list method.

Resource: GeoTarget

Represents a location in the world, for targeting.

JSON representation
{
  "name": string,
  "parentNames": [
    string
  ],
  "displayName": string,
  "canonicalParent": string,
  "regionCode": string,
  "type": string,
  "targetable": boolean
}
Fields
name

string

Identifier. The resource name of the GeoTarget. Format: networks/{networkCode}/geoTargets/{geo_target_id}

parentNames[]

string

Output only. All parents of the geo target ordered by ascending size.

displayName

string

Output only. The display name of the GeoTarget.

canonicalParent

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 canonicalParent would be the name of California and the canonicalParent of California would be the name of United states Format: networks/{networkCode}/geoTargets/{geo_target}

regionCode

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

boolean

Output only. Whether the geo target is targetable.

Methods

get

API to retrieve a GeoTarget object.

list

API to retrieve a list of GeoTarget objects.