Migrating from an Older Version

Migrating from an older version of the Ad Exchange Seller REST API is easy, since all new versions are fully backwards-compatible and introduce no breaking changes.

That said, it still involves some manual work, so this document provides a set of tips on what you need to do in order to move to a newer version.

If you're using a dynamic programming language

If you're using the client library for one of the dynamic programming languages we support, such as Ruby or Python, all it should take is updating the version string in your code.

For example, for Python:

http = httplib2.Http()
service = build("adexchangeseller", "v2.0", http=http)

or for Ruby:

client = Google::APIClient.new
adxseller = client.discovered_api('adexchangeseller', 'v2.0')

If you're using a static programming language

If you're using the client library for one of the static programming languages we support, such as Java, PHP or C#/.NET, you'll need to update the Ad Exchange Seller API-specific module.

Note: there have been several changes to the core client libraries over time, so updating these modules may require you to update the core client library as well, which could mean further changes to your code. Please consult the documentation for your client library if that's the case.

Java

Make sure you have the latest Ad Exchange Seller API library and replace your project dependencies.

PHP

Make sure you update to the latest version of the full PHP client library. This should include the latest version of the Ad Exchange Seller API module, as well as all other APIs.

C#/.NET

Make sure you have the latest Ad Exchange Seller API library and replace your project dependencies.

If you're not using the client libraries

If you're not using one of our client libraries, all you need to do is update the base URL you're using in your requests. For example:

https://www.googleapis.com/adexchangeseller/v1/

becomes:

https://www.googleapis.com/adexchangeseller/v2.0/

Send feedback about...

Seller REST API
Seller REST API