Index: discovery/googleapis/adexchangeseller__v2.0.json |
diff --git a/discovery/googleapis/adexchangeseller__v1.1.json b/discovery/googleapis/adexchangeseller__v2.0.json |
similarity index 62% |
copy from discovery/googleapis/adexchangeseller__v1.1.json |
copy to discovery/googleapis/adexchangeseller__v2.0.json |
index ac8638e51eb243666990bb4d8e0d632ceb90f896..3dde2bbccf2c027f4aa6ea998bbef4ec73eae7e3 100644 |
--- a/discovery/googleapis/adexchangeseller__v1.1.json |
+++ b/discovery/googleapis/adexchangeseller__v2.0.json |
@@ -11,19 +11,19 @@ |
} |
} |
}, |
- "basePath": "/adexchangeseller/v1.1/", |
- "baseUrl": "https://www.googleapis.com/adexchangeseller/v1.1/", |
+ "basePath": "/adexchangeseller/v2.0/", |
+ "baseUrl": "https://www.googleapis.com/adexchangeseller/v2.0/", |
"batchPath": "batch", |
"canonicalName": "Ad Exchange Seller", |
"description": "Gives Ad Exchange seller users access to their inventory and the ability to generate reports", |
"discoveryVersion": "v1", |
"documentationLink": "https://developers.google.com/ad-exchange/seller-rest/", |
- "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/bok_hcSdBm1EdbGDzvvOPwoa2gI\"", |
+ "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/0shkiGXf4cKks9c34Wn8kZ2sXrA\"", |
"icons": { |
"x16": "https://www.google.com/images/icons/product/doubleclick-16.gif", |
"x32": "https://www.google.com/images/icons/product/doubleclick-32.gif" |
}, |
- "id": "adexchangeseller:v1.1", |
+ "id": "adexchangeseller:v2.0", |
"kind": "discovery#restDescription", |
"name": "adexchangeseller", |
"ownerDomain": "google.com", |
@@ -102,110 +102,29 @@ |
"https://www.googleapis.com/auth/adexchange.seller", |
"https://www.googleapis.com/auth/adexchange.seller.readonly" |
] |
- } |
- } |
- }, |
- "adclients": { |
- "methods": { |
- "list": { |
- "description": "List all ad clients in this Ad Exchange account.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.adclients.list", |
- "parameters": { |
- "maxResults": { |
- "description": "The maximum number of ad clients to include in the response, used for paging.", |
- "format": "uint32", |
- "location": "query", |
- "maximum": "10000", |
- "minimum": "0", |
- "type": "integer" |
- }, |
- "pageToken": { |
- "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "adclients", |
- "response": { |
- "$ref": "AdClients" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- } |
- } |
- }, |
- "adunits": { |
- "methods": { |
- "get": { |
- "description": "Gets the specified ad unit in the specified ad client.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.adunits.get", |
- "parameterOrder": [ |
- "adClientId", |
- "adUnitId" |
- ], |
- "parameters": { |
- "adClientId": { |
- "description": "Ad client for which to get the ad unit.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "adUnitId": { |
- "description": "Ad unit to retrieve.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "adclients/{adClientId}/adunits/{adUnitId}", |
- "response": { |
- "$ref": "AdUnit" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
}, |
"list": { |
- "description": "List all ad units in the specified ad client for this Ad Exchange account.", |
+ "description": "List all accounts available to this Ad Exchange account.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.adunits.list", |
- "parameterOrder": [ |
- "adClientId" |
- ], |
+ "id": "adexchangeseller.accounts.list", |
"parameters": { |
- "adClientId": { |
- "description": "Ad client for which to list ad units.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "includeInactive": { |
- "description": "Whether to include inactive ad units. Default: true.", |
- "location": "query", |
- "type": "boolean" |
- }, |
"maxResults": { |
- "description": "The maximum number of ad units to include in the response, used for paging.", |
- "format": "uint32", |
+ "description": "The maximum number of accounts to include in the response, used for paging.", |
+ "format": "int32", |
"location": "query", |
"maximum": "10000", |
"minimum": "0", |
"type": "integer" |
}, |
"pageToken": { |
- "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
+ "description": "A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
"location": "query", |
"type": "string" |
} |
}, |
- "path": "adclients/{adClientId}/adunits", |
+ "path": "accounts", |
"response": { |
- "$ref": "AdUnits" |
+ "$ref": "Accounts" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
@@ -214,31 +133,24 @@ |
} |
}, |
"resources": { |
- "customchannels": { |
+ "adclients": { |
"methods": { |
"list": { |
- "description": "List all custom channels which the specified ad unit belongs to.", |
+ "description": "List all ad clients in this Ad Exchange account.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.adunits.customchannels.list", |
+ "id": "adexchangeseller.accounts.adclients.list", |
"parameterOrder": [ |
- "adClientId", |
- "adUnitId" |
+ "accountId" |
], |
"parameters": { |
- "adClientId": { |
- "description": "Ad client which contains the ad unit.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "adUnitId": { |
- "description": "Ad unit for which to list custom channels.", |
+ "accountId": { |
+ "description": "Account to which the ad client belongs.", |
"location": "path", |
"required": true, |
"type": "string" |
}, |
"maxResults": { |
- "description": "The maximum number of custom channels to include in the response, used for paging.", |
+ "description": "The maximum number of ad clients to include in the response, used for paging.", |
"format": "uint32", |
"location": "query", |
"maximum": "10000", |
@@ -246,14 +158,14 @@ |
"type": "integer" |
}, |
"pageToken": { |
- "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
+ "description": "A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
"location": "query", |
"type": "string" |
} |
}, |
- "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", |
+ "path": "accounts/{accountId}/adclients", |
"response": { |
- "$ref": "CustomChannels" |
+ "$ref": "AdClients" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
@@ -261,116 +173,58 @@ |
] |
} |
} |
- } |
- } |
- }, |
- "alerts": { |
- "methods": { |
- "list": { |
- "description": "List the alerts for this Ad Exchange account.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.alerts.list", |
- "parameters": { |
- "locale": { |
- "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "alerts", |
- "response": { |
- "$ref": "Alerts" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- } |
- } |
- }, |
- "customchannels": { |
- "methods": { |
- "get": { |
- "description": "Get the specified custom channel from the specified ad client.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.customchannels.get", |
- "parameterOrder": [ |
- "adClientId", |
- "customChannelId" |
- ], |
- "parameters": { |
- "adClientId": { |
- "description": "Ad client which contains the custom channel.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "customChannelId": { |
- "description": "Custom channel to retrieve.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "adclients/{adClientId}/customchannels/{customChannelId}", |
- "response": { |
- "$ref": "CustomChannel" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
}, |
- "list": { |
- "description": "List all custom channels in the specified ad client for this Ad Exchange account.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.customchannels.list", |
- "parameterOrder": [ |
- "adClientId" |
- ], |
- "parameters": { |
- "adClientId": { |
- "description": "Ad client for which to list custom channels.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "maxResults": { |
- "description": "The maximum number of custom channels to include in the response, used for paging.", |
- "format": "uint32", |
- "location": "query", |
- "maximum": "10000", |
- "minimum": "0", |
- "type": "integer" |
- }, |
- "pageToken": { |
- "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "adclients/{adClientId}/customchannels", |
- "response": { |
- "$ref": "CustomChannels" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- } |
- }, |
- "resources": { |
- "adunits": { |
+ "alerts": { |
"methods": { |
"list": { |
- "description": "List all ad units in the specified custom channel.", |
+ "description": "List the alerts for this Ad Exchange account.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.alerts.list", |
+ "parameterOrder": [ |
+ "accountId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account owning the alerts.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "locale": { |
+ "description": "The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/alerts", |
+ "response": { |
+ "$ref": "Alerts" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ } |
+ } |
+ }, |
+ "customchannels": { |
+ "methods": { |
+ "get": { |
+ "description": "Get the specified custom channel from the specified ad client.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.customchannels.adunits.list", |
+ "id": "adexchangeseller.accounts.customchannels.get", |
"parameterOrder": [ |
+ "accountId", |
"adClientId", |
"customChannelId" |
], |
"parameters": { |
+ "accountId": { |
+ "description": "Account to which the ad client belongs.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
"adClientId": { |
"description": "Ad client which contains the custom channel.", |
"location": "path", |
@@ -378,18 +232,44 @@ |
"type": "string" |
}, |
"customChannelId": { |
- "description": "Custom channel for which to list ad units.", |
+ "description": "Custom channel to retrieve.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", |
+ "response": { |
+ "$ref": "CustomChannel" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ }, |
+ "list": { |
+ "description": "List all custom channels in the specified ad client for this Ad Exchange account.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.customchannels.list", |
+ "parameterOrder": [ |
+ "accountId", |
+ "adClientId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account to which the ad client belongs.", |
"location": "path", |
"required": true, |
"type": "string" |
}, |
- "includeInactive": { |
- "description": "Whether to include inactive ad units. Default: true.", |
- "location": "query", |
- "type": "boolean" |
+ "adClientId": { |
+ "description": "Ad client for which to list custom channels.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
}, |
"maxResults": { |
- "description": "The maximum number of ad units to include in the response, used for paging.", |
+ "description": "The maximum number of custom channels to include in the response, used for paging.", |
"format": "uint32", |
"location": "query", |
"maximum": "10000", |
@@ -397,14 +277,14 @@ |
"type": "integer" |
}, |
"pageToken": { |
- "description": "A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
+ "description": "A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
"location": "query", |
"type": "string" |
} |
}, |
- "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", |
+ "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", |
"response": { |
- "$ref": "AdUnits" |
+ "$ref": "CustomChannels" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
@@ -412,37 +292,118 @@ |
] |
} |
} |
- } |
- } |
- }, |
- "metadata": { |
- "resources": { |
- "dimensions": { |
+ }, |
+ "metadata": { |
+ "resources": { |
+ "dimensions": { |
+ "methods": { |
+ "list": { |
+ "description": "List the metadata for the dimensions available to this AdExchange account.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.metadata.dimensions.list", |
+ "parameterOrder": [ |
+ "accountId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account with visibility to the dimensions.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/metadata/dimensions", |
+ "response": { |
+ "$ref": "Metadata" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ } |
+ } |
+ }, |
+ "metrics": { |
+ "methods": { |
+ "list": { |
+ "description": "List the metadata for the metrics available to this AdExchange account.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.metadata.metrics.list", |
+ "parameterOrder": [ |
+ "accountId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account with visibility to the metrics.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/metadata/metrics", |
+ "response": { |
+ "$ref": "Metadata" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ } |
+ } |
+ } |
+ } |
+ }, |
+ "preferreddeals": { |
"methods": { |
- "list": { |
- "description": "List the metadata for the dimensions available to this AdExchange account.", |
+ "get": { |
+ "description": "Get information about the selected Ad Exchange Preferred Deal.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.metadata.dimensions.list", |
- "path": "metadata/dimensions", |
+ "id": "adexchangeseller.accounts.preferreddeals.get", |
+ "parameterOrder": [ |
+ "accountId", |
+ "dealId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account owning the deal.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "dealId": { |
+ "description": "Preferred deal to get information about.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/preferreddeals/{dealId}", |
"response": { |
- "$ref": "Metadata" |
+ "$ref": "PreferredDeal" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
"https://www.googleapis.com/auth/adexchange.seller.readonly" |
] |
- } |
- } |
- }, |
- "metrics": { |
- "methods": { |
+ }, |
"list": { |
- "description": "List the metadata for the metrics available to this AdExchange account.", |
+ "description": "List the preferred deals for this Ad Exchange account.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.metadata.metrics.list", |
- "path": "metadata/metrics", |
+ "id": "adexchangeseller.accounts.preferreddeals.list", |
+ "parameterOrder": [ |
+ "accountId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account owning the deals.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/preferreddeals", |
"response": { |
- "$ref": "Metadata" |
+ "$ref": "PreferredDeals" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
@@ -450,148 +411,46 @@ |
] |
} |
} |
- } |
- } |
- }, |
- "preferreddeals": { |
- "methods": { |
- "get": { |
- "description": "Get information about the selected Ad Exchange Preferred Deal.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.preferreddeals.get", |
- "parameterOrder": [ |
- "dealId" |
- ], |
- "parameters": { |
- "dealId": { |
- "description": "Preferred deal to get information about.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "preferreddeals/{dealId}", |
- "response": { |
- "$ref": "PreferredDeal" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
}, |
- "list": { |
- "description": "List the preferred deals for this Ad Exchange account.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.preferreddeals.list", |
- "path": "preferreddeals", |
- "response": { |
- "$ref": "PreferredDeals" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- } |
- } |
- }, |
- "reports": { |
- "methods": { |
- "generate": { |
- "description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.reports.generate", |
- "parameterOrder": [ |
- "startDate", |
- "endDate" |
- ], |
- "parameters": { |
- "dimension": { |
- "description": "Dimensions to base the report on.", |
- "location": "query", |
- "pattern": "[a-zA-Z_]+", |
- "repeated": true, |
- "type": "string" |
- }, |
- "endDate": { |
- "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", |
- "location": "query", |
- "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", |
- "required": true, |
- "type": "string" |
- }, |
- "filter": { |
- "description": "Filters to be run on the report.", |
- "location": "query", |
- "pattern": "[a-zA-Z_]+(==|=@).+", |
- "repeated": true, |
- "type": "string" |
- }, |
- "locale": { |
- "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", |
- "location": "query", |
- "pattern": "[a-zA-Z_]+", |
- "type": "string" |
- }, |
- "maxResults": { |
- "description": "The maximum number of rows of report data to return.", |
- "format": "uint32", |
- "location": "query", |
- "maximum": "50000", |
- "minimum": "0", |
- "type": "integer" |
- }, |
- "metric": { |
- "description": "Numeric columns to include in the report.", |
- "location": "query", |
- "pattern": "[a-zA-Z_]+", |
- "repeated": true, |
- "type": "string" |
- }, |
- "sort": { |
- "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", |
- "location": "query", |
- "pattern": "(\\+|-)?[a-zA-Z_]+", |
- "repeated": true, |
- "type": "string" |
- }, |
- "startDate": { |
- "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", |
- "location": "query", |
- "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", |
- "required": true, |
- "type": "string" |
- }, |
- "startIndex": { |
- "description": "Index of the first row of report data to return.", |
- "format": "uint32", |
- "location": "query", |
- "maximum": "5000", |
- "minimum": "0", |
- "type": "integer" |
- } |
- }, |
- "path": "reports", |
- "response": { |
- "$ref": "Report" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ], |
- "supportsMediaDownload": true |
- } |
- }, |
- "resources": { |
- "saved": { |
+ "reports": { |
"methods": { |
"generate": { |
- "description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.", |
+ "description": "Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify \"alt=csv\" as a query parameter.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.reports.saved.generate", |
+ "id": "adexchangeseller.accounts.reports.generate", |
"parameterOrder": [ |
- "savedReportId" |
+ "accountId", |
+ "startDate", |
+ "endDate" |
], |
"parameters": { |
+ "accountId": { |
+ "description": "Account which owns the generated report.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "dimension": { |
+ "description": "Dimensions to base the report on.", |
+ "location": "query", |
+ "pattern": "[a-zA-Z_]+", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "endDate": { |
+ "description": "End of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", |
+ "location": "query", |
+ "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "filter": { |
+ "description": "Filters to be run on the report.", |
+ "location": "query", |
+ "pattern": "[a-zA-Z_]+(==|=@).+", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
"locale": { |
"description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", |
"location": "query", |
@@ -600,58 +459,190 @@ |
}, |
"maxResults": { |
"description": "The maximum number of rows of report data to return.", |
- "format": "int32", |
+ "format": "uint32", |
"location": "query", |
"maximum": "50000", |
"minimum": "0", |
"type": "integer" |
}, |
- "savedReportId": { |
- "description": "The saved report to retrieve.", |
- "location": "path", |
+ "metric": { |
+ "description": "Numeric columns to include in the report.", |
+ "location": "query", |
+ "pattern": "[a-zA-Z_]+", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "sort": { |
+ "description": "The name of a dimension or metric to sort the resulting report on, optionally prefixed with \"+\" to sort ascending or \"-\" to sort descending. If no prefix is specified, the column is sorted ascending.", |
+ "location": "query", |
+ "pattern": "(\\+|-)?[a-zA-Z_]+", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
+ "startDate": { |
+ "description": "Start of the date range to report on in \"YYYY-MM-DD\" format, inclusive.", |
+ "location": "query", |
+ "pattern": "\\d{4}-\\d{2}-\\d{2}|(today|startOfMonth|startOfYear)(([\\-\\+]\\d+[dwmy]){0,3}?)", |
"required": true, |
"type": "string" |
}, |
"startIndex": { |
"description": "Index of the first row of report data to return.", |
- "format": "int32", |
+ "format": "uint32", |
"location": "query", |
"maximum": "5000", |
"minimum": "0", |
"type": "integer" |
} |
}, |
- "path": "reports/{savedReportId}", |
+ "path": "accounts/{accountId}/reports", |
"response": { |
"$ref": "Report" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
"https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- }, |
+ ], |
+ "supportsMediaDownload": true |
+ } |
+ }, |
+ "resources": { |
+ "saved": { |
+ "methods": { |
+ "generate": { |
+ "description": "Generate an Ad Exchange report based on the saved report ID sent in the query parameters.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.reports.saved.generate", |
+ "parameterOrder": [ |
+ "accountId", |
+ "savedReportId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account owning the saved report.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "locale": { |
+ "description": "Optional locale to use for translating report output to a local language. Defaults to \"en_US\" if not specified.", |
+ "location": "query", |
+ "pattern": "[a-zA-Z_]+", |
+ "type": "string" |
+ }, |
+ "maxResults": { |
+ "description": "The maximum number of rows of report data to return.", |
+ "format": "int32", |
+ "location": "query", |
+ "maximum": "50000", |
+ "minimum": "0", |
+ "type": "integer" |
+ }, |
+ "savedReportId": { |
+ "description": "The saved report to retrieve.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "startIndex": { |
+ "description": "Index of the first row of report data to return.", |
+ "format": "int32", |
+ "location": "query", |
+ "maximum": "5000", |
+ "minimum": "0", |
+ "type": "integer" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/reports/{savedReportId}", |
+ "response": { |
+ "$ref": "Report" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ }, |
+ "list": { |
+ "description": "List all saved reports in this Ad Exchange account.", |
+ "httpMethod": "GET", |
+ "id": "adexchangeseller.accounts.reports.saved.list", |
+ "parameterOrder": [ |
+ "accountId" |
+ ], |
+ "parameters": { |
+ "accountId": { |
+ "description": "Account owning the saved reports.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "maxResults": { |
+ "description": "The maximum number of saved reports to include in the response, used for paging.", |
+ "format": "int32", |
+ "location": "query", |
+ "maximum": "100", |
+ "minimum": "0", |
+ "type": "integer" |
+ }, |
+ "pageToken": { |
+ "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "accounts/{accountId}/reports/saved", |
+ "response": { |
+ "$ref": "SavedReports" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/adexchange.seller", |
+ "https://www.googleapis.com/auth/adexchange.seller.readonly" |
+ ] |
+ } |
+ } |
+ } |
+ } |
+ }, |
+ "urlchannels": { |
+ "methods": { |
"list": { |
- "description": "List all saved reports in this Ad Exchange account.", |
+ "description": "List all URL channels in the specified ad client for this Ad Exchange account.", |
"httpMethod": "GET", |
- "id": "adexchangeseller.reports.saved.list", |
+ "id": "adexchangeseller.accounts.urlchannels.list", |
+ "parameterOrder": [ |
+ "accountId", |
+ "adClientId" |
+ ], |
"parameters": { |
+ "accountId": { |
+ "description": "Account to which the ad client belongs.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
+ "adClientId": { |
+ "description": "Ad client for which to list URL channels.", |
+ "location": "path", |
+ "required": true, |
+ "type": "string" |
+ }, |
"maxResults": { |
- "description": "The maximum number of saved reports to include in the response, used for paging.", |
- "format": "int32", |
+ "description": "The maximum number of URL channels to include in the response, used for paging.", |
+ "format": "uint32", |
"location": "query", |
- "maximum": "100", |
+ "maximum": "10000", |
"minimum": "0", |
"type": "integer" |
}, |
"pageToken": { |
- "description": "A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
+ "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
"location": "query", |
"type": "string" |
} |
}, |
- "path": "reports/saved", |
+ "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", |
"response": { |
- "$ref": "SavedReports" |
+ "$ref": "UrlChannels" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/adexchange.seller", |
@@ -661,50 +652,9 @@ |
} |
} |
} |
- }, |
- "urlchannels": { |
- "methods": { |
- "list": { |
- "description": "List all URL channels in the specified ad client for this Ad Exchange account.", |
- "httpMethod": "GET", |
- "id": "adexchangeseller.urlchannels.list", |
- "parameterOrder": [ |
- "adClientId" |
- ], |
- "parameters": { |
- "adClientId": { |
- "description": "Ad client for which to list URL channels.", |
- "location": "path", |
- "required": true, |
- "type": "string" |
- }, |
- "maxResults": { |
- "description": "The maximum number of URL channels to include in the response, used for paging.", |
- "format": "uint32", |
- "location": "query", |
- "maximum": "10000", |
- "minimum": "0", |
- "type": "integer" |
- }, |
- "pageToken": { |
- "description": "A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response.", |
- "location": "query", |
- "type": "string" |
- } |
- }, |
- "path": "adclients/{adClientId}/urlchannels", |
- "response": { |
- "$ref": "UrlChannels" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/adexchange.seller", |
- "https://www.googleapis.com/auth/adexchange.seller.readonly" |
- ] |
- } |
- } |
} |
}, |
- "revision": "20140921", |
+ "revision": "20140924", |
"rootUrl": "https://www.googleapis.com/", |
"schemas": { |
"Account": { |
@@ -726,6 +676,32 @@ |
}, |
"type": "object" |
}, |
+ "Accounts": { |
+ "id": "Accounts", |
+ "properties": { |
+ "etag": { |
+ "description": "ETag of this response for caching purposes.", |
+ "type": "string" |
+ }, |
+ "items": { |
+ "description": "The accounts returned in this list response.", |
+ "items": { |
+ "$ref": "Account" |
+ }, |
+ "type": "array" |
+ }, |
+ "kind": { |
+ "default": "adexchangeseller#accounts", |
+ "description": "Kind of list this is, in this case adexchangeseller#accounts.", |
+ "type": "string" |
+ }, |
+ "nextPageToken": { |
+ "description": "Continuation token used to page through accounts. To retrieve the next page of results, set the next request's \"pageToken\" value to this.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"AdClient": { |
"id": "AdClient", |
"properties": { |
@@ -779,59 +755,6 @@ |
}, |
"type": "object" |
}, |
- "AdUnit": { |
- "id": "AdUnit", |
- "properties": { |
- "code": { |
- "description": "Identity code of this ad unit, not necessarily unique across ad clients.", |
- "type": "string" |
- }, |
- "id": { |
- "description": "Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.", |
- "type": "string" |
- }, |
- "kind": { |
- "default": "adexchangeseller#adUnit", |
- "description": "Kind of resource this is, in this case adexchangeseller#adUnit.", |
- "type": "string" |
- }, |
- "name": { |
- "description": "Name of this ad unit.", |
- "type": "string" |
- }, |
- "status": { |
- "description": "Status of this ad unit. Possible values are:\nNEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.\n\nACTIVE: Indicates that there has been activity on this ad unit in the last seven days.\n\nINACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "AdUnits": { |
- "id": "AdUnits", |
- "properties": { |
- "etag": { |
- "description": "ETag of this response for caching purposes.", |
- "type": "string" |
- }, |
- "items": { |
- "description": "The ad units returned in this list response.", |
- "items": { |
- "$ref": "AdUnit" |
- }, |
- "type": "array" |
- }, |
- "kind": { |
- "default": "adexchangeseller#adUnits", |
- "description": "Kind of list this is, in this case adexchangeseller#adUnits.", |
- "type": "string" |
- }, |
- "nextPageToken": { |
- "description": "Continuation token used to page through ad units. To retrieve the next page of results, set the next request's \"pageToken\" value to this.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
"Alert": { |
"id": "Alert", |
"properties": { |
@@ -1235,7 +1158,7 @@ |
"type": "object" |
} |
}, |
- "servicePath": "adexchangeseller/v1.1/", |
+ "servicePath": "adexchangeseller/v2.0/", |
"title": "Ad Exchange Seller API", |
- "version": "v1.1" |
+ "version": "v2.0" |
} |