সম্পদের নাম
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ResourceNames ইউটিলিটি হল একটি সত্তার রিসোর্স নাম তৈরি করার একটি উপায় যদি আপনি সেই সত্তার সাথে সম্পর্কিত সমস্ত প্রাসঙ্গিক আইডি জানেন। উদাহরণস্বরূপ, একটি প্রচারাভিযানের সংস্থানের নামটি customers/<CUSTOMER_ID>/campaigns/<CAMPAIGN_ID>
ফর্ম্যাটে রয়েছে, তাই আপনি যদি গ্রাহক আইডি এবং প্রচারাভিযানের আইডি জানেন তবে আপনি সম্পূর্ণ সংস্থান নাম তৈরি করতে ResourceNames
ইউটিলিটি ব্যবহার করতে পারেন৷
যদি $customerId
আপনার কাস্টমার আইডি থাকে এবং $campaignId
আপনার ক্যাম্পেইন আইডি থাকে, তাহলে আপনি forCampaign ব্যবহার করতে পারেন নিচে দেখানো ক্যাম্পেইনের রিসোর্স নাম পেতে:
$campaignResourceName = ResourceNames::forCampaign($customerId, $campaignId)
প্রতিটি সত্তার আলাদা আলাদা আইডি রয়েছে যা রিসোর্স নাম রচনা করে। উদাহরণস্বরূপ, একটি বিজ্ঞাপন গোষ্ঠীর মানদণ্ডের সংস্থান নামের একটি গ্রাহক আইডি, বিজ্ঞাপন গোষ্ঠী আইডি এবং বিজ্ঞাপন গোষ্ঠীর মানদণ্ড আইডি প্রয়োজন৷
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-03 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eResourceNames\u003c/code\u003e utility helps build resource names for Google Ads entities using their respective IDs.\u003c/p\u003e\n"],["\u003cp\u003eYou need to provide the necessary IDs, like customer ID and campaign ID, to construct a specific resource name.\u003c/p\u003e\n"],["\u003cp\u003eEach 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.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourceNames\u003c/code\u003e offers functions like \u003ccode\u003eforCampaign\u003c/code\u003e to easily generate resource names for specific entities.\u003c/p\u003e\n"]]],[],null,["# Resource Names\n\nThe\n[ResourceNames](https://github.com/googleads/google-ads-php/blob/HEAD/src/Google/Ads/GoogleAds/Util/V21/ResourceNames.php)\nutility is a way to construct the resource name of an entity if you know all of\nthe relevant IDs related to that entity. For example, a campaign resource name\nis in the format `customers/\u003cCUSTOMER_ID\u003e/campaigns/\u003cCAMPAIGN_ID\u003e`, so if you\nknow the customer ID and the campaign ID, you can use the `ResourceNames`\nutility to construct the full resource name.\n\nProvided that `$customerId` contains your customer ID and `$campaignId` contains\nyour campaign ID, you can use\n[forCampaign](https://github.com/googleads/google-ads-php/blob/HEAD/src/Google/Ads/GoogleAds/Util/V21/ResourceNames.php#L141)\nto get the resource name of the campaign as shown below: \n\n $campaignResourceName = ResourceNames::forCampaign($customerId, $campaignId)\n\nEach entity has a different set of IDs that composes the resource name. For\ninstance, the resource name of an ad group criterion needs a customer ID, ad\ngroup ID, and ad group criterion ID."]]