The API provides methods to retrieve:
Retrieve list of direct deals
You can retrieve the resource that describes all direct deals associated with
the currently authenticated user by sending an HTTP GET
request to
the URI for that resource. The URI for a Direct Deals Resource that describes a
collection of Direct Deals has the following format:
https://www.googleapis.com/adexchangebuyer/v1.3/directdeals
Request
Here is an example:
GET https://www.googleapis.com/adexchangebuyer/v1.3/directdeals?access_token=token
Response
If the request succeeds, the server responds with a 200 OK
HTTP
status code and the list of associated direct deals.
{ "kind": "adexchangebuyer#directDealsList", "directDeals": [ { "advertiser": "TestAdvertiser1.com", "kind": "adexchangebuyer#directDeal", "accountId": "12345678", "fixedCpm": "666000000", "sellerNetwork": "Test Publisher 1", "id": "1234567890123", "currencyCode": "USD", "startTime": "1323818071", "endTime": "1323990090" } { "advertiser": "TestAdvertiser2.com", "kind": "adexchangebuyer#directDeal", "accountId": "23456789", "fixedCpm": "666000000", "sellerNetwork": "Test Publisher 2", "id": "2345678901234", "currencyCode": "USD", "startTime": "1323818071", "endTime": "1323990090" } ] }
Retrieve a specific direct deal
You can retrieve the resource that describes an individual direct deal by
sending an HTTP GET
request to the URI for that resource. The URI
for a Direct Deals Resource that describes an individual Direct Deal has the
following format:
https://www.googleapis.com/adexchangebuyer/v1.3/directdeals/id
Request
Here is an example:
GET https://www.googleapis.com/adexchangebuyer/v1.3/directdeals/123456789?access_token=token
Response
If the request succeeds, the server responds with a 200 OK
HTTP
status code and the account's data:
{ "advertiser": "TestAdvertiser", "kind": "adexchangebuyer#directDeal", "accountId": "12345678", "fixedCpm": "666000000", "sellerNetwork": "TestPublisher", "id": "123456789", "currencyCode": "USD" }