注意:您正在查看 API 的 REST 接口的文档。我们的大多数官方客户端库都使用 gRPC。如需了解详情,请参阅
REST 简介。
GeoTargetConstant
JSON 表示法 |
{
"resourceName": string,
"status": enum (GeoTargetConstantStatus ),
"id": string,
"name": string,
"countryCode": string,
"targetType": string,
"canonicalName": string,
"parentGeoTarget": string
} |
字段 |
resourceName |
string
仅限输出。地理位置定位常量的资源名称。地理位置定位常量资源名称采用以下格式: geoTargetConstants/{geo_target_constant_id}
|
status |
enum (GeoTargetConstantStatus )
仅限输出。地理位置定位常量状态。
|
id |
string (int64 format)
仅限输出。地理位置定位常量的 ID。
|
name |
string
仅限输出。地理位置定位常量英文名称。
|
countryCode |
string
仅限输出。与定位相关联的 ISO-3166-1 alpha-2 国家/地区代码。
|
targetType |
string
仅限输出。地理位置定位常量目标类型。
|
canonicalName |
string
仅限输出。完全限定的英文名称,包括定位的名称及其父级和国家/地区的名称。
|
parentGeoTarget |
string
仅限输出。父级地理位置定位常量的资源名称。地理位置定位常量资源名称采用以下格式: geoTargetConstants/{parent_geo_target_constant_id}
|
GeoTargetConstantStatus
枚举 |
UNSPECIFIED |
未指定值。 |
UNKNOWN |
接收的值在此版本中未知。 这是一个仅用于响应的值。 |
ENABLED |
目标地理区域常量有效。 |
REMOVAL_PLANNED |
地理位置定位常量已过时,并将被移除。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-06。
[null,null,["最后更新时间 (UTC):2025-03-06。"],[[["This documentation details the `GeoTargetConstant` resource, which represents a geographical location that can be targeted in Google Ads campaigns."],["It provides a JSON representation outlining the structure and data fields, including resource name, status, ID, name, country code, target type, canonical name, and parent location."],["The `GeoTargetConstantStatus` enum describes the possible states of a geo target constant: `UNSPECIFIED`, `UNKNOWN`, `ENABLED`, and `REMOVAL_PLANNED`."],["Developers can utilize this information to programmatically interact with and manage geo targets in their advertising campaigns."]]],["This document details the structure and fields of a geo target constant, used for geographical targeting. It defines the constant's `resourceName`, `status`, `id`, `name`, `countryCode`, `targetType`, `canonicalName`, and `parentGeoTarget`. The `status` field indicates the constant's validity, with possible values like `ENABLED` or `REMOVAL_PLANNED`. The document also shows the representation of a JSON geo target constant with the correct fields.\n"]]