সম্পদের নাম
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google Ads API-এ একটি সত্তার অনন্য শনাক্তকারীকে রিসোর্স নাম বলা হয় এবং এটি একটি অনুমানযোগ্য ফর্ম্যাট সহ একটি স্ট্রিং হিসাবে উপস্থাপন করা হয়। আপনি যদি একটি সম্পদ নামের উপাদান উপাদান জানেন, আপনি চূড়ান্ত সম্পদ নাম তৈরি করতে এই ইউটিলিটি ব্যবহার করতে পারেন।
ResourceNames ক্লাস
ResourceNames
ক্লাস হল একটি সত্তার রিসোর্স নাম তৈরি করার একটি উপায় যদি আপনি সেই সত্তার সাথে সম্পর্কিত সমস্ত প্রাসঙ্গিক আইডি জানেন। উদাহরণস্বরূপ, একটি প্রচারাভিযানের সম্পদের নাম বিন্যাসে রয়েছে:
customers/{customer_id}/campaigns/{campaign_id}
সুতরাং আপনি যদি গ্রাহক আইডি এবং প্রচারাভিযানের আইডি জানেন, তাহলে আপনি নিম্নোক্তভাবে সম্পূর্ন রিসোর্স নাম গঠনের জন্য ResourceNames
ক্লাস ব্যবহার করতে পারেন:
String campaignResourceName = ResourceNames.campaign(customerId, campaignId);
আপনি অন্যান্য সত্তার নামও ব্যবহার করতে পারেন, যা সম্পদের নামের চূড়ান্ত রূপের উপর নির্ভর করে বিভিন্ন আইডি নেয়।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Google Ads API uses unique identifiers called resource names to represent entities.\u003c/p\u003e\n"],["\u003cp\u003eResource names follow a predictable format and can be generated using their components.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourceNames\u003c/code\u003e class allows you to construct a resource name using relevant IDs, such as customer ID and campaign ID.\u003c/p\u003e\n"],["\u003cp\u003eUsing entity names like \u003ccode\u003ecampaign\u003c/code\u003e with appropriate IDs in the \u003ccode\u003eResourceNames\u003c/code\u003e class generates the full resource name string.\u003c/p\u003e\n"]]],[],null,["# Resource Names\n\nThe unique identifier for an entity in the Google Ads API is called a resource\nname, and is represented as a string with a predictable format. If you know\nthe constituent components of a resource name, you can use this utility to\ngenerate the final resource name.\n\nResourceNames class\n-------------------\n\nThe `ResourceNames` class is a way to construct the resource name of an entity\nif you know all of the relevant IDs related to that entity. For example, a\ncampaign resource name is in the format: \n\n customers/{customer_id}/campaigns/{campaign_id}\n\nSo if you know the customer ID and the campaign ID, you can use the\n`ResourceNames` class construct the full resource name as follows: \n\n String campaignResourceName = ResourceNames.campaign(customerId, campaignId);\n\nYou can use other entity names as well, which take different IDs depending on\nthe final form of the resource name."]]