Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: generated/googleapis/lib/adexchangeseller/v1_1.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project).
2
1 library googleapis.adexchangeseller.v1_1; 3 library googleapis.adexchangeseller.v1_1;
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/v1.1';
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 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester); 36 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
32 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester); 37 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester);
33 AlertsResourceApi get alerts => new AlertsResourceApi(_requester); 38 AlertsResourceApi get alerts => new AlertsResourceApi(_requester);
34 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi( _requester); 39 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi( _requester);
35 MetadataResourceApi get metadata => new MetadataResourceApi(_requester); 40 MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
36 PreferreddealsResourceApi get preferreddeals => new PreferreddealsResourceApi( _requester); 41 PreferreddealsResourceApi get preferreddeals => new PreferreddealsResourceApi( _requester);
37 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 42 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
38 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste r); 43 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste r);
39 44
40 AdexchangesellerApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "adexchangeseller/v1.1/"}) : 45 AdexchangesellerApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "adexchangeseller/v1.1/"}) :
41 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 46 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
42 } 47 }
43 48
44 49
45 /** Not documented yet. */
46 class AccountsResourceApi { 50 class AccountsResourceApi {
47 final common_internal.ApiRequester _requester; 51 final commons.ApiRequester _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 98
95 99
96 /** Not documented yet. */
97 class AdclientsResourceApi { 100 class AdclientsResourceApi {
98 final common_internal.ApiRequester _requester; 101 final commons.ApiRequester _requester;
99 102
100 AdclientsResourceApi(common_internal.ApiRequester client) : 103 AdclientsResourceApi(commons.ApiRequester client) :
101 _requester = client; 104 _requester = client;
102 105
103 /** 106 /**
104 * List all ad clients in this Ad Exchange account. 107 * List all ad clients in this Ad Exchange account.
105 * 108 *
106 * Request parameters: 109 * Request parameters:
107 * 110 *
108 * [maxResults] - The maximum number of ad clients to include in the response, 111 * [maxResults] - The maximum number of ad clients to include in the response,
109 * used for paging. 112 * used for paging.
110 * Value must be between "0" and "10000". 113 * Value must be between "0" and "10000".
111 * 114 *
112 * [pageToken] - A continuation token, used to page through ad clients. To 115 * [pageToken] - A continuation token, used to page through ad clients. To
113 * retrieve the next page, set this parameter to the value of "nextPageToken" 116 * retrieve the next page, set this parameter to the value of "nextPageToken"
114 * from the previous response. 117 * from the previous response.
115 * 118 *
116 * Completes with a [AdClients]. 119 * Completes with a [AdClients].
117 * 120 *
118 * Completes with a [common.ApiRequestError] if the API endpoint returned an 121 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
119 * error. 122 * error.
120 * 123 *
121 * If the used [http.Client] completes with an error when making a REST call, 124 * If the used [http.Client] completes with an error when making a REST call,
122 * this method will complete with the same error. 125 * this method will complete with the same error.
123 */ 126 */
124 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) { 127 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) {
125 var _url = null; 128 var _url = null;
126 var _queryParams = new core.Map(); 129 var _queryParams = new core.Map();
127 var _uploadMedia = null; 130 var _uploadMedia = null;
128 var _uploadOptions = null; 131 var _uploadOptions = null;
129 var _downloadOptions = common.DownloadOptions.Metadata; 132 var _downloadOptions = commons.DownloadOptions.Metadata;
130 var _body = null; 133 var _body = null;
131 134
132 if (maxResults != null) { 135 if (maxResults != null) {
133 _queryParams["maxResults"] = ["${maxResults}"]; 136 _queryParams["maxResults"] = ["${maxResults}"];
134 } 137 }
135 if (pageToken != null) { 138 if (pageToken != null) {
136 _queryParams["pageToken"] = [pageToken]; 139 _queryParams["pageToken"] = [pageToken];
137 } 140 }
138 141
139 142
140 _url = 'adclients'; 143 _url = 'adclients';
141 144
142 var _response = _requester.request(_url, 145 var _response = _requester.request(_url,
143 "GET", 146 "GET",
144 body: _body, 147 body: _body,
145 queryParams: _queryParams, 148 queryParams: _queryParams,
146 uploadOptions: _uploadOptions, 149 uploadOptions: _uploadOptions,
147 uploadMedia: _uploadMedia, 150 uploadMedia: _uploadMedia,
148 downloadOptions: _downloadOptions); 151 downloadOptions: _downloadOptions);
149 return _response.then((data) => new AdClients.fromJson(data)); 152 return _response.then((data) => new AdClients.fromJson(data));
150 } 153 }
151 154
152 } 155 }
153 156
154 157
155 /** Not documented yet. */
156 class AdunitsResourceApi { 158 class AdunitsResourceApi {
157 final common_internal.ApiRequester _requester; 159 final commons.ApiRequester _requester;
158 160
159 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne lsResourceApi(_requester); 161 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne lsResourceApi(_requester);
160 162
161 AdunitsResourceApi(common_internal.ApiRequester client) : 163 AdunitsResourceApi(commons.ApiRequester client) :
162 _requester = client; 164 _requester = client;
163 165
164 /** 166 /**
165 * Gets the specified ad unit in the specified ad client. 167 * Gets the specified ad unit in the specified ad client.
166 * 168 *
167 * Request parameters: 169 * Request parameters:
168 * 170 *
169 * [adClientId] - Ad client for which to get the ad unit. 171 * [adClientId] - Ad client for which to get the ad unit.
170 * 172 *
171 * [adUnitId] - Ad unit to retrieve. 173 * [adUnitId] - Ad unit to retrieve.
172 * 174 *
173 * Completes with a [AdUnit]. 175 * Completes with a [AdUnit].
174 * 176 *
175 * Completes with a [common.ApiRequestError] if the API endpoint returned an 177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
176 * error. 178 * error.
177 * 179 *
178 * If the used [http.Client] completes with an error when making a REST call, 180 * If the used [http.Client] completes with an error when making a REST call,
179 * this method will complete with the same error. 181 * this method will complete with the same error.
180 */ 182 */
181 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) { 183 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) {
182 var _url = null; 184 var _url = null;
183 var _queryParams = new core.Map(); 185 var _queryParams = new core.Map();
184 var _uploadMedia = null; 186 var _uploadMedia = null;
185 var _uploadOptions = null; 187 var _uploadOptions = null;
186 var _downloadOptions = common.DownloadOptions.Metadata; 188 var _downloadOptions = commons.DownloadOptions.Metadata;
187 var _body = null; 189 var _body = null;
188 190
189 if (adClientId == null) { 191 if (adClientId == null) {
190 throw new core.ArgumentError("Parameter adClientId is required."); 192 throw new core.ArgumentError("Parameter adClientId is required.");
191 } 193 }
192 if (adUnitId == null) { 194 if (adUnitId == null) {
193 throw new core.ArgumentError("Parameter adUnitId is required."); 195 throw new core.ArgumentError("Parameter adUnitId is required.");
194 } 196 }
195 197
196 198
197 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId'); 199 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts/' + commons.Escaper.ecapeVariable('$adUnitId');
198 200
199 var _response = _requester.request(_url, 201 var _response = _requester.request(_url,
200 "GET", 202 "GET",
201 body: _body, 203 body: _body,
202 queryParams: _queryParams, 204 queryParams: _queryParams,
203 uploadOptions: _uploadOptions, 205 uploadOptions: _uploadOptions,
204 uploadMedia: _uploadMedia, 206 uploadMedia: _uploadMedia,
205 downloadOptions: _downloadOptions); 207 downloadOptions: _downloadOptions);
206 return _response.then((data) => new AdUnit.fromJson(data)); 208 return _response.then((data) => new AdUnit.fromJson(data));
207 } 209 }
(...skipping 10 matching lines...) Expand all
218 * [maxResults] - The maximum number of ad units to include in the response, 220 * [maxResults] - The maximum number of ad units to include in the response,
219 * used for paging. 221 * used for paging.
220 * Value must be between "0" and "10000". 222 * Value must be between "0" and "10000".
221 * 223 *
222 * [pageToken] - A continuation token, used to page through ad units. To 224 * [pageToken] - A continuation token, used to page through ad units. To
223 * retrieve the next page, set this parameter to the value of "nextPageToken" 225 * retrieve the next page, set this parameter to the value of "nextPageToken"
224 * from the previous response. 226 * from the previous response.
225 * 227 *
226 * Completes with a [AdUnits]. 228 * Completes with a [AdUnits].
227 * 229 *
228 * Completes with a [common.ApiRequestError] if the API endpoint returned an 230 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
229 * error. 231 * error.
230 * 232 *
231 * If the used [http.Client] completes with an error when making a REST call, 233 * If the used [http.Client] completes with an error when making a REST call,
232 * this method will complete with the same error. 234 * this method will complete with the same error.
233 */ 235 */
234 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) { 236 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
235 var _url = null; 237 var _url = null;
236 var _queryParams = new core.Map(); 238 var _queryParams = new core.Map();
237 var _uploadMedia = null; 239 var _uploadMedia = null;
238 var _uploadOptions = null; 240 var _uploadOptions = null;
239 var _downloadOptions = common.DownloadOptions.Metadata; 241 var _downloadOptions = commons.DownloadOptions.Metadata;
240 var _body = null; 242 var _body = null;
241 243
242 if (adClientId == null) { 244 if (adClientId == null) {
243 throw new core.ArgumentError("Parameter adClientId is required."); 245 throw new core.ArgumentError("Parameter adClientId is required.");
244 } 246 }
245 if (includeInactive != null) { 247 if (includeInactive != null) {
246 _queryParams["includeInactive"] = ["${includeInactive}"]; 248 _queryParams["includeInactive"] = ["${includeInactive}"];
247 } 249 }
248 if (maxResults != null) { 250 if (maxResults != null) {
249 _queryParams["maxResults"] = ["${maxResults}"]; 251 _queryParams["maxResults"] = ["${maxResults}"];
250 } 252 }
251 if (pageToken != null) { 253 if (pageToken != null) {
252 _queryParams["pageToken"] = [pageToken]; 254 _queryParams["pageToken"] = [pageToken];
253 } 255 }
254 256
255 257
256 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits'; 258 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts';
257 259
258 var _response = _requester.request(_url, 260 var _response = _requester.request(_url,
259 "GET", 261 "GET",
260 body: _body, 262 body: _body,
261 queryParams: _queryParams, 263 queryParams: _queryParams,
262 uploadOptions: _uploadOptions, 264 uploadOptions: _uploadOptions,
263 uploadMedia: _uploadMedia, 265 uploadMedia: _uploadMedia,
264 downloadOptions: _downloadOptions); 266 downloadOptions: _downloadOptions);
265 return _response.then((data) => new AdUnits.fromJson(data)); 267 return _response.then((data) => new AdUnits.fromJson(data));
266 } 268 }
267 269
268 } 270 }
269 271
270 272
271 /** Not documented yet. */
272 class AdunitsCustomchannelsResourceApi { 273 class AdunitsCustomchannelsResourceApi {
273 final common_internal.ApiRequester _requester; 274 final commons.ApiRequester _requester;
274 275
275 AdunitsCustomchannelsResourceApi(common_internal.ApiRequester client) : 276 AdunitsCustomchannelsResourceApi(commons.ApiRequester client) :
276 _requester = client; 277 _requester = client;
277 278
278 /** 279 /**
279 * List all custom channels which the specified ad unit belongs to. 280 * List all custom channels which the specified ad unit belongs to.
280 * 281 *
281 * Request parameters: 282 * Request parameters:
282 * 283 *
283 * [adClientId] - Ad client which contains the ad unit. 284 * [adClientId] - Ad client which contains the ad unit.
284 * 285 *
285 * [adUnitId] - Ad unit for which to list custom channels. 286 * [adUnitId] - Ad unit for which to list custom channels.
286 * 287 *
287 * [maxResults] - The maximum number of custom channels to include in the 288 * [maxResults] - The maximum number of custom channels to include in the
288 * response, used for paging. 289 * response, used for paging.
289 * Value must be between "0" and "10000". 290 * Value must be between "0" and "10000".
290 * 291 *
291 * [pageToken] - A continuation token, used to page through custom channels. 292 * [pageToken] - A continuation token, used to page through custom channels.
292 * To retrieve the next page, set this parameter to the value of 293 * To retrieve the next page, set this parameter to the value of
293 * "nextPageToken" from the previous response. 294 * "nextPageToken" from the previous response.
294 * 295 *
295 * Completes with a [CustomChannels]. 296 * Completes with a [CustomChannels].
296 * 297 *
297 * Completes with a [common.ApiRequestError] if the API endpoint returned an 298 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
298 * error. 299 * error.
299 * 300 *
300 * If the used [http.Client] completes with an error when making a REST call, 301 * If the used [http.Client] completes with an error when making a REST call,
301 * this method will complete with the same error. 302 * this method will complete with the same error.
302 */ 303 */
303 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId , {core.int maxResults, core.String pageToken}) { 304 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId , {core.int maxResults, core.String pageToken}) {
304 var _url = null; 305 var _url = null;
305 var _queryParams = new core.Map(); 306 var _queryParams = new core.Map();
306 var _uploadMedia = null; 307 var _uploadMedia = null;
307 var _uploadOptions = null; 308 var _uploadOptions = null;
308 var _downloadOptions = common.DownloadOptions.Metadata; 309 var _downloadOptions = commons.DownloadOptions.Metadata;
309 var _body = null; 310 var _body = null;
310 311
311 if (adClientId == null) { 312 if (adClientId == null) {
312 throw new core.ArgumentError("Parameter adClientId is required."); 313 throw new core.ArgumentError("Parameter adClientId is required.");
313 } 314 }
314 if (adUnitId == null) { 315 if (adUnitId == null) {
315 throw new core.ArgumentError("Parameter adUnitId is required."); 316 throw new core.ArgumentError("Parameter adUnitId is required.");
316 } 317 }
317 if (maxResults != null) { 318 if (maxResults != null) {
318 _queryParams["maxResults"] = ["${maxResults}"]; 319 _queryParams["maxResults"] = ["${maxResults}"];
319 } 320 }
320 if (pageToken != null) { 321 if (pageToken != null) {
321 _queryParams["pageToken"] = [pageToken]; 322 _queryParams["pageToken"] = [pageToken];
322 } 323 }
323 324
324 325
325 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/customchan nels'; 326 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts/' + commons.Escaper.ecapeVariable('$adUnitId') + '/customchannels';
326 327
327 var _response = _requester.request(_url, 328 var _response = _requester.request(_url,
328 "GET", 329 "GET",
329 body: _body, 330 body: _body,
330 queryParams: _queryParams, 331 queryParams: _queryParams,
331 uploadOptions: _uploadOptions, 332 uploadOptions: _uploadOptions,
332 uploadMedia: _uploadMedia, 333 uploadMedia: _uploadMedia,
333 downloadOptions: _downloadOptions); 334 downloadOptions: _downloadOptions);
334 return _response.then((data) => new CustomChannels.fromJson(data)); 335 return _response.then((data) => new CustomChannels.fromJson(data));
335 } 336 }
336 337
337 } 338 }
338 339
339 340
340 /** Not documented yet. */
341 class AlertsResourceApi { 341 class AlertsResourceApi {
342 final common_internal.ApiRequester _requester; 342 final commons.ApiRequester _requester;
343 343
344 AlertsResourceApi(common_internal.ApiRequester client) : 344 AlertsResourceApi(commons.ApiRequester client) :
345 _requester = client; 345 _requester = client;
346 346
347 /** 347 /**
348 * List the alerts for this Ad Exchange account. 348 * List the alerts for this Ad Exchange account.
349 * 349 *
350 * Request parameters: 350 * Request parameters:
351 * 351 *
352 * [locale] - The locale to use for translating alert messages. The account 352 * [locale] - The locale to use for translating alert messages. The account
353 * locale will be used if this is not supplied. The AdSense default (English) 353 * locale will be used if this is not supplied. The AdSense default (English)
354 * will be used if the supplied locale is invalid or unsupported. 354 * will be used if the supplied locale is invalid or unsupported.
355 * 355 *
356 * Completes with a [Alerts]. 356 * Completes with a [Alerts].
357 * 357 *
358 * Completes with a [common.ApiRequestError] if the API endpoint returned an 358 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
359 * error. 359 * error.
360 * 360 *
361 * If the used [http.Client] completes with an error when making a REST call, 361 * If the used [http.Client] completes with an error when making a REST call,
362 * this method will complete with the same error. 362 * this method will complete with the same error.
363 */ 363 */
364 async.Future<Alerts> list({core.String locale}) { 364 async.Future<Alerts> list({core.String locale}) {
365 var _url = null; 365 var _url = null;
366 var _queryParams = new core.Map(); 366 var _queryParams = new core.Map();
367 var _uploadMedia = null; 367 var _uploadMedia = null;
368 var _uploadOptions = null; 368 var _uploadOptions = null;
369 var _downloadOptions = common.DownloadOptions.Metadata; 369 var _downloadOptions = commons.DownloadOptions.Metadata;
370 var _body = null; 370 var _body = null;
371 371
372 if (locale != null) { 372 if (locale != null) {
373 _queryParams["locale"] = [locale]; 373 _queryParams["locale"] = [locale];
374 } 374 }
375 375
376 376
377 _url = 'alerts'; 377 _url = 'alerts';
378 378
379 var _response = _requester.request(_url, 379 var _response = _requester.request(_url,
380 "GET", 380 "GET",
381 body: _body, 381 body: _body,
382 queryParams: _queryParams, 382 queryParams: _queryParams,
383 uploadOptions: _uploadOptions, 383 uploadOptions: _uploadOptions,
384 uploadMedia: _uploadMedia, 384 uploadMedia: _uploadMedia,
385 downloadOptions: _downloadOptions); 385 downloadOptions: _downloadOptions);
386 return _response.then((data) => new Alerts.fromJson(data)); 386 return _response.then((data) => new Alerts.fromJson(data));
387 } 387 }
388 388
389 } 389 }
390 390
391 391
392 /** Not documented yet. */
393 class CustomchannelsResourceApi { 392 class CustomchannelsResourceApi {
394 final common_internal.ApiRequester _requester; 393 final commons.ApiRequester _requester;
395 394
396 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou rceApi(_requester); 395 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou rceApi(_requester);
397 396
398 CustomchannelsResourceApi(common_internal.ApiRequester client) : 397 CustomchannelsResourceApi(commons.ApiRequester client) :
399 _requester = client; 398 _requester = client;
400 399
401 /** 400 /**
402 * Get the specified custom channel from the specified ad client. 401 * Get the specified custom channel from the specified ad client.
403 * 402 *
404 * Request parameters: 403 * Request parameters:
405 * 404 *
406 * [adClientId] - Ad client which contains the custom channel. 405 * [adClientId] - Ad client which contains the custom channel.
407 * 406 *
408 * [customChannelId] - Custom channel to retrieve. 407 * [customChannelId] - Custom channel to retrieve.
409 * 408 *
410 * Completes with a [CustomChannel]. 409 * Completes with a [CustomChannel].
411 * 410 *
412 * Completes with a [common.ApiRequestError] if the API endpoint returned an 411 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
413 * error. 412 * error.
414 * 413 *
415 * If the used [http.Client] completes with an error when making a REST call, 414 * If the used [http.Client] completes with an error when making a REST call,
416 * this method will complete with the same error. 415 * this method will complete with the same error.
417 */ 416 */
418 async.Future<CustomChannel> get(core.String adClientId, core.String customChan nelId) { 417 async.Future<CustomChannel> get(core.String adClientId, core.String customChan nelId) {
419 var _url = null; 418 var _url = null;
420 var _queryParams = new core.Map(); 419 var _queryParams = new core.Map();
421 var _uploadMedia = null; 420 var _uploadMedia = null;
422 var _uploadOptions = null; 421 var _uploadOptions = null;
423 var _downloadOptions = common.DownloadOptions.Metadata; 422 var _downloadOptions = commons.DownloadOptions.Metadata;
424 var _body = null; 423 var _body = null;
425 424
426 if (adClientId == null) { 425 if (adClientId == null) {
427 throw new core.ArgumentError("Parameter adClientId is required."); 426 throw new core.ArgumentError("Parameter adClientId is required.");
428 } 427 }
429 if (customChannelId == null) { 428 if (customChannelId == null) {
430 throw new core.ArgumentError("Parameter customChannelId is required."); 429 throw new core.ArgumentError("Parameter customChannelId is required.");
431 } 430 }
432 431
433 432
434 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId'); 433 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels/' + commons.Escaper.ecapeVariable('$customChannelId');
435 434
436 var _response = _requester.request(_url, 435 var _response = _requester.request(_url,
437 "GET", 436 "GET",
438 body: _body, 437 body: _body,
439 queryParams: _queryParams, 438 queryParams: _queryParams,
440 uploadOptions: _uploadOptions, 439 uploadOptions: _uploadOptions,
441 uploadMedia: _uploadMedia, 440 uploadMedia: _uploadMedia,
442 downloadOptions: _downloadOptions); 441 downloadOptions: _downloadOptions);
443 return _response.then((data) => new CustomChannel.fromJson(data)); 442 return _response.then((data) => new CustomChannel.fromJson(data));
444 } 443 }
445 444
446 /** 445 /**
447 * List all custom channels in the specified ad client for this Ad Exchange 446 * List all custom channels in the specified ad client for this Ad Exchange
448 * account. 447 * account.
449 * 448 *
450 * Request parameters: 449 * Request parameters:
451 * 450 *
452 * [adClientId] - Ad client for which to list custom channels. 451 * [adClientId] - Ad client for which to list custom channels.
453 * 452 *
454 * [maxResults] - The maximum number of custom channels to include in the 453 * [maxResults] - The maximum number of custom channels to include in the
455 * response, used for paging. 454 * response, used for paging.
456 * Value must be between "0" and "10000". 455 * Value must be between "0" and "10000".
457 * 456 *
458 * [pageToken] - A continuation token, used to page through custom channels. 457 * [pageToken] - A continuation token, used to page through custom channels.
459 * To retrieve the next page, set this parameter to the value of 458 * To retrieve the next page, set this parameter to the value of
460 * "nextPageToken" from the previous response. 459 * "nextPageToken" from the previous response.
461 * 460 *
462 * Completes with a [CustomChannels]. 461 * Completes with a [CustomChannels].
463 * 462 *
464 * Completes with a [common.ApiRequestError] if the API endpoint returned an 463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
465 * error. 464 * error.
466 * 465 *
467 * If the used [http.Client] completes with an error when making a REST call, 466 * If the used [http.Client] completes with an error when making a REST call,
468 * this method will complete with the same error. 467 * this method will complete with the same error.
469 */ 468 */
470 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults , core.String pageToken}) { 469 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults , core.String pageToken}) {
471 var _url = null; 470 var _url = null;
472 var _queryParams = new core.Map(); 471 var _queryParams = new core.Map();
473 var _uploadMedia = null; 472 var _uploadMedia = null;
474 var _uploadOptions = null; 473 var _uploadOptions = null;
475 var _downloadOptions = common.DownloadOptions.Metadata; 474 var _downloadOptions = commons.DownloadOptions.Metadata;
476 var _body = null; 475 var _body = null;
477 476
478 if (adClientId == null) { 477 if (adClientId == null) {
479 throw new core.ArgumentError("Parameter adClientId is required."); 478 throw new core.ArgumentError("Parameter adClientId is required.");
480 } 479 }
481 if (maxResults != null) { 480 if (maxResults != null) {
482 _queryParams["maxResults"] = ["${maxResults}"]; 481 _queryParams["maxResults"] = ["${maxResults}"];
483 } 482 }
484 if (pageToken != null) { 483 if (pageToken != null) {
485 _queryParams["pageToken"] = [pageToken]; 484 _queryParams["pageToken"] = [pageToken];
486 } 485 }
487 486
488 487
489 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels'; 488 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels';
490 489
491 var _response = _requester.request(_url, 490 var _response = _requester.request(_url,
492 "GET", 491 "GET",
493 body: _body, 492 body: _body,
494 queryParams: _queryParams, 493 queryParams: _queryParams,
495 uploadOptions: _uploadOptions, 494 uploadOptions: _uploadOptions,
496 uploadMedia: _uploadMedia, 495 uploadMedia: _uploadMedia,
497 downloadOptions: _downloadOptions); 496 downloadOptions: _downloadOptions);
498 return _response.then((data) => new CustomChannels.fromJson(data)); 497 return _response.then((data) => new CustomChannels.fromJson(data));
499 } 498 }
500 499
501 } 500 }
502 501
503 502
504 /** Not documented yet. */
505 class CustomchannelsAdunitsResourceApi { 503 class CustomchannelsAdunitsResourceApi {
506 final common_internal.ApiRequester _requester; 504 final commons.ApiRequester _requester;
507 505
508 CustomchannelsAdunitsResourceApi(common_internal.ApiRequester client) : 506 CustomchannelsAdunitsResourceApi(commons.ApiRequester client) :
509 _requester = client; 507 _requester = client;
510 508
511 /** 509 /**
512 * List all ad units in the specified custom channel. 510 * List all ad units in the specified custom channel.
513 * 511 *
514 * Request parameters: 512 * Request parameters:
515 * 513 *
516 * [adClientId] - Ad client which contains the custom channel. 514 * [adClientId] - Ad client which contains the custom channel.
517 * 515 *
518 * [customChannelId] - Custom channel for which to list ad units. 516 * [customChannelId] - Custom channel for which to list ad units.
519 * 517 *
520 * [includeInactive] - Whether to include inactive ad units. Default: true. 518 * [includeInactive] - Whether to include inactive ad units. Default: true.
521 * 519 *
522 * [maxResults] - The maximum number of ad units to include in the response, 520 * [maxResults] - The maximum number of ad units to include in the response,
523 * used for paging. 521 * used for paging.
524 * Value must be between "0" and "10000". 522 * Value must be between "0" and "10000".
525 * 523 *
526 * [pageToken] - A continuation token, used to page through ad units. To 524 * [pageToken] - A continuation token, used to page through ad units. To
527 * retrieve the next page, set this parameter to the value of "nextPageToken" 525 * retrieve the next page, set this parameter to the value of "nextPageToken"
528 * from the previous response. 526 * from the previous response.
529 * 527 *
530 * Completes with a [AdUnits]. 528 * Completes with a [AdUnits].
531 * 529 *
532 * Completes with a [common.ApiRequestError] if the API endpoint returned an 530 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
533 * error. 531 * error.
534 * 532 *
535 * If the used [http.Client] completes with an error when making a REST call, 533 * If the used [http.Client] completes with an error when making a REST call,
536 * this method will complete with the same error. 534 * this method will complete with the same error.
537 */ 535 */
538 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId , {core.bool includeInactive, core.int maxResults, core.String pageToken}) { 536 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId , {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
539 var _url = null; 537 var _url = null;
540 var _queryParams = new core.Map(); 538 var _queryParams = new core.Map();
541 var _uploadMedia = null; 539 var _uploadMedia = null;
542 var _uploadOptions = null; 540 var _uploadOptions = null;
543 var _downloadOptions = common.DownloadOptions.Metadata; 541 var _downloadOptions = commons.DownloadOptions.Metadata;
544 var _body = null; 542 var _body = null;
545 543
546 if (adClientId == null) { 544 if (adClientId == null) {
547 throw new core.ArgumentError("Parameter adClientId is required."); 545 throw new core.ArgumentError("Parameter adClientId is required.");
548 } 546 }
549 if (customChannelId == null) { 547 if (customChannelId == null) {
550 throw new core.ArgumentError("Parameter customChannelId is required."); 548 throw new core.ArgumentError("Parameter customChannelId is required.");
551 } 549 }
552 if (includeInactive != null) { 550 if (includeInactive != null) {
553 _queryParams["includeInactive"] = ["${includeInactive}"]; 551 _queryParams["includeInactive"] = ["${includeInactive}"];
554 } 552 }
555 if (maxResults != null) { 553 if (maxResults != null) {
556 _queryParams["maxResults"] = ["${maxResults}"]; 554 _queryParams["maxResults"] = ["${maxResults}"];
557 } 555 }
558 if (pageToken != null) { 556 if (pageToken != null) {
559 _queryParams["pageToken"] = [pageToken]; 557 _queryParams["pageToken"] = [pageToken];
560 } 558 }
561 559
562 560
563 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId') + '/adunits'; 561 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels/' + commons.Escaper.ecapeVariable('$customChannelId') + '/adunits';
564 562
565 var _response = _requester.request(_url, 563 var _response = _requester.request(_url,
566 "GET", 564 "GET",
567 body: _body, 565 body: _body,
568 queryParams: _queryParams, 566 queryParams: _queryParams,
569 uploadOptions: _uploadOptions, 567 uploadOptions: _uploadOptions,
570 uploadMedia: _uploadMedia, 568 uploadMedia: _uploadMedia,
571 downloadOptions: _downloadOptions); 569 downloadOptions: _downloadOptions);
572 return _response.then((data) => new AdUnits.fromJson(data)); 570 return _response.then((data) => new AdUnits.fromJson(data));
573 } 571 }
574 572
575 } 573 }
576 574
577 575
578 /** Not documented yet. */
579 class MetadataResourceApi { 576 class MetadataResourceApi {
580 final common_internal.ApiRequester _requester; 577 final commons.ApiRequester _requester;
581 578
582 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource Api(_requester); 579 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource Api(_requester);
583 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ ester); 580 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ ester);
584 581
585 MetadataResourceApi(common_internal.ApiRequester client) : 582 MetadataResourceApi(commons.ApiRequester client) :
586 _requester = client; 583 _requester = client;
587 } 584 }
588 585
589 586
590 /** Not documented yet. */
591 class MetadataDimensionsResourceApi { 587 class MetadataDimensionsResourceApi {
592 final common_internal.ApiRequester _requester; 588 final commons.ApiRequester _requester;
593 589
594 MetadataDimensionsResourceApi(common_internal.ApiRequester client) : 590 MetadataDimensionsResourceApi(commons.ApiRequester client) :
595 _requester = client; 591 _requester = client;
596 592
597 /** 593 /**
598 * List the metadata for the dimensions available to this AdExchange account. 594 * List the metadata for the dimensions available to this AdExchange account.
599 * 595 *
600 * Request parameters: 596 * Request parameters:
601 * 597 *
602 * Completes with a [Metadata]. 598 * Completes with a [Metadata].
603 * 599 *
604 * Completes with a [common.ApiRequestError] if the API endpoint returned an 600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
605 * error. 601 * error.
606 * 602 *
607 * If the used [http.Client] completes with an error when making a REST call, 603 * If the used [http.Client] completes with an error when making a REST call,
608 * this method will complete with the same error. 604 * this method will complete with the same error.
609 */ 605 */
610 async.Future<Metadata> list() { 606 async.Future<Metadata> list() {
611 var _url = null; 607 var _url = null;
612 var _queryParams = new core.Map(); 608 var _queryParams = new core.Map();
613 var _uploadMedia = null; 609 var _uploadMedia = null;
614 var _uploadOptions = null; 610 var _uploadOptions = null;
615 var _downloadOptions = common.DownloadOptions.Metadata; 611 var _downloadOptions = commons.DownloadOptions.Metadata;
616 var _body = null; 612 var _body = null;
617 613
618 614
619 615
620 _url = 'metadata/dimensions'; 616 _url = 'metadata/dimensions';
621 617
622 var _response = _requester.request(_url, 618 var _response = _requester.request(_url,
623 "GET", 619 "GET",
624 body: _body, 620 body: _body,
625 queryParams: _queryParams, 621 queryParams: _queryParams,
626 uploadOptions: _uploadOptions, 622 uploadOptions: _uploadOptions,
627 uploadMedia: _uploadMedia, 623 uploadMedia: _uploadMedia,
628 downloadOptions: _downloadOptions); 624 downloadOptions: _downloadOptions);
629 return _response.then((data) => new Metadata.fromJson(data)); 625 return _response.then((data) => new Metadata.fromJson(data));
630 } 626 }
631 627
632 } 628 }
633 629
634 630
635 /** Not documented yet. */
636 class MetadataMetricsResourceApi { 631 class MetadataMetricsResourceApi {
637 final common_internal.ApiRequester _requester; 632 final commons.ApiRequester _requester;
638 633
639 MetadataMetricsResourceApi(common_internal.ApiRequester client) : 634 MetadataMetricsResourceApi(commons.ApiRequester client) :
640 _requester = client; 635 _requester = client;
641 636
642 /** 637 /**
643 * List the metadata for the metrics available to this AdExchange account. 638 * List the metadata for the metrics available to this AdExchange account.
644 * 639 *
645 * Request parameters: 640 * Request parameters:
646 * 641 *
647 * Completes with a [Metadata]. 642 * Completes with a [Metadata].
648 * 643 *
649 * Completes with a [common.ApiRequestError] if the API endpoint returned an 644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
650 * error. 645 * error.
651 * 646 *
652 * If the used [http.Client] completes with an error when making a REST call, 647 * If the used [http.Client] completes with an error when making a REST call,
653 * this method will complete with the same error. 648 * this method will complete with the same error.
654 */ 649 */
655 async.Future<Metadata> list() { 650 async.Future<Metadata> list() {
656 var _url = null; 651 var _url = null;
657 var _queryParams = new core.Map(); 652 var _queryParams = new core.Map();
658 var _uploadMedia = null; 653 var _uploadMedia = null;
659 var _uploadOptions = null; 654 var _uploadOptions = null;
660 var _downloadOptions = common.DownloadOptions.Metadata; 655 var _downloadOptions = commons.DownloadOptions.Metadata;
661 var _body = null; 656 var _body = null;
662 657
663 658
664 659
665 _url = 'metadata/metrics'; 660 _url = 'metadata/metrics';
666 661
667 var _response = _requester.request(_url, 662 var _response = _requester.request(_url,
668 "GET", 663 "GET",
669 body: _body, 664 body: _body,
670 queryParams: _queryParams, 665 queryParams: _queryParams,
671 uploadOptions: _uploadOptions, 666 uploadOptions: _uploadOptions,
672 uploadMedia: _uploadMedia, 667 uploadMedia: _uploadMedia,
673 downloadOptions: _downloadOptions); 668 downloadOptions: _downloadOptions);
674 return _response.then((data) => new Metadata.fromJson(data)); 669 return _response.then((data) => new Metadata.fromJson(data));
675 } 670 }
676 671
677 } 672 }
678 673
679 674
680 /** Not documented yet. */
681 class PreferreddealsResourceApi { 675 class PreferreddealsResourceApi {
682 final common_internal.ApiRequester _requester; 676 final commons.ApiRequester _requester;
683 677
684 PreferreddealsResourceApi(common_internal.ApiRequester client) : 678 PreferreddealsResourceApi(commons.ApiRequester client) :
685 _requester = client; 679 _requester = client;
686 680
687 /** 681 /**
688 * Get information about the selected Ad Exchange Preferred Deal. 682 * Get information about the selected Ad Exchange Preferred Deal.
689 * 683 *
690 * Request parameters: 684 * Request parameters:
691 * 685 *
692 * [dealId] - Preferred deal to get information about. 686 * [dealId] - Preferred deal to get information about.
693 * 687 *
694 * Completes with a [PreferredDeal]. 688 * Completes with a [PreferredDeal].
695 * 689 *
696 * Completes with a [common.ApiRequestError] if the API endpoint returned an 690 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
697 * error. 691 * error.
698 * 692 *
699 * If the used [http.Client] completes with an error when making a REST call, 693 * If the used [http.Client] completes with an error when making a REST call,
700 * this method will complete with the same error. 694 * this method will complete with the same error.
701 */ 695 */
702 async.Future<PreferredDeal> get(core.String dealId) { 696 async.Future<PreferredDeal> get(core.String dealId) {
703 var _url = null; 697 var _url = null;
704 var _queryParams = new core.Map(); 698 var _queryParams = new core.Map();
705 var _uploadMedia = null; 699 var _uploadMedia = null;
706 var _uploadOptions = null; 700 var _uploadOptions = null;
707 var _downloadOptions = common.DownloadOptions.Metadata; 701 var _downloadOptions = commons.DownloadOptions.Metadata;
708 var _body = null; 702 var _body = null;
709 703
710 if (dealId == null) { 704 if (dealId == null) {
711 throw new core.ArgumentError("Parameter dealId is required."); 705 throw new core.ArgumentError("Parameter dealId is required.");
712 } 706 }
713 707
714 708
715 _url = 'preferreddeals/' + common_internal.Escaper.ecapeVariable('$dealId'); 709 _url = 'preferreddeals/' + commons.Escaper.ecapeVariable('$dealId');
716 710
717 var _response = _requester.request(_url, 711 var _response = _requester.request(_url,
718 "GET", 712 "GET",
719 body: _body, 713 body: _body,
720 queryParams: _queryParams, 714 queryParams: _queryParams,
721 uploadOptions: _uploadOptions, 715 uploadOptions: _uploadOptions,
722 uploadMedia: _uploadMedia, 716 uploadMedia: _uploadMedia,
723 downloadOptions: _downloadOptions); 717 downloadOptions: _downloadOptions);
724 return _response.then((data) => new PreferredDeal.fromJson(data)); 718 return _response.then((data) => new PreferredDeal.fromJson(data));
725 } 719 }
726 720
727 /** 721 /**
728 * List the preferred deals for this Ad Exchange account. 722 * List the preferred deals for this Ad Exchange account.
729 * 723 *
730 * Request parameters: 724 * Request parameters:
731 * 725 *
732 * Completes with a [PreferredDeals]. 726 * Completes with a [PreferredDeals].
733 * 727 *
734 * Completes with a [common.ApiRequestError] if the API endpoint returned an 728 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
735 * error. 729 * error.
736 * 730 *
737 * If the used [http.Client] completes with an error when making a REST call, 731 * If the used [http.Client] completes with an error when making a REST call,
738 * this method will complete with the same error. 732 * this method will complete with the same error.
739 */ 733 */
740 async.Future<PreferredDeals> list() { 734 async.Future<PreferredDeals> list() {
741 var _url = null; 735 var _url = null;
742 var _queryParams = new core.Map(); 736 var _queryParams = new core.Map();
743 var _uploadMedia = null; 737 var _uploadMedia = null;
744 var _uploadOptions = null; 738 var _uploadOptions = null;
745 var _downloadOptions = common.DownloadOptions.Metadata; 739 var _downloadOptions = commons.DownloadOptions.Metadata;
746 var _body = null; 740 var _body = null;
747 741
748 742
749 743
750 _url = 'preferreddeals'; 744 _url = 'preferreddeals';
751 745
752 var _response = _requester.request(_url, 746 var _response = _requester.request(_url,
753 "GET", 747 "GET",
754 body: _body, 748 body: _body,
755 queryParams: _queryParams, 749 queryParams: _queryParams,
756 uploadOptions: _uploadOptions, 750 uploadOptions: _uploadOptions,
757 uploadMedia: _uploadMedia, 751 uploadMedia: _uploadMedia,
758 downloadOptions: _downloadOptions); 752 downloadOptions: _downloadOptions);
759 return _response.then((data) => new PreferredDeals.fromJson(data)); 753 return _response.then((data) => new PreferredDeals.fromJson(data));
760 } 754 }
761 755
762 } 756 }
763 757
764 758
765 /** Not documented yet. */
766 class ReportsResourceApi { 759 class ReportsResourceApi {
767 final common_internal.ApiRequester _requester; 760 final commons.ApiRequester _requester;
768 761
769 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester); 762 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester);
770 763
771 ReportsResourceApi(common_internal.ApiRequester client) : 764 ReportsResourceApi(commons.ApiRequester client) :
772 _requester = client; 765 _requester = client;
773 766
774 /** 767 /**
775 * Generate an Ad Exchange report based on the report request sent in the 768 * Generate an Ad Exchange report based on the report request sent in the
776 * query parameters. Returns the result as JSON; to retrieve output in CSV 769 * query parameters. Returns the result as JSON; to retrieve output in CSV
777 * format specify "alt=csv" as a query parameter. 770 * format specify "alt=csv" as a query parameter.
778 * 771 *
779 * Request parameters: 772 * Request parameters:
780 * 773 *
781 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, 774 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 * Value must be between "0" and "5000". 806 * Value must be between "0" and "5000".
814 * 807 *
815 * [downloadOptions] - Options for downloading. A download can be either a 808 * [downloadOptions] - Options for downloading. A download can be either a
816 * Metadata (default) or Media download. Partial Media downloads are possible 809 * Metadata (default) or Media download. Partial Media downloads are possible
817 * as well. 810 * as well.
818 * 811 *
819 * Completes with a 812 * Completes with a
820 * 813 *
821 * - [Report] for Metadata downloads (see [downloadOptions]). 814 * - [Report] for Metadata downloads (see [downloadOptions]).
822 * 815 *
823 * - [common.Media] for Media downloads (see [downloadOptions]). 816 * - [commons.Media] for Media downloads (see [downloadOptions]).
824 * 817 *
825 * Completes with a [common.ApiRequestError] if the API endpoint returned an 818 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
826 * error. 819 * error.
827 * 820 *
828 * If the used [http.Client] completes with an error when making a REST call, 821 * If the used [http.Client] completes with an error when making a REST call,
829 * this method will complete with the same error. 822 * this method will complete with the same error.
830 */ 823 */
831 async.Future generate(core.String startDate, core.String endDate, {core.List<c ore.String> dimension, core.List<core.String> filter, core.String locale, core.i nt maxResults, core.List<core.String> metric, core.List<core.String> sort, core. int startIndex, common.DownloadOptions downloadOptions: common.DownloadOptions.M etadata}) { 824 async.Future generate(core.String startDate, core.String endDate, {core.List<c ore.String> dimension, core.List<core.String> filter, core.String locale, core.i nt maxResults, core.List<core.String> metric, core.List<core.String> sort, core. int startIndex, commons.DownloadOptions downloadOptions: commons.DownloadOptions .Metadata}) {
832 var _url = null; 825 var _url = null;
833 var _queryParams = new core.Map(); 826 var _queryParams = new core.Map();
834 var _uploadMedia = null; 827 var _uploadMedia = null;
835 var _uploadOptions = null; 828 var _uploadOptions = null;
836 var _downloadOptions = common.DownloadOptions.Metadata; 829 var _downloadOptions = commons.DownloadOptions.Metadata;
837 var _body = null; 830 var _body = null;
838 831
839 if (startDate == null) { 832 if (startDate == null) {
840 throw new core.ArgumentError("Parameter startDate is required."); 833 throw new core.ArgumentError("Parameter startDate is required.");
841 } 834 }
842 _queryParams["startDate"] = [startDate]; 835 _queryParams["startDate"] = [startDate];
843 if (endDate == null) { 836 if (endDate == null) {
844 throw new core.ArgumentError("Parameter endDate is required."); 837 throw new core.ArgumentError("Parameter endDate is required.");
845 } 838 }
846 _queryParams["endDate"] = [endDate]; 839 _queryParams["endDate"] = [endDate];
(...skipping 24 matching lines...) Expand all
871 _url = 'reports'; 864 _url = 'reports';
872 865
873 var _response = _requester.request(_url, 866 var _response = _requester.request(_url,
874 "GET", 867 "GET",
875 body: _body, 868 body: _body,
876 queryParams: _queryParams, 869 queryParams: _queryParams,
877 uploadOptions: _uploadOptions, 870 uploadOptions: _uploadOptions,
878 uploadMedia: _uploadMedia, 871 uploadMedia: _uploadMedia,
879 downloadOptions: _downloadOptions); 872 downloadOptions: _downloadOptions);
880 if (_downloadOptions == null || 873 if (_downloadOptions == null ||
881 _downloadOptions == common.DownloadOptions.Metadata) { 874 _downloadOptions == commons.DownloadOptions.Metadata) {
882 return _response.then((data) => new Report.fromJson(data)); 875 return _response.then((data) => new Report.fromJson(data));
883 } else { 876 } else {
884 return _response; 877 return _response;
885 } 878 }
886 } 879 }
887 880
888 } 881 }
889 882
890 883
891 /** Not documented yet. */
892 class ReportsSavedResourceApi { 884 class ReportsSavedResourceApi {
893 final common_internal.ApiRequester _requester; 885 final commons.ApiRequester _requester;
894 886
895 ReportsSavedResourceApi(common_internal.ApiRequester client) : 887 ReportsSavedResourceApi(commons.ApiRequester client) :
896 _requester = client; 888 _requester = client;
897 889
898 /** 890 /**
899 * Generate an Ad Exchange report based on the saved report ID sent in the 891 * Generate an Ad Exchange report based on the saved report ID sent in the
900 * query parameters. 892 * query parameters.
901 * 893 *
902 * Request parameters: 894 * Request parameters:
903 * 895 *
904 * [savedReportId] - The saved report to retrieve. 896 * [savedReportId] - The saved report to retrieve.
905 * 897 *
906 * [locale] - Optional locale to use for translating report output to a local 898 * [locale] - Optional locale to use for translating report output to a local
907 * language. Defaults to "en_US" if not specified. 899 * language. Defaults to "en_US" if not specified.
908 * Value must have pattern "[a-zA-Z_]+". 900 * Value must have pattern "[a-zA-Z_]+".
909 * 901 *
910 * [maxResults] - The maximum number of rows of report data to return. 902 * [maxResults] - The maximum number of rows of report data to return.
911 * Value must be between "0" and "50000". 903 * Value must be between "0" and "50000".
912 * 904 *
913 * [startIndex] - Index of the first row of report data to return. 905 * [startIndex] - Index of the first row of report data to return.
914 * Value must be between "0" and "5000". 906 * Value must be between "0" and "5000".
915 * 907 *
916 * Completes with a [Report]. 908 * Completes with a [Report].
917 * 909 *
918 * Completes with a [common.ApiRequestError] if the API endpoint returned an 910 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
919 * error. 911 * error.
920 * 912 *
921 * If the used [http.Client] completes with an error when making a REST call, 913 * If the used [http.Client] completes with an error when making a REST call,
922 * this method will complete with the same error. 914 * this method will complete with the same error.
923 */ 915 */
924 async.Future<Report> generate(core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) { 916 async.Future<Report> generate(core.String savedReportId, {core.String locale, core.int maxResults, core.int startIndex}) {
925 var _url = null; 917 var _url = null;
926 var _queryParams = new core.Map(); 918 var _queryParams = new core.Map();
927 var _uploadMedia = null; 919 var _uploadMedia = null;
928 var _uploadOptions = null; 920 var _uploadOptions = null;
929 var _downloadOptions = common.DownloadOptions.Metadata; 921 var _downloadOptions = commons.DownloadOptions.Metadata;
930 var _body = null; 922 var _body = null;
931 923
932 if (savedReportId == null) { 924 if (savedReportId == null) {
933 throw new core.ArgumentError("Parameter savedReportId is required."); 925 throw new core.ArgumentError("Parameter savedReportId is required.");
934 } 926 }
935 if (locale != null) { 927 if (locale != null) {
936 _queryParams["locale"] = [locale]; 928 _queryParams["locale"] = [locale];
937 } 929 }
938 if (maxResults != null) { 930 if (maxResults != null) {
939 _queryParams["maxResults"] = ["${maxResults}"]; 931 _queryParams["maxResults"] = ["${maxResults}"];
940 } 932 }
941 if (startIndex != null) { 933 if (startIndex != null) {
942 _queryParams["startIndex"] = ["${startIndex}"]; 934 _queryParams["startIndex"] = ["${startIndex}"];
943 } 935 }
944 936
945 937
946 _url = 'reports/' + common_internal.Escaper.ecapeVariable('$savedReportId'); 938 _url = 'reports/' + commons.Escaper.ecapeVariable('$savedReportId');
947 939
948 var _response = _requester.request(_url, 940 var _response = _requester.request(_url,
949 "GET", 941 "GET",
950 body: _body, 942 body: _body,
951 queryParams: _queryParams, 943 queryParams: _queryParams,
952 uploadOptions: _uploadOptions, 944 uploadOptions: _uploadOptions,
953 uploadMedia: _uploadMedia, 945 uploadMedia: _uploadMedia,
954 downloadOptions: _downloadOptions); 946 downloadOptions: _downloadOptions);
955 return _response.then((data) => new Report.fromJson(data)); 947 return _response.then((data) => new Report.fromJson(data));
956 } 948 }
957 949
958 /** 950 /**
959 * List all saved reports in this Ad Exchange account. 951 * List all saved reports in this Ad Exchange account.
960 * 952 *
961 * Request parameters: 953 * Request parameters:
962 * 954 *
963 * [maxResults] - The maximum number of saved reports to include in the 955 * [maxResults] - The maximum number of saved reports to include in the
964 * response, used for paging. 956 * response, used for paging.
965 * Value must be between "0" and "100". 957 * Value must be between "0" and "100".
966 * 958 *
967 * [pageToken] - A continuation token, used to page through saved reports. To 959 * [pageToken] - A continuation token, used to page through saved reports. To
968 * retrieve the next page, set this parameter to the value of "nextPageToken" 960 * retrieve the next page, set this parameter to the value of "nextPageToken"
969 * from the previous response. 961 * from the previous response.
970 * 962 *
971 * Completes with a [SavedReports]. 963 * Completes with a [SavedReports].
972 * 964 *
973 * Completes with a [common.ApiRequestError] if the API endpoint returned an 965 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
974 * error. 966 * error.
975 * 967 *
976 * If the used [http.Client] completes with an error when making a REST call, 968 * If the used [http.Client] completes with an error when making a REST call,
977 * this method will complete with the same error. 969 * this method will complete with the same error.
978 */ 970 */
979 async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) { 971 async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) {
980 var _url = null; 972 var _url = null;
981 var _queryParams = new core.Map(); 973 var _queryParams = new core.Map();
982 var _uploadMedia = null; 974 var _uploadMedia = null;
983 var _uploadOptions = null; 975 var _uploadOptions = null;
984 var _downloadOptions = common.DownloadOptions.Metadata; 976 var _downloadOptions = commons.DownloadOptions.Metadata;
985 var _body = null; 977 var _body = null;
986 978
987 if (maxResults != null) { 979 if (maxResults != null) {
988 _queryParams["maxResults"] = ["${maxResults}"]; 980 _queryParams["maxResults"] = ["${maxResults}"];
989 } 981 }
990 if (pageToken != null) { 982 if (pageToken != null) {
991 _queryParams["pageToken"] = [pageToken]; 983 _queryParams["pageToken"] = [pageToken];
992 } 984 }
993 985
994 986
995 _url = 'reports/saved'; 987 _url = 'reports/saved';
996 988
997 var _response = _requester.request(_url, 989 var _response = _requester.request(_url,
998 "GET", 990 "GET",
999 body: _body, 991 body: _body,
1000 queryParams: _queryParams, 992 queryParams: _queryParams,
1001 uploadOptions: _uploadOptions, 993 uploadOptions: _uploadOptions,
1002 uploadMedia: _uploadMedia, 994 uploadMedia: _uploadMedia,
1003 downloadOptions: _downloadOptions); 995 downloadOptions: _downloadOptions);
1004 return _response.then((data) => new SavedReports.fromJson(data)); 996 return _response.then((data) => new SavedReports.fromJson(data));
1005 } 997 }
1006 998
1007 } 999 }
1008 1000
1009 1001
1010 /** Not documented yet. */
1011 class UrlchannelsResourceApi { 1002 class UrlchannelsResourceApi {
1012 final common_internal.ApiRequester _requester; 1003 final commons.ApiRequester _requester;
1013 1004
1014 UrlchannelsResourceApi(common_internal.ApiRequester client) : 1005 UrlchannelsResourceApi(commons.ApiRequester client) :
1015 _requester = client; 1006 _requester = client;
1016 1007
1017 /** 1008 /**
1018 * List all URL channels in the specified ad client for this Ad Exchange 1009 * List all URL channels in the specified ad client for this Ad Exchange
1019 * account. 1010 * account.
1020 * 1011 *
1021 * Request parameters: 1012 * Request parameters:
1022 * 1013 *
1023 * [adClientId] - Ad client for which to list URL channels. 1014 * [adClientId] - Ad client for which to list URL channels.
1024 * 1015 *
1025 * [maxResults] - The maximum number of URL channels to include in the 1016 * [maxResults] - The maximum number of URL channels to include in the
1026 * response, used for paging. 1017 * response, used for paging.
1027 * Value must be between "0" and "10000". 1018 * Value must be between "0" and "10000".
1028 * 1019 *
1029 * [pageToken] - A continuation token, used to page through URL channels. To 1020 * [pageToken] - A continuation token, used to page through URL channels. To
1030 * retrieve the next page, set this parameter to the value of "nextPageToken" 1021 * retrieve the next page, set this parameter to the value of "nextPageToken"
1031 * from the previous response. 1022 * from the previous response.
1032 * 1023 *
1033 * Completes with a [UrlChannels]. 1024 * Completes with a [UrlChannels].
1034 * 1025 *
1035 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1026 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1036 * error. 1027 * error.
1037 * 1028 *
1038 * If the used [http.Client] completes with an error when making a REST call, 1029 * If the used [http.Client] completes with an error when making a REST call,
1039 * this method will complete with the same error. 1030 * this method will complete with the same error.
1040 */ 1031 */
1041 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c ore.String pageToken}) { 1032 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c ore.String pageToken}) {
1042 var _url = null; 1033 var _url = null;
1043 var _queryParams = new core.Map(); 1034 var _queryParams = new core.Map();
1044 var _uploadMedia = null; 1035 var _uploadMedia = null;
1045 var _uploadOptions = null; 1036 var _uploadOptions = null;
1046 var _downloadOptions = common.DownloadOptions.Metadata; 1037 var _downloadOptions = commons.DownloadOptions.Metadata;
1047 var _body = null; 1038 var _body = null;
1048 1039
1049 if (adClientId == null) { 1040 if (adClientId == null) {
1050 throw new core.ArgumentError("Parameter adClientId is required."); 1041 throw new core.ArgumentError("Parameter adClientId is required.");
1051 } 1042 }
1052 if (maxResults != null) { 1043 if (maxResults != null) {
1053 _queryParams["maxResults"] = ["${maxResults}"]; 1044 _queryParams["maxResults"] = ["${maxResults}"];
1054 } 1045 }
1055 if (pageToken != null) { 1046 if (pageToken != null) {
1056 _queryParams["pageToken"] = [pageToken]; 1047 _queryParams["pageToken"] = [pageToken];
1057 } 1048 }
1058 1049
1059 1050
1060 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; 1051 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlch annels';
1061 1052
1062 var _response = _requester.request(_url, 1053 var _response = _requester.request(_url,
1063 "GET", 1054 "GET",
1064 body: _body, 1055 body: _body,
1065 queryParams: _queryParams, 1056 queryParams: _queryParams,
1066 uploadOptions: _uploadOptions, 1057 uploadOptions: _uploadOptions,
1067 uploadMedia: _uploadMedia, 1058 uploadMedia: _uploadMedia,
1068 downloadOptions: _downloadOptions); 1059 downloadOptions: _downloadOptions);
1069 return _response.then((data) => new UrlChannels.fromJson(data)); 1060 return _response.then((data) => new UrlChannels.fromJson(data));
1070 } 1061 }
1071 1062
1072 } 1063 }
1073 1064
1074 1065
1075 1066
1076 /** Not documented yet. */
1077 class Account { 1067 class Account {
1078 /** Unique identifier of this account. */ 1068 /** Unique identifier of this account. */
1079 core.String id; 1069 core.String id;
1080 1070
1081 /** Kind of resource this is, in this case adexchangeseller#account. */ 1071 /** Kind of resource this is, in this case adexchangeseller#account. */
1082 core.String kind; 1072 core.String kind;
1083 1073
1084 /** Name of this account. */ 1074 /** Name of this account. */
1085 core.String name; 1075 core.String name;
1086 1076
(...skipping 21 matching lines...) Expand all
1108 _json["kind"] = kind; 1098 _json["kind"] = kind;
1109 } 1099 }
1110 if (name != null) { 1100 if (name != null) {
1111 _json["name"] = name; 1101 _json["name"] = name;
1112 } 1102 }
1113 return _json; 1103 return _json;
1114 } 1104 }
1115 } 1105 }
1116 1106
1117 1107
1118 /** Not documented yet. */
1119 class AdClient { 1108 class AdClient {
1120 /** Whether this ad client is opted in to ARC. */ 1109 /** Whether this ad client is opted in to ARC. */
1121 core.bool arcOptIn; 1110 core.bool arcOptIn;
1122 1111
1123 /** Unique identifier of this ad client. */ 1112 /** Unique identifier of this ad client. */
1124 core.String id; 1113 core.String id;
1125 1114
1126 /** Kind of resource this is, in this case adexchangeseller#adClient. */ 1115 /** Kind of resource this is, in this case adexchangeseller#adClient. */
1127 core.String kind; 1116 core.String kind;
1128 1117
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 _json["productCode"] = productCode; 1160 _json["productCode"] = productCode;
1172 } 1161 }
1173 if (supportsReporting != null) { 1162 if (supportsReporting != null) {
1174 _json["supportsReporting"] = supportsReporting; 1163 _json["supportsReporting"] = supportsReporting;
1175 } 1164 }
1176 return _json; 1165 return _json;
1177 } 1166 }
1178 } 1167 }
1179 1168
1180 1169
1181 /** Not documented yet. */
1182 class AdClients { 1170 class AdClients {
1183 /** ETag of this response for caching purposes. */ 1171 /** ETag of this response for caching purposes. */
1184 core.String etag; 1172 core.String etag;
1185 1173
1186 /** The ad clients returned in this list response. */ 1174 /** The ad clients returned in this list response. */
1187 core.List<AdClient> items; 1175 core.List<AdClient> items;
1188 1176
1189 /** Kind of list this is, in this case adexchangeseller#adClients. */ 1177 /** Kind of list this is, in this case adexchangeseller#adClients. */
1190 core.String kind; 1178 core.String kind;
1191 1179
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 _json["kind"] = kind; 1213 _json["kind"] = kind;
1226 } 1214 }
1227 if (nextPageToken != null) { 1215 if (nextPageToken != null) {
1228 _json["nextPageToken"] = nextPageToken; 1216 _json["nextPageToken"] = nextPageToken;
1229 } 1217 }
1230 return _json; 1218 return _json;
1231 } 1219 }
1232 } 1220 }
1233 1221
1234 1222
1235 /** Not documented yet. */
1236 class AdUnit { 1223 class AdUnit {
1237 /** 1224 /**
1238 * Identity code of this ad unit, not necessarily unique across ad clients. 1225 * Identity code of this ad unit, not necessarily unique across ad clients.
1239 */ 1226 */
1240 core.String code; 1227 core.String code;
1241 1228
1242 /** 1229 /**
1243 * Unique identifier of this ad unit. This should be considered an opaque 1230 * Unique identifier of this ad unit. This should be considered an opaque
1244 * identifier; it is not safe to rely on it being in any particular format. 1231 * identifier; it is not safe to rely on it being in any particular format.
1245 */ 1232 */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 _json["name"] = name; 1287 _json["name"] = name;
1301 } 1288 }
1302 if (status != null) { 1289 if (status != null) {
1303 _json["status"] = status; 1290 _json["status"] = status;
1304 } 1291 }
1305 return _json; 1292 return _json;
1306 } 1293 }
1307 } 1294 }
1308 1295
1309 1296
1310 /** Not documented yet. */
1311 class AdUnits { 1297 class AdUnits {
1312 /** ETag of this response for caching purposes. */ 1298 /** ETag of this response for caching purposes. */
1313 core.String etag; 1299 core.String etag;
1314 1300
1315 /** The ad units returned in this list response. */ 1301 /** The ad units returned in this list response. */
1316 core.List<AdUnit> items; 1302 core.List<AdUnit> items;
1317 1303
1318 /** Kind of list this is, in this case adexchangeseller#adUnits. */ 1304 /** Kind of list this is, in this case adexchangeseller#adUnits. */
1319 core.String kind; 1305 core.String kind;
1320 1306
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 _json["kind"] = kind; 1340 _json["kind"] = kind;
1355 } 1341 }
1356 if (nextPageToken != null) { 1342 if (nextPageToken != null) {
1357 _json["nextPageToken"] = nextPageToken; 1343 _json["nextPageToken"] = nextPageToken;
1358 } 1344 }
1359 return _json; 1345 return _json;
1360 } 1346 }
1361 } 1347 }
1362 1348
1363 1349
1364 /** Not documented yet. */
1365 class Alert { 1350 class Alert {
1366 /** 1351 /**
1367 * Unique identifier of this alert. This should be considered an opaque 1352 * Unique identifier of this alert. This should be considered an opaque
1368 * identifier; it is not safe to rely on it being in any particular format. 1353 * identifier; it is not safe to rely on it being in any particular format.
1369 */ 1354 */
1370 core.String id; 1355 core.String id;
1371 1356
1372 /** Kind of resource this is, in this case adexchangeseller#alert. */ 1357 /** Kind of resource this is, in this case adexchangeseller#alert. */
1373 core.String kind; 1358 core.String kind;
1374 1359
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 _json["severity"] = severity; 1406 _json["severity"] = severity;
1422 } 1407 }
1423 if (type != null) { 1408 if (type != null) {
1424 _json["type"] = type; 1409 _json["type"] = type;
1425 } 1410 }
1426 return _json; 1411 return _json;
1427 } 1412 }
1428 } 1413 }
1429 1414
1430 1415
1431 /** Not documented yet. */
1432 class Alerts { 1416 class Alerts {
1433 /** The alerts returned in this list response. */ 1417 /** The alerts returned in this list response. */
1434 core.List<Alert> items; 1418 core.List<Alert> items;
1435 1419
1436 /** Kind of list this is, in this case adexchangeseller#alerts. */ 1420 /** Kind of list this is, in this case adexchangeseller#alerts. */
1437 core.String kind; 1421 core.String kind;
1438 1422
1439 1423
1440 Alerts(); 1424 Alerts();
1441 1425
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 _json["location"] = location; 1495 _json["location"] = location;
1512 } 1496 }
1513 if (siteLanguage != null) { 1497 if (siteLanguage != null) {
1514 _json["siteLanguage"] = siteLanguage; 1498 _json["siteLanguage"] = siteLanguage;
1515 } 1499 }
1516 return _json; 1500 return _json;
1517 } 1501 }
1518 } 1502 }
1519 1503
1520 1504
1521 /** Not documented yet. */
1522 class CustomChannel { 1505 class CustomChannel {
1523 /** Code of this custom channel, not necessarily unique across ad clients. */ 1506 /** Code of this custom channel, not necessarily unique across ad clients. */
1524 core.String code; 1507 core.String code;
1525 1508
1526 /** 1509 /**
1527 * Unique identifier of this custom channel. This should be considered an 1510 * Unique identifier of this custom channel. This should be considered an
1528 * opaque identifier; it is not safe to rely on it being in any particular 1511 * opaque identifier; it is not safe to rely on it being in any particular
1529 * format. 1512 * format.
1530 */ 1513 */
1531 core.String id; 1514 core.String id;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 _json["name"] = name; 1558 _json["name"] = name;
1576 } 1559 }
1577 if (targetingInfo != null) { 1560 if (targetingInfo != null) {
1578 _json["targetingInfo"] = (targetingInfo).toJson(); 1561 _json["targetingInfo"] = (targetingInfo).toJson();
1579 } 1562 }
1580 return _json; 1563 return _json;
1581 } 1564 }
1582 } 1565 }
1583 1566
1584 1567
1585 /** Not documented yet. */
1586 class CustomChannels { 1568 class CustomChannels {
1587 /** ETag of this response for caching purposes. */ 1569 /** ETag of this response for caching purposes. */
1588 core.String etag; 1570 core.String etag;
1589 1571
1590 /** The custom channels returned in this list response. */ 1572 /** The custom channels returned in this list response. */
1591 core.List<CustomChannel> items; 1573 core.List<CustomChannel> items;
1592 1574
1593 /** Kind of list this is, in this case adexchangeseller#customChannels. */ 1575 /** Kind of list this is, in this case adexchangeseller#customChannels. */
1594 core.String kind; 1576 core.String kind;
1595 1577
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 _json["kind"] = kind; 1611 _json["kind"] = kind;
1630 } 1612 }
1631 if (nextPageToken != null) { 1613 if (nextPageToken != null) {
1632 _json["nextPageToken"] = nextPageToken; 1614 _json["nextPageToken"] = nextPageToken;
1633 } 1615 }
1634 return _json; 1616 return _json;
1635 } 1617 }
1636 } 1618 }
1637 1619
1638 1620
1639 /** Not documented yet. */
1640 class Metadata { 1621 class Metadata {
1641 /** Not documented yet. */
1642 core.List<ReportingMetadataEntry> items; 1622 core.List<ReportingMetadataEntry> items;
1643 1623
1644 /** Kind of list this is, in this case adexchangeseller#metadata. */ 1624 /** Kind of list this is, in this case adexchangeseller#metadata. */
1645 core.String kind; 1625 core.String kind;
1646 1626
1647 1627
1648 Metadata(); 1628 Metadata();
1649 1629
1650 Metadata.fromJson(core.Map _json) { 1630 Metadata.fromJson(core.Map _json) {
1651 if (_json.containsKey("items")) { 1631 if (_json.containsKey("items")) {
(...skipping 10 matching lines...) Expand all
1662 _json["items"] = items.map((value) => (value).toJson()).toList(); 1642 _json["items"] = items.map((value) => (value).toJson()).toList();
1663 } 1643 }
1664 if (kind != null) { 1644 if (kind != null) {
1665 _json["kind"] = kind; 1645 _json["kind"] = kind;
1666 } 1646 }
1667 return _json; 1647 return _json;
1668 } 1648 }
1669 } 1649 }
1670 1650
1671 1651
1672 /** Not documented yet. */
1673 class PreferredDeal { 1652 class PreferredDeal {
1674 /** The name of the advertiser this deal is for. */ 1653 /** The name of the advertiser this deal is for. */
1675 core.String advertiserName; 1654 core.String advertiserName;
1676 1655
1677 /** The name of the buyer network this deal is for. */ 1656 /** The name of the buyer network this deal is for. */
1678 core.String buyerNetworkName; 1657 core.String buyerNetworkName;
1679 1658
1680 /** 1659 /**
1681 * The currency code that applies to the fixed_cpm value. If not set then 1660 * The currency code that applies to the fixed_cpm value. If not set then
1682 * assumed to be USD. 1661 * assumed to be USD.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 _json["kind"] = kind; 1742 _json["kind"] = kind;
1764 } 1743 }
1765 if (startTime != null) { 1744 if (startTime != null) {
1766 _json["startTime"] = startTime; 1745 _json["startTime"] = startTime;
1767 } 1746 }
1768 return _json; 1747 return _json;
1769 } 1748 }
1770 } 1749 }
1771 1750
1772 1751
1773 /** Not documented yet. */
1774 class PreferredDeals { 1752 class PreferredDeals {
1775 /** The preferred deals returned in this list response. */ 1753 /** The preferred deals returned in this list response. */
1776 core.List<PreferredDeal> items; 1754 core.List<PreferredDeal> items;
1777 1755
1778 /** Kind of list this is, in this case adexchangeseller#preferredDeals. */ 1756 /** Kind of list this is, in this case adexchangeseller#preferredDeals. */
1779 core.String kind; 1757 core.String kind;
1780 1758
1781 1759
1782 PreferredDeals(); 1760 PreferredDeals();
1783 1761
(...skipping 12 matching lines...) Expand all
1796 _json["items"] = items.map((value) => (value).toJson()).toList(); 1774 _json["items"] = items.map((value) => (value).toJson()).toList();
1797 } 1775 }
1798 if (kind != null) { 1776 if (kind != null) {
1799 _json["kind"] = kind; 1777 _json["kind"] = kind;
1800 } 1778 }
1801 return _json; 1779 return _json;
1802 } 1780 }
1803 } 1781 }
1804 1782
1805 1783
1806 /** Not documented yet. */
1807 class ReportHeaders { 1784 class ReportHeaders {
1808 /** 1785 /**
1809 * The currency of this column. Only present if the header type is 1786 * The currency of this column. Only present if the header type is
1810 * METRIC_CURRENCY. 1787 * METRIC_CURRENCY.
1811 */ 1788 */
1812 core.String currency; 1789 core.String currency;
1813 1790
1814 /** The name of the header. */ 1791 /** The name of the header. */
1815 core.String name; 1792 core.String name;
1816 1793
(...skipping 27 matching lines...) Expand all
1844 _json["name"] = name; 1821 _json["name"] = name;
1845 } 1822 }
1846 if (type != null) { 1823 if (type != null) {
1847 _json["type"] = type; 1824 _json["type"] = type;
1848 } 1825 }
1849 return _json; 1826 return _json;
1850 } 1827 }
1851 } 1828 }
1852 1829
1853 1830
1854 /** Not documented yet. */
1855 class Report { 1831 class Report {
1856 /** 1832 /**
1857 * The averages of the report. This is the same length as any other row in the 1833 * The averages of the report. This is the same length as any other row in the
1858 * report; cells corresponding to dimension columns are empty. 1834 * report; cells corresponding to dimension columns are empty.
1859 */ 1835 */
1860 core.List<core.String> averages; 1836 core.List<core.String> averages;
1861 1837
1862 /** 1838 /**
1863 * The header information of the columns requested in the report. This is a 1839 * The header information of the columns requested in the report. This is a
1864 * list of headers; one for each dimension in the request, followed by one for 1840 * 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
1940 _json["totals"] = totals; 1916 _json["totals"] = totals;
1941 } 1917 }
1942 if (warnings != null) { 1918 if (warnings != null) {
1943 _json["warnings"] = warnings; 1919 _json["warnings"] = warnings;
1944 } 1920 }
1945 return _json; 1921 return _json;
1946 } 1922 }
1947 } 1923 }
1948 1924
1949 1925
1950 /** Not documented yet. */
1951 class ReportingMetadataEntry { 1926 class ReportingMetadataEntry {
1952 /** 1927 /**
1953 * For metrics this is a list of dimension IDs which the metric is compatible 1928 * For metrics this is a list of dimension IDs which the metric is compatible
1954 * with, for dimensions it is a list of compatibility groups the dimension 1929 * with, for dimensions it is a list of compatibility groups the dimension
1955 * belongs to. 1930 * belongs to.
1956 */ 1931 */
1957 core.List<core.String> compatibleDimensions; 1932 core.List<core.String> compatibleDimensions;
1958 1933
1959 /** 1934 /**
1960 * The names of the metrics the dimension or metric this reporting metadata 1935 * The names of the metrics the dimension or metric this reporting metadata
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 _json["requiredMetrics"] = requiredMetrics; 2019 _json["requiredMetrics"] = requiredMetrics;
2045 } 2020 }
2046 if (supportedProducts != null) { 2021 if (supportedProducts != null) {
2047 _json["supportedProducts"] = supportedProducts; 2022 _json["supportedProducts"] = supportedProducts;
2048 } 2023 }
2049 return _json; 2024 return _json;
2050 } 2025 }
2051 } 2026 }
2052 2027
2053 2028
2054 /** Not documented yet. */
2055 class SavedReport { 2029 class SavedReport {
2056 /** Unique identifier of this saved report. */ 2030 /** Unique identifier of this saved report. */
2057 core.String id; 2031 core.String id;
2058 2032
2059 /** Kind of resource this is, in this case adexchangeseller#savedReport. */ 2033 /** Kind of resource this is, in this case adexchangeseller#savedReport. */
2060 core.String kind; 2034 core.String kind;
2061 2035
2062 /** This saved report's name. */ 2036 /** This saved report's name. */
2063 core.String name; 2037 core.String name;
2064 2038
(...skipping 21 matching lines...) Expand all
2086 _json["kind"] = kind; 2060 _json["kind"] = kind;
2087 } 2061 }
2088 if (name != null) { 2062 if (name != null) {
2089 _json["name"] = name; 2063 _json["name"] = name;
2090 } 2064 }
2091 return _json; 2065 return _json;
2092 } 2066 }
2093 } 2067 }
2094 2068
2095 2069
2096 /** Not documented yet. */
2097 class SavedReports { 2070 class SavedReports {
2098 /** ETag of this response for caching purposes. */ 2071 /** ETag of this response for caching purposes. */
2099 core.String etag; 2072 core.String etag;
2100 2073
2101 /** The saved reports returned in this list response. */ 2074 /** The saved reports returned in this list response. */
2102 core.List<SavedReport> items; 2075 core.List<SavedReport> items;
2103 2076
2104 /** Kind of list this is, in this case adexchangeseller#savedReports. */ 2077 /** Kind of list this is, in this case adexchangeseller#savedReports. */
2105 core.String kind; 2078 core.String kind;
2106 2079
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 _json["kind"] = kind; 2113 _json["kind"] = kind;
2141 } 2114 }
2142 if (nextPageToken != null) { 2115 if (nextPageToken != null) {
2143 _json["nextPageToken"] = nextPageToken; 2116 _json["nextPageToken"] = nextPageToken;
2144 } 2117 }
2145 return _json; 2118 return _json;
2146 } 2119 }
2147 } 2120 }
2148 2121
2149 2122
2150 /** Not documented yet. */
2151 class UrlChannel { 2123 class UrlChannel {
2152 /** 2124 /**
2153 * Unique identifier of this URL channel. This should be considered an opaque 2125 * Unique identifier of this URL channel. This should be considered an opaque
2154 * identifier; it is not safe to rely on it being in any particular format. 2126 * identifier; it is not safe to rely on it being in any particular format.
2155 */ 2127 */
2156 core.String id; 2128 core.String id;
2157 2129
2158 /** Kind of resource this is, in this case adexchangeseller#urlChannel. */ 2130 /** Kind of resource this is, in this case adexchangeseller#urlChannel. */
2159 core.String kind; 2131 core.String kind;
2160 2132
(...skipping 27 matching lines...) Expand all
2188 _json["kind"] = kind; 2160 _json["kind"] = kind;
2189 } 2161 }
2190 if (urlPattern != null) { 2162 if (urlPattern != null) {
2191 _json["urlPattern"] = urlPattern; 2163 _json["urlPattern"] = urlPattern;
2192 } 2164 }
2193 return _json; 2165 return _json;
2194 } 2166 }
2195 } 2167 }
2196 2168
2197 2169
2198 /** Not documented yet. */
2199 class UrlChannels { 2170 class UrlChannels {
2200 /** ETag of this response for caching purposes. */ 2171 /** ETag of this response for caching purposes. */
2201 core.String etag; 2172 core.String etag;
2202 2173
2203 /** The URL channels returned in this list response. */ 2174 /** The URL channels returned in this list response. */
2204 core.List<UrlChannel> items; 2175 core.List<UrlChannel> items;
2205 2176
2206 /** Kind of list this is, in this case adexchangeseller#urlChannels. */ 2177 /** Kind of list this is, in this case adexchangeseller#urlChannels. */
2207 core.String kind; 2178 core.String kind;
2208 2179
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2240 } 2211 }
2241 if (kind != null) { 2212 if (kind != null) {
2242 _json["kind"] = kind; 2213 _json["kind"] = kind;
2243 } 2214 }
2244 if (nextPageToken != null) { 2215 if (nextPageToken != null) {
2245 _json["nextPageToken"] = nextPageToken; 2216 _json["nextPageToken"] = nextPageToken;
2246 } 2217 }
2247 return _json; 2218 return _json;
2248 } 2219 }
2249 } 2220 }
2250
2251
OLDNEW
« no previous file with comments | « generated/googleapis/lib/adexchangebuyer/v1_3.dart ('k') | generated/googleapis/lib/adexchangeseller/v2_0.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698