Библиотеки и образцы
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Мы рекомендуем использовать клиентскую библиотеку Google API и следующие примеры кода для поддержки вашей реализации. Клиентские библиотеки поддерживают авторизацию и повышенную безопасность.
API-интерфейсы авторизованных покупателей — это API-интерфейсы JSON REST, и любой стандартный веб-стек может считывать данные из них. Все операции через API Авторизованных покупателей требуют авторизации.
Вы также можете просмотреть примеры отдельных операций в нашей документации для разработчиков .
Для API Авторизованных покупателей доступны следующие образцы:
Торговая площадка
Примеры кода доступны для Marketplace API на следующих языках:
Ставки в реальном времени
Примеры кода доступны для API назначения ставок в реальном времени на следующих языках:
Покупатель Ad Exchange II
Примеры кода доступны для API Ad Exchange Buyer II на следующих языках:
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eAuthorized Buyers APIs require authorization and can be accessed using any standard web stack due to their JSON REST API structure.\u003c/p\u003e\n"],["\u003cp\u003eGoogle recommends using a client library for enhanced security and provides code samples in various languages for Marketplace and Real-time Bidding APIs.\u003c/p\u003e\n"],["\u003cp\u003eIndividual operation samples are available in the developer documentation, offering specific guidance for implementation.\u003c/p\u003e\n"],["\u003cp\u003eThe Ad Exchange Buyer II API is deprecated except for RTB troubleshooting resources, and alternative solutions are encouraged.\u003c/p\u003e\n"]]],["Utilize Google API client libraries for implementation, emphasizing authorization and security. The Authorized Buyers APIs are JSON REST APIs. Access code samples for the Marketplace API in C#, Java, and Python. Real-time Bidding API samples are available in C#, Java, PHP, Python, and Ruby. Code samples are also available for the now deprecated Ad Exchange Buyer II API. View operation samples in the developer documentation. All API operations require authorization.\n"],null,["# Libraries and Samples\n\nWe recommend using a [Google API client library](/api-client-library) and the\nfollowing code samples to support your implementation. Client libraries support\nauthorization and increased security.\n\nThe Authorized Buyers APIs are JSON REST APIs, and any standard web\nstack can read data from them. All operations through the Authorized Buyers APIs\nrequire authorization.\n\nYou can also view samples for individual operations in our [developer\ndocumentation](/authorized-buyers/apis/guides/start).\n\nThe following samples are available for Authorized Buyers APIs:\n\nMarketplace\n-----------\n\n[Code samples](//github.com/googleads/authorized-buyers-marketplace-api-samples)\nare available for the [Marketplace\nAPI](/authorized-buyers/apis/guides/marketplace/overview) in the following\nlanguages:\n\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| [C#](//github.com/googleads/authorized-buyers-marketplace-api-samples/tree/main/CSharp) | [Java](//github.com/googleads/authorized-buyers-marketplace-api-samples/tree/main/java) | [Python](//github.com/googleads/authorized-buyers-marketplace-api-samples/tree/main/python) |\n\nReal-time Bidding\n-----------------\n\n[Code samples](//github.com/googleads/authorized-buyers-rtb-api-samples) are\navailable for the [Real-time Bidding\nAPI](/authorized-buyers/apis/guides/rtb-api/overview) in the following\nlanguages:\n\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| [C#](//github.com/googleads/authorized-buyers-rtb-api-samples/tree/main/CSharp) | [Java](//github.com/googleads/authorized-buyers-rtb-api-samples/tree/main/java) | [PHP](//github.com/googleads/authorized-buyers-rtb-api-samples/tree/main/php) | [Python](//github.com/googleads/authorized-buyers-rtb-api-samples/tree/main/python) | [Ruby](//github.com/googleads/authorized-buyers-rtb-api-samples/tree/main/ruby) |\n\nAd Exchange Buyer II\n--------------------\n\n| **Deprecated:** Ad Exchange Buyer API II is deprecated. All resources other than those used for [RTB Troubleshooting](/authorized-buyers/apis/guides/v2/rtb-troubleshooting) have been sunset as of September 29th, 2023.\n\n[Code samples](//github.com/googleads/googleads-adxbuyer-examples) are\navailable for the [Ad Exchange Buyer II\nAPI](/authorized-buyers/apis/guides/rtb-api/overview) in the following\nlanguages:\n\n|---------------------------------------------------------------------------|---------------------------------------------------------------------------|-------------------------------------------------------------------------|-------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| [C#](//github.com/googleads/googleads-adxbuyer-examples/tree/main/CSharp) | [Java](//github.com/googleads/googleads-adxbuyer-examples/tree/main/java) | [PHP](//github.com/googleads/googleads-adxbuyer-examples/tree/main/php) | [Python](//github.com/googleads/googleads-adxbuyer-examples/tree/main/python) | [Ruby](///github.com/googleads/googleads-adxbuyer-examples/tree/main/ruby) |"]]