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

Side by Side Diff: generated/googleapis/lib/adexchangebuyer/v1_3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.adexchangebuyer.v1_3; 3 library googleapis.adexchangebuyer.v1_3;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.3'; 15 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.3';
16 16
17 /** 17 /// Accesses your bidding-account information, submits creatives for
18 * Accesses your bidding-account information, submits creatives for validation, 18 /// validation, finds available direct deals, and retrieves performance
19 * finds available direct deals, and retrieves performance reports. 19 /// reports.
20 */
21 class AdexchangebuyerApi { 20 class AdexchangebuyerApi {
22 /** Manage your Ad Exchange buyer account configuration */ 21 /// Manage your Ad Exchange buyer account configuration
23 static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchang e.buyer"; 22 static const AdexchangeBuyerScope =
24 23 "https://www.googleapis.com/auth/adexchange.buyer";
25 24
26 final commons.ApiRequester _requester; 25 final commons.ApiRequester _requester;
27 26
28 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
29 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste r); 28 BillingInfoResourceApi get billingInfo =>
29 new BillingInfoResourceApi(_requester);
30 BudgetResourceApi get budget => new BudgetResourceApi(_requester); 30 BudgetResourceApi get budget => new BudgetResourceApi(_requester);
31 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); 31 CreativesResourceApi get creatives => new CreativesResourceApi(_requester);
32 DirectDealsResourceApi get directDeals => new DirectDealsResourceApi(_requeste r); 32 DirectDealsResourceApi get directDeals =>
33 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes ourceApi(_requester); 33 new DirectDealsResourceApi(_requester);
34 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig ResourceApi(_requester); 34 PerformanceReportResourceApi get performanceReport =>
35 new PerformanceReportResourceApi(_requester);
36 PretargetingConfigResourceApi get pretargetingConfig =>
37 new PretargetingConfigResourceApi(_requester);
35 38
36 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "adexchangebuyer/v1.3/"}) : 39 AdexchangebuyerApi(http.Client client,
37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 40 {core.String rootUrl: "https://www.googleapis.com/",
41 core.String servicePath: "adexchangebuyer/v1.3/"})
42 : _requester =
43 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
38 } 44 }
39 45
40
41 class AccountsResourceApi { 46 class AccountsResourceApi {
42 final commons.ApiRequester _requester; 47 final commons.ApiRequester _requester;
43 48
44 AccountsResourceApi(commons.ApiRequester client) : 49 AccountsResourceApi(commons.ApiRequester client) : _requester = client;
45 _requester = client;
46 50
47 /** 51 /// Gets one account by ID.
48 * Gets one account by ID. 52 ///
49 * 53 /// Request parameters:
50 * Request parameters: 54 ///
51 * 55 /// [id] - The account id
52 * [id] - The account id 56 ///
53 * 57 /// Completes with a [Account].
54 * Completes with a [Account]. 58 ///
55 * 59 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
56 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 60 /// an error.
57 * error. 61 ///
58 * 62 /// If the used [http.Client] completes with an error when making a REST
59 * If the used [http.Client] completes with an error when making a REST call, 63 /// call, this method will complete with the same error.
60 * this method will complete with the same error.
61 */
62 async.Future<Account> get(core.int id) { 64 async.Future<Account> get(core.int id) {
63 var _url = null; 65 var _url = null;
64 var _queryParams = new core.Map(); 66 var _queryParams = new core.Map();
65 var _uploadMedia = null; 67 var _uploadMedia = null;
66 var _uploadOptions = null; 68 var _uploadOptions = null;
67 var _downloadOptions = commons.DownloadOptions.Metadata; 69 var _downloadOptions = commons.DownloadOptions.Metadata;
68 var _body = null; 70 var _body = null;
69 71
70 if (id == null) { 72 if (id == null) {
71 throw new core.ArgumentError("Parameter id is required."); 73 throw new core.ArgumentError("Parameter id is required.");
72 } 74 }
73 75
74 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); 76 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
75 77
76 var _response = _requester.request(_url, 78 var _response = _requester.request(_url, "GET",
77 "GET", 79 body: _body,
78 body: _body, 80 queryParams: _queryParams,
79 queryParams: _queryParams, 81 uploadOptions: _uploadOptions,
80 uploadOptions: _uploadOptions, 82 uploadMedia: _uploadMedia,
81 uploadMedia: _uploadMedia, 83 downloadOptions: _downloadOptions);
82 downloadOptions: _downloadOptions);
83 return _response.then((data) => new Account.fromJson(data)); 84 return _response.then((data) => new Account.fromJson(data));
84 } 85 }
85 86
86 /** 87 /// Retrieves the authenticated user's list of accounts.
87 * Retrieves the authenticated user's list of accounts. 88 ///
88 * 89 /// Request parameters:
89 * Request parameters: 90 ///
90 * 91 /// Completes with a [AccountsList].
91 * Completes with a [AccountsList]. 92 ///
92 * 93 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
93 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 94 /// an error.
94 * error. 95 ///
95 * 96 /// If the used [http.Client] completes with an error when making a REST
96 * If the used [http.Client] completes with an error when making a REST call, 97 /// call, this method will complete with the same error.
97 * this method will complete with the same error.
98 */
99 async.Future<AccountsList> list() { 98 async.Future<AccountsList> list() {
100 var _url = null; 99 var _url = null;
101 var _queryParams = new core.Map(); 100 var _queryParams = new core.Map();
102 var _uploadMedia = null; 101 var _uploadMedia = null;
103 var _uploadOptions = null; 102 var _uploadOptions = null;
104 var _downloadOptions = commons.DownloadOptions.Metadata; 103 var _downloadOptions = commons.DownloadOptions.Metadata;
105 var _body = null; 104 var _body = null;
106 105
107
108 _url = 'accounts'; 106 _url = 'accounts';
109 107
110 var _response = _requester.request(_url, 108 var _response = _requester.request(_url, "GET",
111 "GET", 109 body: _body,
112 body: _body, 110 queryParams: _queryParams,
113 queryParams: _queryParams, 111 uploadOptions: _uploadOptions,
114 uploadOptions: _uploadOptions, 112 uploadMedia: _uploadMedia,
115 uploadMedia: _uploadMedia, 113 downloadOptions: _downloadOptions);
116 downloadOptions: _downloadOptions);
117 return _response.then((data) => new AccountsList.fromJson(data)); 114 return _response.then((data) => new AccountsList.fromJson(data));
118 } 115 }
119 116
120 /** 117 /// Updates an existing account. This method supports patch semantics.
121 * Updates an existing account. This method supports patch semantics. 118 ///
122 * 119 /// [request] - The metadata request object.
123 * [request] - The metadata request object. 120 ///
124 * 121 /// Request parameters:
125 * Request parameters: 122 ///
126 * 123 /// [id] - The account id
127 * [id] - The account id 124 ///
128 * 125 /// Completes with a [Account].
129 * Completes with a [Account]. 126 ///
130 * 127 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
131 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 128 /// an error.
132 * error. 129 ///
133 * 130 /// If the used [http.Client] completes with an error when making a REST
134 * If the used [http.Client] completes with an error when making a REST call, 131 /// call, this method will complete with the same error.
135 * this method will complete with the same error.
136 */
137 async.Future<Account> patch(Account request, core.int id) { 132 async.Future<Account> patch(Account request, core.int id) {
138 var _url = null; 133 var _url = null;
139 var _queryParams = new core.Map(); 134 var _queryParams = new core.Map();
140 var _uploadMedia = null; 135 var _uploadMedia = null;
141 var _uploadOptions = null; 136 var _uploadOptions = null;
142 var _downloadOptions = commons.DownloadOptions.Metadata; 137 var _downloadOptions = commons.DownloadOptions.Metadata;
143 var _body = null; 138 var _body = null;
144 139
145 if (request != null) { 140 if (request != null) {
146 _body = convert.JSON.encode((request).toJson()); 141 _body = convert.JSON.encode((request).toJson());
147 } 142 }
148 if (id == null) { 143 if (id == null) {
149 throw new core.ArgumentError("Parameter id is required."); 144 throw new core.ArgumentError("Parameter id is required.");
150 } 145 }
151 146
152 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); 147 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
153 148
154 var _response = _requester.request(_url, 149 var _response = _requester.request(_url, "PATCH",
155 "PATCH", 150 body: _body,
156 body: _body, 151 queryParams: _queryParams,
157 queryParams: _queryParams, 152 uploadOptions: _uploadOptions,
158 uploadOptions: _uploadOptions, 153 uploadMedia: _uploadMedia,
159 uploadMedia: _uploadMedia, 154 downloadOptions: _downloadOptions);
160 downloadOptions: _downloadOptions);
161 return _response.then((data) => new Account.fromJson(data)); 155 return _response.then((data) => new Account.fromJson(data));
162 } 156 }
163 157
164 /** 158 /// Updates an existing account.
165 * Updates an existing account. 159 ///
166 * 160 /// [request] - The metadata request object.
167 * [request] - The metadata request object. 161 ///
168 * 162 /// Request parameters:
169 * Request parameters: 163 ///
170 * 164 /// [id] - The account id
171 * [id] - The account id 165 ///
172 * 166 /// Completes with a [Account].
173 * Completes with a [Account]. 167 ///
174 * 168 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 169 /// an error.
176 * error. 170 ///
177 * 171 /// If the used [http.Client] completes with an error when making a REST
178 * If the used [http.Client] completes with an error when making a REST call, 172 /// call, this method will complete with the same error.
179 * this method will complete with the same error.
180 */
181 async.Future<Account> update(Account request, core.int id) { 173 async.Future<Account> update(Account request, core.int id) {
182 var _url = null; 174 var _url = null;
183 var _queryParams = new core.Map(); 175 var _queryParams = new core.Map();
184 var _uploadMedia = null; 176 var _uploadMedia = null;
185 var _uploadOptions = null; 177 var _uploadOptions = null;
186 var _downloadOptions = commons.DownloadOptions.Metadata; 178 var _downloadOptions = commons.DownloadOptions.Metadata;
187 var _body = null; 179 var _body = null;
188 180
189 if (request != null) { 181 if (request != null) {
190 _body = convert.JSON.encode((request).toJson()); 182 _body = convert.JSON.encode((request).toJson());
191 } 183 }
192 if (id == null) { 184 if (id == null) {
193 throw new core.ArgumentError("Parameter id is required."); 185 throw new core.ArgumentError("Parameter id is required.");
194 } 186 }
195 187
196 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); 188 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
197 189
198 var _response = _requester.request(_url, 190 var _response = _requester.request(_url, "PUT",
199 "PUT", 191 body: _body,
200 body: _body, 192 queryParams: _queryParams,
201 queryParams: _queryParams, 193 uploadOptions: _uploadOptions,
202 uploadOptions: _uploadOptions, 194 uploadMedia: _uploadMedia,
203 uploadMedia: _uploadMedia, 195 downloadOptions: _downloadOptions);
204 downloadOptions: _downloadOptions);
205 return _response.then((data) => new Account.fromJson(data)); 196 return _response.then((data) => new Account.fromJson(data));
206 } 197 }
207
208 } 198 }
209 199
210
211 class BillingInfoResourceApi { 200 class BillingInfoResourceApi {
212 final commons.ApiRequester _requester; 201 final commons.ApiRequester _requester;
213 202
214 BillingInfoResourceApi(commons.ApiRequester client) : 203 BillingInfoResourceApi(commons.ApiRequester client) : _requester = client;
215 _requester = client;
216 204
217 /** 205 /// Returns the billing information for one account specified by account ID.
218 * Returns the billing information for one account specified by account ID. 206 ///
219 * 207 /// Request parameters:
220 * Request parameters: 208 ///
221 * 209 /// [accountId] - The account id.
222 * [accountId] - The account id. 210 ///
223 * 211 /// Completes with a [BillingInfo].
224 * Completes with a [BillingInfo]. 212 ///
225 * 213 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 214 /// an error.
227 * error. 215 ///
228 * 216 /// If the used [http.Client] completes with an error when making a REST
229 * If the used [http.Client] completes with an error when making a REST call, 217 /// call, this method will complete with the same error.
230 * this method will complete with the same error.
231 */
232 async.Future<BillingInfo> get(core.int accountId) { 218 async.Future<BillingInfo> get(core.int accountId) {
233 var _url = null; 219 var _url = null;
234 var _queryParams = new core.Map(); 220 var _queryParams = new core.Map();
235 var _uploadMedia = null; 221 var _uploadMedia = null;
236 var _uploadOptions = null; 222 var _uploadOptions = null;
237 var _downloadOptions = commons.DownloadOptions.Metadata; 223 var _downloadOptions = commons.DownloadOptions.Metadata;
238 var _body = null; 224 var _body = null;
239 225
240 if (accountId == null) { 226 if (accountId == null) {
241 throw new core.ArgumentError("Parameter accountId is required."); 227 throw new core.ArgumentError("Parameter accountId is required.");
242 } 228 }
243 229
244 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId'); 230 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId');
245 231
246 var _response = _requester.request(_url, 232 var _response = _requester.request(_url, "GET",
247 "GET", 233 body: _body,
248 body: _body, 234 queryParams: _queryParams,
249 queryParams: _queryParams, 235 uploadOptions: _uploadOptions,
250 uploadOptions: _uploadOptions, 236 uploadMedia: _uploadMedia,
251 uploadMedia: _uploadMedia, 237 downloadOptions: _downloadOptions);
252 downloadOptions: _downloadOptions);
253 return _response.then((data) => new BillingInfo.fromJson(data)); 238 return _response.then((data) => new BillingInfo.fromJson(data));
254 } 239 }
255 240
256 /** 241 /// Retrieves a list of billing information for all accounts of the
257 * Retrieves a list of billing information for all accounts of the 242 /// authenticated user.
258 * authenticated user. 243 ///
259 * 244 /// Request parameters:
260 * Request parameters: 245 ///
261 * 246 /// Completes with a [BillingInfoList].
262 * Completes with a [BillingInfoList]. 247 ///
263 * 248 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 249 /// an error.
265 * error. 250 ///
266 * 251 /// If the used [http.Client] completes with an error when making a REST
267 * If the used [http.Client] completes with an error when making a REST call, 252 /// call, this method will complete with the same error.
268 * this method will complete with the same error.
269 */
270 async.Future<BillingInfoList> list() { 253 async.Future<BillingInfoList> list() {
271 var _url = null; 254 var _url = null;
272 var _queryParams = new core.Map(); 255 var _queryParams = new core.Map();
273 var _uploadMedia = null; 256 var _uploadMedia = null;
274 var _uploadOptions = null; 257 var _uploadOptions = null;
275 var _downloadOptions = commons.DownloadOptions.Metadata; 258 var _downloadOptions = commons.DownloadOptions.Metadata;
276 var _body = null; 259 var _body = null;
277 260
278
279 _url = 'billinginfo'; 261 _url = 'billinginfo';
280 262
281 var _response = _requester.request(_url, 263 var _response = _requester.request(_url, "GET",
282 "GET", 264 body: _body,
283 body: _body, 265 queryParams: _queryParams,
284 queryParams: _queryParams, 266 uploadOptions: _uploadOptions,
285 uploadOptions: _uploadOptions, 267 uploadMedia: _uploadMedia,
286 uploadMedia: _uploadMedia, 268 downloadOptions: _downloadOptions);
287 downloadOptions: _downloadOptions);
288 return _response.then((data) => new BillingInfoList.fromJson(data)); 269 return _response.then((data) => new BillingInfoList.fromJson(data));
289 } 270 }
290
291 } 271 }
292 272
293
294 class BudgetResourceApi { 273 class BudgetResourceApi {
295 final commons.ApiRequester _requester; 274 final commons.ApiRequester _requester;
296 275
297 BudgetResourceApi(commons.ApiRequester client) : 276 BudgetResourceApi(commons.ApiRequester client) : _requester = client;
298 _requester = client;
299 277
300 /** 278 /// Returns the budget information for the adgroup specified by the accountId
301 * Returns the budget information for the adgroup specified by the accountId 279 /// and billingId.
302 * and billingId. 280 ///
303 * 281 /// Request parameters:
304 * Request parameters: 282 ///
305 * 283 /// [accountId] - The account id to get the budget information for.
306 * [accountId] - The account id to get the budget information for. 284 ///
307 * 285 /// [billingId] - The billing id to get the budget information for.
308 * [billingId] - The billing id to get the budget information for. 286 ///
309 * 287 /// Completes with a [Budget].
310 * Completes with a [Budget]. 288 ///
311 * 289 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
312 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 290 /// an error.
313 * error. 291 ///
314 * 292 /// If the used [http.Client] completes with an error when making a REST
315 * If the used [http.Client] completes with an error when making a REST call, 293 /// call, this method will complete with the same error.
316 * this method will complete with the same error.
317 */
318 async.Future<Budget> get(core.String accountId, core.String billingId) { 294 async.Future<Budget> get(core.String accountId, core.String billingId) {
319 var _url = null; 295 var _url = null;
320 var _queryParams = new core.Map(); 296 var _queryParams = new core.Map();
321 var _uploadMedia = null; 297 var _uploadMedia = null;
322 var _uploadOptions = null; 298 var _uploadOptions = null;
323 var _downloadOptions = commons.DownloadOptions.Metadata; 299 var _downloadOptions = commons.DownloadOptions.Metadata;
324 var _body = null; 300 var _body = null;
325 301
326 if (accountId == null) { 302 if (accountId == null) {
327 throw new core.ArgumentError("Parameter accountId is required."); 303 throw new core.ArgumentError("Parameter accountId is required.");
328 } 304 }
329 if (billingId == null) { 305 if (billingId == null) {
330 throw new core.ArgumentError("Parameter billingId is required."); 306 throw new core.ArgumentError("Parameter billingId is required.");
331 } 307 }
332 308
333 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); 309 _url = 'billinginfo/' +
310 commons.Escaper.ecapeVariable('$accountId') +
311 '/' +
312 commons.Escaper.ecapeVariable('$billingId');
334 313
335 var _response = _requester.request(_url, 314 var _response = _requester.request(_url, "GET",
336 "GET", 315 body: _body,
337 body: _body, 316 queryParams: _queryParams,
338 queryParams: _queryParams, 317 uploadOptions: _uploadOptions,
339 uploadOptions: _uploadOptions, 318 uploadMedia: _uploadMedia,
340 uploadMedia: _uploadMedia, 319 downloadOptions: _downloadOptions);
341 downloadOptions: _downloadOptions);
342 return _response.then((data) => new Budget.fromJson(data)); 320 return _response.then((data) => new Budget.fromJson(data));
343 } 321 }
344 322
345 /** 323 /// Updates the budget amount for the budget of the adgroup specified by the
346 * Updates the budget amount for the budget of the adgroup specified by the 324 /// accountId and billingId, with the budget amount in the request. This
347 * accountId and billingId, with the budget amount in the request. This method 325 /// method supports patch semantics.
348 * supports patch semantics. 326 ///
349 * 327 /// [request] - The metadata request object.
350 * [request] - The metadata request object. 328 ///
351 * 329 /// Request parameters:
352 * Request parameters: 330 ///
353 * 331 /// [accountId] - The account id associated with the budget being updated.
354 * [accountId] - The account id associated with the budget being updated. 332 ///
355 * 333 /// [billingId] - The billing id associated with the budget being updated.
356 * [billingId] - The billing id associated with the budget being updated. 334 ///
357 * 335 /// Completes with a [Budget].
358 * Completes with a [Budget]. 336 ///
359 * 337 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
360 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 338 /// an error.
361 * error. 339 ///
362 * 340 /// If the used [http.Client] completes with an error when making a REST
363 * If the used [http.Client] completes with an error when making a REST call, 341 /// call, this method will complete with the same error.
364 * this method will complete with the same error. 342 async.Future<Budget> patch(
365 */ 343 Budget request, core.String accountId, core.String billingId) {
366 async.Future<Budget> patch(Budget request, core.String accountId, core.String billingId) {
367 var _url = null; 344 var _url = null;
368 var _queryParams = new core.Map(); 345 var _queryParams = new core.Map();
369 var _uploadMedia = null; 346 var _uploadMedia = null;
370 var _uploadOptions = null; 347 var _uploadOptions = null;
371 var _downloadOptions = commons.DownloadOptions.Metadata; 348 var _downloadOptions = commons.DownloadOptions.Metadata;
372 var _body = null; 349 var _body = null;
373 350
374 if (request != null) { 351 if (request != null) {
375 _body = convert.JSON.encode((request).toJson()); 352 _body = convert.JSON.encode((request).toJson());
376 } 353 }
377 if (accountId == null) { 354 if (accountId == null) {
378 throw new core.ArgumentError("Parameter accountId is required."); 355 throw new core.ArgumentError("Parameter accountId is required.");
379 } 356 }
380 if (billingId == null) { 357 if (billingId == null) {
381 throw new core.ArgumentError("Parameter billingId is required."); 358 throw new core.ArgumentError("Parameter billingId is required.");
382 } 359 }
383 360
384 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); 361 _url = 'billinginfo/' +
362 commons.Escaper.ecapeVariable('$accountId') +
363 '/' +
364 commons.Escaper.ecapeVariable('$billingId');
385 365
386 var _response = _requester.request(_url, 366 var _response = _requester.request(_url, "PATCH",
387 "PATCH", 367 body: _body,
388 body: _body, 368 queryParams: _queryParams,
389 queryParams: _queryParams, 369 uploadOptions: _uploadOptions,
390 uploadOptions: _uploadOptions, 370 uploadMedia: _uploadMedia,
391 uploadMedia: _uploadMedia, 371 downloadOptions: _downloadOptions);
392 downloadOptions: _downloadOptions);
393 return _response.then((data) => new Budget.fromJson(data)); 372 return _response.then((data) => new Budget.fromJson(data));
394 } 373 }
395 374
396 /** 375 /// Updates the budget amount for the budget of the adgroup specified by the
397 * Updates the budget amount for the budget of the adgroup specified by the 376 /// accountId and billingId, with the budget amount in the request.
398 * accountId and billingId, with the budget amount in the request. 377 ///
399 * 378 /// [request] - The metadata request object.
400 * [request] - The metadata request object. 379 ///
401 * 380 /// Request parameters:
402 * Request parameters: 381 ///
403 * 382 /// [accountId] - The account id associated with the budget being updated.
404 * [accountId] - The account id associated with the budget being updated. 383 ///
405 * 384 /// [billingId] - The billing id associated with the budget being updated.
406 * [billingId] - The billing id associated with the budget being updated. 385 ///
407 * 386 /// Completes with a [Budget].
408 * Completes with a [Budget]. 387 ///
409 * 388 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
410 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 389 /// an error.
411 * error. 390 ///
412 * 391 /// If the used [http.Client] completes with an error when making a REST
413 * If the used [http.Client] completes with an error when making a REST call, 392 /// call, this method will complete with the same error.
414 * this method will complete with the same error. 393 async.Future<Budget> update(
415 */ 394 Budget request, core.String accountId, core.String billingId) {
416 async.Future<Budget> update(Budget request, core.String accountId, core.String billingId) {
417 var _url = null; 395 var _url = null;
418 var _queryParams = new core.Map(); 396 var _queryParams = new core.Map();
419 var _uploadMedia = null; 397 var _uploadMedia = null;
420 var _uploadOptions = null; 398 var _uploadOptions = null;
421 var _downloadOptions = commons.DownloadOptions.Metadata; 399 var _downloadOptions = commons.DownloadOptions.Metadata;
422 var _body = null; 400 var _body = null;
423 401
424 if (request != null) { 402 if (request != null) {
425 _body = convert.JSON.encode((request).toJson()); 403 _body = convert.JSON.encode((request).toJson());
426 } 404 }
427 if (accountId == null) { 405 if (accountId == null) {
428 throw new core.ArgumentError("Parameter accountId is required."); 406 throw new core.ArgumentError("Parameter accountId is required.");
429 } 407 }
430 if (billingId == null) { 408 if (billingId == null) {
431 throw new core.ArgumentError("Parameter billingId is required."); 409 throw new core.ArgumentError("Parameter billingId is required.");
432 } 410 }
433 411
434 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId'); 412 _url = 'billinginfo/' +
413 commons.Escaper.ecapeVariable('$accountId') +
414 '/' +
415 commons.Escaper.ecapeVariable('$billingId');
435 416
436 var _response = _requester.request(_url, 417 var _response = _requester.request(_url, "PUT",
437 "PUT", 418 body: _body,
438 body: _body, 419 queryParams: _queryParams,
439 queryParams: _queryParams, 420 uploadOptions: _uploadOptions,
440 uploadOptions: _uploadOptions, 421 uploadMedia: _uploadMedia,
441 uploadMedia: _uploadMedia, 422 downloadOptions: _downloadOptions);
442 downloadOptions: _downloadOptions);
443 return _response.then((data) => new Budget.fromJson(data)); 423 return _response.then((data) => new Budget.fromJson(data));
444 } 424 }
445
446 } 425 }
447 426
448
449 class CreativesResourceApi { 427 class CreativesResourceApi {
450 final commons.ApiRequester _requester; 428 final commons.ApiRequester _requester;
451 429
452 CreativesResourceApi(commons.ApiRequester client) : 430 CreativesResourceApi(commons.ApiRequester client) : _requester = client;
453 _requester = client;
454 431
455 /** 432 /// Gets the status for a single creative. A creative will be available 30-40
456 * Gets the status for a single creative. A creative will be available 30-40 433 /// minutes after submission.
457 * minutes after submission. 434 ///
458 * 435 /// Request parameters:
459 * Request parameters: 436 ///
460 * 437 /// [accountId] - The id for the account that will serve this creative.
461 * [accountId] - The id for the account that will serve this creative. 438 ///
462 * 439 /// [buyerCreativeId] - The buyer-specific id for this creative.
463 * [buyerCreativeId] - The buyer-specific id for this creative. 440 ///
464 * 441 /// Completes with a [Creative].
465 * Completes with a [Creative]. 442 ///
466 * 443 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
467 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 444 /// an error.
468 * error. 445 ///
469 * 446 /// If the used [http.Client] completes with an error when making a REST
470 * If the used [http.Client] completes with an error when making a REST call, 447 /// call, this method will complete with the same error.
471 * this method will complete with the same error.
472 */
473 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) { 448 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) {
474 var _url = null; 449 var _url = null;
475 var _queryParams = new core.Map(); 450 var _queryParams = new core.Map();
476 var _uploadMedia = null; 451 var _uploadMedia = null;
477 var _uploadOptions = null; 452 var _uploadOptions = null;
478 var _downloadOptions = commons.DownloadOptions.Metadata; 453 var _downloadOptions = commons.DownloadOptions.Metadata;
479 var _body = null; 454 var _body = null;
480 455
481 if (accountId == null) { 456 if (accountId == null) {
482 throw new core.ArgumentError("Parameter accountId is required."); 457 throw new core.ArgumentError("Parameter accountId is required.");
483 } 458 }
484 if (buyerCreativeId == null) { 459 if (buyerCreativeId == null) {
485 throw new core.ArgumentError("Parameter buyerCreativeId is required."); 460 throw new core.ArgumentError("Parameter buyerCreativeId is required.");
486 } 461 }
487 462
488 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co mmons.Escaper.ecapeVariable('$buyerCreativeId'); 463 _url = 'creatives/' +
464 commons.Escaper.ecapeVariable('$accountId') +
465 '/' +
466 commons.Escaper.ecapeVariable('$buyerCreativeId');
489 467
490 var _response = _requester.request(_url, 468 var _response = _requester.request(_url, "GET",
491 "GET", 469 body: _body,
492 body: _body, 470 queryParams: _queryParams,
493 queryParams: _queryParams, 471 uploadOptions: _uploadOptions,
494 uploadOptions: _uploadOptions, 472 uploadMedia: _uploadMedia,
495 uploadMedia: _uploadMedia, 473 downloadOptions: _downloadOptions);
496 downloadOptions: _downloadOptions);
497 return _response.then((data) => new Creative.fromJson(data)); 474 return _response.then((data) => new Creative.fromJson(data));
498 } 475 }
499 476
500 /** 477 /// Submit a new creative.
501 * Submit a new creative. 478 ///
502 * 479 /// [request] - The metadata request object.
503 * [request] - The metadata request object. 480 ///
504 * 481 /// Request parameters:
505 * Request parameters: 482 ///
506 * 483 /// Completes with a [Creative].
507 * Completes with a [Creative]. 484 ///
508 * 485 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
509 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 486 /// an error.
510 * error. 487 ///
511 * 488 /// If the used [http.Client] completes with an error when making a REST
512 * If the used [http.Client] completes with an error when making a REST call, 489 /// call, this method will complete with the same error.
513 * this method will complete with the same error.
514 */
515 async.Future<Creative> insert(Creative request) { 490 async.Future<Creative> insert(Creative request) {
516 var _url = null; 491 var _url = null;
517 var _queryParams = new core.Map(); 492 var _queryParams = new core.Map();
518 var _uploadMedia = null; 493 var _uploadMedia = null;
519 var _uploadOptions = null; 494 var _uploadOptions = null;
520 var _downloadOptions = commons.DownloadOptions.Metadata; 495 var _downloadOptions = commons.DownloadOptions.Metadata;
521 var _body = null; 496 var _body = null;
522 497
523 if (request != null) { 498 if (request != null) {
524 _body = convert.JSON.encode((request).toJson()); 499 _body = convert.JSON.encode((request).toJson());
525 } 500 }
526 501
527 _url = 'creatives'; 502 _url = 'creatives';
528 503
529 var _response = _requester.request(_url, 504 var _response = _requester.request(_url, "POST",
530 "POST", 505 body: _body,
531 body: _body, 506 queryParams: _queryParams,
532 queryParams: _queryParams, 507 uploadOptions: _uploadOptions,
533 uploadOptions: _uploadOptions, 508 uploadMedia: _uploadMedia,
534 uploadMedia: _uploadMedia, 509 downloadOptions: _downloadOptions);
535 downloadOptions: _downloadOptions);
536 return _response.then((data) => new Creative.fromJson(data)); 510 return _response.then((data) => new Creative.fromJson(data));
537 } 511 }
538 512
539 /** 513 /// Retrieves a list of the authenticated user's active creatives. A creative
540 * Retrieves a list of the authenticated user's active creatives. A creative 514 /// will be available 30-40 minutes after submission.
541 * will be available 30-40 minutes after submission. 515 ///
542 * 516 /// Request parameters:
543 * Request parameters: 517 ///
544 * 518 /// [accountId] - When specified, only creatives for the given account ids
545 * [accountId] - When specified, only creatives for the given account ids are 519 /// are returned.
546 * returned. 520 ///
547 * 521 /// [buyerCreativeId] - When specified, only creatives for the given buyer
548 * [buyerCreativeId] - When specified, only creatives for the given buyer 522 /// creative ids are returned.
549 * creative ids are returned. 523 ///
550 * 524 /// [maxResults] - Maximum number of entries returned on one result page. If
551 * [maxResults] - Maximum number of entries returned on one result page. If 525 /// not set, the default is 100. Optional.
552 * not set, the default is 100. Optional. 526 /// Value must be between "1" and "1000".
553 * Value must be between "1" and "1000". 527 ///
554 * 528 /// [pageToken] - A continuation token, used to page through ad clients. To
555 * [pageToken] - A continuation token, used to page through ad clients. To 529 /// retrieve the next page, set this parameter to the value of
556 * retrieve the next page, set this parameter to the value of "nextPageToken" 530 /// "nextPageToken" from the previous response. Optional.
557 * from the previous response. Optional. 531 ///
558 * 532 /// [statusFilter] - When specified, only creatives having the given status
559 * [statusFilter] - When specified, only creatives having the given status are 533 /// are returned.
560 * returned. 534 /// Possible string values are:
561 * Possible string values are: 535 /// - "approved" : Creatives which have been approved.
562 * - "approved" : Creatives which have been approved. 536 /// - "disapproved" : Creatives which have been disapproved.
563 * - "disapproved" : Creatives which have been disapproved. 537 /// - "not_checked" : Creatives whose status is not yet checked.
564 * - "not_checked" : Creatives whose status is not yet checked. 538 ///
565 * 539 /// Completes with a [CreativesList].
566 * Completes with a [CreativesList]. 540 ///
567 * 541 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
568 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 542 /// an error.
569 * error. 543 ///
570 * 544 /// If the used [http.Client] completes with an error when making a REST
571 * If the used [http.Client] completes with an error when making a REST call, 545 /// call, this method will complete with the same error.
572 * this method will complete with the same error. 546 async.Future<CreativesList> list(
573 */ 547 {core.List<core.int> accountId,
574 async.Future<CreativesList> list({core.List<core.int> accountId, core.List<cor e.String> buyerCreativeId, core.int maxResults, core.String pageToken, core.Stri ng statusFilter}) { 548 core.List<core.String> buyerCreativeId,
549 core.int maxResults,
550 core.String pageToken,
551 core.String statusFilter}) {
575 var _url = null; 552 var _url = null;
576 var _queryParams = new core.Map(); 553 var _queryParams = new core.Map();
577 var _uploadMedia = null; 554 var _uploadMedia = null;
578 var _uploadOptions = null; 555 var _uploadOptions = null;
579 var _downloadOptions = commons.DownloadOptions.Metadata; 556 var _downloadOptions = commons.DownloadOptions.Metadata;
580 var _body = null; 557 var _body = null;
581 558
582 if (accountId != null) { 559 if (accountId != null) {
583 _queryParams["accountId"] = accountId.map((item) => "${item}").toList(); 560 _queryParams["accountId"] = accountId.map((item) => "${item}").toList();
584 } 561 }
585 if (buyerCreativeId != null) { 562 if (buyerCreativeId != null) {
586 _queryParams["buyerCreativeId"] = buyerCreativeId; 563 _queryParams["buyerCreativeId"] = buyerCreativeId;
587 } 564 }
588 if (maxResults != null) { 565 if (maxResults != null) {
589 _queryParams["maxResults"] = ["${maxResults}"]; 566 _queryParams["maxResults"] = ["${maxResults}"];
590 } 567 }
591 if (pageToken != null) { 568 if (pageToken != null) {
592 _queryParams["pageToken"] = [pageToken]; 569 _queryParams["pageToken"] = [pageToken];
593 } 570 }
594 if (statusFilter != null) { 571 if (statusFilter != null) {
595 _queryParams["statusFilter"] = [statusFilter]; 572 _queryParams["statusFilter"] = [statusFilter];
596 } 573 }
597 574
598 _url = 'creatives'; 575 _url = 'creatives';
599 576
600 var _response = _requester.request(_url, 577 var _response = _requester.request(_url, "GET",
601 "GET", 578 body: _body,
602 body: _body, 579 queryParams: _queryParams,
603 queryParams: _queryParams, 580 uploadOptions: _uploadOptions,
604 uploadOptions: _uploadOptions, 581 uploadMedia: _uploadMedia,
605 uploadMedia: _uploadMedia, 582 downloadOptions: _downloadOptions);
606 downloadOptions: _downloadOptions);
607 return _response.then((data) => new CreativesList.fromJson(data)); 583 return _response.then((data) => new CreativesList.fromJson(data));
608 } 584 }
609
610 } 585 }
611 586
612
613 class DirectDealsResourceApi { 587 class DirectDealsResourceApi {
614 final commons.ApiRequester _requester; 588 final commons.ApiRequester _requester;
615 589
616 DirectDealsResourceApi(commons.ApiRequester client) : 590 DirectDealsResourceApi(commons.ApiRequester client) : _requester = client;
617 _requester = client;
618 591
619 /** 592 /// Gets one direct deal by ID.
620 * Gets one direct deal by ID. 593 ///
621 * 594 /// Request parameters:
622 * Request parameters: 595 ///
623 * 596 /// [id] - The direct deal id
624 * [id] - The direct deal id 597 ///
625 * 598 /// Completes with a [DirectDeal].
626 * Completes with a [DirectDeal]. 599 ///
627 * 600 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
628 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 601 /// an error.
629 * error. 602 ///
630 * 603 /// If the used [http.Client] completes with an error when making a REST
631 * If the used [http.Client] completes with an error when making a REST call, 604 /// call, this method will complete with the same error.
632 * this method will complete with the same error.
633 */
634 async.Future<DirectDeal> get(core.String id) { 605 async.Future<DirectDeal> get(core.String id) {
635 var _url = null; 606 var _url = null;
636 var _queryParams = new core.Map(); 607 var _queryParams = new core.Map();
637 var _uploadMedia = null; 608 var _uploadMedia = null;
638 var _uploadOptions = null; 609 var _uploadOptions = null;
639 var _downloadOptions = commons.DownloadOptions.Metadata; 610 var _downloadOptions = commons.DownloadOptions.Metadata;
640 var _body = null; 611 var _body = null;
641 612
642 if (id == null) { 613 if (id == null) {
643 throw new core.ArgumentError("Parameter id is required."); 614 throw new core.ArgumentError("Parameter id is required.");
644 } 615 }
645 616
646 _url = 'directdeals/' + commons.Escaper.ecapeVariable('$id'); 617 _url = 'directdeals/' + commons.Escaper.ecapeVariable('$id');
647 618
648 var _response = _requester.request(_url, 619 var _response = _requester.request(_url, "GET",
649 "GET", 620 body: _body,
650 body: _body, 621 queryParams: _queryParams,
651 queryParams: _queryParams, 622 uploadOptions: _uploadOptions,
652 uploadOptions: _uploadOptions, 623 uploadMedia: _uploadMedia,
653 uploadMedia: _uploadMedia, 624 downloadOptions: _downloadOptions);
654 downloadOptions: _downloadOptions);
655 return _response.then((data) => new DirectDeal.fromJson(data)); 625 return _response.then((data) => new DirectDeal.fromJson(data));
656 } 626 }
657 627
658 /** 628 /// Retrieves the authenticated user's list of direct deals.
659 * Retrieves the authenticated user's list of direct deals. 629 ///
660 * 630 /// Request parameters:
661 * Request parameters: 631 ///
662 * 632 /// Completes with a [DirectDealsList].
663 * Completes with a [DirectDealsList]. 633 ///
664 * 634 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
665 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 635 /// an error.
666 * error. 636 ///
667 * 637 /// If the used [http.Client] completes with an error when making a REST
668 * If the used [http.Client] completes with an error when making a REST call, 638 /// call, this method will complete with the same error.
669 * this method will complete with the same error.
670 */
671 async.Future<DirectDealsList> list() { 639 async.Future<DirectDealsList> list() {
672 var _url = null; 640 var _url = null;
673 var _queryParams = new core.Map(); 641 var _queryParams = new core.Map();
674 var _uploadMedia = null; 642 var _uploadMedia = null;
675 var _uploadOptions = null; 643 var _uploadOptions = null;
676 var _downloadOptions = commons.DownloadOptions.Metadata; 644 var _downloadOptions = commons.DownloadOptions.Metadata;
677 var _body = null; 645 var _body = null;
678 646
679
680 _url = 'directdeals'; 647 _url = 'directdeals';
681 648
682 var _response = _requester.request(_url, 649 var _response = _requester.request(_url, "GET",
683 "GET", 650 body: _body,
684 body: _body, 651 queryParams: _queryParams,
685 queryParams: _queryParams, 652 uploadOptions: _uploadOptions,
686 uploadOptions: _uploadOptions, 653 uploadMedia: _uploadMedia,
687 uploadMedia: _uploadMedia, 654 downloadOptions: _downloadOptions);
688 downloadOptions: _downloadOptions);
689 return _response.then((data) => new DirectDealsList.fromJson(data)); 655 return _response.then((data) => new DirectDealsList.fromJson(data));
690 } 656 }
691
692 } 657 }
693 658
694
695 class PerformanceReportResourceApi { 659 class PerformanceReportResourceApi {
696 final commons.ApiRequester _requester; 660 final commons.ApiRequester _requester;
697 661
698 PerformanceReportResourceApi(commons.ApiRequester client) : 662 PerformanceReportResourceApi(commons.ApiRequester client)
699 _requester = client; 663 : _requester = client;
700 664
701 /** 665 /// Retrieves the authenticated user's list of performance metrics.
702 * Retrieves the authenticated user's list of performance metrics. 666 ///
703 * 667 /// Request parameters:
704 * Request parameters: 668 ///
705 * 669 /// [accountId] - The account id to get the reports.
706 * [accountId] - The account id to get the reports. 670 ///
707 * 671 /// [endDateTime] - The end time of the report in ISO 8601 timestamp format
708 * [endDateTime] - The end time of the report in ISO 8601 timestamp format 672 /// using UTC.
709 * using UTC. 673 ///
710 * 674 /// [startDateTime] - The start time of the report in ISO 8601 timestamp
711 * [startDateTime] - The start time of the report in ISO 8601 timestamp format 675 /// format using UTC.
712 * using UTC. 676 ///
713 * 677 /// [maxResults] - Maximum number of entries returned on one result page. If
714 * [maxResults] - Maximum number of entries returned on one result page. If 678 /// not set, the default is 100. Optional.
715 * not set, the default is 100. Optional. 679 /// Value must be between "1" and "1000".
716 * Value must be between "1" and "1000". 680 ///
717 * 681 /// [pageToken] - A continuation token, used to page through performance
718 * [pageToken] - A continuation token, used to page through performance 682 /// reports. To retrieve the next page, set this parameter to the value of
719 * reports. To retrieve the next page, set this parameter to the value of 683 /// "nextPageToken" from the previous response. Optional.
720 * "nextPageToken" from the previous response. Optional. 684 ///
721 * 685 /// Completes with a [PerformanceReportList].
722 * Completes with a [PerformanceReportList]. 686 ///
723 * 687 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 688 /// an error.
725 * error. 689 ///
726 * 690 /// If the used [http.Client] completes with an error when making a REST
727 * If the used [http.Client] completes with an error when making a REST call, 691 /// call, this method will complete with the same error.
728 * this method will complete with the same error. 692 async.Future<PerformanceReportList> list(
729 */ 693 core.String accountId, core.String endDateTime, core.String startDateTime,
730 async.Future<PerformanceReportList> list(core.String accountId, core.String en dDateTime, core.String startDateTime, {core.int maxResults, core.String pageToke n}) { 694 {core.int maxResults, core.String pageToken}) {
731 var _url = null; 695 var _url = null;
732 var _queryParams = new core.Map(); 696 var _queryParams = new core.Map();
733 var _uploadMedia = null; 697 var _uploadMedia = null;
734 var _uploadOptions = null; 698 var _uploadOptions = null;
735 var _downloadOptions = commons.DownloadOptions.Metadata; 699 var _downloadOptions = commons.DownloadOptions.Metadata;
736 var _body = null; 700 var _body = null;
737 701
738 if (accountId == null) { 702 if (accountId == null) {
739 throw new core.ArgumentError("Parameter accountId is required."); 703 throw new core.ArgumentError("Parameter accountId is required.");
740 } 704 }
741 _queryParams["accountId"] = [accountId]; 705 _queryParams["accountId"] = [accountId];
742 if (endDateTime == null) { 706 if (endDateTime == null) {
743 throw new core.ArgumentError("Parameter endDateTime is required."); 707 throw new core.ArgumentError("Parameter endDateTime is required.");
744 } 708 }
745 _queryParams["endDateTime"] = [endDateTime]; 709 _queryParams["endDateTime"] = [endDateTime];
746 if (startDateTime == null) { 710 if (startDateTime == null) {
747 throw new core.ArgumentError("Parameter startDateTime is required."); 711 throw new core.ArgumentError("Parameter startDateTime is required.");
748 } 712 }
749 _queryParams["startDateTime"] = [startDateTime]; 713 _queryParams["startDateTime"] = [startDateTime];
750 if (maxResults != null) { 714 if (maxResults != null) {
751 _queryParams["maxResults"] = ["${maxResults}"]; 715 _queryParams["maxResults"] = ["${maxResults}"];
752 } 716 }
753 if (pageToken != null) { 717 if (pageToken != null) {
754 _queryParams["pageToken"] = [pageToken]; 718 _queryParams["pageToken"] = [pageToken];
755 } 719 }
756 720
757 _url = 'performancereport'; 721 _url = 'performancereport';
758 722
759 var _response = _requester.request(_url, 723 var _response = _requester.request(_url, "GET",
760 "GET", 724 body: _body,
761 body: _body, 725 queryParams: _queryParams,
762 queryParams: _queryParams, 726 uploadOptions: _uploadOptions,
763 uploadOptions: _uploadOptions, 727 uploadMedia: _uploadMedia,
764 uploadMedia: _uploadMedia, 728 downloadOptions: _downloadOptions);
765 downloadOptions: _downloadOptions);
766 return _response.then((data) => new PerformanceReportList.fromJson(data)); 729 return _response.then((data) => new PerformanceReportList.fromJson(data));
767 } 730 }
768
769 } 731 }
770 732
771
772 class PretargetingConfigResourceApi { 733 class PretargetingConfigResourceApi {
773 final commons.ApiRequester _requester; 734 final commons.ApiRequester _requester;
774 735
775 PretargetingConfigResourceApi(commons.ApiRequester client) : 736 PretargetingConfigResourceApi(commons.ApiRequester client)
776 _requester = client; 737 : _requester = client;
777 738
778 /** 739 /// Deletes an existing pretargeting config.
779 * Deletes an existing pretargeting config. 740 ///
780 * 741 /// Request parameters:
781 * Request parameters: 742 ///
782 * 743 /// [accountId] - The account id to delete the pretargeting config for.
783 * [accountId] - The account id to delete the pretargeting config for. 744 ///
784 * 745 /// [configId] - The specific id of the configuration to delete.
785 * [configId] - The specific id of the configuration to delete. 746 ///
786 * 747 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
787 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 748 /// an error.
788 * error. 749 ///
789 * 750 /// If the used [http.Client] completes with an error when making a REST
790 * If the used [http.Client] completes with an error when making a REST call, 751 /// call, this method will complete with the same error.
791 * this method will complete with the same error.
792 */
793 async.Future delete(core.String accountId, core.String configId) { 752 async.Future delete(core.String accountId, core.String configId) {
794 var _url = null; 753 var _url = null;
795 var _queryParams = new core.Map(); 754 var _queryParams = new core.Map();
796 var _uploadMedia = null; 755 var _uploadMedia = null;
797 var _uploadOptions = null; 756 var _uploadOptions = null;
798 var _downloadOptions = commons.DownloadOptions.Metadata; 757 var _downloadOptions = commons.DownloadOptions.Metadata;
799 var _body = null; 758 var _body = null;
800 759
801 if (accountId == null) { 760 if (accountId == null) {
802 throw new core.ArgumentError("Parameter accountId is required."); 761 throw new core.ArgumentError("Parameter accountId is required.");
803 } 762 }
804 if (configId == null) { 763 if (configId == null) {
805 throw new core.ArgumentError("Parameter configId is required."); 764 throw new core.ArgumentError("Parameter configId is required.");
806 } 765 }
807 766
808 _downloadOptions = null; 767 _downloadOptions = null;
809 768
810 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); 769 _url = 'pretargetingconfigs/' +
770 commons.Escaper.ecapeVariable('$accountId') +
771 '/' +
772 commons.Escaper.ecapeVariable('$configId');
811 773
812 var _response = _requester.request(_url, 774 var _response = _requester.request(_url, "DELETE",
813 "DELETE", 775 body: _body,
814 body: _body, 776 queryParams: _queryParams,
815 queryParams: _queryParams, 777 uploadOptions: _uploadOptions,
816 uploadOptions: _uploadOptions, 778 uploadMedia: _uploadMedia,
817 uploadMedia: _uploadMedia, 779 downloadOptions: _downloadOptions);
818 downloadOptions: _downloadOptions);
819 return _response.then((data) => null); 780 return _response.then((data) => null);
820 } 781 }
821 782
822 /** 783 /// Gets a specific pretargeting configuration
823 * Gets a specific pretargeting configuration 784 ///
824 * 785 /// Request parameters:
825 * Request parameters: 786 ///
826 * 787 /// [accountId] - The account id to get the pretargeting config for.
827 * [accountId] - The account id to get the pretargeting config for. 788 ///
828 * 789 /// [configId] - The specific id of the configuration to retrieve.
829 * [configId] - The specific id of the configuration to retrieve. 790 ///
830 * 791 /// Completes with a [PretargetingConfig].
831 * Completes with a [PretargetingConfig]. 792 ///
832 * 793 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
833 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 794 /// an error.
834 * error. 795 ///
835 * 796 /// If the used [http.Client] completes with an error when making a REST
836 * If the used [http.Client] completes with an error when making a REST call, 797 /// call, this method will complete with the same error.
837 * this method will complete with the same error. 798 async.Future<PretargetingConfig> get(
838 */ 799 core.String accountId, core.String configId) {
839 async.Future<PretargetingConfig> get(core.String accountId, core.String config Id) {
840 var _url = null; 800 var _url = null;
841 var _queryParams = new core.Map(); 801 var _queryParams = new core.Map();
842 var _uploadMedia = null; 802 var _uploadMedia = null;
843 var _uploadOptions = null; 803 var _uploadOptions = null;
844 var _downloadOptions = commons.DownloadOptions.Metadata; 804 var _downloadOptions = commons.DownloadOptions.Metadata;
845 var _body = null; 805 var _body = null;
846 806
847 if (accountId == null) { 807 if (accountId == null) {
848 throw new core.ArgumentError("Parameter accountId is required."); 808 throw new core.ArgumentError("Parameter accountId is required.");
849 } 809 }
850 if (configId == null) { 810 if (configId == null) {
851 throw new core.ArgumentError("Parameter configId is required."); 811 throw new core.ArgumentError("Parameter configId is required.");
852 } 812 }
853 813
854 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); 814 _url = 'pretargetingconfigs/' +
815 commons.Escaper.ecapeVariable('$accountId') +
816 '/' +
817 commons.Escaper.ecapeVariable('$configId');
855 818
856 var _response = _requester.request(_url, 819 var _response = _requester.request(_url, "GET",
857 "GET", 820 body: _body,
858 body: _body, 821 queryParams: _queryParams,
859 queryParams: _queryParams, 822 uploadOptions: _uploadOptions,
860 uploadOptions: _uploadOptions, 823 uploadMedia: _uploadMedia,
861 uploadMedia: _uploadMedia, 824 downloadOptions: _downloadOptions);
862 downloadOptions: _downloadOptions);
863 return _response.then((data) => new PretargetingConfig.fromJson(data)); 825 return _response.then((data) => new PretargetingConfig.fromJson(data));
864 } 826 }
865 827
866 /** 828 /// Inserts a new pretargeting configuration.
867 * Inserts a new pretargeting configuration. 829 ///
868 * 830 /// [request] - The metadata request object.
869 * [request] - The metadata request object. 831 ///
870 * 832 /// Request parameters:
871 * Request parameters: 833 ///
872 * 834 /// [accountId] - The account id to insert the pretargeting config for.
873 * [accountId] - The account id to insert the pretargeting config for. 835 ///
874 * 836 /// Completes with a [PretargetingConfig].
875 * Completes with a [PretargetingConfig]. 837 ///
876 * 838 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
877 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 839 /// an error.
878 * error. 840 ///
879 * 841 /// If the used [http.Client] completes with an error when making a REST
880 * If the used [http.Client] completes with an error when making a REST call, 842 /// call, this method will complete with the same error.
881 * this method will complete with the same error. 843 async.Future<PretargetingConfig> insert(
882 */ 844 PretargetingConfig request, core.String accountId) {
883 async.Future<PretargetingConfig> insert(PretargetingConfig request, core.Strin g accountId) {
884 var _url = null; 845 var _url = null;
885 var _queryParams = new core.Map(); 846 var _queryParams = new core.Map();
886 var _uploadMedia = null; 847 var _uploadMedia = null;
887 var _uploadOptions = null; 848 var _uploadOptions = null;
888 var _downloadOptions = commons.DownloadOptions.Metadata; 849 var _downloadOptions = commons.DownloadOptions.Metadata;
889 var _body = null; 850 var _body = null;
890 851
891 if (request != null) { 852 if (request != null) {
892 _body = convert.JSON.encode((request).toJson()); 853 _body = convert.JSON.encode((request).toJson());
893 } 854 }
894 if (accountId == null) { 855 if (accountId == null) {
895 throw new core.ArgumentError("Parameter accountId is required."); 856 throw new core.ArgumentError("Parameter accountId is required.");
896 } 857 }
897 858
898 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); 859 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId');
899 860
900 var _response = _requester.request(_url, 861 var _response = _requester.request(_url, "POST",
901 "POST", 862 body: _body,
902 body: _body, 863 queryParams: _queryParams,
903 queryParams: _queryParams, 864 uploadOptions: _uploadOptions,
904 uploadOptions: _uploadOptions, 865 uploadMedia: _uploadMedia,
905 uploadMedia: _uploadMedia, 866 downloadOptions: _downloadOptions);
906 downloadOptions: _downloadOptions);
907 return _response.then((data) => new PretargetingConfig.fromJson(data)); 867 return _response.then((data) => new PretargetingConfig.fromJson(data));
908 } 868 }
909 869
910 /** 870 /// Retrieves a list of the authenticated user's pretargeting configurations.
911 * Retrieves a list of the authenticated user's pretargeting configurations. 871 ///
912 * 872 /// Request parameters:
913 * Request parameters: 873 ///
914 * 874 /// [accountId] - The account id to get the pretargeting configs for.
915 * [accountId] - The account id to get the pretargeting configs for. 875 ///
916 * 876 /// Completes with a [PretargetingConfigList].
917 * Completes with a [PretargetingConfigList]. 877 ///
918 * 878 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
919 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 879 /// an error.
920 * error. 880 ///
921 * 881 /// If the used [http.Client] completes with an error when making a REST
922 * If the used [http.Client] completes with an error when making a REST call, 882 /// call, this method will complete with the same error.
923 * this method will complete with the same error.
924 */
925 async.Future<PretargetingConfigList> list(core.String accountId) { 883 async.Future<PretargetingConfigList> list(core.String accountId) {
926 var _url = null; 884 var _url = null;
927 var _queryParams = new core.Map(); 885 var _queryParams = new core.Map();
928 var _uploadMedia = null; 886 var _uploadMedia = null;
929 var _uploadOptions = null; 887 var _uploadOptions = null;
930 var _downloadOptions = commons.DownloadOptions.Metadata; 888 var _downloadOptions = commons.DownloadOptions.Metadata;
931 var _body = null; 889 var _body = null;
932 890
933 if (accountId == null) { 891 if (accountId == null) {
934 throw new core.ArgumentError("Parameter accountId is required."); 892 throw new core.ArgumentError("Parameter accountId is required.");
935 } 893 }
936 894
937 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId'); 895 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId');
938 896
939 var _response = _requester.request(_url, 897 var _response = _requester.request(_url, "GET",
940 "GET", 898 body: _body,
941 body: _body, 899 queryParams: _queryParams,
942 queryParams: _queryParams, 900 uploadOptions: _uploadOptions,
943 uploadOptions: _uploadOptions, 901 uploadMedia: _uploadMedia,
944 uploadMedia: _uploadMedia, 902 downloadOptions: _downloadOptions);
945 downloadOptions: _downloadOptions);
946 return _response.then((data) => new PretargetingConfigList.fromJson(data)); 903 return _response.then((data) => new PretargetingConfigList.fromJson(data));
947 } 904 }
948 905
949 /** 906 /// Updates an existing pretargeting config. This method supports patch
950 * Updates an existing pretargeting config. This method supports patch 907 /// semantics.
951 * semantics. 908 ///
952 * 909 /// [request] - The metadata request object.
953 * [request] - The metadata request object. 910 ///
954 * 911 /// Request parameters:
955 * Request parameters: 912 ///
956 * 913 /// [accountId] - The account id to update the pretargeting config for.
957 * [accountId] - The account id to update the pretargeting config for. 914 ///
958 * 915 /// [configId] - The specific id of the configuration to update.
959 * [configId] - The specific id of the configuration to update. 916 ///
960 * 917 /// Completes with a [PretargetingConfig].
961 * Completes with a [PretargetingConfig]. 918 ///
962 * 919 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
963 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 920 /// an error.
964 * error. 921 ///
965 * 922 /// If the used [http.Client] completes with an error when making a REST
966 * If the used [http.Client] completes with an error when making a REST call, 923 /// call, this method will complete with the same error.
967 * this method will complete with the same error. 924 async.Future<PretargetingConfig> patch(
968 */ 925 PretargetingConfig request, core.String accountId, core.String configId) {
969 async.Future<PretargetingConfig> patch(PretargetingConfig request, core.String accountId, core.String configId) {
970 var _url = null; 926 var _url = null;
971 var _queryParams = new core.Map(); 927 var _queryParams = new core.Map();
972 var _uploadMedia = null; 928 var _uploadMedia = null;
973 var _uploadOptions = null; 929 var _uploadOptions = null;
974 var _downloadOptions = commons.DownloadOptions.Metadata; 930 var _downloadOptions = commons.DownloadOptions.Metadata;
975 var _body = null; 931 var _body = null;
976 932
977 if (request != null) { 933 if (request != null) {
978 _body = convert.JSON.encode((request).toJson()); 934 _body = convert.JSON.encode((request).toJson());
979 } 935 }
980 if (accountId == null) { 936 if (accountId == null) {
981 throw new core.ArgumentError("Parameter accountId is required."); 937 throw new core.ArgumentError("Parameter accountId is required.");
982 } 938 }
983 if (configId == null) { 939 if (configId == null) {
984 throw new core.ArgumentError("Parameter configId is required."); 940 throw new core.ArgumentError("Parameter configId is required.");
985 } 941 }
986 942
987 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); 943 _url = 'pretargetingconfigs/' +
944 commons.Escaper.ecapeVariable('$accountId') +
945 '/' +
946 commons.Escaper.ecapeVariable('$configId');
988 947
989 var _response = _requester.request(_url, 948 var _response = _requester.request(_url, "PATCH",
990 "PATCH", 949 body: _body,
991 body: _body, 950 queryParams: _queryParams,
992 queryParams: _queryParams, 951 uploadOptions: _uploadOptions,
993 uploadOptions: _uploadOptions, 952 uploadMedia: _uploadMedia,
994 uploadMedia: _uploadMedia, 953 downloadOptions: _downloadOptions);
995 downloadOptions: _downloadOptions);
996 return _response.then((data) => new PretargetingConfig.fromJson(data)); 954 return _response.then((data) => new PretargetingConfig.fromJson(data));
997 } 955 }
998 956
999 /** 957 /// Updates an existing pretargeting config.
1000 * Updates an existing pretargeting config. 958 ///
1001 * 959 /// [request] - The metadata request object.
1002 * [request] - The metadata request object. 960 ///
1003 * 961 /// Request parameters:
1004 * Request parameters: 962 ///
1005 * 963 /// [accountId] - The account id to update the pretargeting config for.
1006 * [accountId] - The account id to update the pretargeting config for. 964 ///
1007 * 965 /// [configId] - The specific id of the configuration to update.
1008 * [configId] - The specific id of the configuration to update. 966 ///
1009 * 967 /// Completes with a [PretargetingConfig].
1010 * Completes with a [PretargetingConfig]. 968 ///
1011 * 969 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1012 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 970 /// an error.
1013 * error. 971 ///
1014 * 972 /// If the used [http.Client] completes with an error when making a REST
1015 * If the used [http.Client] completes with an error when making a REST call, 973 /// call, this method will complete with the same error.
1016 * this method will complete with the same error. 974 async.Future<PretargetingConfig> update(
1017 */ 975 PretargetingConfig request, core.String accountId, core.String configId) {
1018 async.Future<PretargetingConfig> update(PretargetingConfig request, core.Strin g accountId, core.String configId) {
1019 var _url = null; 976 var _url = null;
1020 var _queryParams = new core.Map(); 977 var _queryParams = new core.Map();
1021 var _uploadMedia = null; 978 var _uploadMedia = null;
1022 var _uploadOptions = null; 979 var _uploadOptions = null;
1023 var _downloadOptions = commons.DownloadOptions.Metadata; 980 var _downloadOptions = commons.DownloadOptions.Metadata;
1024 var _body = null; 981 var _body = null;
1025 982
1026 if (request != null) { 983 if (request != null) {
1027 _body = convert.JSON.encode((request).toJson()); 984 _body = convert.JSON.encode((request).toJson());
1028 } 985 }
1029 if (accountId == null) { 986 if (accountId == null) {
1030 throw new core.ArgumentError("Parameter accountId is required."); 987 throw new core.ArgumentError("Parameter accountId is required.");
1031 } 988 }
1032 if (configId == null) { 989 if (configId == null) {
1033 throw new core.ArgumentError("Parameter configId is required."); 990 throw new core.ArgumentError("Parameter configId is required.");
1034 } 991 }
1035 992
1036 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId'); 993 _url = 'pretargetingconfigs/' +
994 commons.Escaper.ecapeVariable('$accountId') +
995 '/' +
996 commons.Escaper.ecapeVariable('$configId');
1037 997
1038 var _response = _requester.request(_url, 998 var _response = _requester.request(_url, "PUT",
1039 "PUT", 999 body: _body,
1040 body: _body, 1000 queryParams: _queryParams,
1041 queryParams: _queryParams, 1001 uploadOptions: _uploadOptions,
1042 uploadOptions: _uploadOptions, 1002 uploadMedia: _uploadMedia,
1043 uploadMedia: _uploadMedia, 1003 downloadOptions: _downloadOptions);
1044 downloadOptions: _downloadOptions);
1045 return _response.then((data) => new PretargetingConfig.fromJson(data)); 1004 return _response.then((data) => new PretargetingConfig.fromJson(data));
1046 } 1005 }
1047
1048 } 1006 }
1049 1007
1008 class AccountBidderLocation {
1009 /// The maximum queries per second the Ad Exchange will send.
1010 core.int maximumQps;
1050 1011
1012 /// The geographical region the Ad Exchange should send requests from. Only
1013 /// used by some quota systems, but always setting the value is recommended.
1014 /// Allowed values:
1015 /// - ASIA
1016 /// - EUROPE
1017 /// - US_EAST
1018 /// - US_WEST
1019 core.String region;
1051 1020
1052 class AccountBidderLocation { 1021 /// The URL to which the Ad Exchange will send bid requests.
1053 /** The maximum queries per second the Ad Exchange will send. */
1054 core.int maximumQps;
1055 /**
1056 * The geographical region the Ad Exchange should send requests from. Only
1057 * used by some quota systems, but always setting the value is recommended.
1058 * Allowed values:
1059 * - ASIA
1060 * - EUROPE
1061 * - US_EAST
1062 * - US_WEST
1063 */
1064 core.String region;
1065 /** The URL to which the Ad Exchange will send bid requests. */
1066 core.String url; 1022 core.String url;
1067 1023
1068 AccountBidderLocation(); 1024 AccountBidderLocation();
1069 1025
1070 AccountBidderLocation.fromJson(core.Map _json) { 1026 AccountBidderLocation.fromJson(core.Map _json) {
1071 if (_json.containsKey("maximumQps")) { 1027 if (_json.containsKey("maximumQps")) {
1072 maximumQps = _json["maximumQps"]; 1028 maximumQps = _json["maximumQps"];
1073 } 1029 }
1074 if (_json.containsKey("region")) { 1030 if (_json.containsKey("region")) {
1075 region = _json["region"]; 1031 region = _json["region"];
1076 } 1032 }
1077 if (_json.containsKey("url")) { 1033 if (_json.containsKey("url")) {
1078 url = _json["url"]; 1034 url = _json["url"];
1079 } 1035 }
1080 } 1036 }
1081 1037
1082 core.Map<core.String, core.Object> toJson() { 1038 core.Map<core.String, core.Object> toJson() {
1083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1039 final core.Map<core.String, core.Object> _json =
1040 new core.Map<core.String, core.Object>();
1084 if (maximumQps != null) { 1041 if (maximumQps != null) {
1085 _json["maximumQps"] = maximumQps; 1042 _json["maximumQps"] = maximumQps;
1086 } 1043 }
1087 if (region != null) { 1044 if (region != null) {
1088 _json["region"] = region; 1045 _json["region"] = region;
1089 } 1046 }
1090 if (url != null) { 1047 if (url != null) {
1091 _json["url"] = url; 1048 _json["url"] = url;
1092 } 1049 }
1093 return _json; 1050 return _json;
1094 } 1051 }
1095 } 1052 }
1096 1053
1097 /** Configuration data for an Ad Exchange buyer account. */ 1054 /// Configuration data for an Ad Exchange buyer account.
1098 class Account { 1055 class Account {
1099 /** Your bidder locations that have distinct URLs. */ 1056 /// Your bidder locations that have distinct URLs.
1100 core.List<AccountBidderLocation> bidderLocation; 1057 core.List<AccountBidderLocation> bidderLocation;
1101 /** 1058
1102 * The nid parameter value used in cookie match requests. Please contact your 1059 /// The nid parameter value used in cookie match requests. Please contact
1103 * technical account manager if you need to change this. 1060 /// your technical account manager if you need to change this.
1104 */
1105 core.String cookieMatchingNid; 1061 core.String cookieMatchingNid;
1106 /** The base URL used in cookie match requests. */ 1062
1063 /// The base URL used in cookie match requests.
1107 core.String cookieMatchingUrl; 1064 core.String cookieMatchingUrl;
1108 /** Account id. */ 1065
1066 /// Account id.
1109 core.int id; 1067 core.int id;
1110 /** Resource type. */ 1068
1069 /// Resource type.
1111 core.String kind; 1070 core.String kind;
1112 /** 1071
1113 * The maximum number of active creatives that an account can have, where a 1072 /// The maximum number of active creatives that an account can have, where a
1114 * creative is active if it was inserted or bid with in the last 30 days. 1073 /// creative is active if it was inserted or bid with in the last 30 days.
1115 * Please contact your technical account manager if you need to change this. 1074 /// Please contact your technical account manager if you need to change this.
1116 */
1117 core.int maximumActiveCreatives; 1075 core.int maximumActiveCreatives;
1118 /** 1076
1119 * The sum of all bidderLocation.maximumQps values cannot exceed this. Please 1077 /// The sum of all bidderLocation.maximumQps values cannot exceed this.
1120 * contact your technical account manager if you need to change this. 1078 /// Please contact your technical account manager if you need to change this.
1121 */
1122 core.int maximumTotalQps; 1079 core.int maximumTotalQps;
1123 /** 1080
1124 * The number of creatives that this account inserted or bid with in the last 1081 /// The number of creatives that this account inserted or bid with in the
1125 * 30 days. 1082 /// last 30 days.
1126 */
1127 core.int numberActiveCreatives; 1083 core.int numberActiveCreatives;
1128 1084
1129 Account(); 1085 Account();
1130 1086
1131 Account.fromJson(core.Map _json) { 1087 Account.fromJson(core.Map _json) {
1132 if (_json.containsKey("bidderLocation")) { 1088 if (_json.containsKey("bidderLocation")) {
1133 bidderLocation = _json["bidderLocation"].map((value) => new AccountBidderL ocation.fromJson(value)).toList(); 1089 bidderLocation = _json["bidderLocation"]
1090 .map((value) => new AccountBidderLocation.fromJson(value))
1091 .toList();
1134 } 1092 }
1135 if (_json.containsKey("cookieMatchingNid")) { 1093 if (_json.containsKey("cookieMatchingNid")) {
1136 cookieMatchingNid = _json["cookieMatchingNid"]; 1094 cookieMatchingNid = _json["cookieMatchingNid"];
1137 } 1095 }
1138 if (_json.containsKey("cookieMatchingUrl")) { 1096 if (_json.containsKey("cookieMatchingUrl")) {
1139 cookieMatchingUrl = _json["cookieMatchingUrl"]; 1097 cookieMatchingUrl = _json["cookieMatchingUrl"];
1140 } 1098 }
1141 if (_json.containsKey("id")) { 1099 if (_json.containsKey("id")) {
1142 id = _json["id"]; 1100 id = _json["id"];
1143 } 1101 }
1144 if (_json.containsKey("kind")) { 1102 if (_json.containsKey("kind")) {
1145 kind = _json["kind"]; 1103 kind = _json["kind"];
1146 } 1104 }
1147 if (_json.containsKey("maximumActiveCreatives")) { 1105 if (_json.containsKey("maximumActiveCreatives")) {
1148 maximumActiveCreatives = _json["maximumActiveCreatives"]; 1106 maximumActiveCreatives = _json["maximumActiveCreatives"];
1149 } 1107 }
1150 if (_json.containsKey("maximumTotalQps")) { 1108 if (_json.containsKey("maximumTotalQps")) {
1151 maximumTotalQps = _json["maximumTotalQps"]; 1109 maximumTotalQps = _json["maximumTotalQps"];
1152 } 1110 }
1153 if (_json.containsKey("numberActiveCreatives")) { 1111 if (_json.containsKey("numberActiveCreatives")) {
1154 numberActiveCreatives = _json["numberActiveCreatives"]; 1112 numberActiveCreatives = _json["numberActiveCreatives"];
1155 } 1113 }
1156 } 1114 }
1157 1115
1158 core.Map<core.String, core.Object> toJson() { 1116 core.Map<core.String, core.Object> toJson() {
1159 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1117 final core.Map<core.String, core.Object> _json =
1118 new core.Map<core.String, core.Object>();
1160 if (bidderLocation != null) { 1119 if (bidderLocation != null) {
1161 _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()). toList(); 1120 _json["bidderLocation"] =
1121 bidderLocation.map((value) => (value).toJson()).toList();
1162 } 1122 }
1163 if (cookieMatchingNid != null) { 1123 if (cookieMatchingNid != null) {
1164 _json["cookieMatchingNid"] = cookieMatchingNid; 1124 _json["cookieMatchingNid"] = cookieMatchingNid;
1165 } 1125 }
1166 if (cookieMatchingUrl != null) { 1126 if (cookieMatchingUrl != null) {
1167 _json["cookieMatchingUrl"] = cookieMatchingUrl; 1127 _json["cookieMatchingUrl"] = cookieMatchingUrl;
1168 } 1128 }
1169 if (id != null) { 1129 if (id != null) {
1170 _json["id"] = id; 1130 _json["id"] = id;
1171 } 1131 }
1172 if (kind != null) { 1132 if (kind != null) {
1173 _json["kind"] = kind; 1133 _json["kind"] = kind;
1174 } 1134 }
1175 if (maximumActiveCreatives != null) { 1135 if (maximumActiveCreatives != null) {
1176 _json["maximumActiveCreatives"] = maximumActiveCreatives; 1136 _json["maximumActiveCreatives"] = maximumActiveCreatives;
1177 } 1137 }
1178 if (maximumTotalQps != null) { 1138 if (maximumTotalQps != null) {
1179 _json["maximumTotalQps"] = maximumTotalQps; 1139 _json["maximumTotalQps"] = maximumTotalQps;
1180 } 1140 }
1181 if (numberActiveCreatives != null) { 1141 if (numberActiveCreatives != null) {
1182 _json["numberActiveCreatives"] = numberActiveCreatives; 1142 _json["numberActiveCreatives"] = numberActiveCreatives;
1183 } 1143 }
1184 return _json; 1144 return _json;
1185 } 1145 }
1186 } 1146 }
1187 1147
1188 /** 1148 /// An account feed lists Ad Exchange buyer accounts that the user has access
1189 * An account feed lists Ad Exchange buyer accounts that the user has access to. 1149 /// to. Each entry in the feed corresponds to a single buyer account.
1190 * Each entry in the feed corresponds to a single buyer account.
1191 */
1192 class AccountsList { 1150 class AccountsList {
1193 /** A list of accounts. */ 1151 /// A list of accounts.
1194 core.List<Account> items; 1152 core.List<Account> items;
1195 /** Resource type. */ 1153
1154 /// Resource type.
1196 core.String kind; 1155 core.String kind;
1197 1156
1198 AccountsList(); 1157 AccountsList();
1199 1158
1200 AccountsList.fromJson(core.Map _json) { 1159 AccountsList.fromJson(core.Map _json) {
1201 if (_json.containsKey("items")) { 1160 if (_json.containsKey("items")) {
1202 items = _json["items"].map((value) => new Account.fromJson(value)).toList( ); 1161 items =
1162 _json["items"].map((value) => new Account.fromJson(value)).toList();
1203 } 1163 }
1204 if (_json.containsKey("kind")) { 1164 if (_json.containsKey("kind")) {
1205 kind = _json["kind"]; 1165 kind = _json["kind"];
1206 } 1166 }
1207 } 1167 }
1208 1168
1209 core.Map<core.String, core.Object> toJson() { 1169 core.Map<core.String, core.Object> toJson() {
1210 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1170 final core.Map<core.String, core.Object> _json =
1171 new core.Map<core.String, core.Object>();
1211 if (items != null) { 1172 if (items != null) {
1212 _json["items"] = items.map((value) => (value).toJson()).toList(); 1173 _json["items"] = items.map((value) => (value).toJson()).toList();
1213 } 1174 }
1214 if (kind != null) { 1175 if (kind != null) {
1215 _json["kind"] = kind; 1176 _json["kind"] = kind;
1216 } 1177 }
1217 return _json; 1178 return _json;
1218 } 1179 }
1219 } 1180 }
1220 1181
1221 /** The configuration data for an Ad Exchange billing info. */ 1182 /// The configuration data for an Ad Exchange billing info.
1222 class BillingInfo { 1183 class BillingInfo {
1223 /** Account id. */ 1184 /// Account id.
1224 core.int accountId; 1185 core.int accountId;
1225 /** Account name. */ 1186
1187 /// Account name.
1226 core.String accountName; 1188 core.String accountName;
1227 /** 1189
1228 * A list of adgroup IDs associated with this particular account. These IDs 1190 /// A list of adgroup IDs associated with this particular account. These IDs
1229 * may show up as part of a realtime bidding BidRequest, which indicates a bid 1191 /// may show up as part of a realtime bidding BidRequest, which indicates a
1230 * request for this account. 1192 /// bid request for this account.
1231 */
1232 core.List<core.String> billingId; 1193 core.List<core.String> billingId;
1233 /** Resource type. */ 1194
1195 /// Resource type.
1234 core.String kind; 1196 core.String kind;
1235 1197
1236 BillingInfo(); 1198 BillingInfo();
1237 1199
1238 BillingInfo.fromJson(core.Map _json) { 1200 BillingInfo.fromJson(core.Map _json) {
1239 if (_json.containsKey("accountId")) { 1201 if (_json.containsKey("accountId")) {
1240 accountId = _json["accountId"]; 1202 accountId = _json["accountId"];
1241 } 1203 }
1242 if (_json.containsKey("accountName")) { 1204 if (_json.containsKey("accountName")) {
1243 accountName = _json["accountName"]; 1205 accountName = _json["accountName"];
1244 } 1206 }
1245 if (_json.containsKey("billingId")) { 1207 if (_json.containsKey("billingId")) {
1246 billingId = _json["billingId"]; 1208 billingId = _json["billingId"];
1247 } 1209 }
1248 if (_json.containsKey("kind")) { 1210 if (_json.containsKey("kind")) {
1249 kind = _json["kind"]; 1211 kind = _json["kind"];
1250 } 1212 }
1251 } 1213 }
1252 1214
1253 core.Map<core.String, core.Object> toJson() { 1215 core.Map<core.String, core.Object> toJson() {
1254 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1216 final core.Map<core.String, core.Object> _json =
1217 new core.Map<core.String, core.Object>();
1255 if (accountId != null) { 1218 if (accountId != null) {
1256 _json["accountId"] = accountId; 1219 _json["accountId"] = accountId;
1257 } 1220 }
1258 if (accountName != null) { 1221 if (accountName != null) {
1259 _json["accountName"] = accountName; 1222 _json["accountName"] = accountName;
1260 } 1223 }
1261 if (billingId != null) { 1224 if (billingId != null) {
1262 _json["billingId"] = billingId; 1225 _json["billingId"] = billingId;
1263 } 1226 }
1264 if (kind != null) { 1227 if (kind != null) {
1265 _json["kind"] = kind; 1228 _json["kind"] = kind;
1266 } 1229 }
1267 return _json; 1230 return _json;
1268 } 1231 }
1269 } 1232 }
1270 1233
1271 /** 1234 /// A billing info feed lists Billing Info the Ad Exchange buyer account has
1272 * A billing info feed lists Billing Info the Ad Exchange buyer account has 1235 /// access to. Each entry in the feed corresponds to a single billing info.
1273 * access to. Each entry in the feed corresponds to a single billing info.
1274 */
1275 class BillingInfoList { 1236 class BillingInfoList {
1276 /** A list of billing info relevant for your account. */ 1237 /// A list of billing info relevant for your account.
1277 core.List<BillingInfo> items; 1238 core.List<BillingInfo> items;
1278 /** Resource type. */ 1239
1240 /// Resource type.
1279 core.String kind; 1241 core.String kind;
1280 1242
1281 BillingInfoList(); 1243 BillingInfoList();
1282 1244
1283 BillingInfoList.fromJson(core.Map _json) { 1245 BillingInfoList.fromJson(core.Map _json) {
1284 if (_json.containsKey("items")) { 1246 if (_json.containsKey("items")) {
1285 items = _json["items"].map((value) => new BillingInfo.fromJson(value)).toL ist(); 1247 items = _json["items"]
1248 .map((value) => new BillingInfo.fromJson(value))
1249 .toList();
1286 } 1250 }
1287 if (_json.containsKey("kind")) { 1251 if (_json.containsKey("kind")) {
1288 kind = _json["kind"]; 1252 kind = _json["kind"];
1289 } 1253 }
1290 } 1254 }
1291 1255
1292 core.Map<core.String, core.Object> toJson() { 1256 core.Map<core.String, core.Object> toJson() {
1293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1257 final core.Map<core.String, core.Object> _json =
1258 new core.Map<core.String, core.Object>();
1294 if (items != null) { 1259 if (items != null) {
1295 _json["items"] = items.map((value) => (value).toJson()).toList(); 1260 _json["items"] = items.map((value) => (value).toJson()).toList();
1296 } 1261 }
1297 if (kind != null) { 1262 if (kind != null) {
1298 _json["kind"] = kind; 1263 _json["kind"] = kind;
1299 } 1264 }
1300 return _json; 1265 return _json;
1301 } 1266 }
1302 } 1267 }
1303 1268
1304 /** The configuration data for Ad Exchange RTB - Budget API. */ 1269 /// The configuration data for Ad Exchange RTB - Budget API.
1305 class Budget { 1270 class Budget {
1306 /** The id of the account. This is required for get and update requests. */ 1271 /// The id of the account. This is required for get and update requests.
1307 core.String accountId; 1272 core.String accountId;
1308 /** 1273
1309 * The billing id to determine which adgroup to provide budget information 1274 /// The billing id to determine which adgroup to provide budget information
1310 * for. This is required for get and update requests. 1275 /// for. This is required for get and update requests.
1311 */
1312 core.String billingId; 1276 core.String billingId;
1313 /** 1277
1314 * The daily budget amount in unit amount of the account currency to apply for 1278 /// The daily budget amount in unit amount of the account currency to apply
1315 * the billingId provided. This is required for update requests. 1279 /// for the billingId provided. This is required for update requests.
1316 */
1317 core.String budgetAmount; 1280 core.String budgetAmount;
1318 /** The currency code for the buyer. This cannot be altered here. */ 1281
1282 /// The currency code for the buyer. This cannot be altered here.
1319 core.String currencyCode; 1283 core.String currencyCode;
1320 /** The unique id that describes this item. */ 1284
1285 /// The unique id that describes this item.
1321 core.String id; 1286 core.String id;
1322 /** The kind of the resource, i.e. "adexchangebuyer#budget". */ 1287
1288 /// The kind of the resource, i.e. "adexchangebuyer#budget".
1323 core.String kind; 1289 core.String kind;
1324 1290
1325 Budget(); 1291 Budget();
1326 1292
1327 Budget.fromJson(core.Map _json) { 1293 Budget.fromJson(core.Map _json) {
1328 if (_json.containsKey("accountId")) { 1294 if (_json.containsKey("accountId")) {
1329 accountId = _json["accountId"]; 1295 accountId = _json["accountId"];
1330 } 1296 }
1331 if (_json.containsKey("billingId")) { 1297 if (_json.containsKey("billingId")) {
1332 billingId = _json["billingId"]; 1298 billingId = _json["billingId"];
1333 } 1299 }
1334 if (_json.containsKey("budgetAmount")) { 1300 if (_json.containsKey("budgetAmount")) {
1335 budgetAmount = _json["budgetAmount"]; 1301 budgetAmount = _json["budgetAmount"];
1336 } 1302 }
1337 if (_json.containsKey("currencyCode")) { 1303 if (_json.containsKey("currencyCode")) {
1338 currencyCode = _json["currencyCode"]; 1304 currencyCode = _json["currencyCode"];
1339 } 1305 }
1340 if (_json.containsKey("id")) { 1306 if (_json.containsKey("id")) {
1341 id = _json["id"]; 1307 id = _json["id"];
1342 } 1308 }
1343 if (_json.containsKey("kind")) { 1309 if (_json.containsKey("kind")) {
1344 kind = _json["kind"]; 1310 kind = _json["kind"];
1345 } 1311 }
1346 } 1312 }
1347 1313
1348 core.Map<core.String, core.Object> toJson() { 1314 core.Map<core.String, core.Object> toJson() {
1349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1315 final core.Map<core.String, core.Object> _json =
1316 new core.Map<core.String, core.Object>();
1350 if (accountId != null) { 1317 if (accountId != null) {
1351 _json["accountId"] = accountId; 1318 _json["accountId"] = accountId;
1352 } 1319 }
1353 if (billingId != null) { 1320 if (billingId != null) {
1354 _json["billingId"] = billingId; 1321 _json["billingId"] = billingId;
1355 } 1322 }
1356 if (budgetAmount != null) { 1323 if (budgetAmount != null) {
1357 _json["budgetAmount"] = budgetAmount; 1324 _json["budgetAmount"] = budgetAmount;
1358 } 1325 }
1359 if (currencyCode != null) { 1326 if (currencyCode != null) {
1360 _json["currencyCode"] = currencyCode; 1327 _json["currencyCode"] = currencyCode;
1361 } 1328 }
1362 if (id != null) { 1329 if (id != null) {
1363 _json["id"] = id; 1330 _json["id"] = id;
1364 } 1331 }
1365 if (kind != null) { 1332 if (kind != null) {
1366 _json["kind"] = kind; 1333 _json["kind"] = kind;
1367 } 1334 }
1368 return _json; 1335 return _json;
1369 } 1336 }
1370 } 1337 }
1371 1338
1372 class CreativeCorrections { 1339 class CreativeCorrections {
1373 /** Additional details about the correction. */ 1340 /// Additional details about the correction.
1374 core.List<core.String> details; 1341 core.List<core.String> details;
1375 /** The type of correction that was applied to the creative. */ 1342
1343 /// The type of correction that was applied to the creative.
1376 core.String reason; 1344 core.String reason;
1377 1345
1378 CreativeCorrections(); 1346 CreativeCorrections();
1379 1347
1380 CreativeCorrections.fromJson(core.Map _json) { 1348 CreativeCorrections.fromJson(core.Map _json) {
1381 if (_json.containsKey("details")) { 1349 if (_json.containsKey("details")) {
1382 details = _json["details"]; 1350 details = _json["details"];
1383 } 1351 }
1384 if (_json.containsKey("reason")) { 1352 if (_json.containsKey("reason")) {
1385 reason = _json["reason"]; 1353 reason = _json["reason"];
1386 } 1354 }
1387 } 1355 }
1388 1356
1389 core.Map<core.String, core.Object> toJson() { 1357 core.Map<core.String, core.Object> toJson() {
1390 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1358 final core.Map<core.String, core.Object> _json =
1359 new core.Map<core.String, core.Object>();
1391 if (details != null) { 1360 if (details != null) {
1392 _json["details"] = details; 1361 _json["details"] = details;
1393 } 1362 }
1394 if (reason != null) { 1363 if (reason != null) {
1395 _json["reason"] = reason; 1364 _json["reason"] = reason;
1396 } 1365 }
1397 return _json; 1366 return _json;
1398 } 1367 }
1399 } 1368 }
1400 1369
1401 class CreativeDisapprovalReasons { 1370 class CreativeDisapprovalReasons {
1402 /** Additional details about the reason for disapproval. */ 1371 /// Additional details about the reason for disapproval.
1403 core.List<core.String> details; 1372 core.List<core.String> details;
1404 /** The categorized reason for disapproval. */ 1373
1374 /// The categorized reason for disapproval.
1405 core.String reason; 1375 core.String reason;
1406 1376
1407 CreativeDisapprovalReasons(); 1377 CreativeDisapprovalReasons();
1408 1378
1409 CreativeDisapprovalReasons.fromJson(core.Map _json) { 1379 CreativeDisapprovalReasons.fromJson(core.Map _json) {
1410 if (_json.containsKey("details")) { 1380 if (_json.containsKey("details")) {
1411 details = _json["details"]; 1381 details = _json["details"];
1412 } 1382 }
1413 if (_json.containsKey("reason")) { 1383 if (_json.containsKey("reason")) {
1414 reason = _json["reason"]; 1384 reason = _json["reason"];
1415 } 1385 }
1416 } 1386 }
1417 1387
1418 core.Map<core.String, core.Object> toJson() { 1388 core.Map<core.String, core.Object> toJson() {
1419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1389 final core.Map<core.String, core.Object> _json =
1390 new core.Map<core.String, core.Object>();
1420 if (details != null) { 1391 if (details != null) {
1421 _json["details"] = details; 1392 _json["details"] = details;
1422 } 1393 }
1423 if (reason != null) { 1394 if (reason != null) {
1424 _json["reason"] = reason; 1395 _json["reason"] = reason;
1425 } 1396 }
1426 return _json; 1397 return _json;
1427 } 1398 }
1428 } 1399 }
1429 1400
1430 class CreativeFilteringReasonsReasons { 1401 class CreativeFilteringReasonsReasons {
1431 /** 1402 /// The number of times the creative was filtered for the status. The count
1432 * The number of times the creative was filtered for the status. The count is 1403 /// is aggregated across all publishers on the exchange.
1433 * aggregated across all publishers on the exchange.
1434 */
1435 core.String filteringCount; 1404 core.String filteringCount;
1436 /** 1405
1437 * The filtering status code. Please refer to the creative-status-codes.txt 1406 /// The filtering status code. Please refer to the creative-status-codes.txt
1438 * file for different statuses. 1407 /// file for different statuses.
1439 */
1440 core.int filteringStatus; 1408 core.int filteringStatus;
1441 1409
1442 CreativeFilteringReasonsReasons(); 1410 CreativeFilteringReasonsReasons();
1443 1411
1444 CreativeFilteringReasonsReasons.fromJson(core.Map _json) { 1412 CreativeFilteringReasonsReasons.fromJson(core.Map _json) {
1445 if (_json.containsKey("filteringCount")) { 1413 if (_json.containsKey("filteringCount")) {
1446 filteringCount = _json["filteringCount"]; 1414 filteringCount = _json["filteringCount"];
1447 } 1415 }
1448 if (_json.containsKey("filteringStatus")) { 1416 if (_json.containsKey("filteringStatus")) {
1449 filteringStatus = _json["filteringStatus"]; 1417 filteringStatus = _json["filteringStatus"];
1450 } 1418 }
1451 } 1419 }
1452 1420
1453 core.Map<core.String, core.Object> toJson() { 1421 core.Map<core.String, core.Object> toJson() {
1454 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1422 final core.Map<core.String, core.Object> _json =
1423 new core.Map<core.String, core.Object>();
1455 if (filteringCount != null) { 1424 if (filteringCount != null) {
1456 _json["filteringCount"] = filteringCount; 1425 _json["filteringCount"] = filteringCount;
1457 } 1426 }
1458 if (filteringStatus != null) { 1427 if (filteringStatus != null) {
1459 _json["filteringStatus"] = filteringStatus; 1428 _json["filteringStatus"] = filteringStatus;
1460 } 1429 }
1461 return _json; 1430 return _json;
1462 } 1431 }
1463 } 1432 }
1464 1433
1465 /** 1434 /// The filtering reasons for the creative. Read-only. This field should not be
1466 * The filtering reasons for the creative. Read-only. This field should not be 1435 /// set in requests.
1467 * set in requests.
1468 */
1469 class CreativeFilteringReasons { 1436 class CreativeFilteringReasons {
1470 /** 1437 /// The date in ISO 8601 format for the data. The data is collected from
1471 * The date in ISO 8601 format for the data. The data is collected from 1438 /// 00:00:00 to 23:59:59 in PST.
1472 * 00:00:00 to 23:59:59 in PST.
1473 */
1474 core.String date; 1439 core.String date;
1475 /** The filtering reasons. */ 1440
1441 /// The filtering reasons.
1476 core.List<CreativeFilteringReasonsReasons> reasons; 1442 core.List<CreativeFilteringReasonsReasons> reasons;
1477 1443
1478 CreativeFilteringReasons(); 1444 CreativeFilteringReasons();
1479 1445
1480 CreativeFilteringReasons.fromJson(core.Map _json) { 1446 CreativeFilteringReasons.fromJson(core.Map _json) {
1481 if (_json.containsKey("date")) { 1447 if (_json.containsKey("date")) {
1482 date = _json["date"]; 1448 date = _json["date"];
1483 } 1449 }
1484 if (_json.containsKey("reasons")) { 1450 if (_json.containsKey("reasons")) {
1485 reasons = _json["reasons"].map((value) => new CreativeFilteringReasonsReas ons.fromJson(value)).toList(); 1451 reasons = _json["reasons"]
1452 .map((value) => new CreativeFilteringReasonsReasons.fromJson(value))
1453 .toList();
1486 } 1454 }
1487 } 1455 }
1488 1456
1489 core.Map<core.String, core.Object> toJson() { 1457 core.Map<core.String, core.Object> toJson() {
1490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1458 final core.Map<core.String, core.Object> _json =
1459 new core.Map<core.String, core.Object>();
1491 if (date != null) { 1460 if (date != null) {
1492 _json["date"] = date; 1461 _json["date"] = date;
1493 } 1462 }
1494 if (reasons != null) { 1463 if (reasons != null) {
1495 _json["reasons"] = reasons.map((value) => (value).toJson()).toList(); 1464 _json["reasons"] = reasons.map((value) => (value).toJson()).toList();
1496 } 1465 }
1497 return _json; 1466 return _json;
1498 } 1467 }
1499 } 1468 }
1500 1469
1501 /** The app icon, for app download ads. */ 1470 /// The app icon, for app download ads.
1502 class CreativeNativeAdAppIcon { 1471 class CreativeNativeAdAppIcon {
1503 core.int height; 1472 core.int height;
1504 core.String url; 1473 core.String url;
1505 core.int width; 1474 core.int width;
1506 1475
1507 CreativeNativeAdAppIcon(); 1476 CreativeNativeAdAppIcon();
1508 1477
1509 CreativeNativeAdAppIcon.fromJson(core.Map _json) { 1478 CreativeNativeAdAppIcon.fromJson(core.Map _json) {
1510 if (_json.containsKey("height")) { 1479 if (_json.containsKey("height")) {
1511 height = _json["height"]; 1480 height = _json["height"];
1512 } 1481 }
1513 if (_json.containsKey("url")) { 1482 if (_json.containsKey("url")) {
1514 url = _json["url"]; 1483 url = _json["url"];
1515 } 1484 }
1516 if (_json.containsKey("width")) { 1485 if (_json.containsKey("width")) {
1517 width = _json["width"]; 1486 width = _json["width"];
1518 } 1487 }
1519 } 1488 }
1520 1489
1521 core.Map<core.String, core.Object> toJson() { 1490 core.Map<core.String, core.Object> toJson() {
1522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1491 final core.Map<core.String, core.Object> _json =
1492 new core.Map<core.String, core.Object>();
1523 if (height != null) { 1493 if (height != null) {
1524 _json["height"] = height; 1494 _json["height"] = height;
1525 } 1495 }
1526 if (url != null) { 1496 if (url != null) {
1527 _json["url"] = url; 1497 _json["url"] = url;
1528 } 1498 }
1529 if (width != null) { 1499 if (width != null) {
1530 _json["width"] = width; 1500 _json["width"] = width;
1531 } 1501 }
1532 return _json; 1502 return _json;
1533 } 1503 }
1534 } 1504 }
1535 1505
1536 /** A large image. */ 1506 /// A large image.
1537 class CreativeNativeAdImage { 1507 class CreativeNativeAdImage {
1538 core.int height; 1508 core.int height;
1539 core.String url; 1509 core.String url;
1540 core.int width; 1510 core.int width;
1541 1511
1542 CreativeNativeAdImage(); 1512 CreativeNativeAdImage();
1543 1513
1544 CreativeNativeAdImage.fromJson(core.Map _json) { 1514 CreativeNativeAdImage.fromJson(core.Map _json) {
1545 if (_json.containsKey("height")) { 1515 if (_json.containsKey("height")) {
1546 height = _json["height"]; 1516 height = _json["height"];
1547 } 1517 }
1548 if (_json.containsKey("url")) { 1518 if (_json.containsKey("url")) {
1549 url = _json["url"]; 1519 url = _json["url"];
1550 } 1520 }
1551 if (_json.containsKey("width")) { 1521 if (_json.containsKey("width")) {
1552 width = _json["width"]; 1522 width = _json["width"];
1553 } 1523 }
1554 } 1524 }
1555 1525
1556 core.Map<core.String, core.Object> toJson() { 1526 core.Map<core.String, core.Object> toJson() {
1557 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1527 final core.Map<core.String, core.Object> _json =
1528 new core.Map<core.String, core.Object>();
1558 if (height != null) { 1529 if (height != null) {
1559 _json["height"] = height; 1530 _json["height"] = height;
1560 } 1531 }
1561 if (url != null) { 1532 if (url != null) {
1562 _json["url"] = url; 1533 _json["url"] = url;
1563 } 1534 }
1564 if (width != null) { 1535 if (width != null) {
1565 _json["width"] = width; 1536 _json["width"] = width;
1566 } 1537 }
1567 return _json; 1538 return _json;
1568 } 1539 }
1569 } 1540 }
1570 1541
1571 /** A smaller image, for the advertiser logo. */ 1542 /// A smaller image, for the advertiser logo.
1572 class CreativeNativeAdLogo { 1543 class CreativeNativeAdLogo {
1573 core.int height; 1544 core.int height;
1574 core.String url; 1545 core.String url;
1575 core.int width; 1546 core.int width;
1576 1547
1577 CreativeNativeAdLogo(); 1548 CreativeNativeAdLogo();
1578 1549
1579 CreativeNativeAdLogo.fromJson(core.Map _json) { 1550 CreativeNativeAdLogo.fromJson(core.Map _json) {
1580 if (_json.containsKey("height")) { 1551 if (_json.containsKey("height")) {
1581 height = _json["height"]; 1552 height = _json["height"];
1582 } 1553 }
1583 if (_json.containsKey("url")) { 1554 if (_json.containsKey("url")) {
1584 url = _json["url"]; 1555 url = _json["url"];
1585 } 1556 }
1586 if (_json.containsKey("width")) { 1557 if (_json.containsKey("width")) {
1587 width = _json["width"]; 1558 width = _json["width"];
1588 } 1559 }
1589 } 1560 }
1590 1561
1591 core.Map<core.String, core.Object> toJson() { 1562 core.Map<core.String, core.Object> toJson() {
1592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1563 final core.Map<core.String, core.Object> _json =
1564 new core.Map<core.String, core.Object>();
1593 if (height != null) { 1565 if (height != null) {
1594 _json["height"] = height; 1566 _json["height"] = height;
1595 } 1567 }
1596 if (url != null) { 1568 if (url != null) {
1597 _json["url"] = url; 1569 _json["url"] = url;
1598 } 1570 }
1599 if (width != null) { 1571 if (width != null) {
1600 _json["width"] = width; 1572 _json["width"] = width;
1601 } 1573 }
1602 return _json; 1574 return _json;
1603 } 1575 }
1604 } 1576 }
1605 1577
1606 /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ 1578 /// If nativeAd is set, HTMLSnippet and videoURL should not be set.
1607 class CreativeNativeAd { 1579 class CreativeNativeAd {
1608 core.String advertiser; 1580 core.String advertiser;
1609 /** The app icon, for app download ads. */ 1581
1582 /// The app icon, for app download ads.
1610 CreativeNativeAdAppIcon appIcon; 1583 CreativeNativeAdAppIcon appIcon;
1611 /** A long description of the ad. */ 1584
1585 /// A long description of the ad.
1612 core.String body; 1586 core.String body;
1613 /** A label for the button that the user is supposed to click. */ 1587
1588 /// A label for the button that the user is supposed to click.
1614 core.String callToAction; 1589 core.String callToAction;
1615 /** The URL to use for click tracking. */ 1590
1591 /// The URL to use for click tracking.
1616 core.String clickTrackingUrl; 1592 core.String clickTrackingUrl;
1617 /** A short title for the ad. */ 1593
1594 /// A short title for the ad.
1618 core.String headline; 1595 core.String headline;
1619 /** A large image. */ 1596
1597 /// A large image.
1620 CreativeNativeAdImage image; 1598 CreativeNativeAdImage image;
1621 /** The URLs are called when the impression is rendered. */ 1599
1600 /// The URLs are called when the impression is rendered.
1622 core.List<core.String> impressionTrackingUrl; 1601 core.List<core.String> impressionTrackingUrl;
1623 /** A smaller image, for the advertiser logo. */ 1602
1603 /// A smaller image, for the advertiser logo.
1624 CreativeNativeAdLogo logo; 1604 CreativeNativeAdLogo logo;
1625 /** The price of the promoted app including the currency info. */ 1605
1606 /// The price of the promoted app including the currency info.
1626 core.String price; 1607 core.String price;
1627 /** The app rating in the app store. Must be in the range [0-5]. */ 1608
1609 /// The app rating in the app store. Must be in the range [0-5].
1628 core.double starRating; 1610 core.double starRating;
1629 /** The URL to the app store to purchase/download the promoted app. */ 1611
1612 /// The URL to the app store to purchase/download the promoted app.
1630 core.String store; 1613 core.String store;
1631 1614
1632 CreativeNativeAd(); 1615 CreativeNativeAd();
1633 1616
1634 CreativeNativeAd.fromJson(core.Map _json) { 1617 CreativeNativeAd.fromJson(core.Map _json) {
1635 if (_json.containsKey("advertiser")) { 1618 if (_json.containsKey("advertiser")) {
1636 advertiser = _json["advertiser"]; 1619 advertiser = _json["advertiser"];
1637 } 1620 }
1638 if (_json.containsKey("appIcon")) { 1621 if (_json.containsKey("appIcon")) {
1639 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]); 1622 appIcon = new CreativeNativeAdAppIcon.fromJson(_json["appIcon"]);
(...skipping 24 matching lines...) Expand all
1664 } 1647 }
1665 if (_json.containsKey("starRating")) { 1648 if (_json.containsKey("starRating")) {
1666 starRating = _json["starRating"]; 1649 starRating = _json["starRating"];
1667 } 1650 }
1668 if (_json.containsKey("store")) { 1651 if (_json.containsKey("store")) {
1669 store = _json["store"]; 1652 store = _json["store"];
1670 } 1653 }
1671 } 1654 }
1672 1655
1673 core.Map<core.String, core.Object> toJson() { 1656 core.Map<core.String, core.Object> toJson() {
1674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1657 final core.Map<core.String, core.Object> _json =
1658 new core.Map<core.String, core.Object>();
1675 if (advertiser != null) { 1659 if (advertiser != null) {
1676 _json["advertiser"] = advertiser; 1660 _json["advertiser"] = advertiser;
1677 } 1661 }
1678 if (appIcon != null) { 1662 if (appIcon != null) {
1679 _json["appIcon"] = (appIcon).toJson(); 1663 _json["appIcon"] = (appIcon).toJson();
1680 } 1664 }
1681 if (body != null) { 1665 if (body != null) {
1682 _json["body"] = body; 1666 _json["body"] = body;
1683 } 1667 }
1684 if (callToAction != null) { 1668 if (callToAction != null) {
(...skipping 20 matching lines...) Expand all
1705 if (starRating != null) { 1689 if (starRating != null) {
1706 _json["starRating"] = starRating; 1690 _json["starRating"] = starRating;
1707 } 1691 }
1708 if (store != null) { 1692 if (store != null) {
1709 _json["store"] = store; 1693 _json["store"] = store;
1710 } 1694 }
1711 return _json; 1695 return _json;
1712 } 1696 }
1713 } 1697 }
1714 1698
1715 /** A creative and its classification data. */ 1699 /// A creative and its classification data.
1716 class Creative { 1700 class Creative {
1717 /** 1701 /// The HTML snippet that displays the ad when inserted in the web page. If
1718 * The HTML snippet that displays the ad when inserted in the web page. If 1702 /// set, videoURL should not be set.
1719 * set, videoURL should not be set.
1720 */
1721 core.String HTMLSnippet; 1703 core.String HTMLSnippet;
1722 /** Account id. */ 1704
1705 /// Account id.
1723 core.int accountId; 1706 core.int accountId;
1724 /** 1707
1725 * Detected advertiser id, if any. Read-only. This field should not be set in 1708 /// Detected advertiser id, if any. Read-only. This field should not be set
1726 * requests. 1709 /// in requests.
1727 */
1728 core.List<core.String> advertiserId; 1710 core.List<core.String> advertiserId;
1729 /** The name of the company being advertised in the creative. */ 1711
1712 /// The name of the company being advertised in the creative.
1730 core.String advertiserName; 1713 core.String advertiserName;
1731 /** The agency id for this creative. */ 1714
1715 /// The agency id for this creative.
1732 core.String agencyId; 1716 core.String agencyId;
1733 /** 1717
1734 * The last upload timestamp of this creative if it was uploaded via API. 1718 /// The last upload timestamp of this creative if it was uploaded via API.
1735 * Read-only. The value of this field is generated, and will be ignored for 1719 /// Read-only. The value of this field is generated, and will be ignored for
1736 * uploads. (formatted RFC 3339 timestamp). 1720 /// uploads. (formatted RFC 3339 timestamp).
1737 */
1738 core.DateTime apiUploadTimestamp; 1721 core.DateTime apiUploadTimestamp;
1739 /** All attributes for the ads that may be shown from this snippet. */ 1722
1723 /// All attributes for the ads that may be shown from this snippet.
1740 core.List<core.int> attribute; 1724 core.List<core.int> attribute;
1741 /** A buyer-specific id identifying the creative in this ad. */ 1725
1726 /// A buyer-specific id identifying the creative in this ad.
1742 core.String buyerCreativeId; 1727 core.String buyerCreativeId;
1743 /** The set of destination urls for the snippet. */ 1728
1729 /// The set of destination urls for the snippet.
1744 core.List<core.String> clickThroughUrl; 1730 core.List<core.String> clickThroughUrl;
1745 /** 1731
1746 * Shows any corrections that were applied to this creative. Read-only. This 1732 /// Shows any corrections that were applied to this creative. Read-only. This
1747 * field should not be set in requests. 1733 /// field should not be set in requests.
1748 */
1749 core.List<CreativeCorrections> corrections; 1734 core.List<CreativeCorrections> corrections;
1750 /** 1735
1751 * The reasons for disapproval, if any. Note that not all disapproval reasons 1736 /// The reasons for disapproval, if any. Note that not all disapproval
1752 * may be categorized, so it is possible for the creative to have a status of 1737 /// reasons may be categorized, so it is possible for the creative to have a
1753 * DISAPPROVED with an empty list for disapproval_reasons. In this case, 1738 /// status of DISAPPROVED with an empty list for disapproval_reasons. In this
1754 * please reach out to your TAM to help debug the issue. Read-only. This field 1739 /// case, please reach out to your TAM to help debug the issue. Read-only.
1755 * should not be set in requests. 1740 /// This field should not be set in requests.
1756 */
1757 core.List<CreativeDisapprovalReasons> disapprovalReasons; 1741 core.List<CreativeDisapprovalReasons> disapprovalReasons;
1758 /** 1742
1759 * The filtering reasons for the creative. Read-only. This field should not be 1743 /// The filtering reasons for the creative. Read-only. This field should not
1760 * set in requests. 1744 /// be set in requests.
1761 */
1762 CreativeFilteringReasons filteringReasons; 1745 CreativeFilteringReasons filteringReasons;
1763 /** Ad height. */ 1746
1747 /// Ad height.
1764 core.int height; 1748 core.int height;
1765 /** The set of urls to be called to record an impression. */ 1749
1750 /// The set of urls to be called to record an impression.
1766 core.List<core.String> impressionTrackingUrl; 1751 core.List<core.String> impressionTrackingUrl;
1767 /** Resource type. */ 1752
1753 /// Resource type.
1768 core.String kind; 1754 core.String kind;
1769 /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ 1755
1756 /// If nativeAd is set, HTMLSnippet and videoURL should not be set.
1770 CreativeNativeAd nativeAd; 1757 CreativeNativeAd nativeAd;
1771 /** 1758
1772 * Detected product categories, if any. Read-only. This field should not be 1759 /// Detected product categories, if any. Read-only. This field should not be
1773 * set in requests. 1760 /// set in requests.
1774 */
1775 core.List<core.int> productCategories; 1761 core.List<core.int> productCategories;
1776 /** 1762
1777 * All restricted categories for the ads that may be shown from this snippet. 1763 /// All restricted categories for the ads that may be shown from this
1778 */ 1764 /// snippet.
1779 core.List<core.int> restrictedCategories; 1765 core.List<core.int> restrictedCategories;
1780 /** 1766
1781 * Detected sensitive categories, if any. Read-only. This field should not be 1767 /// Detected sensitive categories, if any. Read-only. This field should not
1782 * set in requests. 1768 /// be set in requests.
1783 */
1784 core.List<core.int> sensitiveCategories; 1769 core.List<core.int> sensitiveCategories;
1785 /** 1770
1786 * Creative serving status. Read-only. This field should not be set in 1771 /// Creative serving status. Read-only. This field should not be set in
1787 * requests. 1772 /// requests.
1788 */
1789 core.String status; 1773 core.String status;
1790 /** All vendor types for the ads that may be shown from this snippet. */ 1774
1775 /// All vendor types for the ads that may be shown from this snippet.
1791 core.List<core.int> vendorType; 1776 core.List<core.int> vendorType;
1792 /** 1777
1793 * The version for this creative. Read-only. This field should not be set in 1778 /// The version for this creative. Read-only. This field should not be set in
1794 * requests. 1779 /// requests.
1795 */
1796 core.int version; 1780 core.int version;
1797 /** 1781
1798 * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should 1782 /// The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should
1799 * not be set. 1783 /// not be set.
1800 */
1801 core.String videoURL; 1784 core.String videoURL;
1802 /** Ad width. */ 1785
1786 /// Ad width.
1803 core.int width; 1787 core.int width;
1804 1788
1805 Creative(); 1789 Creative();
1806 1790
1807 Creative.fromJson(core.Map _json) { 1791 Creative.fromJson(core.Map _json) {
1808 if (_json.containsKey("HTMLSnippet")) { 1792 if (_json.containsKey("HTMLSnippet")) {
1809 HTMLSnippet = _json["HTMLSnippet"]; 1793 HTMLSnippet = _json["HTMLSnippet"];
1810 } 1794 }
1811 if (_json.containsKey("accountId")) { 1795 if (_json.containsKey("accountId")) {
1812 accountId = _json["accountId"]; 1796 accountId = _json["accountId"];
(...skipping 13 matching lines...) Expand all
1826 if (_json.containsKey("attribute")) { 1810 if (_json.containsKey("attribute")) {
1827 attribute = _json["attribute"]; 1811 attribute = _json["attribute"];
1828 } 1812 }
1829 if (_json.containsKey("buyerCreativeId")) { 1813 if (_json.containsKey("buyerCreativeId")) {
1830 buyerCreativeId = _json["buyerCreativeId"]; 1814 buyerCreativeId = _json["buyerCreativeId"];
1831 } 1815 }
1832 if (_json.containsKey("clickThroughUrl")) { 1816 if (_json.containsKey("clickThroughUrl")) {
1833 clickThroughUrl = _json["clickThroughUrl"]; 1817 clickThroughUrl = _json["clickThroughUrl"];
1834 } 1818 }
1835 if (_json.containsKey("corrections")) { 1819 if (_json.containsKey("corrections")) {
1836 corrections = _json["corrections"].map((value) => new CreativeCorrections. fromJson(value)).toList(); 1820 corrections = _json["corrections"]
1821 .map((value) => new CreativeCorrections.fromJson(value))
1822 .toList();
1837 } 1823 }
1838 if (_json.containsKey("disapprovalReasons")) { 1824 if (_json.containsKey("disapprovalReasons")) {
1839 disapprovalReasons = _json["disapprovalReasons"].map((value) => new Creati veDisapprovalReasons.fromJson(value)).toList(); 1825 disapprovalReasons = _json["disapprovalReasons"]
1826 .map((value) => new CreativeDisapprovalReasons.fromJson(value))
1827 .toList();
1840 } 1828 }
1841 if (_json.containsKey("filteringReasons")) { 1829 if (_json.containsKey("filteringReasons")) {
1842 filteringReasons = new CreativeFilteringReasons.fromJson(_json["filteringR easons"]); 1830 filteringReasons =
1831 new CreativeFilteringReasons.fromJson(_json["filteringReasons"]);
1843 } 1832 }
1844 if (_json.containsKey("height")) { 1833 if (_json.containsKey("height")) {
1845 height = _json["height"]; 1834 height = _json["height"];
1846 } 1835 }
1847 if (_json.containsKey("impressionTrackingUrl")) { 1836 if (_json.containsKey("impressionTrackingUrl")) {
1848 impressionTrackingUrl = _json["impressionTrackingUrl"]; 1837 impressionTrackingUrl = _json["impressionTrackingUrl"];
1849 } 1838 }
1850 if (_json.containsKey("kind")) { 1839 if (_json.containsKey("kind")) {
1851 kind = _json["kind"]; 1840 kind = _json["kind"];
1852 } 1841 }
(...skipping 20 matching lines...) Expand all
1873 } 1862 }
1874 if (_json.containsKey("videoURL")) { 1863 if (_json.containsKey("videoURL")) {
1875 videoURL = _json["videoURL"]; 1864 videoURL = _json["videoURL"];
1876 } 1865 }
1877 if (_json.containsKey("width")) { 1866 if (_json.containsKey("width")) {
1878 width = _json["width"]; 1867 width = _json["width"];
1879 } 1868 }
1880 } 1869 }
1881 1870
1882 core.Map<core.String, core.Object> toJson() { 1871 core.Map<core.String, core.Object> toJson() {
1883 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1872 final core.Map<core.String, core.Object> _json =
1873 new core.Map<core.String, core.Object>();
1884 if (HTMLSnippet != null) { 1874 if (HTMLSnippet != null) {
1885 _json["HTMLSnippet"] = HTMLSnippet; 1875 _json["HTMLSnippet"] = HTMLSnippet;
1886 } 1876 }
1887 if (accountId != null) { 1877 if (accountId != null) {
1888 _json["accountId"] = accountId; 1878 _json["accountId"] = accountId;
1889 } 1879 }
1890 if (advertiserId != null) { 1880 if (advertiserId != null) {
1891 _json["advertiserId"] = advertiserId; 1881 _json["advertiserId"] = advertiserId;
1892 } 1882 }
1893 if (advertiserName != null) { 1883 if (advertiserName != null) {
1894 _json["advertiserName"] = advertiserName; 1884 _json["advertiserName"] = advertiserName;
1895 } 1885 }
1896 if (agencyId != null) { 1886 if (agencyId != null) {
1897 _json["agencyId"] = agencyId; 1887 _json["agencyId"] = agencyId;
1898 } 1888 }
1899 if (apiUploadTimestamp != null) { 1889 if (apiUploadTimestamp != null) {
1900 _json["apiUploadTimestamp"] = (apiUploadTimestamp).toIso8601String(); 1890 _json["apiUploadTimestamp"] = (apiUploadTimestamp).toIso8601String();
1901 } 1891 }
1902 if (attribute != null) { 1892 if (attribute != null) {
1903 _json["attribute"] = attribute; 1893 _json["attribute"] = attribute;
1904 } 1894 }
1905 if (buyerCreativeId != null) { 1895 if (buyerCreativeId != null) {
1906 _json["buyerCreativeId"] = buyerCreativeId; 1896 _json["buyerCreativeId"] = buyerCreativeId;
1907 } 1897 }
1908 if (clickThroughUrl != null) { 1898 if (clickThroughUrl != null) {
1909 _json["clickThroughUrl"] = clickThroughUrl; 1899 _json["clickThroughUrl"] = clickThroughUrl;
1910 } 1900 }
1911 if (corrections != null) { 1901 if (corrections != null) {
1912 _json["corrections"] = corrections.map((value) => (value).toJson()).toList (); 1902 _json["corrections"] =
1903 corrections.map((value) => (value).toJson()).toList();
1913 } 1904 }
1914 if (disapprovalReasons != null) { 1905 if (disapprovalReasons != null) {
1915 _json["disapprovalReasons"] = disapprovalReasons.map((value) => (value).to Json()).toList(); 1906 _json["disapprovalReasons"] =
1907 disapprovalReasons.map((value) => (value).toJson()).toList();
1916 } 1908 }
1917 if (filteringReasons != null) { 1909 if (filteringReasons != null) {
1918 _json["filteringReasons"] = (filteringReasons).toJson(); 1910 _json["filteringReasons"] = (filteringReasons).toJson();
1919 } 1911 }
1920 if (height != null) { 1912 if (height != null) {
1921 _json["height"] = height; 1913 _json["height"] = height;
1922 } 1914 }
1923 if (impressionTrackingUrl != null) { 1915 if (impressionTrackingUrl != null) {
1924 _json["impressionTrackingUrl"] = impressionTrackingUrl; 1916 _json["impressionTrackingUrl"] = impressionTrackingUrl;
1925 } 1917 }
(...skipping 24 matching lines...) Expand all
1950 if (videoURL != null) { 1942 if (videoURL != null) {
1951 _json["videoURL"] = videoURL; 1943 _json["videoURL"] = videoURL;
1952 } 1944 }
1953 if (width != null) { 1945 if (width != null) {
1954 _json["width"] = width; 1946 _json["width"] = width;
1955 } 1947 }
1956 return _json; 1948 return _json;
1957 } 1949 }
1958 } 1950 }
1959 1951
1960 /** 1952 /// The creatives feed lists the active creatives for the Ad Exchange buyer
1961 * The creatives feed lists the active creatives for the Ad Exchange buyer 1953 /// accounts that the user has access to. Each entry in the feed corresponds to
1962 * accounts that the user has access to. Each entry in the feed corresponds to a 1954 /// a single creative.
1963 * single creative.
1964 */
1965 class CreativesList { 1955 class CreativesList {
1966 /** A list of creatives. */ 1956 /// A list of creatives.
1967 core.List<Creative> items; 1957 core.List<Creative> items;
1968 /** Resource type. */ 1958
1959 /// Resource type.
1969 core.String kind; 1960 core.String kind;
1970 /** 1961
1971 * Continuation token used to page through creatives. To retrieve the next 1962 /// Continuation token used to page through creatives. To retrieve the next
1972 * page of results, set the next request's "pageToken" value to this. 1963 /// page of results, set the next request's "pageToken" value to this.
1973 */
1974 core.String nextPageToken; 1964 core.String nextPageToken;
1975 1965
1976 CreativesList(); 1966 CreativesList();
1977 1967
1978 CreativesList.fromJson(core.Map _json) { 1968 CreativesList.fromJson(core.Map _json) {
1979 if (_json.containsKey("items")) { 1969 if (_json.containsKey("items")) {
1980 items = _json["items"].map((value) => new Creative.fromJson(value)).toList (); 1970 items =
1971 _json["items"].map((value) => new Creative.fromJson(value)).toList();
1981 } 1972 }
1982 if (_json.containsKey("kind")) { 1973 if (_json.containsKey("kind")) {
1983 kind = _json["kind"]; 1974 kind = _json["kind"];
1984 } 1975 }
1985 if (_json.containsKey("nextPageToken")) { 1976 if (_json.containsKey("nextPageToken")) {
1986 nextPageToken = _json["nextPageToken"]; 1977 nextPageToken = _json["nextPageToken"];
1987 } 1978 }
1988 } 1979 }
1989 1980
1990 core.Map<core.String, core.Object> toJson() { 1981 core.Map<core.String, core.Object> toJson() {
1991 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1982 final core.Map<core.String, core.Object> _json =
1983 new core.Map<core.String, core.Object>();
1992 if (items != null) { 1984 if (items != null) {
1993 _json["items"] = items.map((value) => (value).toJson()).toList(); 1985 _json["items"] = items.map((value) => (value).toJson()).toList();
1994 } 1986 }
1995 if (kind != null) { 1987 if (kind != null) {
1996 _json["kind"] = kind; 1988 _json["kind"] = kind;
1997 } 1989 }
1998 if (nextPageToken != null) { 1990 if (nextPageToken != null) {
1999 _json["nextPageToken"] = nextPageToken; 1991 _json["nextPageToken"] = nextPageToken;
2000 } 1992 }
2001 return _json; 1993 return _json;
2002 } 1994 }
2003 } 1995 }
2004 1996
2005 /** The configuration data for an Ad Exchange direct deal. */ 1997 /// The configuration data for an Ad Exchange direct deal.
2006 class DirectDeal { 1998 class DirectDeal {
2007 /** The account id of the buyer this deal is for. */ 1999 /// The account id of the buyer this deal is for.
2008 core.int accountId; 2000 core.int accountId;
2009 /** The name of the advertiser this deal is for. */ 2001
2002 /// The name of the advertiser this deal is for.
2010 core.String advertiser; 2003 core.String advertiser;
2011 /** Whether the publisher for this deal is eligible for alcohol ads. */ 2004
2005 /// Whether the publisher for this deal is eligible for alcohol ads.
2012 core.bool allowsAlcohol; 2006 core.bool allowsAlcohol;
2013 /** 2007
2014 * The account id that this deal was negotiated for. It is either the buyer or 2008 /// The account id that this deal was negotiated for. It is either the buyer
2015 * the client that this deal was negotiated on behalf of. 2009 /// or the client that this deal was negotiated on behalf of.
2016 */
2017 core.String buyerAccountId; 2010 core.String buyerAccountId;
2018 /** 2011
2019 * The currency code that applies to the fixed_cpm value. If not set then 2012 /// The currency code that applies to the fixed_cpm value. If not set then
2020 * assumed to be USD. 2013 /// assumed to be USD.
2021 */
2022 core.String currencyCode; 2014 core.String currencyCode;
2023 /** 2015
2024 * The deal type such as programmatic reservation or fixed price and so on. 2016 /// The deal type such as programmatic reservation or fixed price and so on.
2025 */
2026 core.String dealTier; 2017 core.String dealTier;
2027 /** 2018
2028 * End time for when this deal stops being active. If not set then this deal 2019 /// End time for when this deal stops being active. If not set then this deal
2029 * is valid until manually disabled by the publisher. In seconds since the 2020 /// is valid until manually disabled by the publisher. In seconds since the
2030 * epoch. 2021 /// epoch.
2031 */
2032 core.String endTime; 2022 core.String endTime;
2033 /** 2023
2034 * The fixed price for this direct deal. In cpm micros of currency according 2024 /// The fixed price for this direct deal. In cpm micros of currency according
2035 * to currency_code. If set, then this deal is eligible for the fixed price 2025 /// to currency_code. If set, then this deal is eligible for the fixed price
2036 * tier of buying (highest priority, pay exactly the configured fixed price). 2026 /// tier of buying (highest priority, pay exactly the configured fixed
2037 */ 2027 /// price).
2038 core.String fixedCpm; 2028 core.String fixedCpm;
2039 /** Deal id. */ 2029
2030 /// Deal id.
2040 core.String id; 2031 core.String id;
2041 /** Resource type. */ 2032
2033 /// Resource type.
2042 core.String kind; 2034 core.String kind;
2043 /** Deal name. */ 2035
2036 /// Deal name.
2044 core.String name; 2037 core.String name;
2045 /** 2038
2046 * The minimum price for this direct deal. In cpm micros of currency according 2039 /// The minimum price for this direct deal. In cpm micros of currency
2047 * to currency_code. If set, then this deal is eligible for the private 2040 /// according to currency_code. If set, then this deal is eligible for the
2048 * exchange tier of buying (below fixed price priority, run as a second price 2041 /// private exchange tier of buying (below fixed price priority, run as a
2049 * auction). 2042 /// second price auction).
2050 */
2051 core.String privateExchangeMinCpm; 2043 core.String privateExchangeMinCpm;
2052 /** 2044
2053 * If true, the publisher has opted to have their blocks ignored when a 2045 /// If true, the publisher has opted to have their blocks ignored when a
2054 * creative is bid with for this deal. 2046 /// creative is bid with for this deal.
2055 */
2056 core.bool publisherBlocksOverriden; 2047 core.bool publisherBlocksOverriden;
2057 /** The name of the publisher offering this direct deal. */ 2048
2049 /// The name of the publisher offering this direct deal.
2058 core.String sellerNetwork; 2050 core.String sellerNetwork;
2059 /** 2051
2060 * Start time for when this deal becomes active. If not set then this deal is 2052 /// Start time for when this deal becomes active. If not set then this deal
2061 * active immediately upon creation. In seconds since the epoch. 2053 /// is active immediately upon creation. In seconds since the epoch.
2062 */
2063 core.String startTime; 2054 core.String startTime;
2064 2055
2065 DirectDeal(); 2056 DirectDeal();
2066 2057
2067 DirectDeal.fromJson(core.Map _json) { 2058 DirectDeal.fromJson(core.Map _json) {
2068 if (_json.containsKey("accountId")) { 2059 if (_json.containsKey("accountId")) {
2069 accountId = _json["accountId"]; 2060 accountId = _json["accountId"];
2070 } 2061 }
2071 if (_json.containsKey("advertiser")) { 2062 if (_json.containsKey("advertiser")) {
2072 advertiser = _json["advertiser"]; 2063 advertiser = _json["advertiser"];
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 } 2097 }
2107 if (_json.containsKey("sellerNetwork")) { 2098 if (_json.containsKey("sellerNetwork")) {
2108 sellerNetwork = _json["sellerNetwork"]; 2099 sellerNetwork = _json["sellerNetwork"];
2109 } 2100 }
2110 if (_json.containsKey("startTime")) { 2101 if (_json.containsKey("startTime")) {
2111 startTime = _json["startTime"]; 2102 startTime = _json["startTime"];
2112 } 2103 }
2113 } 2104 }
2114 2105
2115 core.Map<core.String, core.Object> toJson() { 2106 core.Map<core.String, core.Object> toJson() {
2116 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2107 final core.Map<core.String, core.Object> _json =
2108 new core.Map<core.String, core.Object>();
2117 if (accountId != null) { 2109 if (accountId != null) {
2118 _json["accountId"] = accountId; 2110 _json["accountId"] = accountId;
2119 } 2111 }
2120 if (advertiser != null) { 2112 if (advertiser != null) {
2121 _json["advertiser"] = advertiser; 2113 _json["advertiser"] = advertiser;
2122 } 2114 }
2123 if (allowsAlcohol != null) { 2115 if (allowsAlcohol != null) {
2124 _json["allowsAlcohol"] = allowsAlcohol; 2116 _json["allowsAlcohol"] = allowsAlcohol;
2125 } 2117 }
2126 if (buyerAccountId != null) { 2118 if (buyerAccountId != null) {
(...skipping 29 matching lines...) Expand all
2156 if (sellerNetwork != null) { 2148 if (sellerNetwork != null) {
2157 _json["sellerNetwork"] = sellerNetwork; 2149 _json["sellerNetwork"] = sellerNetwork;
2158 } 2150 }
2159 if (startTime != null) { 2151 if (startTime != null) {
2160 _json["startTime"] = startTime; 2152 _json["startTime"] = startTime;
2161 } 2153 }
2162 return _json; 2154 return _json;
2163 } 2155 }
2164 } 2156 }
2165 2157
2166 /** 2158 /// A direct deals feed lists Direct Deals the Ad Exchange buyer account has
2167 * A direct deals feed lists Direct Deals the Ad Exchange buyer account has 2159 /// access to. This includes direct deals set up for the buyer account as well
2168 * access to. This includes direct deals set up for the buyer account as well as 2160 /// as its merged stream seats.
2169 * its merged stream seats.
2170 */
2171 class DirectDealsList { 2161 class DirectDealsList {
2172 /** A list of direct deals relevant for your account. */ 2162 /// A list of direct deals relevant for your account.
2173 core.List<DirectDeal> directDeals; 2163 core.List<DirectDeal> directDeals;
2174 /** Resource type. */ 2164
2165 /// Resource type.
2175 core.String kind; 2166 core.String kind;
2176 2167
2177 DirectDealsList(); 2168 DirectDealsList();
2178 2169
2179 DirectDealsList.fromJson(core.Map _json) { 2170 DirectDealsList.fromJson(core.Map _json) {
2180 if (_json.containsKey("directDeals")) { 2171 if (_json.containsKey("directDeals")) {
2181 directDeals = _json["directDeals"].map((value) => new DirectDeal.fromJson( value)).toList(); 2172 directDeals = _json["directDeals"]
2173 .map((value) => new DirectDeal.fromJson(value))
2174 .toList();
2182 } 2175 }
2183 if (_json.containsKey("kind")) { 2176 if (_json.containsKey("kind")) {
2184 kind = _json["kind"]; 2177 kind = _json["kind"];
2185 } 2178 }
2186 } 2179 }
2187 2180
2188 core.Map<core.String, core.Object> toJson() { 2181 core.Map<core.String, core.Object> toJson() {
2189 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2182 final core.Map<core.String, core.Object> _json =
2183 new core.Map<core.String, core.Object>();
2190 if (directDeals != null) { 2184 if (directDeals != null) {
2191 _json["directDeals"] = directDeals.map((value) => (value).toJson()).toList (); 2185 _json["directDeals"] =
2186 directDeals.map((value) => (value).toJson()).toList();
2192 } 2187 }
2193 if (kind != null) { 2188 if (kind != null) {
2194 _json["kind"] = kind; 2189 _json["kind"] = kind;
2195 } 2190 }
2196 return _json; 2191 return _json;
2197 } 2192 }
2198 } 2193 }
2199 2194
2200 /** The configuration data for an Ad Exchange performance report list. */ 2195 /// The configuration data for an Ad Exchange performance report list.
2201 class PerformanceReport { 2196 class PerformanceReport {
2202 /** The number of bid responses with an ad. */ 2197 /// The number of bid responses with an ad.
2203 core.double bidRate; 2198 core.double bidRate;
2204 /** The number of bid requests sent to your bidder. */ 2199
2200 /// The number of bid requests sent to your bidder.
2205 core.double bidRequestRate; 2201 core.double bidRequestRate;
2206 /** 2202
2207 * Rate of various prefiltering statuses per match. Please refer to the 2203 /// Rate of various prefiltering statuses per match. Please refer to the
2208 * callout-status-codes.txt file for different statuses. 2204 /// callout-status-codes.txt file for different statuses.
2209 * 2205 ///
2210 * The values for Object must be JSON objects. It can consist of `num`, 2206 /// The values for Object must be JSON objects. It can consist of `num`,
2211 * `String`, `bool` and `null` as well as `Map` and `List` values. 2207 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2212 */
2213 core.List<core.Object> calloutStatusRate; 2208 core.List<core.Object> calloutStatusRate;
2214 /** 2209
2215 * Average QPS for cookie matcher operations. 2210 /// Average QPS for cookie matcher operations.
2216 * 2211 ///
2217 * The values for Object must be JSON objects. It can consist of `num`, 2212 /// The values for Object must be JSON objects. It can consist of `num`,
2218 * `String`, `bool` and `null` as well as `Map` and `List` values. 2213 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2219 */
2220 core.List<core.Object> cookieMatcherStatusRate; 2214 core.List<core.Object> cookieMatcherStatusRate;
2221 /** 2215
2222 * Rate of ads with a given status. Please refer to the 2216 /// Rate of ads with a given status. Please refer to the
2223 * creative-status-codes.txt file for different statuses. 2217 /// creative-status-codes.txt file for different statuses.
2224 * 2218 ///
2225 * The values for Object must be JSON objects. It can consist of `num`, 2219 /// The values for Object must be JSON objects. It can consist of `num`,
2226 * `String`, `bool` and `null` as well as `Map` and `List` values. 2220 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2227 */
2228 core.List<core.Object> creativeStatusRate; 2221 core.List<core.Object> creativeStatusRate;
2229 /** 2222
2230 * The number of bid responses that were filtered due to a policy violation or 2223 /// The number of bid responses that were filtered due to a policy violation
2231 * other errors. 2224 /// or other errors.
2232 */
2233 core.double filteredBidRate; 2225 core.double filteredBidRate;
2234 /** 2226
2235 * Average QPS for hosted match operations. 2227 /// Average QPS for hosted match operations.
2236 * 2228 ///
2237 * The values for Object must be JSON objects. It can consist of `num`, 2229 /// The values for Object must be JSON objects. It can consist of `num`,
2238 * `String`, `bool` and `null` as well as `Map` and `List` values. 2230 /// `String`, `bool` and `null` as well as `Map` and `List` values.
2239 */
2240 core.List<core.Object> hostedMatchStatusRate; 2231 core.List<core.Object> hostedMatchStatusRate;
2241 /** The number of potential queries based on your pretargeting settings. */ 2232
2233 /// The number of potential queries based on your pretargeting settings.
2242 core.double inventoryMatchRate; 2234 core.double inventoryMatchRate;
2243 /** Resource type. */ 2235
2236 /// Resource type.
2244 core.String kind; 2237 core.String kind;
2245 /** 2238
2246 * The 50th percentile round trip latency(ms) as perceived from Google servers 2239 /// The 50th percentile round trip latency(ms) as perceived from Google
2247 * for the duration period covered by the report. 2240 /// servers for the duration period covered by the report.
2248 */
2249 core.double latency50thPercentile; 2241 core.double latency50thPercentile;
2250 /** 2242
2251 * The 85th percentile round trip latency(ms) as perceived from Google servers 2243 /// The 85th percentile round trip latency(ms) as perceived from Google
2252 * for the duration period covered by the report. 2244 /// servers for the duration period covered by the report.
2253 */
2254 core.double latency85thPercentile; 2245 core.double latency85thPercentile;
2255 /** 2246
2256 * The 95th percentile round trip latency(ms) as perceived from Google servers 2247 /// The 95th percentile round trip latency(ms) as perceived from Google
2257 * for the duration period covered by the report. 2248 /// servers for the duration period covered by the report.
2258 */
2259 core.double latency95thPercentile; 2249 core.double latency95thPercentile;
2260 /** Rate of various quota account statuses per quota check. */ 2250
2251 /// Rate of various quota account statuses per quota check.
2261 core.double noQuotaInRegion; 2252 core.double noQuotaInRegion;
2262 /** Rate of various quota account statuses per quota check. */ 2253
2254 /// Rate of various quota account statuses per quota check.
2263 core.double outOfQuota; 2255 core.double outOfQuota;
2264 /** Average QPS for pixel match requests from clients. */ 2256
2257 /// Average QPS for pixel match requests from clients.
2265 core.double pixelMatchRequests; 2258 core.double pixelMatchRequests;
2266 /** Average QPS for pixel match responses from clients. */ 2259
2260 /// Average QPS for pixel match responses from clients.
2267 core.double pixelMatchResponses; 2261 core.double pixelMatchResponses;
2268 /** The configured quota limits for this account. */ 2262
2263 /// The configured quota limits for this account.
2269 core.double quotaConfiguredLimit; 2264 core.double quotaConfiguredLimit;
2270 /** The throttled quota limits for this account. */ 2265
2266 /// The throttled quota limits for this account.
2271 core.double quotaThrottledLimit; 2267 core.double quotaThrottledLimit;
2272 /** The trading location of this data. */ 2268
2269 /// The trading location of this data.
2273 core.String region; 2270 core.String region;
2274 /** 2271
2275 * The number of properly formed bid responses received by our servers within 2272 /// The number of properly formed bid responses received by our servers
2276 * the deadline. 2273 /// within the deadline.
2277 */
2278 core.double successfulRequestRate; 2274 core.double successfulRequestRate;
2279 /** The unix timestamp of the starting time of this performance data. */ 2275
2276 /// The unix timestamp of the starting time of this performance data.
2280 core.String timestamp; 2277 core.String timestamp;
2281 /** 2278
2282 * The number of bid responses that were unsuccessful due to timeouts, 2279 /// The number of bid responses that were unsuccessful due to timeouts,
2283 * incorrect formatting, etc. 2280 /// incorrect formatting, etc.
2284 */
2285 core.double unsuccessfulRequestRate; 2281 core.double unsuccessfulRequestRate;
2286 2282
2287 PerformanceReport(); 2283 PerformanceReport();
2288 2284
2289 PerformanceReport.fromJson(core.Map _json) { 2285 PerformanceReport.fromJson(core.Map _json) {
2290 if (_json.containsKey("bidRate")) { 2286 if (_json.containsKey("bidRate")) {
2291 bidRate = _json["bidRate"]; 2287 bidRate = _json["bidRate"];
2292 } 2288 }
2293 if (_json.containsKey("bidRequestRate")) { 2289 if (_json.containsKey("bidRequestRate")) {
2294 bidRequestRate = _json["bidRequestRate"]; 2290 bidRequestRate = _json["bidRequestRate"];
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 } 2345 }
2350 if (_json.containsKey("timestamp")) { 2346 if (_json.containsKey("timestamp")) {
2351 timestamp = _json["timestamp"]; 2347 timestamp = _json["timestamp"];
2352 } 2348 }
2353 if (_json.containsKey("unsuccessfulRequestRate")) { 2349 if (_json.containsKey("unsuccessfulRequestRate")) {
2354 unsuccessfulRequestRate = _json["unsuccessfulRequestRate"]; 2350 unsuccessfulRequestRate = _json["unsuccessfulRequestRate"];
2355 } 2351 }
2356 } 2352 }
2357 2353
2358 core.Map<core.String, core.Object> toJson() { 2354 core.Map<core.String, core.Object> toJson() {
2359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2355 final core.Map<core.String, core.Object> _json =
2356 new core.Map<core.String, core.Object>();
2360 if (bidRate != null) { 2357 if (bidRate != null) {
2361 _json["bidRate"] = bidRate; 2358 _json["bidRate"] = bidRate;
2362 } 2359 }
2363 if (bidRequestRate != null) { 2360 if (bidRequestRate != null) {
2364 _json["bidRequestRate"] = bidRequestRate; 2361 _json["bidRequestRate"] = bidRequestRate;
2365 } 2362 }
2366 if (calloutStatusRate != null) { 2363 if (calloutStatusRate != null) {
2367 _json["calloutStatusRate"] = calloutStatusRate; 2364 _json["calloutStatusRate"] = calloutStatusRate;
2368 } 2365 }
2369 if (cookieMatcherStatusRate != null) { 2366 if (cookieMatcherStatusRate != null) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 if (timestamp != null) { 2417 if (timestamp != null) {
2421 _json["timestamp"] = timestamp; 2418 _json["timestamp"] = timestamp;
2422 } 2419 }
2423 if (unsuccessfulRequestRate != null) { 2420 if (unsuccessfulRequestRate != null) {
2424 _json["unsuccessfulRequestRate"] = unsuccessfulRequestRate; 2421 _json["unsuccessfulRequestRate"] = unsuccessfulRequestRate;
2425 } 2422 }
2426 return _json; 2423 return _json;
2427 } 2424 }
2428 } 2425 }
2429 2426
2430 /** The configuration data for an Ad Exchange performance report list. */ 2427 /// The configuration data for an Ad Exchange performance report list.
2431 class PerformanceReportList { 2428 class PerformanceReportList {
2432 /** Resource type. */ 2429 /// Resource type.
2433 core.String kind; 2430 core.String kind;
2434 /** A list of performance reports relevant for the account. */ 2431
2432 /// A list of performance reports relevant for the account.
2435 core.List<PerformanceReport> performanceReport; 2433 core.List<PerformanceReport> performanceReport;
2436 2434
2437 PerformanceReportList(); 2435 PerformanceReportList();
2438 2436
2439 PerformanceReportList.fromJson(core.Map _json) { 2437 PerformanceReportList.fromJson(core.Map _json) {
2440 if (_json.containsKey("kind")) { 2438 if (_json.containsKey("kind")) {
2441 kind = _json["kind"]; 2439 kind = _json["kind"];
2442 } 2440 }
2443 if (_json.containsKey("performanceReport")) { 2441 if (_json.containsKey("performanceReport")) {
2444 performanceReport = _json["performanceReport"].map((value) => new Performa nceReport.fromJson(value)).toList(); 2442 performanceReport = _json["performanceReport"]
2443 .map((value) => new PerformanceReport.fromJson(value))
2444 .toList();
2445 } 2445 }
2446 } 2446 }
2447 2447
2448 core.Map<core.String, core.Object> toJson() { 2448 core.Map<core.String, core.Object> toJson() {
2449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2449 final core.Map<core.String, core.Object> _json =
2450 new core.Map<core.String, core.Object>();
2450 if (kind != null) { 2451 if (kind != null) {
2451 _json["kind"] = kind; 2452 _json["kind"] = kind;
2452 } 2453 }
2453 if (performanceReport != null) { 2454 if (performanceReport != null) {
2454 _json["performanceReport"] = performanceReport.map((value) => (value).toJs on()).toList(); 2455 _json["performanceReport"] =
2456 performanceReport.map((value) => (value).toJson()).toList();
2455 } 2457 }
2456 return _json; 2458 return _json;
2457 } 2459 }
2458 } 2460 }
2459 2461
2460 class PretargetingConfigDimensions { 2462 class PretargetingConfigDimensions {
2461 /** Height in pixels. */ 2463 /// Height in pixels.
2462 core.String height; 2464 core.String height;
2463 /** Width in pixels. */ 2465
2466 /// Width in pixels.
2464 core.String width; 2467 core.String width;
2465 2468
2466 PretargetingConfigDimensions(); 2469 PretargetingConfigDimensions();
2467 2470
2468 PretargetingConfigDimensions.fromJson(core.Map _json) { 2471 PretargetingConfigDimensions.fromJson(core.Map _json) {
2469 if (_json.containsKey("height")) { 2472 if (_json.containsKey("height")) {
2470 height = _json["height"]; 2473 height = _json["height"];
2471 } 2474 }
2472 if (_json.containsKey("width")) { 2475 if (_json.containsKey("width")) {
2473 width = _json["width"]; 2476 width = _json["width"];
2474 } 2477 }
2475 } 2478 }
2476 2479
2477 core.Map<core.String, core.Object> toJson() { 2480 core.Map<core.String, core.Object> toJson() {
2478 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2481 final core.Map<core.String, core.Object> _json =
2482 new core.Map<core.String, core.Object>();
2479 if (height != null) { 2483 if (height != null) {
2480 _json["height"] = height; 2484 _json["height"] = height;
2481 } 2485 }
2482 if (width != null) { 2486 if (width != null) {
2483 _json["width"] = width; 2487 _json["width"] = width;
2484 } 2488 }
2485 return _json; 2489 return _json;
2486 } 2490 }
2487 } 2491 }
2488 2492
2489 class PretargetingConfigExcludedPlacements { 2493 class PretargetingConfigExcludedPlacements {
2490 /** 2494 /// The value of the placement. Interpretation depends on the placement type,
2491 * The value of the placement. Interpretation depends on the placement type, 2495 /// e.g. URL for a site placement, channel name for a channel placement, app
2492 * e.g. URL for a site placement, channel name for a channel placement, app id 2496 /// id for a mobile app placement.
2493 * for a mobile app placement.
2494 */
2495 core.String token; 2497 core.String token;
2496 /** The type of the placement. */ 2498
2499 /// The type of the placement.
2497 core.String type; 2500 core.String type;
2498 2501
2499 PretargetingConfigExcludedPlacements(); 2502 PretargetingConfigExcludedPlacements();
2500 2503
2501 PretargetingConfigExcludedPlacements.fromJson(core.Map _json) { 2504 PretargetingConfigExcludedPlacements.fromJson(core.Map _json) {
2502 if (_json.containsKey("token")) { 2505 if (_json.containsKey("token")) {
2503 token = _json["token"]; 2506 token = _json["token"];
2504 } 2507 }
2505 if (_json.containsKey("type")) { 2508 if (_json.containsKey("type")) {
2506 type = _json["type"]; 2509 type = _json["type"];
2507 } 2510 }
2508 } 2511 }
2509 2512
2510 core.Map<core.String, core.Object> toJson() { 2513 core.Map<core.String, core.Object> toJson() {
2511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2514 final core.Map<core.String, core.Object> _json =
2515 new core.Map<core.String, core.Object>();
2512 if (token != null) { 2516 if (token != null) {
2513 _json["token"] = token; 2517 _json["token"] = token;
2514 } 2518 }
2515 if (type != null) { 2519 if (type != null) {
2516 _json["type"] = type; 2520 _json["type"] = type;
2517 } 2521 }
2518 return _json; 2522 return _json;
2519 } 2523 }
2520 } 2524 }
2521 2525
2522 class PretargetingConfigPlacements { 2526 class PretargetingConfigPlacements {
2523 /** 2527 /// The value of the placement. Interpretation depends on the placement type,
2524 * The value of the placement. Interpretation depends on the placement type, 2528 /// e.g. URL for a site placement, channel name for a channel placement, app
2525 * e.g. URL for a site placement, channel name for a channel placement, app id 2529 /// id for a mobile app placement.
2526 * for a mobile app placement.
2527 */
2528 core.String token; 2530 core.String token;
2529 /** The type of the placement. */ 2531
2532 /// The type of the placement.
2530 core.String type; 2533 core.String type;
2531 2534
2532 PretargetingConfigPlacements(); 2535 PretargetingConfigPlacements();
2533 2536
2534 PretargetingConfigPlacements.fromJson(core.Map _json) { 2537 PretargetingConfigPlacements.fromJson(core.Map _json) {
2535 if (_json.containsKey("token")) { 2538 if (_json.containsKey("token")) {
2536 token = _json["token"]; 2539 token = _json["token"];
2537 } 2540 }
2538 if (_json.containsKey("type")) { 2541 if (_json.containsKey("type")) {
2539 type = _json["type"]; 2542 type = _json["type"];
2540 } 2543 }
2541 } 2544 }
2542 2545
2543 core.Map<core.String, core.Object> toJson() { 2546 core.Map<core.String, core.Object> toJson() {
2544 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2547 final core.Map<core.String, core.Object> _json =
2548 new core.Map<core.String, core.Object>();
2545 if (token != null) { 2549 if (token != null) {
2546 _json["token"] = token; 2550 _json["token"] = token;
2547 } 2551 }
2548 if (type != null) { 2552 if (type != null) {
2549 _json["type"] = type; 2553 _json["type"] = type;
2550 } 2554 }
2551 return _json; 2555 return _json;
2552 } 2556 }
2553 } 2557 }
2554 2558
2555 class PretargetingConfig { 2559 class PretargetingConfig {
2556 /** 2560 /// The id for billing purposes, provided for reference. Leave this field
2557 * The id for billing purposes, provided for reference. Leave this field blank 2561 /// blank for insert requests; the id will be generated automatically.
2558 * for insert requests; the id will be generated automatically.
2559 */
2560 core.String billingId; 2562 core.String billingId;
2561 /** 2563
2562 * The config id; generated automatically. Leave this field blank for insert 2564 /// The config id; generated automatically. Leave this field blank for insert
2563 * requests. 2565 /// requests.
2564 */
2565 core.String configId; 2566 core.String configId;
2566 /** The name of the config. Must be unique. Required for all requests. */ 2567
2568 /// The name of the config. Must be unique. Required for all requests.
2567 core.String configName; 2569 core.String configName;
2568 /** 2570
2569 * List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or 2571 /// List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or
2570 * PRETARGETING_CREATIVE_TYPE_VIDEO. 2572 /// PRETARGETING_CREATIVE_TYPE_VIDEO.
2571 */
2572 core.List<core.String> creativeType; 2573 core.List<core.String> creativeType;
2573 /** 2574
2574 * Requests which allow one of these (width, height) pairs will match. All 2575 /// Requests which allow one of these (width, height) pairs will match. All
2575 * pairs must be supported ad dimensions. 2576 /// pairs must be supported ad dimensions.
2576 */
2577 core.List<PretargetingConfigDimensions> dimensions; 2577 core.List<PretargetingConfigDimensions> dimensions;
2578 /** 2578
2579 * Requests with any of these content labels will not match. Values are from 2579 /// Requests with any of these content labels will not match. Values are from
2580 * content-labels.txt in the downloadable files section. 2580 /// content-labels.txt in the downloadable files section.
2581 */
2582 core.List<core.String> excludedContentLabels; 2581 core.List<core.String> excludedContentLabels;
2583 /** Requests containing any of these geo criteria ids will not match. */ 2582
2583 /// Requests containing any of these geo criteria ids will not match.
2584 core.List<core.String> excludedGeoCriteriaIds; 2584 core.List<core.String> excludedGeoCriteriaIds;
2585 /** Requests containing any of these placements will not match. */ 2585
2586 /// Requests containing any of these placements will not match.
2586 core.List<PretargetingConfigExcludedPlacements> excludedPlacements; 2587 core.List<PretargetingConfigExcludedPlacements> excludedPlacements;
2587 /** Requests containing any of these users list ids will not match. */ 2588
2589 /// Requests containing any of these users list ids will not match.
2588 core.List<core.String> excludedUserLists; 2590 core.List<core.String> excludedUserLists;
2589 /** 2591
2590 * Requests containing any of these vertical ids will not match. Values are 2592 /// Requests containing any of these vertical ids will not match. Values are
2591 * from the publisher-verticals.txt file in the downloadable files section. 2593 /// from the publisher-verticals.txt file in the downloadable files section.
2592 */
2593 core.List<core.String> excludedVerticals; 2594 core.List<core.String> excludedVerticals;
2594 /** Requests containing any of these geo criteria ids will match. */ 2595
2596 /// Requests containing any of these geo criteria ids will match.
2595 core.List<core.String> geoCriteriaIds; 2597 core.List<core.String> geoCriteriaIds;
2596 /** Whether this config is active. Required for all requests. */ 2598
2599 /// Whether this config is active. Required for all requests.
2597 core.bool isActive; 2600 core.bool isActive;
2598 /** The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". */ 2601
2602 /// The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig".
2599 core.String kind; 2603 core.String kind;
2600 /** Request containing any of these language codes will match. */ 2604
2605 /// Request containing any of these language codes will match.
2601 core.List<core.String> languages; 2606 core.List<core.String> languages;
2602 /** 2607
2603 * Requests containing any of these mobile carrier ids will match. Values are 2608 /// Requests containing any of these mobile carrier ids will match. Values
2604 * from mobile-carriers.csv in the downloadable files section. 2609 /// are from mobile-carriers.csv in the downloadable files section.
2605 */
2606 core.List<core.String> mobileCarriers; 2610 core.List<core.String> mobileCarriers;
2607 /** 2611
2608 * Requests containing any of these mobile device ids will match. Values are 2612 /// Requests containing any of these mobile device ids will match. Values are
2609 * from mobile-devices.csv in the downloadable files section. 2613 /// from mobile-devices.csv in the downloadable files section.
2610 */
2611 core.List<core.String> mobileDevices; 2614 core.List<core.String> mobileDevices;
2612 /** 2615
2613 * Requests containing any of these mobile operating system version ids will 2616 /// Requests containing any of these mobile operating system version ids will
2614 * match. Values are from mobile-os.csv in the downloadable files section. 2617 /// match. Values are from mobile-os.csv in the downloadable files section.
2615 */
2616 core.List<core.String> mobileOperatingSystemVersions; 2618 core.List<core.String> mobileOperatingSystemVersions;
2617 /** Requests containing any of these placements will match. */ 2619
2620 /// Requests containing any of these placements will match.
2618 core.List<PretargetingConfigPlacements> placements; 2621 core.List<PretargetingConfigPlacements> placements;
2619 /** 2622
2620 * Requests matching any of these platforms will match. Possible values are 2623 /// Requests matching any of these platforms will match. Possible values are
2621 * PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and 2624 /// PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and
2622 * PRETARGETING_PLATFORM_TABLET. 2625 /// PRETARGETING_PLATFORM_TABLET.
2623 */
2624 core.List<core.String> platforms; 2626 core.List<core.String> platforms;
2625 /** 2627
2626 * Creative attributes should be declared here if all creatives corresponding 2628 /// Creative attributes should be declared here if all creatives
2627 * to this pretargeting configuration have that creative attribute. Values are 2629 /// corresponding to this pretargeting configuration have that creative
2628 * from pretargetable-creative-attributes.txt in the downloadable files 2630 /// attribute. Values are from pretargetable-creative-attributes.txt in the
2629 * section. 2631 /// downloadable files section.
2630 */
2631 core.List<core.String> supportedCreativeAttributes; 2632 core.List<core.String> supportedCreativeAttributes;
2632 /** Requests containing any of these user list ids will match. */ 2633
2634 /// Requests containing any of these user list ids will match.
2633 core.List<core.String> userLists; 2635 core.List<core.String> userLists;
2634 /** 2636
2635 * Requests that allow any of these vendor ids will match. Values are from 2637 /// Requests that allow any of these vendor ids will match. Values are from
2636 * vendors.txt in the downloadable files section. 2638 /// vendors.txt in the downloadable files section.
2637 */
2638 core.List<core.String> vendorTypes; 2639 core.List<core.String> vendorTypes;
2639 /** Requests containing any of these vertical ids will match. */ 2640
2641 /// Requests containing any of these vertical ids will match.
2640 core.List<core.String> verticals; 2642 core.List<core.String> verticals;
2641 2643
2642 PretargetingConfig(); 2644 PretargetingConfig();
2643 2645
2644 PretargetingConfig.fromJson(core.Map _json) { 2646 PretargetingConfig.fromJson(core.Map _json) {
2645 if (_json.containsKey("billingId")) { 2647 if (_json.containsKey("billingId")) {
2646 billingId = _json["billingId"]; 2648 billingId = _json["billingId"];
2647 } 2649 }
2648 if (_json.containsKey("configId")) { 2650 if (_json.containsKey("configId")) {
2649 configId = _json["configId"]; 2651 configId = _json["configId"];
2650 } 2652 }
2651 if (_json.containsKey("configName")) { 2653 if (_json.containsKey("configName")) {
2652 configName = _json["configName"]; 2654 configName = _json["configName"];
2653 } 2655 }
2654 if (_json.containsKey("creativeType")) { 2656 if (_json.containsKey("creativeType")) {
2655 creativeType = _json["creativeType"]; 2657 creativeType = _json["creativeType"];
2656 } 2658 }
2657 if (_json.containsKey("dimensions")) { 2659 if (_json.containsKey("dimensions")) {
2658 dimensions = _json["dimensions"].map((value) => new PretargetingConfigDime nsions.fromJson(value)).toList(); 2660 dimensions = _json["dimensions"]
2661 .map((value) => new PretargetingConfigDimensions.fromJson(value))
2662 .toList();
2659 } 2663 }
2660 if (_json.containsKey("excludedContentLabels")) { 2664 if (_json.containsKey("excludedContentLabels")) {
2661 excludedContentLabels = _json["excludedContentLabels"]; 2665 excludedContentLabels = _json["excludedContentLabels"];
2662 } 2666 }
2663 if (_json.containsKey("excludedGeoCriteriaIds")) { 2667 if (_json.containsKey("excludedGeoCriteriaIds")) {
2664 excludedGeoCriteriaIds = _json["excludedGeoCriteriaIds"]; 2668 excludedGeoCriteriaIds = _json["excludedGeoCriteriaIds"];
2665 } 2669 }
2666 if (_json.containsKey("excludedPlacements")) { 2670 if (_json.containsKey("excludedPlacements")) {
2667 excludedPlacements = _json["excludedPlacements"].map((value) => new Pretar getingConfigExcludedPlacements.fromJson(value)).toList(); 2671 excludedPlacements = _json["excludedPlacements"]
2672 .map((value) =>
2673 new PretargetingConfigExcludedPlacements.fromJson(value))
2674 .toList();
2668 } 2675 }
2669 if (_json.containsKey("excludedUserLists")) { 2676 if (_json.containsKey("excludedUserLists")) {
2670 excludedUserLists = _json["excludedUserLists"]; 2677 excludedUserLists = _json["excludedUserLists"];
2671 } 2678 }
2672 if (_json.containsKey("excludedVerticals")) { 2679 if (_json.containsKey("excludedVerticals")) {
2673 excludedVerticals = _json["excludedVerticals"]; 2680 excludedVerticals = _json["excludedVerticals"];
2674 } 2681 }
2675 if (_json.containsKey("geoCriteriaIds")) { 2682 if (_json.containsKey("geoCriteriaIds")) {
2676 geoCriteriaIds = _json["geoCriteriaIds"]; 2683 geoCriteriaIds = _json["geoCriteriaIds"];
2677 } 2684 }
2678 if (_json.containsKey("isActive")) { 2685 if (_json.containsKey("isActive")) {
2679 isActive = _json["isActive"]; 2686 isActive = _json["isActive"];
2680 } 2687 }
2681 if (_json.containsKey("kind")) { 2688 if (_json.containsKey("kind")) {
2682 kind = _json["kind"]; 2689 kind = _json["kind"];
2683 } 2690 }
2684 if (_json.containsKey("languages")) { 2691 if (_json.containsKey("languages")) {
2685 languages = _json["languages"]; 2692 languages = _json["languages"];
2686 } 2693 }
2687 if (_json.containsKey("mobileCarriers")) { 2694 if (_json.containsKey("mobileCarriers")) {
2688 mobileCarriers = _json["mobileCarriers"]; 2695 mobileCarriers = _json["mobileCarriers"];
2689 } 2696 }
2690 if (_json.containsKey("mobileDevices")) { 2697 if (_json.containsKey("mobileDevices")) {
2691 mobileDevices = _json["mobileDevices"]; 2698 mobileDevices = _json["mobileDevices"];
2692 } 2699 }
2693 if (_json.containsKey("mobileOperatingSystemVersions")) { 2700 if (_json.containsKey("mobileOperatingSystemVersions")) {
2694 mobileOperatingSystemVersions = _json["mobileOperatingSystemVersions"]; 2701 mobileOperatingSystemVersions = _json["mobileOperatingSystemVersions"];
2695 } 2702 }
2696 if (_json.containsKey("placements")) { 2703 if (_json.containsKey("placements")) {
2697 placements = _json["placements"].map((value) => new PretargetingConfigPlac ements.fromJson(value)).toList(); 2704 placements = _json["placements"]
2705 .map((value) => new PretargetingConfigPlacements.fromJson(value))
2706 .toList();
2698 } 2707 }
2699 if (_json.containsKey("platforms")) { 2708 if (_json.containsKey("platforms")) {
2700 platforms = _json["platforms"]; 2709 platforms = _json["platforms"];
2701 } 2710 }
2702 if (_json.containsKey("supportedCreativeAttributes")) { 2711 if (_json.containsKey("supportedCreativeAttributes")) {
2703 supportedCreativeAttributes = _json["supportedCreativeAttributes"]; 2712 supportedCreativeAttributes = _json["supportedCreativeAttributes"];
2704 } 2713 }
2705 if (_json.containsKey("userLists")) { 2714 if (_json.containsKey("userLists")) {
2706 userLists = _json["userLists"]; 2715 userLists = _json["userLists"];
2707 } 2716 }
2708 if (_json.containsKey("vendorTypes")) { 2717 if (_json.containsKey("vendorTypes")) {
2709 vendorTypes = _json["vendorTypes"]; 2718 vendorTypes = _json["vendorTypes"];
2710 } 2719 }
2711 if (_json.containsKey("verticals")) { 2720 if (_json.containsKey("verticals")) {
2712 verticals = _json["verticals"]; 2721 verticals = _json["verticals"];
2713 } 2722 }
2714 } 2723 }
2715 2724
2716 core.Map<core.String, core.Object> toJson() { 2725 core.Map<core.String, core.Object> toJson() {
2717 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2726 final core.Map<core.String, core.Object> _json =
2727 new core.Map<core.String, core.Object>();
2718 if (billingId != null) { 2728 if (billingId != null) {
2719 _json["billingId"] = billingId; 2729 _json["billingId"] = billingId;
2720 } 2730 }
2721 if (configId != null) { 2731 if (configId != null) {
2722 _json["configId"] = configId; 2732 _json["configId"] = configId;
2723 } 2733 }
2724 if (configName != null) { 2734 if (configName != null) {
2725 _json["configName"] = configName; 2735 _json["configName"] = configName;
2726 } 2736 }
2727 if (creativeType != null) { 2737 if (creativeType != null) {
2728 _json["creativeType"] = creativeType; 2738 _json["creativeType"] = creativeType;
2729 } 2739 }
2730 if (dimensions != null) { 2740 if (dimensions != null) {
2731 _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList() ; 2741 _json["dimensions"] =
2742 dimensions.map((value) => (value).toJson()).toList();
2732 } 2743 }
2733 if (excludedContentLabels != null) { 2744 if (excludedContentLabels != null) {
2734 _json["excludedContentLabels"] = excludedContentLabels; 2745 _json["excludedContentLabels"] = excludedContentLabels;
2735 } 2746 }
2736 if (excludedGeoCriteriaIds != null) { 2747 if (excludedGeoCriteriaIds != null) {
2737 _json["excludedGeoCriteriaIds"] = excludedGeoCriteriaIds; 2748 _json["excludedGeoCriteriaIds"] = excludedGeoCriteriaIds;
2738 } 2749 }
2739 if (excludedPlacements != null) { 2750 if (excludedPlacements != null) {
2740 _json["excludedPlacements"] = excludedPlacements.map((value) => (value).to Json()).toList(); 2751 _json["excludedPlacements"] =
2752 excludedPlacements.map((value) => (value).toJson()).toList();
2741 } 2753 }
2742 if (excludedUserLists != null) { 2754 if (excludedUserLists != null) {
2743 _json["excludedUserLists"] = excludedUserLists; 2755 _json["excludedUserLists"] = excludedUserLists;
2744 } 2756 }
2745 if (excludedVerticals != null) { 2757 if (excludedVerticals != null) {
2746 _json["excludedVerticals"] = excludedVerticals; 2758 _json["excludedVerticals"] = excludedVerticals;
2747 } 2759 }
2748 if (geoCriteriaIds != null) { 2760 if (geoCriteriaIds != null) {
2749 _json["geoCriteriaIds"] = geoCriteriaIds; 2761 _json["geoCriteriaIds"] = geoCriteriaIds;
2750 } 2762 }
2751 if (isActive != null) { 2763 if (isActive != null) {
2752 _json["isActive"] = isActive; 2764 _json["isActive"] = isActive;
2753 } 2765 }
2754 if (kind != null) { 2766 if (kind != null) {
2755 _json["kind"] = kind; 2767 _json["kind"] = kind;
2756 } 2768 }
2757 if (languages != null) { 2769 if (languages != null) {
2758 _json["languages"] = languages; 2770 _json["languages"] = languages;
2759 } 2771 }
2760 if (mobileCarriers != null) { 2772 if (mobileCarriers != null) {
2761 _json["mobileCarriers"] = mobileCarriers; 2773 _json["mobileCarriers"] = mobileCarriers;
2762 } 2774 }
2763 if (mobileDevices != null) { 2775 if (mobileDevices != null) {
2764 _json["mobileDevices"] = mobileDevices; 2776 _json["mobileDevices"] = mobileDevices;
2765 } 2777 }
2766 if (mobileOperatingSystemVersions != null) { 2778 if (mobileOperatingSystemVersions != null) {
2767 _json["mobileOperatingSystemVersions"] = mobileOperatingSystemVersions; 2779 _json["mobileOperatingSystemVersions"] = mobileOperatingSystemVersions;
2768 } 2780 }
2769 if (placements != null) { 2781 if (placements != null) {
2770 _json["placements"] = placements.map((value) => (value).toJson()).toList() ; 2782 _json["placements"] =
2783 placements.map((value) => (value).toJson()).toList();
2771 } 2784 }
2772 if (platforms != null) { 2785 if (platforms != null) {
2773 _json["platforms"] = platforms; 2786 _json["platforms"] = platforms;
2774 } 2787 }
2775 if (supportedCreativeAttributes != null) { 2788 if (supportedCreativeAttributes != null) {
2776 _json["supportedCreativeAttributes"] = supportedCreativeAttributes; 2789 _json["supportedCreativeAttributes"] = supportedCreativeAttributes;
2777 } 2790 }
2778 if (userLists != null) { 2791 if (userLists != null) {
2779 _json["userLists"] = userLists; 2792 _json["userLists"] = userLists;
2780 } 2793 }
2781 if (vendorTypes != null) { 2794 if (vendorTypes != null) {
2782 _json["vendorTypes"] = vendorTypes; 2795 _json["vendorTypes"] = vendorTypes;
2783 } 2796 }
2784 if (verticals != null) { 2797 if (verticals != null) {
2785 _json["verticals"] = verticals; 2798 _json["verticals"] = verticals;
2786 } 2799 }
2787 return _json; 2800 return _json;
2788 } 2801 }
2789 } 2802 }
2790 2803
2791 class PretargetingConfigList { 2804 class PretargetingConfigList {
2792 /** A list of pretargeting configs */ 2805 /// A list of pretargeting configs
2793 core.List<PretargetingConfig> items; 2806 core.List<PretargetingConfig> items;
2794 /** Resource type. */ 2807
2808 /// Resource type.
2795 core.String kind; 2809 core.String kind;
2796 2810
2797 PretargetingConfigList(); 2811 PretargetingConfigList();
2798 2812
2799 PretargetingConfigList.fromJson(core.Map _json) { 2813 PretargetingConfigList.fromJson(core.Map _json) {
2800 if (_json.containsKey("items")) { 2814 if (_json.containsKey("items")) {
2801 items = _json["items"].map((value) => new PretargetingConfig.fromJson(valu e)).toList(); 2815 items = _json["items"]
2816 .map((value) => new PretargetingConfig.fromJson(value))
2817 .toList();
2802 } 2818 }
2803 if (_json.containsKey("kind")) { 2819 if (_json.containsKey("kind")) {
2804 kind = _json["kind"]; 2820 kind = _json["kind"];
2805 } 2821 }
2806 } 2822 }
2807 2823
2808 core.Map<core.String, core.Object> toJson() { 2824 core.Map<core.String, core.Object> toJson() {
2809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2825 final core.Map<core.String, core.Object> _json =
2826 new core.Map<core.String, core.Object>();
2810 if (items != null) { 2827 if (items != null) {
2811 _json["items"] = items.map((value) => (value).toJson()).toList(); 2828 _json["items"] = items.map((value) => (value).toJson()).toList();
2812 } 2829 }
2813 if (kind != null) { 2830 if (kind != null) {
2814 _json["kind"] = kind; 2831 _json["kind"] = kind;
2815 } 2832 }
2816 return _json; 2833 return _json;
2817 } 2834 }
2818 } 2835 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/acceleratedmobilepageurl/v1.dart ('k') | generated/googleapis/lib/adexchangebuyer/v1_4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698