OAuth পরিষেবা অ্যাকাউন্ট ফ্লো
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পরিষেবা অ্যাকাউন্ট ব্যবহার করে আপনার নিজস্ব শংসাপত্র ব্যবহার করে API অ্যাক্সেসের জন্য OAuth2 কীভাবে সেটআপ করবেন তা এই নির্দেশিকা আপনাকে নিয়ে যাবে। এই পদক্ষেপগুলি শুধুমাত্র একবার করা দরকার, যদি না আপনি আপনার OAuth2 শংসাপত্রগুলি প্রত্যাহার বা মুছে দেন৷
OAuth2 শংসাপত্র তৈরি করুন
লিঙ্ক করা নির্দেশাবলী অনুসরণ করে একটি পরিষেবা অ্যাকাউন্ট আইডি এবং একটি *.JSON ফাইল তৈরি করুন , তারপরে এই পৃষ্ঠায় ফিরে আসুন৷
JSON ফাইলের সাথে ক্লায়েন্ট লাইব্রেরি সেট আপ করুন
আপনার App.config / Web.config
এ নিম্নলিখিত কীগুলি কনফিগার করুন। অতিরিক্ত বিবরণের জন্য কনফিগারেশন গাইড দেখুন।
<add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
<add key="OAuth2SecretsJsonPath" value="INSERT_OAUTH2_SECRETS_JSON_FILE_PATH_HERE" />
<!-- Supply the email address of the user to impersonate if using impersonation. -->
<add key="OAuth2PrnEmail" value="INSERT_OAUTH2_USER_EMAIL_HERE" />
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eThe Google Ads API client library for .NET will no longer support .NET 5.0 starting with version 19.0.0, and upgrading before the end of 2024 is recommended.\u003c/p\u003e\n"],["\u003cp\u003eThis guide explains how to set up OAuth2 for API access using service accounts, requiring a Google Workspace domain and domain-wide delegation access granted to the service account.\u003c/p\u003e\n"],["\u003cp\u003eUsers need to generate a service account ID and JSON file before proceeding with client library configuration.\u003c/p\u003e\n"],["\u003cp\u003eConfiguration involves setting keys in \u003ccode\u003eApp.config\u003c/code\u003e or \u003ccode\u003eWeb.config\u003c/code\u003e, including OAuth2Mode, OAuth2SecretsJsonPath, and OAuth2PrnEmail.\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 with JSON file\n------------------------------------\n\nConfigure the following keys in your `App.config / Web.config`. See the\n[configuration guide](/google-ads/api/docs/client-libs/dotnet/configuration) for additional\ndetails. \n\n \u003cadd key=\"OAuth2Mode\" value=\"SERVICE_ACCOUNT\" /\u003e\n \u003cadd key=\"OAuth2SecretsJsonPath\" value=\"INSERT_OAUTH2_SECRETS_JSON_FILE_PATH_HERE\" /\u003e\n\n \u003c!-- Supply the email address of the user to impersonate if using impersonation. --\u003e\n \u003cadd key=\"OAuth2PrnEmail\" value=\"INSERT_OAUTH2_USER_EMAIL_HERE\" /\u003e"]]