rocket Meet
Merchant API - কেনাকাটার জন্য Content API-এর অফিসিয়াল উত্তরসূরি৷
update নতুন মার্চেন্ট এপিআই বৈশিষ্ট্য, বাগ ফিক্স এবং আপডেটের
সর্বশেষ পান ।
add_alert নোট: কেনাকাটার জন্য সামগ্রী API 18 আগস্ট, 2026-এ সূর্যাস্ত হবে।
পরিষেবা অ্যাকাউন্ট
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পরিষেবা অ্যাকাউন্টগুলি হল বিশেষ Google অ্যাকাউন্ট যা অ্যাপ্লিকেশনগুলি দ্বারা OAuth 2.0 এর মাধ্যমে প্রোগ্রাম্যাটিকভাবে Google API অ্যাক্সেস করতে ব্যবহার করা যেতে পারে। একটি পরিষেবা অ্যাকাউন্ট একটি OAuth 2.0 ফ্লো ব্যবহার করে যার জন্য মানুষের অনুমোদনের প্রয়োজন হয় না। পরিবর্তে, এটি একটি কী ফাইল ব্যবহার করে যা শুধুমাত্র আপনার অ্যাপ্লিকেশন অ্যাক্সেস করতে পারে। এই নির্দেশিকা আলোচনা করে যে কীভাবে পরিষেবা অ্যাকাউন্টের সাথে কেনাকাটার জন্য সামগ্রী API অ্যাক্সেস করতে হয়।
দ্রষ্টব্য: প্রমাণীকরণের জন্য পরিষেবা অ্যাকাউন্টগুলি ব্যবহার করে অ্যাপ্লিকেশনগুলি শুধুমাত্র আপনার নিজস্ব বণিক কেন্দ্র অ্যাকাউন্ট অ্যাক্সেস করতে পারে৷ আপনি যদি একটি তৃতীয়-পক্ষের অ্যাপ্লিকেশন লিখছেন যার জন্য আপনার ক্লায়েন্টদের বণিক কেন্দ্রের অ্যাকাউন্টগুলিতে অ্যাক্সেস প্রয়োজন, তাহলে অনুগ্রহ করে এর পরিবর্তে অনুমোদনের অনুরোধ নির্দেশিকা দেখুন৷
পূর্বশর্ত
কেনাকাটার জন্য সামগ্রী API অ্যাক্সেস করতে একটি পরিষেবা অ্যাকাউন্ট ব্যবহার করার পদক্ষেপ
- পরিষেবা অ্যাকাউন্টের শংসাপত্রগুলি তৈরি করুন বা আপনি ইতিমধ্যে তৈরি করেছেন এমন সর্বজনীন শংসাপত্রগুলি অ্যাক্সেস করুন৷ আপনাকে একটি OAuth 2.0 ক্লায়েন্ট আইডি তৈরি করতে হবে এবং একটি *.json ব্যক্তিগত কী ফাইল পেতে হবে:
- Google API কনসোলে যান।
- পৃষ্ঠার শীর্ষে ড্রপ-ডাউন মেনুতে একটি প্রকল্প নির্বাচন করুন। আপনার যদি এখনও একটি না থাকে তবে নতুন প্রকল্পে ক্লিক করে একটি তৈরি করুন।
- আপনি যদি ইতিমধ্যে এই প্রকল্পের জন্য কেনাকাটার জন্য সামগ্রী API সক্ষম না করে থাকেন, তাহলে Google API-এর তালিকায় এটি অনুসন্ধান করুন এবং এটি সক্ষম করুন৷
- বাম দিকে সাইডবারে, শংসাপত্র নির্বাচন করুন। এটি দেখতে আপনাকে উপরের বাম দিকে বাম-পয়েন্টিং তীরটিতে ক্লিক করতে হতে পারে।
- একটি পরিষেবা অ্যাকাউন্ট সেট আপ করতে, শংসাপত্র তৈরি করুন এবং তারপরে পরিষেবা অ্যাকাউন্ট নির্বাচন করুন।
- নতুন পরিষেবা অ্যাকাউন্টের নাম দিন। এটি পরিষেবা অ্যাকাউন্ট আইডির জন্য ডিফল্ট ব্যবহারকারীর নাম হিসাবেও কাজ করে। পরে ব্যবহারের জন্য '@' অক্ষরের পরে অংশ সহ পরিষেবা অ্যাকাউন্ট আইডি রেকর্ড করুন। তৈরি করুন-এ ক্লিক করুন, তারপরে প্রকল্প এবং ব্যবহারকারীদের অ্যাক্সেস দেওয়ার ঐচ্ছিক ধাপগুলি দিয়ে যান এবং সম্পন্ন ক্লিক করুন।
কনটেন্ট এপিআই-এ কী কল করা যেতে পারে তার উপর পরিষেবা অ্যাকাউন্টের ভূমিকার পছন্দের কোনও প্রভাব পড়বে না, কারণ বিষয়বস্তু API পদ্ধতিতে অ্যাক্সেসের পরিবর্তে বণিক কেন্দ্রে পরিষেবা অ্যাকাউন্ট আইডির সাথে যুক্ত ভূমিকা দ্বারা নির্ধারিত হয়। আপনি কি বেছে নেবেন তা নিশ্চিত না হলে, শুধু Project > Viewer বেছে নিন।
- আপনাকে পরিষেবা অ্যাকাউন্ট পৃষ্ঠায় নির্দেশিত করা হবে যেখানে আপনার নতুন পরিষেবা অ্যাকাউন্ট অ্যাক্সেস করা যেতে পারে।
- একটি JSON ব্যক্তিগত কী পেতে, পরিষেবা অ্যাকাউন্টে ক্লিক করুন, তারপর KEYS ট্যাবে। কী যোগ করুন > নতুন কী তৈরি করুন ক্লিক করুন এবং তারপর কী প্রকার হিসাবে JSON নির্বাচন করুন। আপনার কম্পিউটারে ব্যক্তিগত কী ডাউনলোড করতে CREATE এ ক্লিক করুন।
- আপনার Merchant Center অ্যাকাউন্টে ব্যবহারকারী হিসাবে নতুন পরিষেবা অ্যাকাউন্ট যোগ করুন। আপনি যদি তৃতীয় পক্ষের বিকাশকারী হন, তাহলে আপনার ক্লায়েন্টকে আপনার জন্য এই পদক্ষেপটি করতে হবে।
- আপনার Merchant Center অ্যাকাউন্টে যান।
- আপনার মার্চেন্ট সেন্টার অ্যাকাউন্টের সেটিংসে অ্যাকাউন্ট অ্যাক্সেসে যান।
- + ব্যবহারকারী যোগ করুন ক্লিক করুন এবং নতুন ব্যবহারকারীর জন্য ইমেল ঠিকানা হিসাবে পরিষেবা অ্যাকাউন্ট আইডি ব্যবহার করুন।
আপনি যদি আগে পরিষেবা অ্যাকাউন্ট আইডি নোট না নেন, তাহলে পরিষেবা অ্যাকাউন্ট প্রশাসন পৃষ্ঠায় যান এবং আপনার তৈরি করা প্রকল্পটি নির্বাচন করুন।
- পরিষেবা অ্যাকাউন্টের জন্য ব্যবহারকারীর অ্যাক্সেস এবং ইমেল বিজ্ঞপ্তি পছন্দগুলি নির্দিষ্ট করুন৷ মনে রাখবেন যে
Accounts
পরিষেবা ব্যবহারের জন্য অ্যাডমিন অ্যাক্সেসের প্রয়োজন। - পছন্দগুলি সংরক্ষণ করতে এবং ব্যবহারকারীদের তালিকায় ফিরে যেতে ব্যবহারকারী যুক্ত করুন ক্লিক করুন৷ পরিষেবা অ্যাকাউন্ট আইডিটি নির্বাচিত ব্যবহারকারীর ভূমিকার সাথে তালিকাভুক্ত করা উচিত।
- আপনি যোগ করতে চান অন্য সমস্ত পরিষেবা অ্যাকাউন্টগুলির জন্য প্রক্রিয়াটি পুনরাবৃত্তি করুন৷
- এখন আপনি Google অ্যাপ্লিকেশন ডিফল্ট শংসাপত্র ফ্লো ব্যবহার করে বা সরাসরি পরিষেবা অ্যাকাউন্ট প্রবাহ ব্যবহার করে পরিষেবা অ্যাকাউন্ট ব্যবহার করে আপনার বণিক কেন্দ্র অ্যাকাউন্ট অ্যাক্সেস করতে পারেন। কেনাকাটার নমুনার জন্য সামগ্রী API দেখায় যে কীভাবে প্রতিটি সমর্থিত প্রোগ্রামিং ভাষায় পরিষেবা অ্যাকাউন্টের শংসাপত্রের জন্য উভয় প্রবাহ ব্যবহার করতে হয়। আপনার নতুন পরিষেবা অ্যাকাউন্ট ব্যবহার করে দেখতে এবং আপনার নিজের কোডে পরিষেবা অ্যাকাউন্টগুলি ব্যবহার করার জন্য আপনাকে কী পরিবর্তন করতে হবে তা জানতে অনুগ্রহ করে কোডের নমুনাগুলি দেখুন৷
প্রায়শই জিজ্ঞাসিত প্রশ্ন
- আমি কি আমার পরিষেবা অ্যাকাউন্ট দিয়ে বণিক কেন্দ্র UI এ সাইন ইন করতে পারি?
- না, পরিষেবা অ্যাকাউন্টগুলি নিয়মিত Google অ্যাকাউন্ট নয় এবং মার্চেন্ট সেন্টার UI অ্যাক্সেস করতে পারে না।
- কত ঘন ঘন আমার পরিষেবা অ্যাকাউন্ট অ্যাক্সেস টোকেন রিফ্রেশ করতে হবে?
- Google OAuth 2.0 অনুমোদন সার্ভার দ্বারা ইস্যু করার এক ঘন্টা পরে অ্যাক্সেস টোকেনগুলির মেয়াদ শেষ হয়৷ যখন একটি অ্যাক্সেস টোকেনের মেয়াদ শেষ হয়ে যায়, তখন অ্যাপ্লিকেশনটিকে অন্য অ্যাক্সেস টোকেন আনতে ক্লায়েন্ট লাইব্রেরি ব্যবহার করা উচিত।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eService accounts enable applications to programmatically access Google APIs, including the Content API for Shopping, using OAuth 2.0 without human intervention.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize service accounts, you need to generate service account credentials, add the service account as a user in your Merchant Center account, and then access your Merchant Center account using either the Google Application Default Credentials flow or the service account flow.\u003c/p\u003e\n"],["\u003cp\u003eApplications authenticated with service accounts can only access your own Merchant Center account; for third-party applications needing access to client accounts, refer to the Authorizing Requests guide.\u003c/p\u003e\n"],["\u003cp\u003eService accounts cannot be used to sign in to the Merchant Center UI and access tokens expire after one hour, requiring the application to fetch a new one using the client library.\u003c/p\u003e\n"]]],["Service accounts allow applications to access the Content API for Shopping programmatically. Key actions include: generating service account credentials by creating an OAuth 2.0 Client ID and a JSON private key file via the Google API Console, and adding the service account as a user within the Merchant Center account, specifying access and notification preferences. To access the Merchant center, you can use Google Application Default Credentials or a service account flow, with example code available. Access tokens expire hourly, requiring renewal.\n"],null,["# Service accounts are special Google accounts that can be used by\napplications to access Google APIs programmatically via OAuth 2.0. A service\naccount uses an OAuth 2.0 flow that does not require human authorization.\nInstead, it uses a key file that only your application can access. This guide\ndiscusses how to access the Content API for Shopping with service accounts.\n\n**Note:** Applications using service accounts\nfor authentication can only access your own Merchant Center account. If you are\nwriting a third-party application that needs access to your clients' Merchant\nCenter accounts, please see the [Authorizing Requests](/shopping-content/guides/how-tos/authorizing)\nguide instead.\n\nPrerequisites\n-------------\n\n- A [Merchant Center](//merchants.google.com/) account.\n\nSteps to using a service account to access the Content API for Shopping\n-----------------------------------------------------------------------\n\n1. Generate service account credentials or access the public credentials you've already generated. You will need to create an OAuth 2.0 Client ID and obtain a \\*.json private key file:\n 1. Go to the [Google API Console](https://console.cloud.google.com/apis/library).\n 2. Select a project in the drop-down menu at the top of the page. If you do not have one yet, create one by clicking **NEW PROJECT**.\n 3. If you have not already enabled the Content API for Shopping for this project, then search for it in the list of Google APIs and enable it.\n 4. In the sidebar on the left, select **Credentials**. You may need to click the left-pointing arrow at the top left to see this.\n 5. To set up a service account, select **CREATE CREDENTIALS** , and then **Service account** . \n 6. Name the new service account. This also serves as the default username for the service account ID. Record the service account ID, including the part after the '@' character, for later use. Click **CREATE** , then go through the optional steps of granting access to project and users, and click **DONE** .\n\n The choice of role for the service account will not\n have any effect on what calls can be made to the Content API, as access to\n Content API methods is determined instead by the role associated with the\n service account ID in Merchant Center. If you are unsure what to pick, just\n pick **Project \\\u003e Viewer**.\n 7. You will be directed to the Service Accounts page where your new service account can be accessed.\n 8. To obtain a JSON private key, click on the service account, then the **KEYS** tab. Click **ADD KEY \\\u003e Create new key** and then select JSON as the key type. Click **CREATE** to download the private key to your computer.\n2. Add the new service account as a user to your Merchant Center account. If you are a third-party developer, you will need to have your client do this step for you.\n 1. Go to your [Merchant\n Center account](//merchants.google.com/).\n 2. Go to **Account Access** in the settings of your Merchant Center account.\n 3. Click **+ Add user** and use the service account ID as the email address for the new user.\n\n If you did not take note of the\n service account ID earlier, go to the [Service\n Accounts](//console.developers.google.com/iam-admin/serviceaccounts/) administration page and select the project you created.\n 4. Specify the **User access** and **Email notifications** preferences for the service account. Note that the use of the `Accounts` service requires **Admin** access.\n 5. Click **Add user** to save preferences and be returned to the list of users. The service account ID should be listed with the chosen user role.\n 6. Repeat the process for all other service accounts you want to add.\n3. Now you can access your Merchant Center account using the service account either by using the [Google Application\n Default Credentials](/identity/protocols/application-default-credentials) flow or by using the [service account flow](/identity/protocols/OAuth2ServiceAccount) directly. The Content API for Shopping [Samples](/shopping-content/guides/libraries) show how to use both flows for service account credentials in each supported programming language. Please check out the code samples to try out your new service account and to learn what changes you will need to use service accounts in your own code.\n\nFrequently asked questions\n--------------------------\n\nCan I sign in to the Merchant Center UI with my service account?\n: No, service accounts are not regular Google accounts and cannot access the\n Merchant Center UI.\n\nHow often do I need to refresh service account access tokens?\n: Access tokens expire one hour after they are issued by the Google OAuth 2.0\n Authorization Server. When an access token expires, the application should use\n the client library to fetch another access token."]]