ResourceNames ユーティリティは、エンティティに関連するすべての ID がわかっている場合に、エンティティのリソース名を構築する方法です。たとえば、キャンペーンのリソース名は customers/<CUSTOMER_ID>/campaigns/<CAMPAIGN_ID> の形式であるため、お客様 ID とキャンペーン ID がわかれば、ResourceNames ユーティリティを使用して完全なリソース名を作成できます。
$customerId にお客様 ID、$campaignId にキャンペーン ID が含まれている場合は、forCampaign を使用して、次の例のようにキャンペーンのリソース名を取得できます。
[[["わかりやすい","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。"],[[["The `ResourceNames` utility helps build resource names for Google Ads entities using their respective IDs."],["You need to provide the necessary IDs, like customer ID and campaign ID, to construct a specific resource name."],["Each Google Ads entity type has a unique set of IDs required for its resource name, such as ad group criteria needing customer ID, ad group ID, and criterion ID."],["`ResourceNames` offers functions like `forCampaign` to easily generate resource names for specific entities."]]],[]]