অ্যাডাপ্টার
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
AdMob API-এর মধ্যস্থতা অ্যাডাপ্টারগুলিকে প্রোগ্রাম্যাটিকভাবে তালিকাভুক্ত করার ক্ষমতা রয়েছে, অতিরিক্ত তথ্যের জন্য accounts.adSources.adapters.list
দেখুন৷ অ্যাডাপ্টারগুলি তৃতীয় পক্ষের অ্যাডাপ্টার কনফিগারেশনের বিবরণ অন্তর্ভুক্ত করে।
উদাহরণ
OAuth 2.0 শংসাপত্র তৈরি করে , আপনি AdMob API ব্যবহার শুরু করতে প্রস্তুত৷ OAuth 2.0 ব্যবহার করে অ্যাক্সেসের অনুরোধ করতে, আপনার অ্যাপ্লিকেশনেরও সুযোগ তথ্যের প্রয়োজন হবে।
এখানে OAuth 2.0 স্কোপের তথ্য রয়েছে:
ব্যাপ্তি | অর্থ |
---|
https://www.googleapis.com/auth/admob.monetization | আপনার AdMob নগদীকরণ সেটিংস দেখুন, তৈরি করুন এবং সম্পাদনা করুন৷ |
https://www.googleapis.com/auth/admob.readonly | সমস্ত AdMob ডেটা দেখুন। এতে অ্যাকাউন্টের তথ্য, ইনভেন্টরি এবং মধ্যস্থতা সেটিংস, প্রতিবেদন এবং অন্যান্য ডেটা অন্তর্ভুক্ত থাকতে পারে। এতে পেমেন্ট বা প্রচারের বিবরণের মতো সংবেদনশীল ডেটা অন্তর্ভুক্ত নয়। |
কার্ল (কমান্ড লাইন)
কার্ল ব্যবহার করে অনুরোধ
ক্লায়েন্ট সিক্রেটস ফাইল লোড করুন এবং অনুমোদনের শংসাপত্র তৈরি করুন।
প্রথমবার যখন আপনি এই পদক্ষেপটি সম্পাদন করেন তখন আপনাকে আপনার ব্রাউজারে একটি অনুমোদন প্রম্পট গ্রহণ করতে বলা হবে। স্বীকার করার আগে, নিশ্চিত করুন যে আপনি একটি Google অ্যাকাউন্ট দিয়ে সাইন ইন করেছেন যেটির AdMob API-এ অ্যাক্সেস রয়েছে৷ আপনার অ্যাপটি বর্তমানে সাইন ইন করা যেকোনো অ্যাকাউন্টের পক্ষ থেকে ডেটা অ্যাক্সেস করার জন্য অনুমোদিত হবে।
প্রমাণীকরণ এবং অনুমোদনের জন্য, আমরা oauth2l ব্যবহার করার পরামর্শ দিই, Google OAuth 2.0 এর সাথে কাজ করার জন্য একটি সাধারণ কমান্ড-লাইন টুল। oauth2l ইনস্টল করুন এবং নীচের কমান্ডটি চালান, path_to_credentials_json একটি credentials.json
ফাইলের পাথ দিয়ে প্রতিস্থাপন করুন যা আপনি আপনার ক্লাউড অ্যাপ্লিকেশন নিবন্ধন করার সময় ডাউনলোড করেন। প্রথম রানের জন্য, কমান্ডটি আপনাকে OAuth 2.0 অনুমোদন প্রবাহের মাধ্যমে নিয়ে যায়। পরবর্তী রান স্বয়ংক্রিয়ভাবে টোকেন রিফ্রেশ করে।
oauth2l header --json path_to_credentials_json --scope admob.readonly
অ্যাডাপ্টারের তালিকা করুন।
আপনার প্রকাশক আইডি দিয়ে pub-XXXXXXXXXXXXXXXX প্রতিস্থাপন করে AdMob অ্যাডাপ্টারের তথ্য পান, কীভাবে আপনার প্রকাশক আইডি খুঁজে পাবেন তা দেখুন।
আগ্রহের অ্যাডাপ্টারের জন্য বিজ্ঞাপন উৎস আইডি দিয়ে SSSSSSSSSSSSSSSSSSSS প্রতিস্থাপন করুন।
অ্যাডাপ্টারের একটি তালিকা পেতে নিম্নলিখিত কমান্ডটি ব্যবহার করুন:
curl --http1.0 -X GET https://admob.googleapis.com/v1beta/accounts/pub-XXXXXXXXXXXXXXXX/adSources/SSSSSSSSSSSSSSSSSSSS/adapters \
-H "$(oauth2l header --json path_to_credentials_json --scope admob.readonly)"
ID 5450213213286189855
সহ AdMob নেটওয়ার্ক বিজ্ঞাপন উত্সের নমুনা প্রতিক্রিয়া :
{
"adapters": [
{
"name": "accounts/pub-XXXXXXXXXXXXXXXX/adSources/5450213213286189855/adapters/1",
"adapterId": "1",
"title": "AdMob Network Android SDK",
"platform": "ANDROID",
"formats": ["BANNER", "INTERSTITIAL",
"REWARDED", "NATIVE", "REWARDED_INTERSTITIAL", "APP_OPEN"],
"adapterConfigMetadata": [{
"adapterConfigMetadataId": "118",
"adapterConfigMetadataLabel": "Ad unit ID"
}]
},
{
"name": "accounts/pub-XXXXXXXXXXXXXXXX/adSources/5450213213286189855/adapters/2",
"adapterId": "2",
"title": "AdMob Network iOS SDK",
"platform": "ANDROID",
"formats": ["BANNER", "INTERSTITIAL",
"REWARDED", "NATIVE", "REWARDED_INTERSTITIAL", "APP_OPEN"],
"adapterConfigMetadata": [{
"adapterConfigMetadataId": "119",
"adapterConfigMetadataLabel": "Ad unit ID"
}]
}]
}
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eThe AdMob API allows programmatic listing of mediation adapters, including details on third-party configurations.\u003c/p\u003e\n"],["\u003cp\u003eTo use the AdMob API, OAuth 2.0 credentials with appropriate scope information (\u003ccode\u003eadmob.monetization\u003c/code\u003e or \u003ccode\u003eadmob.readonly\u003c/code\u003e) are required.\u003c/p\u003e\n"],["\u003cp\u003eYou can utilize \u003ccode\u003ecurl\u003c/code\u003e with OAuth 2.0 authentication to retrieve a list of adapters for a specific AdMob ad source.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides details like adapter name, ID, platform, supported ad formats, and configuration metadata.\u003c/p\u003e\n"]]],["The AdMob API allows programmatic listing of mediation adapters, including third-party configurations. Access requires OAuth 2.0 credentials and specific scopes like `admob.monetization` or `admob.readonly`. To use it with curl, users must first load client secrets and generate authorization credentials, potentially via `oauth2l`. Listing adapters requires the publisher ID and ad source ID in the API request, and will return the adapter information that includes details such as ID, Title, platform, and formats.\n"],null,["# Adapters\n\nThe AdMob API has the ability to list\n[mediation adapters](/admob/api/v1/adapters-reference)\nprogrammatically, see\n[`accounts.adSources.adapters.list`](/admob/api/reference/rest/v1beta/accounts.adSources.adapters/list)\nfor additional information. Adapters include details on third-party adapter\nconfigurations.\n\nExamples\n--------\n\nWith [OAuth 2.0 credentials created](/admob/api/v1/getting-started#credentials),\nyou're ready to start using the AdMob API. To request access using OAuth 2.0,\nyour application will also need the scope information.\n\nHere's the OAuth 2.0 scope information:\n\n\u003cbr /\u003e\n\n| Scope | Meaning |\n|------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `https://www.googleapis.com/auth/admob.monetization` | See, create, and edit your AdMob monetization settings. |\n| `https://www.googleapis.com/auth/admob.readonly` | See all AdMob data. This may include account information, inventory and mediation settings, reports, and other data. This doesn't include sensitive data, such as payments or campaign details. |\n\n\u003cbr /\u003e\n\n### curl (command line)\n\n### Requests using curl\n\n1. Load the [client secrets file](https://console.cloud.google.com/apis/credentials) and generate authorization\n credentials.\n\n The first time you perform this step you'll be asked to accept an\n authorization prompt in your browser. Before accepting, make sure you're\n signed in with a Google Account that has access to the AdMob API. Your\n app will be authorized to access data on behalf of whichever account is\n currently signed in.\n\n For authentication and authorization, we recommend using\n [oauth2l](//github.com/google/oauth2l), a simple command-line tool for\n working with Google OAuth 2.0. Install oauth2l and run the\n command below, replacing \u003cvar translate=\"no\"\u003epath_to_credentials_json\u003c/var\u003e with a path\n to a `credentials.json` file that you download when registering your\n cloud application. For the first run, the command walks you through the\n OAuth 2.0 authorization flow. Subsequent runs refresh the token\n automatically. \n\n ```\n oauth2l header --json path_to_credentials_json --scope admob.readonly\n ```\n2. List the adapters.\n\n Get AdMob adapter information by replacing \u003cvar translate=\"no\"\u003epub-XXXXXXXXXXXXXXXX\u003c/var\u003e\n with your publisher ID, see\n [how to find your publisher ID](//support.google.com/admob/answer/2784578).\n\n Replace \u003cvar translate=\"no\"\u003eSSSSSSSSSSSSSSSSSSSS\u003c/var\u003e with the ad source ID for the\n adapters of interest.\n\n Use the following command to get a list of adapters: \n\n ```\n curl --http1.0 -X GET https://admob.googleapis.com/v1beta/accounts/pub-XXXXXXXXXXXXXXXX/adSources/SSSSSSSSSSSSSSSSSSSS/adapters \\\n -H \"$(oauth2l header --json path_to_credentials_json --scope admob.readonly)\"\n ```\n\n Sample response for the AdMob Network ad source with ID\n `5450213213286189855`: \n\n ```scdoc\n {\n \"adapters\": [\n {\n \"name\": \"accounts/pub-XXXXXXXXXXXXXXXX/adSources/5450213213286189855/adapters/1\",\n \"adapterId\": \"1\",\n \"title\": \"AdMob Network Android SDK\",\n \"platform\": \"ANDROID\",\n \"formats\": [\"BANNER\", \"INTERSTITIAL\",\n \"REWARDED\", \"NATIVE\", \"REWARDED_INTERSTITIAL\", \"APP_OPEN\"],\n \"adapterConfigMetadata\": [{\n \"adapterConfigMetadataId\": \"118\",\n \"adapterConfigMetadataLabel\": \"Ad unit ID\"\n }]\n },\n {\n \"name\": \"accounts/pub-XXXXXXXXXXXXXXXX/adSources/5450213213286189855/adapters/2\",\n \"adapterId\": \"2\",\n \"title\": \"AdMob Network iOS SDK\",\n \"platform\": \"ANDROID\",\n \"formats\": [\"BANNER\", \"INTERSTITIAL\",\n \"REWARDED\", \"NATIVE\", \"REWARDED_INTERSTITIAL\", \"APP_OPEN\"],\n \"adapterConfigMetadata\": [{\n \"adapterConfigMetadataId\": \"119\",\n \"adapterConfigMetadataLabel\": \"Ad unit ID\"\n }]\n }]\n }\n ```"]]