diff --git a/CHANGELOG b/CHANGELOG index fd0a0e23129b0133fb696449efa732f085b42d2f..f50f0e65d07bdaa40f8168cfc228144568e04718 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,14 @@ +v1.5.0 + Version 1.5.0 + + Release to support oauth2client >= 2.0.0. + + - Fix file stream recognition in Python 3 (#141) + - Fix non-resumable binary uploads in Python 3 (#147) + - Default to 'octet-stream' if mimetype detection fails (#157) + - Handle SSL errors with retries (#160) + - Fix incompatibility with oauth2client v2.0.0 (#182) + v1.4.2 Version 1.4.2 diff --git a/describe.py b/describe.py index 5dcac904c61a559b6e78003d63576bfdb1759b15..c5b15a7452f4ac55f794fac71e0a1b8470a31995 100755 --- a/describe.py +++ b/describe.py @@ -33,6 +33,7 @@ import sys from googleapiclient.discovery import DISCOVERY_URI from googleapiclient.discovery import build from googleapiclient.discovery import build_from_document +from googleapiclient.discovery import UnknownApiNameOrVersion import httplib2 import uritemplate @@ -339,7 +340,12 @@ def document_api(name, version): name: string, Name of the API. version: string, Version of the API. """ - service = build(name, version) + try: + service = build(name, version) + except UnknownApiNameOrVersion as e: + print 'Warning: {} {} found but could not be built.'.format(name, version) + return + response, content = http.request( uritemplate.expand( FLAGS.discovery_uri_template, { diff --git a/docs/dyn/adexchangebuyer_v1_4.budget.html b/docs/dyn/adexchangebuyer_v1_4.budget.html index 3e190a851d59a56eccd703ef0d958c7eea89f2e6..fbaad50e4f7fdc5ef871bb411388b072bac6efc2 100644 --- a/docs/dyn/adexchangebuyer_v1_4.budget.html +++ b/docs/dyn/adexchangebuyer_v1_4.budget.html @@ -97,7 +97,7 @@ Returns: { # The configuration data for Ad Exchange RTB - Budget API. "kind": "adexchangebuyer#budget", # The kind of the resource, i.e. "adexchangebuyer#budget". - "budgetAmount": "A String", # The budget amount to apply for the billingId provided. This is required for update requests. + "budgetAmount": "A String", # The daily budget amount in unit amount of the account currency to apply for the billingId provided. This is required for update requests. "currencyCode": "A String", # The currency code for the buyer. This cannot be altered here. "billingId": "A String", # The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. "id": "A String", # The unique id that describes this item. @@ -117,7 +117,7 @@ Args: { # The configuration data for Ad Exchange RTB - Budget API. "kind": "adexchangebuyer#budget", # The kind of the resource, i.e. "adexchangebuyer#budget". - "budgetAmount": "A String", # The budget amount to apply for the billingId provided. This is required for update requests. + "budgetAmount": "A String", # The daily budget amount in unit amount of the account currency to apply for the billingId provided. This is required for update requests. "currencyCode": "A String", # The currency code for the buyer. This cannot be altered here. "billingId": "A String", # The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. "id": "A String", # The unique id that describes this item. @@ -130,7 +130,7 @@ Returns: { # The configuration data for Ad Exchange RTB - Budget API. "kind": "adexchangebuyer#budget", # The kind of the resource, i.e. "adexchangebuyer#budget". - "budgetAmount": "A String", # The budget amount to apply for the billingId provided. This is required for update requests. + "budgetAmount": "A String", # The daily budget amount in unit amount of the account currency to apply for the billingId provided. This is required for update requests. "currencyCode": "A String", # The currency code for the buyer. This cannot be altered here. "billingId": "A String", # The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. "id": "A String", # The unique id that describes this item. @@ -150,7 +150,7 @@ Args: { # The configuration data for Ad Exchange RTB - Budget API. "kind": "adexchangebuyer#budget", # The kind of the resource, i.e. "adexchangebuyer#budget". - "budgetAmount": "A String", # The budget amount to apply for the billingId provided. This is required for update requests. + "budgetAmount": "A String", # The daily budget amount in unit amount of the account currency to apply for the billingId provided. This is required for update requests. "currencyCode": "A String", # The currency code for the buyer. This cannot be altered here. "billingId": "A String", # The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. "id": "A String", # The unique id that describes this item. @@ -163,7 +163,7 @@ Returns: { # The configuration data for Ad Exchange RTB - Budget API. "kind": "adexchangebuyer#budget", # The kind of the resource, i.e. "adexchangebuyer#budget". - "budgetAmount": "A String", # The budget amount to apply for the billingId provided. This is required for update requests. + "budgetAmount": "A String", # The daily budget amount in unit amount of the account currency to apply for the billingId provided. This is required for update requests. "currencyCode": "A String", # The currency code for the buyer. This cannot be altered here. "billingId": "A String", # The billing id to determine which adgroup to provide budget information for. This is required for get and update requests. "id": "A String", # The unique id that describes this item. diff --git a/docs/dyn/adexchangebuyer_v1_4.creatives.html b/docs/dyn/adexchangebuyer_v1_4.creatives.html index 19382d906fd75d1c819e977925c5b53f36b70ea2..133e8814ad1adf3181cfad35e7e8f954e5ce1fba 100644 --- a/docs/dyn/adexchangebuyer_v1_4.creatives.html +++ b/docs/dyn/adexchangebuyer_v1_4.creatives.html @@ -74,6 +74,9 @@ h1, h2, h3 {
+ addDeal(accountId, buyerCreativeId, dealId)
Add a deal id association for the creative.
get(accountId, buyerCreativeId)
Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
@@ -86,7 +89,21 @@ h1, h2, h3 {
list_next(previous_request, previous_response)
Retrieves the next page of results.
+
+ removeDeal(accountId, buyerCreativeId, dealId)
Remove a deal id associated with the creative.
addDeal(accountId, buyerCreativeId, dealId)
+ Add a deal id association for the creative. + +Args: + accountId: integer, The id for the account that will serve this creative. (required) + buyerCreativeId: string, The buyer-specific id for this creative. (required) + dealId: string, The id of the deal id to associate with this creative. (required) ++
get(accountId, buyerCreativeId)
Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
@@ -99,7 +116,6 @@ Returns:
An object of the form:
{ # A creative and its classification data.
- "api_upload_timestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"attribute": [ # All attributes for the ads that may be shown from this snippet.
42,
],
@@ -146,6 +162,7 @@ Returns:
"clickTrackingUrl": "A String", # The URL to use for click tracking.
},
"version": 42, # The version for this creative. Read-only. This field should not be set in requests.
+ "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"vendorType": [ # All vendor types for the ads that may be shown from this snippet.
42,
],
@@ -220,7 +237,6 @@ Args:
The object takes the form of:
{ # A creative and its classification data.
- "api_upload_timestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"attribute": [ # All attributes for the ads that may be shown from this snippet.
42,
],
@@ -267,6 +283,7 @@ Args:
"clickTrackingUrl": "A String", # The URL to use for click tracking.
},
"version": 42, # The version for this creative. Read-only. This field should not be set in requests.
+ "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"vendorType": [ # All vendor types for the ads that may be shown from this snippet.
42,
],
@@ -336,7 +353,6 @@ Returns:
An object of the form:
{ # A creative and its classification data.
- "api_upload_timestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"attribute": [ # All attributes for the ads that may be shown from this snippet.
42,
],
@@ -383,6 +399,7 @@ Returns:
"clickTrackingUrl": "A String", # The URL to use for click tracking.
},
"version": 42, # The version for this creative. Read-only. This field should not be set in requests.
+ "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"vendorType": [ # All vendor types for the ads that may be shown from this snippet.
42,
],
@@ -453,12 +470,12 @@ Returns:
Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
Args:
- dealsStatusFilter: string, When specified, only creatives having the given direct deals status are returned.
+ dealsStatusFilter: string, When specified, only creatives having the given deals status are returned.
Allowed values
- approved - Creatives which have been approved for serving on direct deals.
- conditionally_approved - Creatives which have been conditionally approved for serving on direct deals.
- disapproved - Creatives which have been disapproved for serving on direct deals.
- not_checked - Creatives whose direct deals status is not yet checked.
+ approved - Creatives which have been approved for serving on deals.
+ conditionally_approved - Creatives which have been conditionally approved for serving on deals.
+ disapproved - Creatives which have been disapproved for serving on deals.
+ not_checked - Creatives whose deals status is not yet checked.
openAuctionStatusFilter: string, When specified, only creatives having the given open auction status are returned.
Allowed values
approved - Creatives which have been approved for serving on the open auction.
@@ -477,7 +494,6 @@ Returns:
"nextPageToken": "A String", # Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
"items": [ # A list of creatives.
{ # A creative and its classification data.
- "api_upload_timestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"attribute": [ # All attributes for the ads that may be shown from this snippet.
42,
],
@@ -524,6 +540,7 @@ Returns:
"clickTrackingUrl": "A String", # The URL to use for click tracking.
},
"version": 42, # The version for this creative. Read-only. This field should not be set in requests.
+ "apiUploadTimestamp": "A String", # The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).
"vendorType": [ # All vendor types for the ads that may be shown from this snippet.
42,
],
@@ -606,4 +623,15 @@ Returns:
removeDeal(accountId, buyerCreativeId, dealId)
+ Remove a deal id associated with the creative. + +Args: + accountId: integer, The id for the account that will serve this creative. (required) + buyerCreativeId: string, The buyer-specific id for this creative. (required) + dealId: string, The id of the deal id to disassociate with this creative. (required) ++