Google Ads API で使用されるリソース名は階層構造になっており、Google 広告内のエンティティの組織を反映しています。ほとんどのリソースは Customer リソースのサブリソースです。これは、ほとんどの API 呼び出しで特定の Google 広告アカウントをターゲットに設定する必要があるという事実を反映しています。たとえば、キャンペーン、広告グループ、広告、キーワードはすべて、ルート カスタマー リソースのサブリソースです。
Google 広告のエンティティ(お客様、キャンペーンなど)は、API 全体でリソース名で参照されます。ただし、リソース名自体には、階層内の各オブジェクトを識別する一意の数値のリソース ID が付加される場合があります。このような場合は、リソース名を解析してこれらのリソース ID を抽出し、新しい ID を組み立てると便利です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-02-26 UTC。"],[[["Google Ads API resource names are hierarchical, reflecting the Google Ads account structure, with most resources being sub-resources of the `Customer` resource."],["Resource names contain unique numerical IDs that identify each object within the hierarchy and can be parsed to derive new resource names."],["Resource names are represented by the `resourceName` field in JSON request/response bodies."],["Shared objects, like negative keyword lists, have resource names relative to the account used to access them, differing between manager and client accounts."]]],["The Google Ads API employs a hierarchical structure for resource names, with most resources being sub-resources of the `Customer`. Resource names are relative, using a format like `customers/1234567890/campaigns/8765432109`. Entities are identified by unique numerical resource IDs, extractable from resource names. Shared objects like conversion actions have different resource names depending on the accessing account, reflecting a relative association. API requests and responses use the `resourceName` field.\n"]]