Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Nous vous recommandons d'utiliser une bibliothèque cliente des API Google et les exemples de code suivants pour faciliter votre implémentation. Les bibliothèques clientes prennent en charge l'autorisation et renforcent la sécurité.
Les API Authorized Buyers sont des API REST JSON. Toute pile Web standard peut lire leurs données. Toutes les opérations via les API Authorized Buyers nécessitent une autorisation.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (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) |"]]