注意:您正在查看 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 |
指定地理區域常數已過時,即將遭到移除。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-03-06 (世界標準時間)。
[null,null,["上次更新時間: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"]]