diff --git a/CHANGELOG b/CHANGELOG index fd0a0e23129..f50f0e65d07 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 5dcac904c61..c5b15a7452f 100755 --- a/describe.py +++ b/describe.py @@ -33,6 +33,7 @@ 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 3e190a851d5..fbaad50e4f7 100644 --- a/docs/dyn/adexchangebuyer_v1_4.budget.html +++ b/docs/dyn/adexchangebuyer_v1_4.budget.html @@ -97,7 +97,7 @@
+ 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 @@
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 @@Method Details
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 @@Method Details
"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 @@Method Details
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 @@Method Details
"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 @@Method Details
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 @@Method Details
"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 @@Method Details
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 @@Method Details
"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 @@Method Details
"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 @@Method Details
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) ++