注意: 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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-06 UTC。
[null,null,["最終更新日 2025-03-06 UTC。"],[[["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"]]