OAuth পরিষেবা অ্যাকাউন্ট ফ্লো
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পরিষেবা অ্যাকাউন্ট ব্যবহার করে আপনার নিজস্ব শংসাপত্র ব্যবহার করে API অ্যাক্সেসের জন্য OAuth2 কীভাবে সেটআপ করবেন তা এই নির্দেশিকা আপনাকে নিয়ে যাবে। এই পদক্ষেপগুলি শুধুমাত্র একবার করা দরকার, যদি না আপনি আপনার OAuth2 শংসাপত্রগুলি প্রত্যাহার বা মুছে দেন৷
OAuth2 শংসাপত্র তৈরি করুন
লিঙ্ক করা নির্দেশাবলী অনুসরণ করে একটি পরিষেবা অ্যাকাউন্ট আইডি এবং একটি *.JSON ফাইল তৈরি করুন , তারপরে এই পৃষ্ঠায় ফিরে আসুন৷
ক্লায়েন্ট লাইব্রেরি সেট আপ করুন
আপনার কনফিগারেশনে ব্যক্তিগত কী JSON পাথ সেট করুন। আপনি যদি ছদ্মবেশ ব্যবহার করে প্রমাণীকরণ করে থাকেন, তাহলে ব্যবহারকারীকে ছদ্মবেশে সেট করুন।
আপনি যদি একটি ads.properties
ফাইল ব্যবহার করেন, তাহলে নিম্নলিখিতগুলি যোগ করুন:
api.googleads.serviceAccountSecretsPath=PRIVATE_KEY_FILE_PATH
# Only add this key if you are using impersonation.
api.googleads.serviceAccountUser=USER_TO_IMPERSONATE
অতিরিক্ত বিবরণের জন্য কনফিগারেশন গাইড দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis guide explains how to set up OAuth2 for API access using service accounts with your own credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe setup process involves generating a service account ID and a JSON file, and then configuring your client library with the necessary credentials.\u003c/p\u003e\n"],["\u003cp\u003eThis setup needs to be done only once and requires a Google Workspace domain with domain-wide delegation access granted to the service account.\u003c/p\u003e\n"]]],[],null,["# OAuth Service Account Flow\n\nThis guide will walk you through how to setup OAuth2 for API access using your\nown credentials using [service accounts](/google-ads/api/docs/oauth/service-accounts).\nThese steps only need to be done once, unless you revoke or delete your OAuth2\ncredentials.\n\nCreate OAuth2 credentials\n-------------------------\n\n[Generate a **service account ID and a \\*.JSON\nfile**](/google-ads/api/docs/oauth/service-accounts#service_account_access_setup) by\nfollowing the linked instructions, then come back to this page.\n\nSet up client library\n---------------------\n\nSet the private key JSON path in your configuration. If you're [authenticating\nusing impersonation](/google-ads/api/docs/oauth/service-accounts#impersonation), also set the\nuser to impersonate.\n\nIf you're using an `ads.properties` file, add the following: \n\n api.googleads.serviceAccountSecretsPath=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-s\"\u003ePRIVATE_KEY_FILE_PATH\u003c/span\u003e\u003c/var\u003e\n # Only add this key if you are using impersonation.\n api.googleads.serviceAccountUser=\u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-s\"\u003eUSER_TO_IMPERSONATE\u003c/span\u003e\u003c/var\u003e\n\nSee the [configuration guide](/google-ads/api/docs/client-libs/java/config-file) for\nadditional details."]]