با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
AdMob API برای توسعه دهندگانی طراحی شده است که ناشران و اشخاص ثالث را نمایندگی می کنند. اشخاص ثالث کاربران مستقیم AdMob نیستند، در عوض، خدمات یا ادغام هایی را با AdMob برای مشتریان خود که مشتریان AdMob هستند ایجاد می کنند. این راهنما اصول ادغام شخص ثالث را با ارائه بهترین شیوه ها، نکات و ترفندها پوشش می دهد.
این راهنما فرض میکند که شما از AdMob API دانش کافی دارید. اگر با AdMob API آشنا نیستید، لطفاً به مستندات شروع ما مراجعه کنید.
شروع به عنوان یک شخص ثالث
برای استفاده از AdMob API برای دسترسی به دادههای ناشر AdMob، دستورالعملهای زیر را دنبال کنید. هیچ تأییدیه اضافی از طرف Google مورد نیاز نیست، هرچند توجه داشته باشید که با استفاده از AdMob API، با شرایط و ضوابط AdMob API موافقت می کنید.
احراز هویت: نحوه دسترسی صحیح به داده های AdMob مشتری
برای اینکه برنامه شما به داده های AdMob مشتری شما دسترسی پیدا کند، باید گردش کار احراز هویت خود را به روشی ایمن تنظیم کنید.
اکنون میتوانید با استفاده از مثالهایی در جاوا ، PHP ، پایتون یا کرل ، تماسهای API را با حساب AdMob مشتری خود شروع کنید.
با API به روز باشید
مهم است که در مورد نسخههای API منسوخ یا غروب آفتاب و زمان انتشار نسخههای جدید بهروز باشید. توصیه می کنیم برای دریافت اطلاعیه ها در وبلاگ توسعه دهنده تبلیغات مشترک شوید.
تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eRetrieves information about a specific AdMob publisher account using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the publisher account's resource name as a path parameter in the request URL.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003ePublisherAccount\u003c/code\u003e object containing account details upon successful execution.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes, such as \u003ccode\u003eadmob.readonly\u003c/code\u003e or \u003ccode\u003eadmob.report\u003c/code\u003e, for access.\u003c/p\u003e\n"]]],["Third-party developers integrating with the AdMob API must first have a Google Account and understand REST and OAuth 2.0. Authorization is required to access client data. Developers should complete the authorization setup, generating a client ID, particularly for web applications. Developers can then make API calls using various languages and stay informed about API updates via the Ads Developer Blog. The AdMob API developer forum is available for support.\n"],null,["# Third-party integration\n\nThe AdMob API is designed for developers representing publishers and third\nparties. Third parties are not direct users of AdMob, instead, they create\nservices or integrations with AdMob for their clients, who are AdMob customers.\nThis guide covers the basics of third-party integrations by providing best\npractices, tips, and tricks.\n\nThis guide assumes you have a working knowledge of the AdMob API. If you're\nunfamiliar with the AdMob API, please see our\n[getting started documentation](/admob/api/v1/getting-started).\n\nGetting started as a third party\n--------------------------------\n\nTo use the AdMob API to access an AdMob publisher's data, follow the\nguidelines below. No additional approval from Google is required, though note\nthat by using the AdMob API, you agree to the AdMob API\n[terms and conditions](/admob/api/v1/terms).\n\nAuthentication: How to properly access a client's AdMob data\n------------------------------------------------------------\n\nIn order for your application to access your client's AdMob data, you need to\nset up your authentication workflow in a secure manner.\n\n### Prerequisites\n\n- A [Google Account](//google.com/accounts/NewAccount).\n\n- Familiarity with [REST basics](/admob/api/v1/prereqs#rest) and [authorizing requests with\n OAuth 2.0](/admob/api/v1/how-tos/authorizing).\n\n### Complete authorization steps\n\n| **Note:** For third-party web applications, we recommend generating a **client\n| ID** for a [web application](/identity/protocols/OAuth2WebServer).\n\nAll requests you make to the AdMob API must be authorized. For a brief\noverview of authorization, read about how to [authorize and identify your\napp to Google](/admob/api/v1/how-tos/authorizing). Follow the steps to [complete your\nauthorization setup](/admob/api/v1/auth).\n\nNow you can start making API calls to your client's AdMob account using examples\nin [Java](/admob/api/v1/getting-started#java-client-library),\n[PHP](/admob/api/v1/getting-started#php-client-library),\n[Python](/admob/api/v1/getting-started#python-client-library) or\n[curl](/admob/api/v1/getting-started#curl-command-line).\n\nKeep up-to-date with the API\n----------------------------\n\nIt's important that you stay up-to-date on which API versions are deprecated or\nsunset and when new versions are released. We recommend subscribing to the\n[Ads Developer Blog](//ads-developers.googleblog.com/search/label/admob) to get\nthe announcements.\n\nGet support\n-----------\n\nIf you run into issues with your AdMob API integration,\n\npost to the [AdMob API developer forum](//groups.google.com/g/google-admob-api-developer-forum)."]]