Google Ads API のエンティティの一意の識別子はリソース名と呼ばれ、予測可能な形式の文字列として表されます。リソース名の構成要素がわかっている場合は、このユーティリティを使用して最終的なリソース名を生成できます。
ResourceNames クラス
ResourceNames ユーティリティは、エンティティに関連するすべての ID がわかっている場合に、エンティティのリソース名を構築する方法です。たとえば、キャンペーン リソース名の形式は customers/{customer_id}/campaigns/{campaign_id} です。お客様 ID とキャンペーン ID がわかっている場合は、ResourceNames ユーティリティを使用して、次のように完全なリソース名を作成できます。
[[["わかりやすい","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-06-04 UTC。"],[[["Google Ads API entities are uniquely identified by resource names, which are strings with predictable formats based on their components."],["The `ResourceNames` utility helps construct these resource names when you know the necessary IDs, such as customer and campaign IDs."],["You can use the `ResourceNames` utility with various entity names, providing the corresponding IDs needed for the specific resource name structure."]]],[]]