OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.adexchangeseller.v2_0; | 3 library googleapis.adexchangeseller.v2_0; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 17 ByteRange; |
| 18 |
| 19 const core.String USER_AGENT = 'dart-api-client adexchangeseller/v2.0'; |
15 | 20 |
16 /** | 21 /** |
17 * Gives Ad Exchange seller users access to their inventory and the ability to | 22 * Gives Ad Exchange seller users access to their inventory and the ability to |
18 * generate reports | 23 * generate reports |
19 */ | 24 */ |
20 class AdexchangesellerApi { | 25 class AdexchangesellerApi { |
21 /** View and manage your Ad Exchange data */ | 26 /** View and manage your Ad Exchange data */ |
22 static const AdexchangeSellerScope = "https://www.googleapis.com/auth/adexchan
ge.seller"; | 27 static const AdexchangeSellerScope = "https://www.googleapis.com/auth/adexchan
ge.seller"; |
23 | 28 |
24 /** View your Ad Exchange data */ | 29 /** View your Ad Exchange data */ |
25 static const AdexchangeSellerReadonlyScope = "https://www.googleapis.com/auth/
adexchange.seller.readonly"; | 30 static const AdexchangeSellerReadonlyScope = "https://www.googleapis.com/auth/
adexchange.seller.readonly"; |
26 | 31 |
27 | 32 |
28 final common_internal.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
29 | 34 |
30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 35 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
31 | 36 |
32 AdexchangesellerApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "adexchangeseller/v2.0/"}) : | 37 AdexchangesellerApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "adexchangeseller/v2.0/"}) : |
33 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 38 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
34 } | 39 } |
35 | 40 |
36 | 41 |
37 /** Not documented yet. */ | |
38 class AccountsResourceApi { | 42 class AccountsResourceApi { |
39 final common_internal.ApiRequester _requester; | 43 final commons.ApiRequester _requester; |
40 | 44 |
41 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi
(_requester); | 45 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi
(_requester); |
42 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request
er); | 46 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request
er); |
43 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan
nelsResourceApi(_requester); | 47 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan
nelsResourceApi(_requester); |
44 AccountsMetadataResourceApi get metadata => new AccountsMetadataResourceApi(_r
equester); | 48 AccountsMetadataResourceApi get metadata => new AccountsMetadataResourceApi(_r
equester); |
45 AccountsPreferreddealsResourceApi get preferreddeals => new AccountsPreferredd
ealsResourceApi(_requester); | 49 AccountsPreferreddealsResourceApi get preferreddeals => new AccountsPreferredd
ealsResourceApi(_requester); |
46 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ
ester); | 50 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ
ester); |
47 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou
rceApi(_requester); | 51 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou
rceApi(_requester); |
48 | 52 |
49 AccountsResourceApi(common_internal.ApiRequester client) : | 53 AccountsResourceApi(commons.ApiRequester client) : |
50 _requester = client; | 54 _requester = client; |
51 | 55 |
52 /** | 56 /** |
53 * Get information about the selected Ad Exchange account. | 57 * Get information about the selected Ad Exchange account. |
54 * | 58 * |
55 * Request parameters: | 59 * Request parameters: |
56 * | 60 * |
57 * [accountId] - Account to get information about. Tip: 'myaccount' is a valid | 61 * [accountId] - Account to get information about. Tip: 'myaccount' is a valid |
58 * ID. | 62 * ID. |
59 * | 63 * |
60 * Completes with a [Account]. | 64 * Completes with a [Account]. |
61 * | 65 * |
62 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
63 * error. | 67 * error. |
64 * | 68 * |
65 * If the used [http.Client] completes with an error when making a REST call, | 69 * If the used [http.Client] completes with an error when making a REST call, |
66 * this method will complete with the same error. | 70 * this method will complete with the same error. |
67 */ | 71 */ |
68 async.Future<Account> get(core.String accountId) { | 72 async.Future<Account> get(core.String accountId) { |
69 var _url = null; | 73 var _url = null; |
70 var _queryParams = new core.Map(); | 74 var _queryParams = new core.Map(); |
71 var _uploadMedia = null; | 75 var _uploadMedia = null; |
72 var _uploadOptions = null; | 76 var _uploadOptions = null; |
73 var _downloadOptions = common.DownloadOptions.Metadata; | 77 var _downloadOptions = commons.DownloadOptions.Metadata; |
74 var _body = null; | 78 var _body = null; |
75 | 79 |
76 if (accountId == null) { | 80 if (accountId == null) { |
77 throw new core.ArgumentError("Parameter accountId is required."); | 81 throw new core.ArgumentError("Parameter accountId is required."); |
78 } | 82 } |
79 | 83 |
80 | 84 |
81 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId'); | 85 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId'); |
82 | 86 |
83 var _response = _requester.request(_url, | 87 var _response = _requester.request(_url, |
84 "GET", | 88 "GET", |
85 body: _body, | 89 body: _body, |
86 queryParams: _queryParams, | 90 queryParams: _queryParams, |
87 uploadOptions: _uploadOptions, | 91 uploadOptions: _uploadOptions, |
88 uploadMedia: _uploadMedia, | 92 uploadMedia: _uploadMedia, |
89 downloadOptions: _downloadOptions); | 93 downloadOptions: _downloadOptions); |
90 return _response.then((data) => new Account.fromJson(data)); | 94 return _response.then((data) => new Account.fromJson(data)); |
91 } | 95 } |
92 | 96 |
93 /** | 97 /** |
94 * List all accounts available to this Ad Exchange account. | 98 * List all accounts available to this Ad Exchange account. |
95 * | 99 * |
96 * Request parameters: | 100 * Request parameters: |
97 * | 101 * |
98 * [maxResults] - The maximum number of accounts to include in the response, | 102 * [maxResults] - The maximum number of accounts to include in the response, |
99 * used for paging. | 103 * used for paging. |
100 * Value must be between "0" and "10000". | 104 * Value must be between "0" and "10000". |
101 * | 105 * |
102 * [pageToken] - A continuation token, used to page through accounts. To | 106 * [pageToken] - A continuation token, used to page through accounts. To |
103 * retrieve the next page, set this parameter to the value of "nextPageToken" | 107 * retrieve the next page, set this parameter to the value of "nextPageToken" |
104 * from the previous response. | 108 * from the previous response. |
105 * | 109 * |
106 * Completes with a [Accounts]. | 110 * Completes with a [Accounts]. |
107 * | 111 * |
108 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 112 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
109 * error. | 113 * error. |
110 * | 114 * |
111 * If the used [http.Client] completes with an error when making a REST call, | 115 * If the used [http.Client] completes with an error when making a REST call, |
112 * this method will complete with the same error. | 116 * this method will complete with the same error. |
113 */ | 117 */ |
114 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { | 118 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { |
115 var _url = null; | 119 var _url = null; |
116 var _queryParams = new core.Map(); | 120 var _queryParams = new core.Map(); |
117 var _uploadMedia = null; | 121 var _uploadMedia = null; |
118 var _uploadOptions = null; | 122 var _uploadOptions = null; |
119 var _downloadOptions = common.DownloadOptions.Metadata; | 123 var _downloadOptions = commons.DownloadOptions.Metadata; |
120 var _body = null; | 124 var _body = null; |
121 | 125 |
122 if (maxResults != null) { | 126 if (maxResults != null) { |
123 _queryParams["maxResults"] = ["${maxResults}"]; | 127 _queryParams["maxResults"] = ["${maxResults}"]; |
124 } | 128 } |
125 if (pageToken != null) { | 129 if (pageToken != null) { |
126 _queryParams["pageToken"] = [pageToken]; | 130 _queryParams["pageToken"] = [pageToken]; |
127 } | 131 } |
128 | 132 |
129 | 133 |
130 _url = 'accounts'; | 134 _url = 'accounts'; |
131 | 135 |
132 var _response = _requester.request(_url, | 136 var _response = _requester.request(_url, |
133 "GET", | 137 "GET", |
134 body: _body, | 138 body: _body, |
135 queryParams: _queryParams, | 139 queryParams: _queryParams, |
136 uploadOptions: _uploadOptions, | 140 uploadOptions: _uploadOptions, |
137 uploadMedia: _uploadMedia, | 141 uploadMedia: _uploadMedia, |
138 downloadOptions: _downloadOptions); | 142 downloadOptions: _downloadOptions); |
139 return _response.then((data) => new Accounts.fromJson(data)); | 143 return _response.then((data) => new Accounts.fromJson(data)); |
140 } | 144 } |
141 | 145 |
142 } | 146 } |
143 | 147 |
144 | 148 |
145 /** Not documented yet. */ | |
146 class AccountsAdclientsResourceApi { | 149 class AccountsAdclientsResourceApi { |
147 final common_internal.ApiRequester _requester; | 150 final commons.ApiRequester _requester; |
148 | 151 |
149 AccountsAdclientsResourceApi(common_internal.ApiRequester client) : | 152 AccountsAdclientsResourceApi(commons.ApiRequester client) : |
150 _requester = client; | 153 _requester = client; |
151 | 154 |
152 /** | 155 /** |
153 * List all ad clients in this Ad Exchange account. | 156 * List all ad clients in this Ad Exchange account. |
154 * | 157 * |
155 * Request parameters: | 158 * Request parameters: |
156 * | 159 * |
157 * [accountId] - Account to which the ad client belongs. | 160 * [accountId] - Account to which the ad client belongs. |
158 * | 161 * |
159 * [maxResults] - The maximum number of ad clients to include in the response, | 162 * [maxResults] - The maximum number of ad clients to include in the response, |
160 * used for paging. | 163 * used for paging. |
161 * Value must be between "0" and "10000". | 164 * Value must be between "0" and "10000". |
162 * | 165 * |
163 * [pageToken] - A continuation token, used to page through ad clients. To | 166 * [pageToken] - A continuation token, used to page through ad clients. To |
164 * retrieve the next page, set this parameter to the value of "nextPageToken" | 167 * retrieve the next page, set this parameter to the value of "nextPageToken" |
165 * from the previous response. | 168 * from the previous response. |
166 * | 169 * |
167 * Completes with a [AdClients]. | 170 * Completes with a [AdClients]. |
168 * | 171 * |
169 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 172 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
170 * error. | 173 * error. |
171 * | 174 * |
172 * If the used [http.Client] completes with an error when making a REST call, | 175 * If the used [http.Client] completes with an error when making a REST call, |
173 * this method will complete with the same error. | 176 * this method will complete with the same error. |
174 */ | 177 */ |
175 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core
.String pageToken}) { | 178 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core
.String pageToken}) { |
176 var _url = null; | 179 var _url = null; |
177 var _queryParams = new core.Map(); | 180 var _queryParams = new core.Map(); |
178 var _uploadMedia = null; | 181 var _uploadMedia = null; |
179 var _uploadOptions = null; | 182 var _uploadOptions = null; |
180 var _downloadOptions = common.DownloadOptions.Metadata; | 183 var _downloadOptions = commons.DownloadOptions.Metadata; |
181 var _body = null; | 184 var _body = null; |
182 | 185 |
183 if (accountId == null) { | 186 if (accountId == null) { |
184 throw new core.ArgumentError("Parameter accountId is required."); | 187 throw new core.ArgumentError("Parameter accountId is required."); |
185 } | 188 } |
186 if (maxResults != null) { | 189 if (maxResults != null) { |
187 _queryParams["maxResults"] = ["${maxResults}"]; | 190 _queryParams["maxResults"] = ["${maxResults}"]; |
188 } | 191 } |
189 if (pageToken != null) { | 192 if (pageToken != null) { |
190 _queryParams["pageToken"] = [pageToken]; | 193 _queryParams["pageToken"] = [pageToken]; |
191 } | 194 } |
192 | 195 |
193 | 196 |
194 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients'; | 197 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts'; |
195 | 198 |
196 var _response = _requester.request(_url, | 199 var _response = _requester.request(_url, |
197 "GET", | 200 "GET", |
198 body: _body, | 201 body: _body, |
199 queryParams: _queryParams, | 202 queryParams: _queryParams, |
200 uploadOptions: _uploadOptions, | 203 uploadOptions: _uploadOptions, |
201 uploadMedia: _uploadMedia, | 204 uploadMedia: _uploadMedia, |
202 downloadOptions: _downloadOptions); | 205 downloadOptions: _downloadOptions); |
203 return _response.then((data) => new AdClients.fromJson(data)); | 206 return _response.then((data) => new AdClients.fromJson(data)); |
204 } | 207 } |
205 | 208 |
206 } | 209 } |
207 | 210 |
208 | 211 |
209 /** Not documented yet. */ | |
210 class AccountsAlertsResourceApi { | 212 class AccountsAlertsResourceApi { |
211 final common_internal.ApiRequester _requester; | 213 final commons.ApiRequester _requester; |
212 | 214 |
213 AccountsAlertsResourceApi(common_internal.ApiRequester client) : | 215 AccountsAlertsResourceApi(commons.ApiRequester client) : |
214 _requester = client; | 216 _requester = client; |
215 | 217 |
216 /** | 218 /** |
217 * List the alerts for this Ad Exchange account. | 219 * List the alerts for this Ad Exchange account. |
218 * | 220 * |
219 * Request parameters: | 221 * Request parameters: |
220 * | 222 * |
221 * [accountId] - Account owning the alerts. | 223 * [accountId] - Account owning the alerts. |
222 * | 224 * |
223 * [locale] - The locale to use for translating alert messages. The account | 225 * [locale] - The locale to use for translating alert messages. The account |
224 * locale will be used if this is not supplied. The AdSense default (English) | 226 * locale will be used if this is not supplied. The AdSense default (English) |
225 * will be used if the supplied locale is invalid or unsupported. | 227 * will be used if the supplied locale is invalid or unsupported. |
226 * | 228 * |
227 * Completes with a [Alerts]. | 229 * Completes with a [Alerts]. |
228 * | 230 * |
229 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 231 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
230 * error. | 232 * error. |
231 * | 233 * |
232 * If the used [http.Client] completes with an error when making a REST call, | 234 * If the used [http.Client] completes with an error when making a REST call, |
233 * this method will complete with the same error. | 235 * this method will complete with the same error. |
234 */ | 236 */ |
235 async.Future<Alerts> list(core.String accountId, {core.String locale}) { | 237 async.Future<Alerts> list(core.String accountId, {core.String locale}) { |
236 var _url = null; | 238 var _url = null; |
237 var _queryParams = new core.Map(); | 239 var _queryParams = new core.Map(); |
238 var _uploadMedia = null; | 240 var _uploadMedia = null; |
239 var _uploadOptions = null; | 241 var _uploadOptions = null; |
240 var _downloadOptions = common.DownloadOptions.Metadata; | 242 var _downloadOptions = commons.DownloadOptions.Metadata; |
241 var _body = null; | 243 var _body = null; |
242 | 244 |
243 if (accountId == null) { | 245 if (accountId == null) { |
244 throw new core.ArgumentError("Parameter accountId is required."); | 246 throw new core.ArgumentError("Parameter accountId is required."); |
245 } | 247 } |
246 if (locale != null) { | 248 if (locale != null) { |
247 _queryParams["locale"] = [locale]; | 249 _queryParams["locale"] = [locale]; |
248 } | 250 } |
249 | 251 |
250 | 252 |
251 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/alerts'; | 253 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts'
; |
252 | 254 |
253 var _response = _requester.request(_url, | 255 var _response = _requester.request(_url, |
254 "GET", | 256 "GET", |
255 body: _body, | 257 body: _body, |
256 queryParams: _queryParams, | 258 queryParams: _queryParams, |
257 uploadOptions: _uploadOptions, | 259 uploadOptions: _uploadOptions, |
258 uploadMedia: _uploadMedia, | 260 uploadMedia: _uploadMedia, |
259 downloadOptions: _downloadOptions); | 261 downloadOptions: _downloadOptions); |
260 return _response.then((data) => new Alerts.fromJson(data)); | 262 return _response.then((data) => new Alerts.fromJson(data)); |
261 } | 263 } |
262 | 264 |
263 } | 265 } |
264 | 266 |
265 | 267 |
266 /** Not documented yet. */ | |
267 class AccountsCustomchannelsResourceApi { | 268 class AccountsCustomchannelsResourceApi { |
268 final common_internal.ApiRequester _requester; | 269 final commons.ApiRequester _requester; |
269 | 270 |
270 AccountsCustomchannelsResourceApi(common_internal.ApiRequester client) : | 271 AccountsCustomchannelsResourceApi(commons.ApiRequester client) : |
271 _requester = client; | 272 _requester = client; |
272 | 273 |
273 /** | 274 /** |
274 * Get the specified custom channel from the specified ad client. | 275 * Get the specified custom channel from the specified ad client. |
275 * | 276 * |
276 * Request parameters: | 277 * Request parameters: |
277 * | 278 * |
278 * [accountId] - Account to which the ad client belongs. | 279 * [accountId] - Account to which the ad client belongs. |
279 * | 280 * |
280 * [adClientId] - Ad client which contains the custom channel. | 281 * [adClientId] - Ad client which contains the custom channel. |
281 * | 282 * |
282 * [customChannelId] - Custom channel to retrieve. | 283 * [customChannelId] - Custom channel to retrieve. |
283 * | 284 * |
284 * Completes with a [CustomChannel]. | 285 * Completes with a [CustomChannel]. |
285 * | 286 * |
286 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 287 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
287 * error. | 288 * error. |
288 * | 289 * |
289 * If the used [http.Client] completes with an error when making a REST call, | 290 * If the used [http.Client] completes with an error when making a REST call, |
290 * this method will complete with the same error. | 291 * this method will complete with the same error. |
291 */ | 292 */ |
292 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
core.String customChannelId) { | 293 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
core.String customChannelId) { |
293 var _url = null; | 294 var _url = null; |
294 var _queryParams = new core.Map(); | 295 var _queryParams = new core.Map(); |
295 var _uploadMedia = null; | 296 var _uploadMedia = null; |
296 var _uploadOptions = null; | 297 var _uploadOptions = null; |
297 var _downloadOptions = common.DownloadOptions.Metadata; | 298 var _downloadOptions = commons.DownloadOptions.Metadata; |
298 var _body = null; | 299 var _body = null; |
299 | 300 |
300 if (accountId == null) { | 301 if (accountId == null) { |
301 throw new core.ArgumentError("Parameter accountId is required."); | 302 throw new core.ArgumentError("Parameter accountId is required."); |
302 } | 303 } |
303 if (adClientId == null) { | 304 if (adClientId == null) { |
304 throw new core.ArgumentError("Parameter adClientId is required."); | 305 throw new core.ArgumentError("Parameter adClientId is required."); |
305 } | 306 } |
306 if (customChannelId == null) { | 307 if (customChannelId == null) { |
307 throw new core.ArgumentError("Parameter customChannelId is required."); | 308 throw new core.ArgumentError("Parameter customChannelId is required."); |
308 } | 309 } |
309 | 310 |
310 | 311 |
311 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch
annels/' + common_internal.Escaper.ecapeVariable('$customChannelId'); | 312 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo
ns.Escaper.ecapeVariable('$customChannelId'); |
312 | 313 |
313 var _response = _requester.request(_url, | 314 var _response = _requester.request(_url, |
314 "GET", | 315 "GET", |
315 body: _body, | 316 body: _body, |
316 queryParams: _queryParams, | 317 queryParams: _queryParams, |
317 uploadOptions: _uploadOptions, | 318 uploadOptions: _uploadOptions, |
318 uploadMedia: _uploadMedia, | 319 uploadMedia: _uploadMedia, |
319 downloadOptions: _downloadOptions); | 320 downloadOptions: _downloadOptions); |
320 return _response.then((data) => new CustomChannel.fromJson(data)); | 321 return _response.then((data) => new CustomChannel.fromJson(data)); |
321 } | 322 } |
(...skipping 11 matching lines...) Expand all Loading... |
333 * [maxResults] - The maximum number of custom channels to include in the | 334 * [maxResults] - The maximum number of custom channels to include in the |
334 * response, used for paging. | 335 * response, used for paging. |
335 * Value must be between "0" and "10000". | 336 * Value must be between "0" and "10000". |
336 * | 337 * |
337 * [pageToken] - A continuation token, used to page through custom channels. | 338 * [pageToken] - A continuation token, used to page through custom channels. |
338 * To retrieve the next page, set this parameter to the value of | 339 * To retrieve the next page, set this parameter to the value of |
339 * "nextPageToken" from the previous response. | 340 * "nextPageToken" from the previous response. |
340 * | 341 * |
341 * Completes with a [CustomChannels]. | 342 * Completes with a [CustomChannels]. |
342 * | 343 * |
343 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 344 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
344 * error. | 345 * error. |
345 * | 346 * |
346 * If the used [http.Client] completes with an error when making a REST call, | 347 * If the used [http.Client] completes with an error when making a REST call, |
347 * this method will complete with the same error. | 348 * this method will complete with the same error. |
348 */ | 349 */ |
349 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, {core.int maxResults, core.String pageToken}) { | 350 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, {core.int maxResults, core.String pageToken}) { |
350 var _url = null; | 351 var _url = null; |
351 var _queryParams = new core.Map(); | 352 var _queryParams = new core.Map(); |
352 var _uploadMedia = null; | 353 var _uploadMedia = null; |
353 var _uploadOptions = null; | 354 var _uploadOptions = null; |
354 var _downloadOptions = common.DownloadOptions.Metadata; | 355 var _downloadOptions = commons.DownloadOptions.Metadata; |
355 var _body = null; | 356 var _body = null; |
356 | 357 |
357 if (accountId == null) { | 358 if (accountId == null) { |
358 throw new core.ArgumentError("Parameter accountId is required."); | 359 throw new core.ArgumentError("Parameter accountId is required."); |
359 } | 360 } |
360 if (adClientId == null) { | 361 if (adClientId == null) { |
361 throw new core.ArgumentError("Parameter adClientId is required."); | 362 throw new core.ArgumentError("Parameter adClientId is required."); |
362 } | 363 } |
363 if (maxResults != null) { | 364 if (maxResults != null) { |
364 _queryParams["maxResults"] = ["${maxResults}"]; | 365 _queryParams["maxResults"] = ["${maxResults}"]; |
365 } | 366 } |
366 if (pageToken != null) { | 367 if (pageToken != null) { |
367 _queryParams["pageToken"] = [pageToken]; | 368 _queryParams["pageToken"] = [pageToken]; |
368 } | 369 } |
369 | 370 |
370 | 371 |
371 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch
annels'; | 372 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels'; |
372 | 373 |
373 var _response = _requester.request(_url, | 374 var _response = _requester.request(_url, |
374 "GET", | 375 "GET", |
375 body: _body, | 376 body: _body, |
376 queryParams: _queryParams, | 377 queryParams: _queryParams, |
377 uploadOptions: _uploadOptions, | 378 uploadOptions: _uploadOptions, |
378 uploadMedia: _uploadMedia, | 379 uploadMedia: _uploadMedia, |
379 downloadOptions: _downloadOptions); | 380 downloadOptions: _downloadOptions); |
380 return _response.then((data) => new CustomChannels.fromJson(data)); | 381 return _response.then((data) => new CustomChannels.fromJson(data)); |
381 } | 382 } |
382 | 383 |
383 } | 384 } |
384 | 385 |
385 | 386 |
386 /** Not documented yet. */ | |
387 class AccountsMetadataResourceApi { | 387 class AccountsMetadataResourceApi { |
388 final common_internal.ApiRequester _requester; | 388 final commons.ApiRequester _requester; |
389 | 389 |
390 AccountsMetadataDimensionsResourceApi get dimensions => new AccountsMetadataDi
mensionsResourceApi(_requester); | 390 AccountsMetadataDimensionsResourceApi get dimensions => new AccountsMetadataDi
mensionsResourceApi(_requester); |
391 AccountsMetadataMetricsResourceApi get metrics => new AccountsMetadataMetricsR
esourceApi(_requester); | 391 AccountsMetadataMetricsResourceApi get metrics => new AccountsMetadataMetricsR
esourceApi(_requester); |
392 | 392 |
393 AccountsMetadataResourceApi(common_internal.ApiRequester client) : | 393 AccountsMetadataResourceApi(commons.ApiRequester client) : |
394 _requester = client; | 394 _requester = client; |
395 } | 395 } |
396 | 396 |
397 | 397 |
398 /** Not documented yet. */ | |
399 class AccountsMetadataDimensionsResourceApi { | 398 class AccountsMetadataDimensionsResourceApi { |
400 final common_internal.ApiRequester _requester; | 399 final commons.ApiRequester _requester; |
401 | 400 |
402 AccountsMetadataDimensionsResourceApi(common_internal.ApiRequester client) : | 401 AccountsMetadataDimensionsResourceApi(commons.ApiRequester client) : |
403 _requester = client; | 402 _requester = client; |
404 | 403 |
405 /** | 404 /** |
406 * List the metadata for the dimensions available to this AdExchange account. | 405 * List the metadata for the dimensions available to this AdExchange account. |
407 * | 406 * |
408 * Request parameters: | 407 * Request parameters: |
409 * | 408 * |
410 * [accountId] - Account with visibility to the dimensions. | 409 * [accountId] - Account with visibility to the dimensions. |
411 * | 410 * |
412 * Completes with a [Metadata]. | 411 * Completes with a [Metadata]. |
413 * | 412 * |
414 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 413 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
415 * error. | 414 * error. |
416 * | 415 * |
417 * If the used [http.Client] completes with an error when making a REST call, | 416 * If the used [http.Client] completes with an error when making a REST call, |
418 * this method will complete with the same error. | 417 * this method will complete with the same error. |
419 */ | 418 */ |
420 async.Future<Metadata> list(core.String accountId) { | 419 async.Future<Metadata> list(core.String accountId) { |
421 var _url = null; | 420 var _url = null; |
422 var _queryParams = new core.Map(); | 421 var _queryParams = new core.Map(); |
423 var _uploadMedia = null; | 422 var _uploadMedia = null; |
424 var _uploadOptions = null; | 423 var _uploadOptions = null; |
425 var _downloadOptions = common.DownloadOptions.Metadata; | 424 var _downloadOptions = commons.DownloadOptions.Metadata; |
426 var _body = null; | 425 var _body = null; |
427 | 426 |
428 if (accountId == null) { | 427 if (accountId == null) { |
429 throw new core.ArgumentError("Parameter accountId is required."); | 428 throw new core.ArgumentError("Parameter accountId is required."); |
430 } | 429 } |
431 | 430 |
432 | 431 |
433 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/metadata/dimensions'; | 432 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/metadat
a/dimensions'; |
434 | 433 |
435 var _response = _requester.request(_url, | 434 var _response = _requester.request(_url, |
436 "GET", | 435 "GET", |
437 body: _body, | 436 body: _body, |
438 queryParams: _queryParams, | 437 queryParams: _queryParams, |
439 uploadOptions: _uploadOptions, | 438 uploadOptions: _uploadOptions, |
440 uploadMedia: _uploadMedia, | 439 uploadMedia: _uploadMedia, |
441 downloadOptions: _downloadOptions); | 440 downloadOptions: _downloadOptions); |
442 return _response.then((data) => new Metadata.fromJson(data)); | 441 return _response.then((data) => new Metadata.fromJson(data)); |
443 } | 442 } |
444 | 443 |
445 } | 444 } |
446 | 445 |
447 | 446 |
448 /** Not documented yet. */ | |
449 class AccountsMetadataMetricsResourceApi { | 447 class AccountsMetadataMetricsResourceApi { |
450 final common_internal.ApiRequester _requester; | 448 final commons.ApiRequester _requester; |
451 | 449 |
452 AccountsMetadataMetricsResourceApi(common_internal.ApiRequester client) : | 450 AccountsMetadataMetricsResourceApi(commons.ApiRequester client) : |
453 _requester = client; | 451 _requester = client; |
454 | 452 |
455 /** | 453 /** |
456 * List the metadata for the metrics available to this AdExchange account. | 454 * List the metadata for the metrics available to this AdExchange account. |
457 * | 455 * |
458 * Request parameters: | 456 * Request parameters: |
459 * | 457 * |
460 * [accountId] - Account with visibility to the metrics. | 458 * [accountId] - Account with visibility to the metrics. |
461 * | 459 * |
462 * Completes with a [Metadata]. | 460 * Completes with a [Metadata]. |
463 * | 461 * |
464 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 462 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
465 * error. | 463 * error. |
466 * | 464 * |
467 * If the used [http.Client] completes with an error when making a REST call, | 465 * If the used [http.Client] completes with an error when making a REST call, |
468 * this method will complete with the same error. | 466 * this method will complete with the same error. |
469 */ | 467 */ |
470 async.Future<Metadata> list(core.String accountId) { | 468 async.Future<Metadata> list(core.String accountId) { |
471 var _url = null; | 469 var _url = null; |
472 var _queryParams = new core.Map(); | 470 var _queryParams = new core.Map(); |
473 var _uploadMedia = null; | 471 var _uploadMedia = null; |
474 var _uploadOptions = null; | 472 var _uploadOptions = null; |
475 var _downloadOptions = common.DownloadOptions.Metadata; | 473 var _downloadOptions = commons.DownloadOptions.Metadata; |
476 var _body = null; | 474 var _body = null; |
477 | 475 |
478 if (accountId == null) { | 476 if (accountId == null) { |
479 throw new core.ArgumentError("Parameter accountId is required."); | 477 throw new core.ArgumentError("Parameter accountId is required."); |
480 } | 478 } |
481 | 479 |
482 | 480 |
483 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/metadata/metrics'; | 481 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/metadat
a/metrics'; |
484 | 482 |
485 var _response = _requester.request(_url, | 483 var _response = _requester.request(_url, |
486 "GET", | 484 "GET", |
487 body: _body, | 485 body: _body, |
488 queryParams: _queryParams, | 486 queryParams: _queryParams, |
489 uploadOptions: _uploadOptions, | 487 uploadOptions: _uploadOptions, |
490 uploadMedia: _uploadMedia, | 488 uploadMedia: _uploadMedia, |
491 downloadOptions: _downloadOptions); | 489 downloadOptions: _downloadOptions); |
492 return _response.then((data) => new Metadata.fromJson(data)); | 490 return _response.then((data) => new Metadata.fromJson(data)); |
493 } | 491 } |
494 | 492 |
495 } | 493 } |
496 | 494 |
497 | 495 |
498 /** Not documented yet. */ | |
499 class AccountsPreferreddealsResourceApi { | 496 class AccountsPreferreddealsResourceApi { |
500 final common_internal.ApiRequester _requester; | 497 final commons.ApiRequester _requester; |
501 | 498 |
502 AccountsPreferreddealsResourceApi(common_internal.ApiRequester client) : | 499 AccountsPreferreddealsResourceApi(commons.ApiRequester client) : |
503 _requester = client; | 500 _requester = client; |
504 | 501 |
505 /** | 502 /** |
506 * Get information about the selected Ad Exchange Preferred Deal. | 503 * Get information about the selected Ad Exchange Preferred Deal. |
507 * | 504 * |
508 * Request parameters: | 505 * Request parameters: |
509 * | 506 * |
510 * [accountId] - Account owning the deal. | 507 * [accountId] - Account owning the deal. |
511 * | 508 * |
512 * [dealId] - Preferred deal to get information about. | 509 * [dealId] - Preferred deal to get information about. |
513 * | 510 * |
514 * Completes with a [PreferredDeal]. | 511 * Completes with a [PreferredDeal]. |
515 * | 512 * |
516 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 513 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
517 * error. | 514 * error. |
518 * | 515 * |
519 * If the used [http.Client] completes with an error when making a REST call, | 516 * If the used [http.Client] completes with an error when making a REST call, |
520 * this method will complete with the same error. | 517 * this method will complete with the same error. |
521 */ | 518 */ |
522 async.Future<PreferredDeal> get(core.String accountId, core.String dealId) { | 519 async.Future<PreferredDeal> get(core.String accountId, core.String dealId) { |
523 var _url = null; | 520 var _url = null; |
524 var _queryParams = new core.Map(); | 521 var _queryParams = new core.Map(); |
525 var _uploadMedia = null; | 522 var _uploadMedia = null; |
526 var _uploadOptions = null; | 523 var _uploadOptions = null; |
527 var _downloadOptions = common.DownloadOptions.Metadata; | 524 var _downloadOptions = commons.DownloadOptions.Metadata; |
528 var _body = null; | 525 var _body = null; |
529 | 526 |
530 if (accountId == null) { | 527 if (accountId == null) { |
531 throw new core.ArgumentError("Parameter accountId is required."); | 528 throw new core.ArgumentError("Parameter accountId is required."); |
532 } | 529 } |
533 if (dealId == null) { | 530 if (dealId == null) { |
534 throw new core.ArgumentError("Parameter dealId is required."); | 531 throw new core.ArgumentError("Parameter dealId is required."); |
535 } | 532 } |
536 | 533 |
537 | 534 |
538 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId'); | 535 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/preferr
eddeals/' + commons.Escaper.ecapeVariable('$dealId'); |
539 | 536 |
540 var _response = _requester.request(_url, | 537 var _response = _requester.request(_url, |
541 "GET", | 538 "GET", |
542 body: _body, | 539 body: _body, |
543 queryParams: _queryParams, | 540 queryParams: _queryParams, |
544 uploadOptions: _uploadOptions, | 541 uploadOptions: _uploadOptions, |
545 uploadMedia: _uploadMedia, | 542 uploadMedia: _uploadMedia, |
546 downloadOptions: _downloadOptions); | 543 downloadOptions: _downloadOptions); |
547 return _response.then((data) => new PreferredDeal.fromJson(data)); | 544 return _response.then((data) => new PreferredDeal.fromJson(data)); |
548 } | 545 } |
549 | 546 |
550 /** | 547 /** |
551 * List the preferred deals for this Ad Exchange account. | 548 * List the preferred deals for this Ad Exchange account. |
552 * | 549 * |
553 * Request parameters: | 550 * Request parameters: |
554 * | 551 * |
555 * [accountId] - Account owning the deals. | 552 * [accountId] - Account owning the deals. |
556 * | 553 * |
557 * Completes with a [PreferredDeals]. | 554 * Completes with a [PreferredDeals]. |
558 * | 555 * |
559 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
560 * error. | 557 * error. |
561 * | 558 * |
562 * If the used [http.Client] completes with an error when making a REST call, | 559 * If the used [http.Client] completes with an error when making a REST call, |
563 * this method will complete with the same error. | 560 * this method will complete with the same error. |
564 */ | 561 */ |
565 async.Future<PreferredDeals> list(core.String accountId) { | 562 async.Future<PreferredDeals> list(core.String accountId) { |
566 var _url = null; | 563 var _url = null; |
567 var _queryParams = new core.Map(); | 564 var _queryParams = new core.Map(); |
568 var _uploadMedia = null; | 565 var _uploadMedia = null; |
569 var _uploadOptions = null; | 566 var _uploadOptions = null; |
570 var _downloadOptions = common.DownloadOptions.Metadata; | 567 var _downloadOptions = commons.DownloadOptions.Metadata; |
571 var _body = null; | 568 var _body = null; |
572 | 569 |
573 if (accountId == null) { | 570 if (accountId == null) { |
574 throw new core.ArgumentError("Parameter accountId is required."); | 571 throw new core.ArgumentError("Parameter accountId is required."); |
575 } | 572 } |
576 | 573 |
577 | 574 |
578 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/preferreddeals'; | 575 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/preferr
eddeals'; |
579 | 576 |
580 var _response = _requester.request(_url, | 577 var _response = _requester.request(_url, |
581 "GET", | 578 "GET", |
582 body: _body, | 579 body: _body, |
583 queryParams: _queryParams, | 580 queryParams: _queryParams, |
584 uploadOptions: _uploadOptions, | 581 uploadOptions: _uploadOptions, |
585 uploadMedia: _uploadMedia, | 582 uploadMedia: _uploadMedia, |
586 downloadOptions: _downloadOptions); | 583 downloadOptions: _downloadOptions); |
587 return _response.then((data) => new PreferredDeals.fromJson(data)); | 584 return _response.then((data) => new PreferredDeals.fromJson(data)); |
588 } | 585 } |
589 | 586 |
590 } | 587 } |
591 | 588 |
592 | 589 |
593 /** Not documented yet. */ | |
594 class AccountsReportsResourceApi { | 590 class AccountsReportsResourceApi { |
595 final common_internal.ApiRequester _requester; | 591 final commons.ApiRequester _requester; |
596 | 592 |
597 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA
pi(_requester); | 593 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA
pi(_requester); |
598 | 594 |
599 AccountsReportsResourceApi(common_internal.ApiRequester client) : | 595 AccountsReportsResourceApi(commons.ApiRequester client) : |
600 _requester = client; | 596 _requester = client; |
601 | 597 |
602 /** | 598 /** |
603 * Generate an Ad Exchange report based on the report request sent in the | 599 * Generate an Ad Exchange report based on the report request sent in the |
604 * query parameters. Returns the result as JSON; to retrieve output in CSV | 600 * query parameters. Returns the result as JSON; to retrieve output in CSV |
605 * format specify "alt=csv" as a query parameter. | 601 * format specify "alt=csv" as a query parameter. |
606 * | 602 * |
607 * Request parameters: | 603 * Request parameters: |
608 * | 604 * |
609 * [accountId] - Account which owns the generated report. | 605 * [accountId] - Account which owns the generated report. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 * Value must be between "0" and "5000". | 639 * Value must be between "0" and "5000". |
644 * | 640 * |
645 * [downloadOptions] - Options for downloading. A download can be either a | 641 * [downloadOptions] - Options for downloading. A download can be either a |
646 * Metadata (default) or Media download. Partial Media downloads are possible | 642 * Metadata (default) or Media download. Partial Media downloads are possible |
647 * as well. | 643 * as well. |
648 * | 644 * |
649 * Completes with a | 645 * Completes with a |
650 * | 646 * |
651 * - [Report] for Metadata downloads (see [downloadOptions]). | 647 * - [Report] for Metadata downloads (see [downloadOptions]). |
652 * | 648 * |
653 * - [common.Media] for Media downloads (see [downloadOptions]). | 649 * - [commons.Media] for Media downloads (see [downloadOptions]). |
654 * | 650 * |
655 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 651 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
656 * error. | 652 * error. |
657 * | 653 * |
658 * If the used [http.Client] completes with an error when making a REST call, | 654 * If the used [http.Client] completes with an error when making a REST call, |
659 * this method will complete with the same error. | 655 * this method will complete with the same error. |
660 */ | 656 */ |
661 async.Future generate(core.String accountId, core.String startDate, core.Strin
g endDate, {core.List<core.String> dimension, core.List<core.String> filter, cor
e.String locale, core.int maxResults, core.List<core.String> metric, core.List<c
ore.String> sort, core.int startIndex, common.DownloadOptions downloadOptions: c
ommon.DownloadOptions.Metadata}) { | 657 async.Future generate(core.String accountId, core.String startDate, core.Strin
g endDate, {core.List<core.String> dimension, core.List<core.String> filter, cor
e.String locale, core.int maxResults, core.List<core.String> metric, core.List<c
ore.String> sort, core.int startIndex, commons.DownloadOptions downloadOptions:
commons.DownloadOptions.Metadata}) { |
662 var _url = null; | 658 var _url = null; |
663 var _queryParams = new core.Map(); | 659 var _queryParams = new core.Map(); |
664 var _uploadMedia = null; | 660 var _uploadMedia = null; |
665 var _uploadOptions = null; | 661 var _uploadOptions = null; |
666 var _downloadOptions = common.DownloadOptions.Metadata; | 662 var _downloadOptions = commons.DownloadOptions.Metadata; |
667 var _body = null; | 663 var _body = null; |
668 | 664 |
669 if (accountId == null) { | 665 if (accountId == null) { |
670 throw new core.ArgumentError("Parameter accountId is required."); | 666 throw new core.ArgumentError("Parameter accountId is required."); |
671 } | 667 } |
672 if (startDate == null) { | 668 if (startDate == null) { |
673 throw new core.ArgumentError("Parameter startDate is required."); | 669 throw new core.ArgumentError("Parameter startDate is required."); |
674 } | 670 } |
675 _queryParams["startDate"] = [startDate]; | 671 _queryParams["startDate"] = [startDate]; |
676 if (endDate == null) { | 672 if (endDate == null) { |
(...skipping 17 matching lines...) Expand all Loading... |
694 } | 690 } |
695 if (sort != null) { | 691 if (sort != null) { |
696 _queryParams["sort"] = sort; | 692 _queryParams["sort"] = sort; |
697 } | 693 } |
698 if (startIndex != null) { | 694 if (startIndex != null) { |
699 _queryParams["startIndex"] = ["${startIndex}"]; | 695 _queryParams["startIndex"] = ["${startIndex}"]; |
700 } | 696 } |
701 | 697 |
702 _downloadOptions = downloadOptions; | 698 _downloadOptions = downloadOptions; |
703 | 699 |
704 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports'; | 700 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
'; |
705 | 701 |
706 var _response = _requester.request(_url, | 702 var _response = _requester.request(_url, |
707 "GET", | 703 "GET", |
708 body: _body, | 704 body: _body, |
709 queryParams: _queryParams, | 705 queryParams: _queryParams, |
710 uploadOptions: _uploadOptions, | 706 uploadOptions: _uploadOptions, |
711 uploadMedia: _uploadMedia, | 707 uploadMedia: _uploadMedia, |
712 downloadOptions: _downloadOptions); | 708 downloadOptions: _downloadOptions); |
713 if (_downloadOptions == null || | 709 if (_downloadOptions == null || |
714 _downloadOptions == common.DownloadOptions.Metadata) { | 710 _downloadOptions == commons.DownloadOptions.Metadata) { |
715 return _response.then((data) => new Report.fromJson(data)); | 711 return _response.then((data) => new Report.fromJson(data)); |
716 } else { | 712 } else { |
717 return _response; | 713 return _response; |
718 } | 714 } |
719 } | 715 } |
720 | 716 |
721 } | 717 } |
722 | 718 |
723 | 719 |
724 /** Not documented yet. */ | |
725 class AccountsReportsSavedResourceApi { | 720 class AccountsReportsSavedResourceApi { |
726 final common_internal.ApiRequester _requester; | 721 final commons.ApiRequester _requester; |
727 | 722 |
728 AccountsReportsSavedResourceApi(common_internal.ApiRequester client) : | 723 AccountsReportsSavedResourceApi(commons.ApiRequester client) : |
729 _requester = client; | 724 _requester = client; |
730 | 725 |
731 /** | 726 /** |
732 * Generate an Ad Exchange report based on the saved report ID sent in the | 727 * Generate an Ad Exchange report based on the saved report ID sent in the |
733 * query parameters. | 728 * query parameters. |
734 * | 729 * |
735 * Request parameters: | 730 * Request parameters: |
736 * | 731 * |
737 * [accountId] - Account owning the saved report. | 732 * [accountId] - Account owning the saved report. |
738 * | 733 * |
739 * [savedReportId] - The saved report to retrieve. | 734 * [savedReportId] - The saved report to retrieve. |
740 * | 735 * |
741 * [locale] - Optional locale to use for translating report output to a local | 736 * [locale] - Optional locale to use for translating report output to a local |
742 * language. Defaults to "en_US" if not specified. | 737 * language. Defaults to "en_US" if not specified. |
743 * Value must have pattern "[a-zA-Z_]+". | 738 * Value must have pattern "[a-zA-Z_]+". |
744 * | 739 * |
745 * [maxResults] - The maximum number of rows of report data to return. | 740 * [maxResults] - The maximum number of rows of report data to return. |
746 * Value must be between "0" and "50000". | 741 * Value must be between "0" and "50000". |
747 * | 742 * |
748 * [startIndex] - Index of the first row of report data to return. | 743 * [startIndex] - Index of the first row of report data to return. |
749 * Value must be between "0" and "5000". | 744 * Value must be between "0" and "5000". |
750 * | 745 * |
751 * Completes with a [Report]. | 746 * Completes with a [Report]. |
752 * | 747 * |
753 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
754 * error. | 749 * error. |
755 * | 750 * |
756 * If the used [http.Client] completes with an error when making a REST call, | 751 * If the used [http.Client] completes with an error when making a REST call, |
757 * this method will complete with the same error. | 752 * this method will complete with the same error. |
758 */ | 753 */ |
759 async.Future<Report> generate(core.String accountId, core.String savedReportId
, {core.String locale, core.int maxResults, core.int startIndex}) { | 754 async.Future<Report> generate(core.String accountId, core.String savedReportId
, {core.String locale, core.int maxResults, core.int startIndex}) { |
760 var _url = null; | 755 var _url = null; |
761 var _queryParams = new core.Map(); | 756 var _queryParams = new core.Map(); |
762 var _uploadMedia = null; | 757 var _uploadMedia = null; |
763 var _uploadOptions = null; | 758 var _uploadOptions = null; |
764 var _downloadOptions = common.DownloadOptions.Metadata; | 759 var _downloadOptions = commons.DownloadOptions.Metadata; |
765 var _body = null; | 760 var _body = null; |
766 | 761 |
767 if (accountId == null) { | 762 if (accountId == null) { |
768 throw new core.ArgumentError("Parameter accountId is required."); | 763 throw new core.ArgumentError("Parameter accountId is required."); |
769 } | 764 } |
770 if (savedReportId == null) { | 765 if (savedReportId == null) { |
771 throw new core.ArgumentError("Parameter savedReportId is required."); | 766 throw new core.ArgumentError("Parameter savedReportId is required."); |
772 } | 767 } |
773 if (locale != null) { | 768 if (locale != null) { |
774 _queryParams["locale"] = [locale]; | 769 _queryParams["locale"] = [locale]; |
775 } | 770 } |
776 if (maxResults != null) { | 771 if (maxResults != null) { |
777 _queryParams["maxResults"] = ["${maxResults}"]; | 772 _queryParams["maxResults"] = ["${maxResults}"]; |
778 } | 773 } |
779 if (startIndex != null) { | 774 if (startIndex != null) { |
780 _queryParams["startIndex"] = ["${startIndex}"]; | 775 _queryParams["startIndex"] = ["${startIndex}"]; |
781 } | 776 } |
782 | 777 |
783 | 778 |
784 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports/' + common_internal.Escaper.ecapeVariable('$savedReportId'); | 779 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/' + commons.Escaper.ecapeVariable('$savedReportId'); |
785 | 780 |
786 var _response = _requester.request(_url, | 781 var _response = _requester.request(_url, |
787 "GET", | 782 "GET", |
788 body: _body, | 783 body: _body, |
789 queryParams: _queryParams, | 784 queryParams: _queryParams, |
790 uploadOptions: _uploadOptions, | 785 uploadOptions: _uploadOptions, |
791 uploadMedia: _uploadMedia, | 786 uploadMedia: _uploadMedia, |
792 downloadOptions: _downloadOptions); | 787 downloadOptions: _downloadOptions); |
793 return _response.then((data) => new Report.fromJson(data)); | 788 return _response.then((data) => new Report.fromJson(data)); |
794 } | 789 } |
795 | 790 |
796 /** | 791 /** |
797 * List all saved reports in this Ad Exchange account. | 792 * List all saved reports in this Ad Exchange account. |
798 * | 793 * |
799 * Request parameters: | 794 * Request parameters: |
800 * | 795 * |
801 * [accountId] - Account owning the saved reports. | 796 * [accountId] - Account owning the saved reports. |
802 * | 797 * |
803 * [maxResults] - The maximum number of saved reports to include in the | 798 * [maxResults] - The maximum number of saved reports to include in the |
804 * response, used for paging. | 799 * response, used for paging. |
805 * Value must be between "0" and "100". | 800 * Value must be between "0" and "100". |
806 * | 801 * |
807 * [pageToken] - A continuation token, used to page through saved reports. To | 802 * [pageToken] - A continuation token, used to page through saved reports. To |
808 * retrieve the next page, set this parameter to the value of "nextPageToken" | 803 * retrieve the next page, set this parameter to the value of "nextPageToken" |
809 * from the previous response. | 804 * from the previous response. |
810 * | 805 * |
811 * Completes with a [SavedReports]. | 806 * Completes with a [SavedReports]. |
812 * | 807 * |
813 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 808 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
814 * error. | 809 * error. |
815 * | 810 * |
816 * If the used [http.Client] completes with an error when making a REST call, | 811 * If the used [http.Client] completes with an error when making a REST call, |
817 * this method will complete with the same error. | 812 * this method will complete with the same error. |
818 */ | 813 */ |
819 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c
ore.String pageToken}) { | 814 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c
ore.String pageToken}) { |
820 var _url = null; | 815 var _url = null; |
821 var _queryParams = new core.Map(); | 816 var _queryParams = new core.Map(); |
822 var _uploadMedia = null; | 817 var _uploadMedia = null; |
823 var _uploadOptions = null; | 818 var _uploadOptions = null; |
824 var _downloadOptions = common.DownloadOptions.Metadata; | 819 var _downloadOptions = commons.DownloadOptions.Metadata; |
825 var _body = null; | 820 var _body = null; |
826 | 821 |
827 if (accountId == null) { | 822 if (accountId == null) { |
828 throw new core.ArgumentError("Parameter accountId is required."); | 823 throw new core.ArgumentError("Parameter accountId is required."); |
829 } | 824 } |
830 if (maxResults != null) { | 825 if (maxResults != null) { |
831 _queryParams["maxResults"] = ["${maxResults}"]; | 826 _queryParams["maxResults"] = ["${maxResults}"]; |
832 } | 827 } |
833 if (pageToken != null) { | 828 if (pageToken != null) { |
834 _queryParams["pageToken"] = [pageToken]; | 829 _queryParams["pageToken"] = [pageToken]; |
835 } | 830 } |
836 | 831 |
837 | 832 |
838 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports/saved'; | 833 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/saved'; |
839 | 834 |
840 var _response = _requester.request(_url, | 835 var _response = _requester.request(_url, |
841 "GET", | 836 "GET", |
842 body: _body, | 837 body: _body, |
843 queryParams: _queryParams, | 838 queryParams: _queryParams, |
844 uploadOptions: _uploadOptions, | 839 uploadOptions: _uploadOptions, |
845 uploadMedia: _uploadMedia, | 840 uploadMedia: _uploadMedia, |
846 downloadOptions: _downloadOptions); | 841 downloadOptions: _downloadOptions); |
847 return _response.then((data) => new SavedReports.fromJson(data)); | 842 return _response.then((data) => new SavedReports.fromJson(data)); |
848 } | 843 } |
849 | 844 |
850 } | 845 } |
851 | 846 |
852 | 847 |
853 /** Not documented yet. */ | |
854 class AccountsUrlchannelsResourceApi { | 848 class AccountsUrlchannelsResourceApi { |
855 final common_internal.ApiRequester _requester; | 849 final commons.ApiRequester _requester; |
856 | 850 |
857 AccountsUrlchannelsResourceApi(common_internal.ApiRequester client) : | 851 AccountsUrlchannelsResourceApi(commons.ApiRequester client) : |
858 _requester = client; | 852 _requester = client; |
859 | 853 |
860 /** | 854 /** |
861 * List all URL channels in the specified ad client for this Ad Exchange | 855 * List all URL channels in the specified ad client for this Ad Exchange |
862 * account. | 856 * account. |
863 * | 857 * |
864 * Request parameters: | 858 * Request parameters: |
865 * | 859 * |
866 * [accountId] - Account to which the ad client belongs. | 860 * [accountId] - Account to which the ad client belongs. |
867 * | 861 * |
868 * [adClientId] - Ad client for which to list URL channels. | 862 * [adClientId] - Ad client for which to list URL channels. |
869 * | 863 * |
870 * [maxResults] - The maximum number of URL channels to include in the | 864 * [maxResults] - The maximum number of URL channels to include in the |
871 * response, used for paging. | 865 * response, used for paging. |
872 * Value must be between "0" and "10000". | 866 * Value must be between "0" and "10000". |
873 * | 867 * |
874 * [pageToken] - A continuation token, used to page through URL channels. To | 868 * [pageToken] - A continuation token, used to page through URL channels. To |
875 * retrieve the next page, set this parameter to the value of "nextPageToken" | 869 * retrieve the next page, set this parameter to the value of "nextPageToken" |
876 * from the previous response. | 870 * from the previous response. |
877 * | 871 * |
878 * Completes with a [UrlChannels]. | 872 * Completes with a [UrlChannels]. |
879 * | 873 * |
880 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 874 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
881 * error. | 875 * error. |
882 * | 876 * |
883 * If the used [http.Client] completes with an error when making a REST call, | 877 * If the used [http.Client] completes with an error when making a REST call, |
884 * this method will complete with the same error. | 878 * this method will complete with the same error. |
885 */ | 879 */ |
886 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
{core.int maxResults, core.String pageToken}) { | 880 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
{core.int maxResults, core.String pageToken}) { |
887 var _url = null; | 881 var _url = null; |
888 var _queryParams = new core.Map(); | 882 var _queryParams = new core.Map(); |
889 var _uploadMedia = null; | 883 var _uploadMedia = null; |
890 var _uploadOptions = null; | 884 var _uploadOptions = null; |
891 var _downloadOptions = common.DownloadOptions.Metadata; | 885 var _downloadOptions = commons.DownloadOptions.Metadata; |
892 var _body = null; | 886 var _body = null; |
893 | 887 |
894 if (accountId == null) { | 888 if (accountId == null) { |
895 throw new core.ArgumentError("Parameter accountId is required."); | 889 throw new core.ArgumentError("Parameter accountId is required."); |
896 } | 890 } |
897 if (adClientId == null) { | 891 if (adClientId == null) { |
898 throw new core.ArgumentError("Parameter adClientId is required."); | 892 throw new core.ArgumentError("Parameter adClientId is required."); |
899 } | 893 } |
900 if (maxResults != null) { | 894 if (maxResults != null) { |
901 _queryParams["maxResults"] = ["${maxResults}"]; | 895 _queryParams["maxResults"] = ["${maxResults}"]; |
902 } | 896 } |
903 if (pageToken != null) { | 897 if (pageToken != null) { |
904 _queryParams["pageToken"] = [pageToken]; | 898 _queryParams["pageToken"] = [pageToken]; |
905 } | 899 } |
906 | 900 |
907 | 901 |
908 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchann
els'; | 902 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; |
909 | 903 |
910 var _response = _requester.request(_url, | 904 var _response = _requester.request(_url, |
911 "GET", | 905 "GET", |
912 body: _body, | 906 body: _body, |
913 queryParams: _queryParams, | 907 queryParams: _queryParams, |
914 uploadOptions: _uploadOptions, | 908 uploadOptions: _uploadOptions, |
915 uploadMedia: _uploadMedia, | 909 uploadMedia: _uploadMedia, |
916 downloadOptions: _downloadOptions); | 910 downloadOptions: _downloadOptions); |
917 return _response.then((data) => new UrlChannels.fromJson(data)); | 911 return _response.then((data) => new UrlChannels.fromJson(data)); |
918 } | 912 } |
919 | 913 |
920 } | 914 } |
921 | 915 |
922 | 916 |
923 | 917 |
924 /** Not documented yet. */ | |
925 class Account { | 918 class Account { |
926 /** Unique identifier of this account. */ | 919 /** Unique identifier of this account. */ |
927 core.String id; | 920 core.String id; |
928 | 921 |
929 /** Kind of resource this is, in this case adexchangeseller#account. */ | 922 /** Kind of resource this is, in this case adexchangeseller#account. */ |
930 core.String kind; | 923 core.String kind; |
931 | 924 |
932 /** Name of this account. */ | 925 /** Name of this account. */ |
933 core.String name; | 926 core.String name; |
934 | 927 |
(...skipping 21 matching lines...) Expand all Loading... |
956 _json["kind"] = kind; | 949 _json["kind"] = kind; |
957 } | 950 } |
958 if (name != null) { | 951 if (name != null) { |
959 _json["name"] = name; | 952 _json["name"] = name; |
960 } | 953 } |
961 return _json; | 954 return _json; |
962 } | 955 } |
963 } | 956 } |
964 | 957 |
965 | 958 |
966 /** Not documented yet. */ | |
967 class Accounts { | 959 class Accounts { |
968 /** ETag of this response for caching purposes. */ | 960 /** ETag of this response for caching purposes. */ |
969 core.String etag; | 961 core.String etag; |
970 | 962 |
971 /** The accounts returned in this list response. */ | 963 /** The accounts returned in this list response. */ |
972 core.List<Account> items; | 964 core.List<Account> items; |
973 | 965 |
974 /** Kind of list this is, in this case adexchangeseller#accounts. */ | 966 /** Kind of list this is, in this case adexchangeseller#accounts. */ |
975 core.String kind; | 967 core.String kind; |
976 | 968 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 _json["kind"] = kind; | 1002 _json["kind"] = kind; |
1011 } | 1003 } |
1012 if (nextPageToken != null) { | 1004 if (nextPageToken != null) { |
1013 _json["nextPageToken"] = nextPageToken; | 1005 _json["nextPageToken"] = nextPageToken; |
1014 } | 1006 } |
1015 return _json; | 1007 return _json; |
1016 } | 1008 } |
1017 } | 1009 } |
1018 | 1010 |
1019 | 1011 |
1020 /** Not documented yet. */ | |
1021 class AdClient { | 1012 class AdClient { |
1022 /** Whether this ad client is opted in to ARC. */ | 1013 /** Whether this ad client is opted in to ARC. */ |
1023 core.bool arcOptIn; | 1014 core.bool arcOptIn; |
1024 | 1015 |
1025 /** Unique identifier of this ad client. */ | 1016 /** Unique identifier of this ad client. */ |
1026 core.String id; | 1017 core.String id; |
1027 | 1018 |
1028 /** Kind of resource this is, in this case adexchangeseller#adClient. */ | 1019 /** Kind of resource this is, in this case adexchangeseller#adClient. */ |
1029 core.String kind; | 1020 core.String kind; |
1030 | 1021 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 _json["productCode"] = productCode; | 1064 _json["productCode"] = productCode; |
1074 } | 1065 } |
1075 if (supportsReporting != null) { | 1066 if (supportsReporting != null) { |
1076 _json["supportsReporting"] = supportsReporting; | 1067 _json["supportsReporting"] = supportsReporting; |
1077 } | 1068 } |
1078 return _json; | 1069 return _json; |
1079 } | 1070 } |
1080 } | 1071 } |
1081 | 1072 |
1082 | 1073 |
1083 /** Not documented yet. */ | |
1084 class AdClients { | 1074 class AdClients { |
1085 /** ETag of this response for caching purposes. */ | 1075 /** ETag of this response for caching purposes. */ |
1086 core.String etag; | 1076 core.String etag; |
1087 | 1077 |
1088 /** The ad clients returned in this list response. */ | 1078 /** The ad clients returned in this list response. */ |
1089 core.List<AdClient> items; | 1079 core.List<AdClient> items; |
1090 | 1080 |
1091 /** Kind of list this is, in this case adexchangeseller#adClients. */ | 1081 /** Kind of list this is, in this case adexchangeseller#adClients. */ |
1092 core.String kind; | 1082 core.String kind; |
1093 | 1083 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 _json["kind"] = kind; | 1117 _json["kind"] = kind; |
1128 } | 1118 } |
1129 if (nextPageToken != null) { | 1119 if (nextPageToken != null) { |
1130 _json["nextPageToken"] = nextPageToken; | 1120 _json["nextPageToken"] = nextPageToken; |
1131 } | 1121 } |
1132 return _json; | 1122 return _json; |
1133 } | 1123 } |
1134 } | 1124 } |
1135 | 1125 |
1136 | 1126 |
1137 /** Not documented yet. */ | |
1138 class Alert { | 1127 class Alert { |
1139 /** | 1128 /** |
1140 * Unique identifier of this alert. This should be considered an opaque | 1129 * Unique identifier of this alert. This should be considered an opaque |
1141 * identifier; it is not safe to rely on it being in any particular format. | 1130 * identifier; it is not safe to rely on it being in any particular format. |
1142 */ | 1131 */ |
1143 core.String id; | 1132 core.String id; |
1144 | 1133 |
1145 /** Kind of resource this is, in this case adexchangeseller#alert. */ | 1134 /** Kind of resource this is, in this case adexchangeseller#alert. */ |
1146 core.String kind; | 1135 core.String kind; |
1147 | 1136 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 _json["severity"] = severity; | 1183 _json["severity"] = severity; |
1195 } | 1184 } |
1196 if (type != null) { | 1185 if (type != null) { |
1197 _json["type"] = type; | 1186 _json["type"] = type; |
1198 } | 1187 } |
1199 return _json; | 1188 return _json; |
1200 } | 1189 } |
1201 } | 1190 } |
1202 | 1191 |
1203 | 1192 |
1204 /** Not documented yet. */ | |
1205 class Alerts { | 1193 class Alerts { |
1206 /** The alerts returned in this list response. */ | 1194 /** The alerts returned in this list response. */ |
1207 core.List<Alert> items; | 1195 core.List<Alert> items; |
1208 | 1196 |
1209 /** Kind of list this is, in this case adexchangeseller#alerts. */ | 1197 /** Kind of list this is, in this case adexchangeseller#alerts. */ |
1210 core.String kind; | 1198 core.String kind; |
1211 | 1199 |
1212 | 1200 |
1213 Alerts(); | 1201 Alerts(); |
1214 | 1202 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1284 _json["location"] = location; | 1272 _json["location"] = location; |
1285 } | 1273 } |
1286 if (siteLanguage != null) { | 1274 if (siteLanguage != null) { |
1287 _json["siteLanguage"] = siteLanguage; | 1275 _json["siteLanguage"] = siteLanguage; |
1288 } | 1276 } |
1289 return _json; | 1277 return _json; |
1290 } | 1278 } |
1291 } | 1279 } |
1292 | 1280 |
1293 | 1281 |
1294 /** Not documented yet. */ | |
1295 class CustomChannel { | 1282 class CustomChannel { |
1296 /** Code of this custom channel, not necessarily unique across ad clients. */ | 1283 /** Code of this custom channel, not necessarily unique across ad clients. */ |
1297 core.String code; | 1284 core.String code; |
1298 | 1285 |
1299 /** | 1286 /** |
1300 * Unique identifier of this custom channel. This should be considered an | 1287 * Unique identifier of this custom channel. This should be considered an |
1301 * opaque identifier; it is not safe to rely on it being in any particular | 1288 * opaque identifier; it is not safe to rely on it being in any particular |
1302 * format. | 1289 * format. |
1303 */ | 1290 */ |
1304 core.String id; | 1291 core.String id; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1348 _json["name"] = name; | 1335 _json["name"] = name; |
1349 } | 1336 } |
1350 if (targetingInfo != null) { | 1337 if (targetingInfo != null) { |
1351 _json["targetingInfo"] = (targetingInfo).toJson(); | 1338 _json["targetingInfo"] = (targetingInfo).toJson(); |
1352 } | 1339 } |
1353 return _json; | 1340 return _json; |
1354 } | 1341 } |
1355 } | 1342 } |
1356 | 1343 |
1357 | 1344 |
1358 /** Not documented yet. */ | |
1359 class CustomChannels { | 1345 class CustomChannels { |
1360 /** ETag of this response for caching purposes. */ | 1346 /** ETag of this response for caching purposes. */ |
1361 core.String etag; | 1347 core.String etag; |
1362 | 1348 |
1363 /** The custom channels returned in this list response. */ | 1349 /** The custom channels returned in this list response. */ |
1364 core.List<CustomChannel> items; | 1350 core.List<CustomChannel> items; |
1365 | 1351 |
1366 /** Kind of list this is, in this case adexchangeseller#customChannels. */ | 1352 /** Kind of list this is, in this case adexchangeseller#customChannels. */ |
1367 core.String kind; | 1353 core.String kind; |
1368 | 1354 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 _json["kind"] = kind; | 1388 _json["kind"] = kind; |
1403 } | 1389 } |
1404 if (nextPageToken != null) { | 1390 if (nextPageToken != null) { |
1405 _json["nextPageToken"] = nextPageToken; | 1391 _json["nextPageToken"] = nextPageToken; |
1406 } | 1392 } |
1407 return _json; | 1393 return _json; |
1408 } | 1394 } |
1409 } | 1395 } |
1410 | 1396 |
1411 | 1397 |
1412 /** Not documented yet. */ | |
1413 class Metadata { | 1398 class Metadata { |
1414 /** Not documented yet. */ | |
1415 core.List<ReportingMetadataEntry> items; | 1399 core.List<ReportingMetadataEntry> items; |
1416 | 1400 |
1417 /** Kind of list this is, in this case adexchangeseller#metadata. */ | 1401 /** Kind of list this is, in this case adexchangeseller#metadata. */ |
1418 core.String kind; | 1402 core.String kind; |
1419 | 1403 |
1420 | 1404 |
1421 Metadata(); | 1405 Metadata(); |
1422 | 1406 |
1423 Metadata.fromJson(core.Map _json) { | 1407 Metadata.fromJson(core.Map _json) { |
1424 if (_json.containsKey("items")) { | 1408 if (_json.containsKey("items")) { |
(...skipping 10 matching lines...) Expand all Loading... |
1435 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1419 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1436 } | 1420 } |
1437 if (kind != null) { | 1421 if (kind != null) { |
1438 _json["kind"] = kind; | 1422 _json["kind"] = kind; |
1439 } | 1423 } |
1440 return _json; | 1424 return _json; |
1441 } | 1425 } |
1442 } | 1426 } |
1443 | 1427 |
1444 | 1428 |
1445 /** Not documented yet. */ | |
1446 class PreferredDeal { | 1429 class PreferredDeal { |
1447 /** The name of the advertiser this deal is for. */ | 1430 /** The name of the advertiser this deal is for. */ |
1448 core.String advertiserName; | 1431 core.String advertiserName; |
1449 | 1432 |
1450 /** The name of the buyer network this deal is for. */ | 1433 /** The name of the buyer network this deal is for. */ |
1451 core.String buyerNetworkName; | 1434 core.String buyerNetworkName; |
1452 | 1435 |
1453 /** | 1436 /** |
1454 * The currency code that applies to the fixed_cpm value. If not set then | 1437 * The currency code that applies to the fixed_cpm value. If not set then |
1455 * assumed to be USD. | 1438 * assumed to be USD. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 _json["kind"] = kind; | 1519 _json["kind"] = kind; |
1537 } | 1520 } |
1538 if (startTime != null) { | 1521 if (startTime != null) { |
1539 _json["startTime"] = startTime; | 1522 _json["startTime"] = startTime; |
1540 } | 1523 } |
1541 return _json; | 1524 return _json; |
1542 } | 1525 } |
1543 } | 1526 } |
1544 | 1527 |
1545 | 1528 |
1546 /** Not documented yet. */ | |
1547 class PreferredDeals { | 1529 class PreferredDeals { |
1548 /** The preferred deals returned in this list response. */ | 1530 /** The preferred deals returned in this list response. */ |
1549 core.List<PreferredDeal> items; | 1531 core.List<PreferredDeal> items; |
1550 | 1532 |
1551 /** Kind of list this is, in this case adexchangeseller#preferredDeals. */ | 1533 /** Kind of list this is, in this case adexchangeseller#preferredDeals. */ |
1552 core.String kind; | 1534 core.String kind; |
1553 | 1535 |
1554 | 1536 |
1555 PreferredDeals(); | 1537 PreferredDeals(); |
1556 | 1538 |
(...skipping 12 matching lines...) Expand all Loading... |
1569 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1551 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1570 } | 1552 } |
1571 if (kind != null) { | 1553 if (kind != null) { |
1572 _json["kind"] = kind; | 1554 _json["kind"] = kind; |
1573 } | 1555 } |
1574 return _json; | 1556 return _json; |
1575 } | 1557 } |
1576 } | 1558 } |
1577 | 1559 |
1578 | 1560 |
1579 /** Not documented yet. */ | |
1580 class ReportHeaders { | 1561 class ReportHeaders { |
1581 /** | 1562 /** |
1582 * The currency of this column. Only present if the header type is | 1563 * The currency of this column. Only present if the header type is |
1583 * METRIC_CURRENCY. | 1564 * METRIC_CURRENCY. |
1584 */ | 1565 */ |
1585 core.String currency; | 1566 core.String currency; |
1586 | 1567 |
1587 /** The name of the header. */ | 1568 /** The name of the header. */ |
1588 core.String name; | 1569 core.String name; |
1589 | 1570 |
(...skipping 27 matching lines...) Expand all Loading... |
1617 _json["name"] = name; | 1598 _json["name"] = name; |
1618 } | 1599 } |
1619 if (type != null) { | 1600 if (type != null) { |
1620 _json["type"] = type; | 1601 _json["type"] = type; |
1621 } | 1602 } |
1622 return _json; | 1603 return _json; |
1623 } | 1604 } |
1624 } | 1605 } |
1625 | 1606 |
1626 | 1607 |
1627 /** Not documented yet. */ | |
1628 class Report { | 1608 class Report { |
1629 /** | 1609 /** |
1630 * The averages of the report. This is the same length as any other row in the | 1610 * The averages of the report. This is the same length as any other row in the |
1631 * report; cells corresponding to dimension columns are empty. | 1611 * report; cells corresponding to dimension columns are empty. |
1632 */ | 1612 */ |
1633 core.List<core.String> averages; | 1613 core.List<core.String> averages; |
1634 | 1614 |
1635 /** | 1615 /** |
1636 * The header information of the columns requested in the report. This is a | 1616 * The header information of the columns requested in the report. This is a |
1637 * list of headers; one for each dimension in the request, followed by one for | 1617 * list of headers; one for each dimension in the request, followed by one for |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1713 _json["totals"] = totals; | 1693 _json["totals"] = totals; |
1714 } | 1694 } |
1715 if (warnings != null) { | 1695 if (warnings != null) { |
1716 _json["warnings"] = warnings; | 1696 _json["warnings"] = warnings; |
1717 } | 1697 } |
1718 return _json; | 1698 return _json; |
1719 } | 1699 } |
1720 } | 1700 } |
1721 | 1701 |
1722 | 1702 |
1723 /** Not documented yet. */ | |
1724 class ReportingMetadataEntry { | 1703 class ReportingMetadataEntry { |
1725 /** | 1704 /** |
1726 * For metrics this is a list of dimension IDs which the metric is compatible | 1705 * For metrics this is a list of dimension IDs which the metric is compatible |
1727 * with, for dimensions it is a list of compatibility groups the dimension | 1706 * with, for dimensions it is a list of compatibility groups the dimension |
1728 * belongs to. | 1707 * belongs to. |
1729 */ | 1708 */ |
1730 core.List<core.String> compatibleDimensions; | 1709 core.List<core.String> compatibleDimensions; |
1731 | 1710 |
1732 /** | 1711 /** |
1733 * The names of the metrics the dimension or metric this reporting metadata | 1712 * The names of the metrics the dimension or metric this reporting metadata |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1817 _json["requiredMetrics"] = requiredMetrics; | 1796 _json["requiredMetrics"] = requiredMetrics; |
1818 } | 1797 } |
1819 if (supportedProducts != null) { | 1798 if (supportedProducts != null) { |
1820 _json["supportedProducts"] = supportedProducts; | 1799 _json["supportedProducts"] = supportedProducts; |
1821 } | 1800 } |
1822 return _json; | 1801 return _json; |
1823 } | 1802 } |
1824 } | 1803 } |
1825 | 1804 |
1826 | 1805 |
1827 /** Not documented yet. */ | |
1828 class SavedReport { | 1806 class SavedReport { |
1829 /** Unique identifier of this saved report. */ | 1807 /** Unique identifier of this saved report. */ |
1830 core.String id; | 1808 core.String id; |
1831 | 1809 |
1832 /** Kind of resource this is, in this case adexchangeseller#savedReport. */ | 1810 /** Kind of resource this is, in this case adexchangeseller#savedReport. */ |
1833 core.String kind; | 1811 core.String kind; |
1834 | 1812 |
1835 /** This saved report's name. */ | 1813 /** This saved report's name. */ |
1836 core.String name; | 1814 core.String name; |
1837 | 1815 |
(...skipping 21 matching lines...) Expand all Loading... |
1859 _json["kind"] = kind; | 1837 _json["kind"] = kind; |
1860 } | 1838 } |
1861 if (name != null) { | 1839 if (name != null) { |
1862 _json["name"] = name; | 1840 _json["name"] = name; |
1863 } | 1841 } |
1864 return _json; | 1842 return _json; |
1865 } | 1843 } |
1866 } | 1844 } |
1867 | 1845 |
1868 | 1846 |
1869 /** Not documented yet. */ | |
1870 class SavedReports { | 1847 class SavedReports { |
1871 /** ETag of this response for caching purposes. */ | 1848 /** ETag of this response for caching purposes. */ |
1872 core.String etag; | 1849 core.String etag; |
1873 | 1850 |
1874 /** The saved reports returned in this list response. */ | 1851 /** The saved reports returned in this list response. */ |
1875 core.List<SavedReport> items; | 1852 core.List<SavedReport> items; |
1876 | 1853 |
1877 /** Kind of list this is, in this case adexchangeseller#savedReports. */ | 1854 /** Kind of list this is, in this case adexchangeseller#savedReports. */ |
1878 core.String kind; | 1855 core.String kind; |
1879 | 1856 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 _json["kind"] = kind; | 1890 _json["kind"] = kind; |
1914 } | 1891 } |
1915 if (nextPageToken != null) { | 1892 if (nextPageToken != null) { |
1916 _json["nextPageToken"] = nextPageToken; | 1893 _json["nextPageToken"] = nextPageToken; |
1917 } | 1894 } |
1918 return _json; | 1895 return _json; |
1919 } | 1896 } |
1920 } | 1897 } |
1921 | 1898 |
1922 | 1899 |
1923 /** Not documented yet. */ | |
1924 class UrlChannel { | 1900 class UrlChannel { |
1925 /** | 1901 /** |
1926 * Unique identifier of this URL channel. This should be considered an opaque | 1902 * Unique identifier of this URL channel. This should be considered an opaque |
1927 * identifier; it is not safe to rely on it being in any particular format. | 1903 * identifier; it is not safe to rely on it being in any particular format. |
1928 */ | 1904 */ |
1929 core.String id; | 1905 core.String id; |
1930 | 1906 |
1931 /** Kind of resource this is, in this case adexchangeseller#urlChannel. */ | 1907 /** Kind of resource this is, in this case adexchangeseller#urlChannel. */ |
1932 core.String kind; | 1908 core.String kind; |
1933 | 1909 |
(...skipping 27 matching lines...) Expand all Loading... |
1961 _json["kind"] = kind; | 1937 _json["kind"] = kind; |
1962 } | 1938 } |
1963 if (urlPattern != null) { | 1939 if (urlPattern != null) { |
1964 _json["urlPattern"] = urlPattern; | 1940 _json["urlPattern"] = urlPattern; |
1965 } | 1941 } |
1966 return _json; | 1942 return _json; |
1967 } | 1943 } |
1968 } | 1944 } |
1969 | 1945 |
1970 | 1946 |
1971 /** Not documented yet. */ | |
1972 class UrlChannels { | 1947 class UrlChannels { |
1973 /** ETag of this response for caching purposes. */ | 1948 /** ETag of this response for caching purposes. */ |
1974 core.String etag; | 1949 core.String etag; |
1975 | 1950 |
1976 /** The URL channels returned in this list response. */ | 1951 /** The URL channels returned in this list response. */ |
1977 core.List<UrlChannel> items; | 1952 core.List<UrlChannel> items; |
1978 | 1953 |
1979 /** Kind of list this is, in this case adexchangeseller#urlChannels. */ | 1954 /** Kind of list this is, in this case adexchangeseller#urlChannels. */ |
1980 core.String kind; | 1955 core.String kind; |
1981 | 1956 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 } | 1988 } |
2014 if (kind != null) { | 1989 if (kind != null) { |
2015 _json["kind"] = kind; | 1990 _json["kind"] = kind; |
2016 } | 1991 } |
2017 if (nextPageToken != null) { | 1992 if (nextPageToken != null) { |
2018 _json["nextPageToken"] = nextPageToken; | 1993 _json["nextPageToken"] = nextPageToken; |
2019 } | 1994 } |
2020 return _json; | 1995 return _json; |
2021 } | 1996 } |
2022 } | 1997 } |
2023 | |
2024 | |
OLD | NEW |