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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/adexchangeseller/v1_1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project).
2
1 library googleapis.adexchangebuyer.v1_3; 3 library googleapis.adexchangebuyer.v1_3;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError;
16
17 const core.String USER_AGENT = 'dart-api-client adexchangebuyer/v1.3';
15 18
16 /** 19 /**
17 * Accesses your bidding-account information, submits creatives for validation, 20 * Accesses your bidding-account information, submits creatives for validation,
18 * finds available direct deals, and retrieves performance reports. 21 * finds available direct deals, and retrieves performance reports.
19 */ 22 */
20 class AdexchangebuyerApi { 23 class AdexchangebuyerApi {
21 /** Manage your Ad Exchange buyer account configuration */ 24 /** Manage your Ad Exchange buyer account configuration */
22 static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchang e.buyer"; 25 static const AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchang e.buyer";
23 26
24 27
25 final common_internal.ApiRequester _requester; 28 final commons.ApiRequester _requester;
26 29
27 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
28 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste r); 31 BillingInfoResourceApi get billingInfo => new BillingInfoResourceApi(_requeste r);
29 BudgetResourceApi get budget => new BudgetResourceApi(_requester); 32 BudgetResourceApi get budget => new BudgetResourceApi(_requester);
30 CreativesResourceApi get creatives => new CreativesResourceApi(_requester); 33 CreativesResourceApi get creatives => new CreativesResourceApi(_requester);
31 DirectDealsResourceApi get directDeals => new DirectDealsResourceApi(_requeste r); 34 DirectDealsResourceApi get directDeals => new DirectDealsResourceApi(_requeste r);
32 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes ourceApi(_requester); 35 PerformanceReportResourceApi get performanceReport => new PerformanceReportRes ourceApi(_requester);
33 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig ResourceApi(_requester); 36 PretargetingConfigResourceApi get pretargetingConfig => new PretargetingConfig ResourceApi(_requester);
34 37
35 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "adexchangebuyer/v1.3/"}) : 38 AdexchangebuyerApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "adexchangebuyer/v1.3/"}) :
36 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
37 } 40 }
38 41
39 42
40 /** Not documented yet. */
41 class AccountsResourceApi { 43 class AccountsResourceApi {
42 final common_internal.ApiRequester _requester; 44 final commons.ApiRequester _requester;
43 45
44 AccountsResourceApi(common_internal.ApiRequester client) : 46 AccountsResourceApi(commons.ApiRequester client) :
45 _requester = client; 47 _requester = client;
46 48
47 /** 49 /**
48 * Gets one account by ID. 50 * Gets one account by ID.
49 * 51 *
50 * Request parameters: 52 * Request parameters:
51 * 53 *
52 * [id] - The account id 54 * [id] - The account id
53 * 55 *
54 * Completes with a [Account]. 56 * Completes with a [Account].
55 * 57 *
56 * Completes with a [common.ApiRequestError] if the API endpoint returned an 58 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
57 * error. 59 * error.
58 * 60 *
59 * If the used [http.Client] completes with an error when making a REST call, 61 * If the used [http.Client] completes with an error when making a REST call,
60 * this method will complete with the same error. 62 * this method will complete with the same error.
61 */ 63 */
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 = common.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 76
75 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$id'); 77 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
76 78
77 var _response = _requester.request(_url, 79 var _response = _requester.request(_url,
78 "GET", 80 "GET",
79 body: _body, 81 body: _body,
80 queryParams: _queryParams, 82 queryParams: _queryParams,
81 uploadOptions: _uploadOptions, 83 uploadOptions: _uploadOptions,
82 uploadMedia: _uploadMedia, 84 uploadMedia: _uploadMedia,
83 downloadOptions: _downloadOptions); 85 downloadOptions: _downloadOptions);
84 return _response.then((data) => new Account.fromJson(data)); 86 return _response.then((data) => new Account.fromJson(data));
85 } 87 }
86 88
87 /** 89 /**
88 * Retrieves the authenticated user's list of accounts. 90 * Retrieves the authenticated user's list of accounts.
89 * 91 *
90 * Request parameters: 92 * Request parameters:
91 * 93 *
92 * Completes with a [AccountsList]. 94 * Completes with a [AccountsList].
93 * 95 *
94 * Completes with a [common.ApiRequestError] if the API endpoint returned an 96 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
95 * error. 97 * error.
96 * 98 *
97 * If the used [http.Client] completes with an error when making a REST call, 99 * If the used [http.Client] completes with an error when making a REST call,
98 * this method will complete with the same error. 100 * this method will complete with the same error.
99 */ 101 */
100 async.Future<AccountsList> list() { 102 async.Future<AccountsList> list() {
101 var _url = null; 103 var _url = null;
102 var _queryParams = new core.Map(); 104 var _queryParams = new core.Map();
103 var _uploadMedia = null; 105 var _uploadMedia = null;
104 var _uploadOptions = null; 106 var _uploadOptions = null;
105 var _downloadOptions = common.DownloadOptions.Metadata; 107 var _downloadOptions = commons.DownloadOptions.Metadata;
106 var _body = null; 108 var _body = null;
107 109
108 110
109 111
110 _url = 'accounts'; 112 _url = 'accounts';
111 113
112 var _response = _requester.request(_url, 114 var _response = _requester.request(_url,
113 "GET", 115 "GET",
114 body: _body, 116 body: _body,
115 queryParams: _queryParams, 117 queryParams: _queryParams,
116 uploadOptions: _uploadOptions, 118 uploadOptions: _uploadOptions,
117 uploadMedia: _uploadMedia, 119 uploadMedia: _uploadMedia,
118 downloadOptions: _downloadOptions); 120 downloadOptions: _downloadOptions);
119 return _response.then((data) => new AccountsList.fromJson(data)); 121 return _response.then((data) => new AccountsList.fromJson(data));
120 } 122 }
121 123
122 /** 124 /**
123 * Updates an existing account. This method supports patch semantics. 125 * Updates an existing account. This method supports patch semantics.
124 * 126 *
125 * [request] - The metadata request object. 127 * [request] - The metadata request object.
126 * 128 *
127 * Request parameters: 129 * Request parameters:
128 * 130 *
129 * [id] - The account id 131 * [id] - The account id
130 * 132 *
131 * Completes with a [Account]. 133 * Completes with a [Account].
132 * 134 *
133 * Completes with a [common.ApiRequestError] if the API endpoint returned an 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
134 * error. 136 * error.
135 * 137 *
136 * If the used [http.Client] completes with an error when making a REST call, 138 * If the used [http.Client] completes with an error when making a REST call,
137 * this method will complete with the same error. 139 * this method will complete with the same error.
138 */ 140 */
139 async.Future<Account> patch(Account request, core.int id) { 141 async.Future<Account> patch(Account request, core.int id) {
140 var _url = null; 142 var _url = null;
141 var _queryParams = new core.Map(); 143 var _queryParams = new core.Map();
142 var _uploadMedia = null; 144 var _uploadMedia = null;
143 var _uploadOptions = null; 145 var _uploadOptions = null;
144 var _downloadOptions = common.DownloadOptions.Metadata; 146 var _downloadOptions = commons.DownloadOptions.Metadata;
145 var _body = null; 147 var _body = null;
146 148
147 if (request != null) { 149 if (request != null) {
148 _body = convert.JSON.encode((request).toJson()); 150 _body = convert.JSON.encode((request).toJson());
149 } 151 }
150 if (id == null) { 152 if (id == null) {
151 throw new core.ArgumentError("Parameter id is required."); 153 throw new core.ArgumentError("Parameter id is required.");
152 } 154 }
153 155
154 156
155 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$id'); 157 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
156 158
157 var _response = _requester.request(_url, 159 var _response = _requester.request(_url,
158 "PATCH", 160 "PATCH",
159 body: _body, 161 body: _body,
160 queryParams: _queryParams, 162 queryParams: _queryParams,
161 uploadOptions: _uploadOptions, 163 uploadOptions: _uploadOptions,
162 uploadMedia: _uploadMedia, 164 uploadMedia: _uploadMedia,
163 downloadOptions: _downloadOptions); 165 downloadOptions: _downloadOptions);
164 return _response.then((data) => new Account.fromJson(data)); 166 return _response.then((data) => new Account.fromJson(data));
165 } 167 }
166 168
167 /** 169 /**
168 * Updates an existing account. 170 * Updates an existing account.
169 * 171 *
170 * [request] - The metadata request object. 172 * [request] - The metadata request object.
171 * 173 *
172 * Request parameters: 174 * Request parameters:
173 * 175 *
174 * [id] - The account id 176 * [id] - The account id
175 * 177 *
176 * Completes with a [Account]. 178 * Completes with a [Account].
177 * 179 *
178 * Completes with a [common.ApiRequestError] if the API endpoint returned an 180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
179 * error. 181 * error.
180 * 182 *
181 * If the used [http.Client] completes with an error when making a REST call, 183 * If the used [http.Client] completes with an error when making a REST call,
182 * this method will complete with the same error. 184 * this method will complete with the same error.
183 */ 185 */
184 async.Future<Account> update(Account request, core.int id) { 186 async.Future<Account> update(Account request, core.int id) {
185 var _url = null; 187 var _url = null;
186 var _queryParams = new core.Map(); 188 var _queryParams = new core.Map();
187 var _uploadMedia = null; 189 var _uploadMedia = null;
188 var _uploadOptions = null; 190 var _uploadOptions = null;
189 var _downloadOptions = common.DownloadOptions.Metadata; 191 var _downloadOptions = commons.DownloadOptions.Metadata;
190 var _body = null; 192 var _body = null;
191 193
192 if (request != null) { 194 if (request != null) {
193 _body = convert.JSON.encode((request).toJson()); 195 _body = convert.JSON.encode((request).toJson());
194 } 196 }
195 if (id == null) { 197 if (id == null) {
196 throw new core.ArgumentError("Parameter id is required."); 198 throw new core.ArgumentError("Parameter id is required.");
197 } 199 }
198 200
199 201
200 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$id'); 202 _url = 'accounts/' + commons.Escaper.ecapeVariable('$id');
201 203
202 var _response = _requester.request(_url, 204 var _response = _requester.request(_url,
203 "PUT", 205 "PUT",
204 body: _body, 206 body: _body,
205 queryParams: _queryParams, 207 queryParams: _queryParams,
206 uploadOptions: _uploadOptions, 208 uploadOptions: _uploadOptions,
207 uploadMedia: _uploadMedia, 209 uploadMedia: _uploadMedia,
208 downloadOptions: _downloadOptions); 210 downloadOptions: _downloadOptions);
209 return _response.then((data) => new Account.fromJson(data)); 211 return _response.then((data) => new Account.fromJson(data));
210 } 212 }
211 213
212 } 214 }
213 215
214 216
215 /** Not documented yet. */
216 class BillingInfoResourceApi { 217 class BillingInfoResourceApi {
217 final common_internal.ApiRequester _requester; 218 final commons.ApiRequester _requester;
218 219
219 BillingInfoResourceApi(common_internal.ApiRequester client) : 220 BillingInfoResourceApi(commons.ApiRequester client) :
220 _requester = client; 221 _requester = client;
221 222
222 /** 223 /**
223 * Returns the billing information for one account specified by account ID. 224 * Returns the billing information for one account specified by account ID.
224 * 225 *
225 * Request parameters: 226 * Request parameters:
226 * 227 *
227 * [accountId] - The account id. 228 * [accountId] - The account id.
228 * 229 *
229 * Completes with a [BillingInfo]. 230 * Completes with a [BillingInfo].
230 * 231 *
231 * Completes with a [common.ApiRequestError] if the API endpoint returned an 232 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
232 * error. 233 * error.
233 * 234 *
234 * If the used [http.Client] completes with an error when making a REST call, 235 * If the used [http.Client] completes with an error when making a REST call,
235 * this method will complete with the same error. 236 * this method will complete with the same error.
236 */ 237 */
237 async.Future<BillingInfo> get(core.int accountId) { 238 async.Future<BillingInfo> get(core.int accountId) {
238 var _url = null; 239 var _url = null;
239 var _queryParams = new core.Map(); 240 var _queryParams = new core.Map();
240 var _uploadMedia = null; 241 var _uploadMedia = null;
241 var _uploadOptions = null; 242 var _uploadOptions = null;
242 var _downloadOptions = common.DownloadOptions.Metadata; 243 var _downloadOptions = commons.DownloadOptions.Metadata;
243 var _body = null; 244 var _body = null;
244 245
245 if (accountId == null) { 246 if (accountId == null) {
246 throw new core.ArgumentError("Parameter accountId is required."); 247 throw new core.ArgumentError("Parameter accountId is required.");
247 } 248 }
248 249
249 250
250 _url = 'billinginfo/' + common_internal.Escaper.ecapeVariable('$accountId'); 251 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId');
251 252
252 var _response = _requester.request(_url, 253 var _response = _requester.request(_url,
253 "GET", 254 "GET",
254 body: _body, 255 body: _body,
255 queryParams: _queryParams, 256 queryParams: _queryParams,
256 uploadOptions: _uploadOptions, 257 uploadOptions: _uploadOptions,
257 uploadMedia: _uploadMedia, 258 uploadMedia: _uploadMedia,
258 downloadOptions: _downloadOptions); 259 downloadOptions: _downloadOptions);
259 return _response.then((data) => new BillingInfo.fromJson(data)); 260 return _response.then((data) => new BillingInfo.fromJson(data));
260 } 261 }
261 262
262 /** 263 /**
263 * Retrieves a list of billing information for all accounts of the 264 * Retrieves a list of billing information for all accounts of the
264 * authenticated user. 265 * authenticated user.
265 * 266 *
266 * Request parameters: 267 * Request parameters:
267 * 268 *
268 * Completes with a [BillingInfoList]. 269 * Completes with a [BillingInfoList].
269 * 270 *
270 * Completes with a [common.ApiRequestError] if the API endpoint returned an 271 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
271 * error. 272 * error.
272 * 273 *
273 * If the used [http.Client] completes with an error when making a REST call, 274 * If the used [http.Client] completes with an error when making a REST call,
274 * this method will complete with the same error. 275 * this method will complete with the same error.
275 */ 276 */
276 async.Future<BillingInfoList> list() { 277 async.Future<BillingInfoList> list() {
277 var _url = null; 278 var _url = null;
278 var _queryParams = new core.Map(); 279 var _queryParams = new core.Map();
279 var _uploadMedia = null; 280 var _uploadMedia = null;
280 var _uploadOptions = null; 281 var _uploadOptions = null;
281 var _downloadOptions = common.DownloadOptions.Metadata; 282 var _downloadOptions = commons.DownloadOptions.Metadata;
282 var _body = null; 283 var _body = null;
283 284
284 285
285 286
286 _url = 'billinginfo'; 287 _url = 'billinginfo';
287 288
288 var _response = _requester.request(_url, 289 var _response = _requester.request(_url,
289 "GET", 290 "GET",
290 body: _body, 291 body: _body,
291 queryParams: _queryParams, 292 queryParams: _queryParams,
292 uploadOptions: _uploadOptions, 293 uploadOptions: _uploadOptions,
293 uploadMedia: _uploadMedia, 294 uploadMedia: _uploadMedia,
294 downloadOptions: _downloadOptions); 295 downloadOptions: _downloadOptions);
295 return _response.then((data) => new BillingInfoList.fromJson(data)); 296 return _response.then((data) => new BillingInfoList.fromJson(data));
296 } 297 }
297 298
298 } 299 }
299 300
300 301
301 /** Not documented yet. */
302 class BudgetResourceApi { 302 class BudgetResourceApi {
303 final common_internal.ApiRequester _requester; 303 final commons.ApiRequester _requester;
304 304
305 BudgetResourceApi(common_internal.ApiRequester client) : 305 BudgetResourceApi(commons.ApiRequester client) :
306 _requester = client; 306 _requester = client;
307 307
308 /** 308 /**
309 * Returns the budget information for the adgroup specified by the accountId 309 * Returns the budget information for the adgroup specified by the accountId
310 * and billingId. 310 * and billingId.
311 * 311 *
312 * Request parameters: 312 * Request parameters:
313 * 313 *
314 * [accountId] - The account id to get the budget information for. 314 * [accountId] - The account id to get the budget information for.
315 * 315 *
316 * [billingId] - The billing id to get the budget information for. 316 * [billingId] - The billing id to get the budget information for.
317 * 317 *
318 * Completes with a [Budget]. 318 * Completes with a [Budget].
319 * 319 *
320 * Completes with a [common.ApiRequestError] if the API endpoint returned an 320 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
321 * error. 321 * error.
322 * 322 *
323 * If the used [http.Client] completes with an error when making a REST call, 323 * If the used [http.Client] completes with an error when making a REST call,
324 * this method will complete with the same error. 324 * this method will complete with the same error.
325 */ 325 */
326 async.Future<Budget> get(core.String accountId, core.String billingId) { 326 async.Future<Budget> get(core.String accountId, core.String billingId) {
327 var _url = null; 327 var _url = null;
328 var _queryParams = new core.Map(); 328 var _queryParams = new core.Map();
329 var _uploadMedia = null; 329 var _uploadMedia = null;
330 var _uploadOptions = null; 330 var _uploadOptions = null;
331 var _downloadOptions = common.DownloadOptions.Metadata; 331 var _downloadOptions = commons.DownloadOptions.Metadata;
332 var _body = null; 332 var _body = null;
333 333
334 if (accountId == null) { 334 if (accountId == null) {
335 throw new core.ArgumentError("Parameter accountId is required."); 335 throw new core.ArgumentError("Parameter accountId is required.");
336 } 336 }
337 if (billingId == null) { 337 if (billingId == null) {
338 throw new core.ArgumentError("Parameter billingId is required."); 338 throw new core.ArgumentError("Parameter billingId is required.");
339 } 339 }
340 340
341 341
342 _url = 'billinginfo/' + common_internal.Escaper.ecapeVariable('$accountId') + '/' + common_internal.Escaper.ecapeVariable('$billingId'); 342 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId');
343 343
344 var _response = _requester.request(_url, 344 var _response = _requester.request(_url,
345 "GET", 345 "GET",
346 body: _body, 346 body: _body,
347 queryParams: _queryParams, 347 queryParams: _queryParams,
348 uploadOptions: _uploadOptions, 348 uploadOptions: _uploadOptions,
349 uploadMedia: _uploadMedia, 349 uploadMedia: _uploadMedia,
350 downloadOptions: _downloadOptions); 350 downloadOptions: _downloadOptions);
351 return _response.then((data) => new Budget.fromJson(data)); 351 return _response.then((data) => new Budget.fromJson(data));
352 } 352 }
353 353
354 /** 354 /**
355 * Updates the budget amount for the budget of the adgroup specified by the 355 * Updates the budget amount for the budget of the adgroup specified by the
356 * accountId and billingId, with the budget amount in the request. This method 356 * accountId and billingId, with the budget amount in the request. This method
357 * supports patch semantics. 357 * supports patch semantics.
358 * 358 *
359 * [request] - The metadata request object. 359 * [request] - The metadata request object.
360 * 360 *
361 * Request parameters: 361 * Request parameters:
362 * 362 *
363 * [accountId] - The account id associated with the budget being updated. 363 * [accountId] - The account id associated with the budget being updated.
364 * 364 *
365 * [billingId] - The billing id associated with the budget being updated. 365 * [billingId] - The billing id associated with the budget being updated.
366 * 366 *
367 * Completes with a [Budget]. 367 * Completes with a [Budget].
368 * 368 *
369 * Completes with a [common.ApiRequestError] if the API endpoint returned an 369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
370 * error. 370 * error.
371 * 371 *
372 * If the used [http.Client] completes with an error when making a REST call, 372 * If the used [http.Client] completes with an error when making a REST call,
373 * this method will complete with the same error. 373 * this method will complete with the same error.
374 */ 374 */
375 async.Future<Budget> patch(Budget request, core.String accountId, core.String billingId) { 375 async.Future<Budget> patch(Budget request, core.String accountId, core.String billingId) {
376 var _url = null; 376 var _url = null;
377 var _queryParams = new core.Map(); 377 var _queryParams = new core.Map();
378 var _uploadMedia = null; 378 var _uploadMedia = null;
379 var _uploadOptions = null; 379 var _uploadOptions = null;
380 var _downloadOptions = common.DownloadOptions.Metadata; 380 var _downloadOptions = commons.DownloadOptions.Metadata;
381 var _body = null; 381 var _body = null;
382 382
383 if (request != null) { 383 if (request != null) {
384 _body = convert.JSON.encode((request).toJson()); 384 _body = convert.JSON.encode((request).toJson());
385 } 385 }
386 if (accountId == null) { 386 if (accountId == null) {
387 throw new core.ArgumentError("Parameter accountId is required."); 387 throw new core.ArgumentError("Parameter accountId is required.");
388 } 388 }
389 if (billingId == null) { 389 if (billingId == null) {
390 throw new core.ArgumentError("Parameter billingId is required."); 390 throw new core.ArgumentError("Parameter billingId is required.");
391 } 391 }
392 392
393 393
394 _url = 'billinginfo/' + common_internal.Escaper.ecapeVariable('$accountId') + '/' + common_internal.Escaper.ecapeVariable('$billingId'); 394 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId');
395 395
396 var _response = _requester.request(_url, 396 var _response = _requester.request(_url,
397 "PATCH", 397 "PATCH",
398 body: _body, 398 body: _body,
399 queryParams: _queryParams, 399 queryParams: _queryParams,
400 uploadOptions: _uploadOptions, 400 uploadOptions: _uploadOptions,
401 uploadMedia: _uploadMedia, 401 uploadMedia: _uploadMedia,
402 downloadOptions: _downloadOptions); 402 downloadOptions: _downloadOptions);
403 return _response.then((data) => new Budget.fromJson(data)); 403 return _response.then((data) => new Budget.fromJson(data));
404 } 404 }
405 405
406 /** 406 /**
407 * Updates the budget amount for the budget of the adgroup specified by the 407 * Updates the budget amount for the budget of the adgroup specified by the
408 * accountId and billingId, with the budget amount in the request. 408 * accountId and billingId, with the budget amount in the request.
409 * 409 *
410 * [request] - The metadata request object. 410 * [request] - The metadata request object.
411 * 411 *
412 * Request parameters: 412 * Request parameters:
413 * 413 *
414 * [accountId] - The account id associated with the budget being updated. 414 * [accountId] - The account id associated with the budget being updated.
415 * 415 *
416 * [billingId] - The billing id associated with the budget being updated. 416 * [billingId] - The billing id associated with the budget being updated.
417 * 417 *
418 * Completes with a [Budget]. 418 * Completes with a [Budget].
419 * 419 *
420 * Completes with a [common.ApiRequestError] if the API endpoint returned an 420 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
421 * error. 421 * error.
422 * 422 *
423 * If the used [http.Client] completes with an error when making a REST call, 423 * If the used [http.Client] completes with an error when making a REST call,
424 * this method will complete with the same error. 424 * this method will complete with the same error.
425 */ 425 */
426 async.Future<Budget> update(Budget request, core.String accountId, core.String billingId) { 426 async.Future<Budget> update(Budget request, core.String accountId, core.String billingId) {
427 var _url = null; 427 var _url = null;
428 var _queryParams = new core.Map(); 428 var _queryParams = new core.Map();
429 var _uploadMedia = null; 429 var _uploadMedia = null;
430 var _uploadOptions = null; 430 var _uploadOptions = null;
431 var _downloadOptions = common.DownloadOptions.Metadata; 431 var _downloadOptions = commons.DownloadOptions.Metadata;
432 var _body = null; 432 var _body = null;
433 433
434 if (request != null) { 434 if (request != null) {
435 _body = convert.JSON.encode((request).toJson()); 435 _body = convert.JSON.encode((request).toJson());
436 } 436 }
437 if (accountId == null) { 437 if (accountId == null) {
438 throw new core.ArgumentError("Parameter accountId is required."); 438 throw new core.ArgumentError("Parameter accountId is required.");
439 } 439 }
440 if (billingId == null) { 440 if (billingId == null) {
441 throw new core.ArgumentError("Parameter billingId is required."); 441 throw new core.ArgumentError("Parameter billingId is required.");
442 } 442 }
443 443
444 444
445 _url = 'billinginfo/' + common_internal.Escaper.ecapeVariable('$accountId') + '/' + common_internal.Escaper.ecapeVariable('$billingId'); 445 _url = 'billinginfo/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$billingId');
446 446
447 var _response = _requester.request(_url, 447 var _response = _requester.request(_url,
448 "PUT", 448 "PUT",
449 body: _body, 449 body: _body,
450 queryParams: _queryParams, 450 queryParams: _queryParams,
451 uploadOptions: _uploadOptions, 451 uploadOptions: _uploadOptions,
452 uploadMedia: _uploadMedia, 452 uploadMedia: _uploadMedia,
453 downloadOptions: _downloadOptions); 453 downloadOptions: _downloadOptions);
454 return _response.then((data) => new Budget.fromJson(data)); 454 return _response.then((data) => new Budget.fromJson(data));
455 } 455 }
456 456
457 } 457 }
458 458
459 459
460 /** Not documented yet. */
461 class CreativesResourceApi { 460 class CreativesResourceApi {
462 final common_internal.ApiRequester _requester; 461 final commons.ApiRequester _requester;
463 462
464 CreativesResourceApi(common_internal.ApiRequester client) : 463 CreativesResourceApi(commons.ApiRequester client) :
465 _requester = client; 464 _requester = client;
466 465
467 /** 466 /**
468 * Gets the status for a single creative. A creative will be available 30-40 467 * Gets the status for a single creative. A creative will be available 30-40
469 * minutes after submission. 468 * minutes after submission.
470 * 469 *
471 * Request parameters: 470 * Request parameters:
472 * 471 *
473 * [accountId] - The id for the account that will serve this creative. 472 * [accountId] - The id for the account that will serve this creative.
474 * 473 *
475 * [buyerCreativeId] - The buyer-specific id for this creative. 474 * [buyerCreativeId] - The buyer-specific id for this creative.
476 * 475 *
477 * Completes with a [Creative]. 476 * Completes with a [Creative].
478 * 477 *
479 * Completes with a [common.ApiRequestError] if the API endpoint returned an 478 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
480 * error. 479 * error.
481 * 480 *
482 * If the used [http.Client] completes with an error when making a REST call, 481 * If the used [http.Client] completes with an error when making a REST call,
483 * this method will complete with the same error. 482 * this method will complete with the same error.
484 */ 483 */
485 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) { 484 async.Future<Creative> get(core.int accountId, core.String buyerCreativeId) {
486 var _url = null; 485 var _url = null;
487 var _queryParams = new core.Map(); 486 var _queryParams = new core.Map();
488 var _uploadMedia = null; 487 var _uploadMedia = null;
489 var _uploadOptions = null; 488 var _uploadOptions = null;
490 var _downloadOptions = common.DownloadOptions.Metadata; 489 var _downloadOptions = commons.DownloadOptions.Metadata;
491 var _body = null; 490 var _body = null;
492 491
493 if (accountId == null) { 492 if (accountId == null) {
494 throw new core.ArgumentError("Parameter accountId is required."); 493 throw new core.ArgumentError("Parameter accountId is required.");
495 } 494 }
496 if (buyerCreativeId == null) { 495 if (buyerCreativeId == null) {
497 throw new core.ArgumentError("Parameter buyerCreativeId is required."); 496 throw new core.ArgumentError("Parameter buyerCreativeId is required.");
498 } 497 }
499 498
500 499
501 _url = 'creatives/' + common_internal.Escaper.ecapeVariable('$accountId') + '/' + common_internal.Escaper.ecapeVariable('$buyerCreativeId'); 500 _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + co mmons.Escaper.ecapeVariable('$buyerCreativeId');
502 501
503 var _response = _requester.request(_url, 502 var _response = _requester.request(_url,
504 "GET", 503 "GET",
505 body: _body, 504 body: _body,
506 queryParams: _queryParams, 505 queryParams: _queryParams,
507 uploadOptions: _uploadOptions, 506 uploadOptions: _uploadOptions,
508 uploadMedia: _uploadMedia, 507 uploadMedia: _uploadMedia,
509 downloadOptions: _downloadOptions); 508 downloadOptions: _downloadOptions);
510 return _response.then((data) => new Creative.fromJson(data)); 509 return _response.then((data) => new Creative.fromJson(data));
511 } 510 }
512 511
513 /** 512 /**
514 * Submit a new creative. 513 * Submit a new creative.
515 * 514 *
516 * [request] - The metadata request object. 515 * [request] - The metadata request object.
517 * 516 *
518 * Request parameters: 517 * Request parameters:
519 * 518 *
520 * Completes with a [Creative]. 519 * Completes with a [Creative].
521 * 520 *
522 * Completes with a [common.ApiRequestError] if the API endpoint returned an 521 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
523 * error. 522 * error.
524 * 523 *
525 * If the used [http.Client] completes with an error when making a REST call, 524 * If the used [http.Client] completes with an error when making a REST call,
526 * this method will complete with the same error. 525 * this method will complete with the same error.
527 */ 526 */
528 async.Future<Creative> insert(Creative request) { 527 async.Future<Creative> insert(Creative request) {
529 var _url = null; 528 var _url = null;
530 var _queryParams = new core.Map(); 529 var _queryParams = new core.Map();
531 var _uploadMedia = null; 530 var _uploadMedia = null;
532 var _uploadOptions = null; 531 var _uploadOptions = null;
533 var _downloadOptions = common.DownloadOptions.Metadata; 532 var _downloadOptions = commons.DownloadOptions.Metadata;
534 var _body = null; 533 var _body = null;
535 534
536 if (request != null) { 535 if (request != null) {
537 _body = convert.JSON.encode((request).toJson()); 536 _body = convert.JSON.encode((request).toJson());
538 } 537 }
539 538
540 539
541 _url = 'creatives'; 540 _url = 'creatives';
542 541
543 var _response = _requester.request(_url, 542 var _response = _requester.request(_url,
(...skipping 28 matching lines...) Expand all
572 * 571 *
573 * [statusFilter] - When specified, only creatives having the given status are 572 * [statusFilter] - When specified, only creatives having the given status are
574 * returned. 573 * returned.
575 * Possible string values are: 574 * Possible string values are:
576 * - "approved" : Creatives which have been approved. 575 * - "approved" : Creatives which have been approved.
577 * - "disapproved" : Creatives which have been disapproved. 576 * - "disapproved" : Creatives which have been disapproved.
578 * - "not_checked" : Creatives whose status is not yet checked. 577 * - "not_checked" : Creatives whose status is not yet checked.
579 * 578 *
580 * Completes with a [CreativesList]. 579 * Completes with a [CreativesList].
581 * 580 *
582 * Completes with a [common.ApiRequestError] if the API endpoint returned an 581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
583 * error. 582 * error.
584 * 583 *
585 * If the used [http.Client] completes with an error when making a REST call, 584 * If the used [http.Client] completes with an error when making a REST call,
586 * this method will complete with the same error. 585 * this method will complete with the same error.
587 */ 586 */
588 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}) { 587 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}) {
589 var _url = null; 588 var _url = null;
590 var _queryParams = new core.Map(); 589 var _queryParams = new core.Map();
591 var _uploadMedia = null; 590 var _uploadMedia = null;
592 var _uploadOptions = null; 591 var _uploadOptions = null;
593 var _downloadOptions = common.DownloadOptions.Metadata; 592 var _downloadOptions = commons.DownloadOptions.Metadata;
594 var _body = null; 593 var _body = null;
595 594
596 if (accountId != null) { 595 if (accountId != null) {
597 _queryParams["accountId"] = accountId.map((item) => "${item}").toList(); 596 _queryParams["accountId"] = accountId.map((item) => "${item}").toList();
598 } 597 }
599 if (buyerCreativeId != null) { 598 if (buyerCreativeId != null) {
600 _queryParams["buyerCreativeId"] = buyerCreativeId; 599 _queryParams["buyerCreativeId"] = buyerCreativeId;
601 } 600 }
602 if (maxResults != null) { 601 if (maxResults != null) {
603 _queryParams["maxResults"] = ["${maxResults}"]; 602 _queryParams["maxResults"] = ["${maxResults}"];
(...skipping 14 matching lines...) Expand all
618 queryParams: _queryParams, 617 queryParams: _queryParams,
619 uploadOptions: _uploadOptions, 618 uploadOptions: _uploadOptions,
620 uploadMedia: _uploadMedia, 619 uploadMedia: _uploadMedia,
621 downloadOptions: _downloadOptions); 620 downloadOptions: _downloadOptions);
622 return _response.then((data) => new CreativesList.fromJson(data)); 621 return _response.then((data) => new CreativesList.fromJson(data));
623 } 622 }
624 623
625 } 624 }
626 625
627 626
628 /** Not documented yet. */
629 class DirectDealsResourceApi { 627 class DirectDealsResourceApi {
630 final common_internal.ApiRequester _requester; 628 final commons.ApiRequester _requester;
631 629
632 DirectDealsResourceApi(common_internal.ApiRequester client) : 630 DirectDealsResourceApi(commons.ApiRequester client) :
633 _requester = client; 631 _requester = client;
634 632
635 /** 633 /**
636 * Gets one direct deal by ID. 634 * Gets one direct deal by ID.
637 * 635 *
638 * Request parameters: 636 * Request parameters:
639 * 637 *
640 * [id] - The direct deal id 638 * [id] - The direct deal id
641 * 639 *
642 * Completes with a [DirectDeal]. 640 * Completes with a [DirectDeal].
643 * 641 *
644 * Completes with a [common.ApiRequestError] if the API endpoint returned an 642 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
645 * error. 643 * error.
646 * 644 *
647 * If the used [http.Client] completes with an error when making a REST call, 645 * If the used [http.Client] completes with an error when making a REST call,
648 * this method will complete with the same error. 646 * this method will complete with the same error.
649 */ 647 */
650 async.Future<DirectDeal> get(core.String id) { 648 async.Future<DirectDeal> get(core.String id) {
651 var _url = null; 649 var _url = null;
652 var _queryParams = new core.Map(); 650 var _queryParams = new core.Map();
653 var _uploadMedia = null; 651 var _uploadMedia = null;
654 var _uploadOptions = null; 652 var _uploadOptions = null;
655 var _downloadOptions = common.DownloadOptions.Metadata; 653 var _downloadOptions = commons.DownloadOptions.Metadata;
656 var _body = null; 654 var _body = null;
657 655
658 if (id == null) { 656 if (id == null) {
659 throw new core.ArgumentError("Parameter id is required."); 657 throw new core.ArgumentError("Parameter id is required.");
660 } 658 }
661 659
662 660
663 _url = 'directdeals/' + common_internal.Escaper.ecapeVariable('$id'); 661 _url = 'directdeals/' + commons.Escaper.ecapeVariable('$id');
664 662
665 var _response = _requester.request(_url, 663 var _response = _requester.request(_url,
666 "GET", 664 "GET",
667 body: _body, 665 body: _body,
668 queryParams: _queryParams, 666 queryParams: _queryParams,
669 uploadOptions: _uploadOptions, 667 uploadOptions: _uploadOptions,
670 uploadMedia: _uploadMedia, 668 uploadMedia: _uploadMedia,
671 downloadOptions: _downloadOptions); 669 downloadOptions: _downloadOptions);
672 return _response.then((data) => new DirectDeal.fromJson(data)); 670 return _response.then((data) => new DirectDeal.fromJson(data));
673 } 671 }
674 672
675 /** 673 /**
676 * Retrieves the authenticated user's list of direct deals. 674 * Retrieves the authenticated user's list of direct deals.
677 * 675 *
678 * Request parameters: 676 * Request parameters:
679 * 677 *
680 * Completes with a [DirectDealsList]. 678 * Completes with a [DirectDealsList].
681 * 679 *
682 * Completes with a [common.ApiRequestError] if the API endpoint returned an 680 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
683 * error. 681 * error.
684 * 682 *
685 * If the used [http.Client] completes with an error when making a REST call, 683 * If the used [http.Client] completes with an error when making a REST call,
686 * this method will complete with the same error. 684 * this method will complete with the same error.
687 */ 685 */
688 async.Future<DirectDealsList> list() { 686 async.Future<DirectDealsList> list() {
689 var _url = null; 687 var _url = null;
690 var _queryParams = new core.Map(); 688 var _queryParams = new core.Map();
691 var _uploadMedia = null; 689 var _uploadMedia = null;
692 var _uploadOptions = null; 690 var _uploadOptions = null;
693 var _downloadOptions = common.DownloadOptions.Metadata; 691 var _downloadOptions = commons.DownloadOptions.Metadata;
694 var _body = null; 692 var _body = null;
695 693
696 694
697 695
698 _url = 'directdeals'; 696 _url = 'directdeals';
699 697
700 var _response = _requester.request(_url, 698 var _response = _requester.request(_url,
701 "GET", 699 "GET",
702 body: _body, 700 body: _body,
703 queryParams: _queryParams, 701 queryParams: _queryParams,
704 uploadOptions: _uploadOptions, 702 uploadOptions: _uploadOptions,
705 uploadMedia: _uploadMedia, 703 uploadMedia: _uploadMedia,
706 downloadOptions: _downloadOptions); 704 downloadOptions: _downloadOptions);
707 return _response.then((data) => new DirectDealsList.fromJson(data)); 705 return _response.then((data) => new DirectDealsList.fromJson(data));
708 } 706 }
709 707
710 } 708 }
711 709
712 710
713 /** Not documented yet. */
714 class PerformanceReportResourceApi { 711 class PerformanceReportResourceApi {
715 final common_internal.ApiRequester _requester; 712 final commons.ApiRequester _requester;
716 713
717 PerformanceReportResourceApi(common_internal.ApiRequester client) : 714 PerformanceReportResourceApi(commons.ApiRequester client) :
718 _requester = client; 715 _requester = client;
719 716
720 /** 717 /**
721 * Retrieves the authenticated user's list of performance metrics. 718 * Retrieves the authenticated user's list of performance metrics.
722 * 719 *
723 * Request parameters: 720 * Request parameters:
724 * 721 *
725 * [accountId] - The account id to get the reports. 722 * [accountId] - The account id to get the reports.
726 * 723 *
727 * [endDateTime] - The end time of the report in ISO 8601 timestamp format 724 * [endDateTime] - The end time of the report in ISO 8601 timestamp format
728 * using UTC. 725 * using UTC.
729 * 726 *
730 * [startDateTime] - The start time of the report in ISO 8601 timestamp format 727 * [startDateTime] - The start time of the report in ISO 8601 timestamp format
731 * using UTC. 728 * using UTC.
732 * 729 *
733 * [maxResults] - Maximum number of entries returned on one result page. If 730 * [maxResults] - Maximum number of entries returned on one result page. If
734 * not set, the default is 100. Optional. 731 * not set, the default is 100. Optional.
735 * Value must be between "1" and "1000". 732 * Value must be between "1" and "1000".
736 * 733 *
737 * [pageToken] - A continuation token, used to page through performance 734 * [pageToken] - A continuation token, used to page through performance
738 * reports. To retrieve the next page, set this parameter to the value of 735 * reports. To retrieve the next page, set this parameter to the value of
739 * "nextPageToken" from the previous response. Optional. 736 * "nextPageToken" from the previous response. Optional.
740 * 737 *
741 * Completes with a [PerformanceReportList]. 738 * Completes with a [PerformanceReportList].
742 * 739 *
743 * Completes with a [common.ApiRequestError] if the API endpoint returned an 740 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
744 * error. 741 * error.
745 * 742 *
746 * If the used [http.Client] completes with an error when making a REST call, 743 * If the used [http.Client] completes with an error when making a REST call,
747 * this method will complete with the same error. 744 * this method will complete with the same error.
748 */ 745 */
749 async.Future<PerformanceReportList> list(core.String accountId, core.String en dDateTime, core.String startDateTime, {core.int maxResults, core.String pageToke n}) { 746 async.Future<PerformanceReportList> list(core.String accountId, core.String en dDateTime, core.String startDateTime, {core.int maxResults, core.String pageToke n}) {
750 var _url = null; 747 var _url = null;
751 var _queryParams = new core.Map(); 748 var _queryParams = new core.Map();
752 var _uploadMedia = null; 749 var _uploadMedia = null;
753 var _uploadOptions = null; 750 var _uploadOptions = null;
754 var _downloadOptions = common.DownloadOptions.Metadata; 751 var _downloadOptions = commons.DownloadOptions.Metadata;
755 var _body = null; 752 var _body = null;
756 753
757 if (accountId == null) { 754 if (accountId == null) {
758 throw new core.ArgumentError("Parameter accountId is required."); 755 throw new core.ArgumentError("Parameter accountId is required.");
759 } 756 }
760 _queryParams["accountId"] = [accountId]; 757 _queryParams["accountId"] = [accountId];
761 if (endDateTime == null) { 758 if (endDateTime == null) {
762 throw new core.ArgumentError("Parameter endDateTime is required."); 759 throw new core.ArgumentError("Parameter endDateTime is required.");
763 } 760 }
764 _queryParams["endDateTime"] = [endDateTime]; 761 _queryParams["endDateTime"] = [endDateTime];
(...skipping 17 matching lines...) Expand all
782 queryParams: _queryParams, 779 queryParams: _queryParams,
783 uploadOptions: _uploadOptions, 780 uploadOptions: _uploadOptions,
784 uploadMedia: _uploadMedia, 781 uploadMedia: _uploadMedia,
785 downloadOptions: _downloadOptions); 782 downloadOptions: _downloadOptions);
786 return _response.then((data) => new PerformanceReportList.fromJson(data)); 783 return _response.then((data) => new PerformanceReportList.fromJson(data));
787 } 784 }
788 785
789 } 786 }
790 787
791 788
792 /** Not documented yet. */
793 class PretargetingConfigResourceApi { 789 class PretargetingConfigResourceApi {
794 final common_internal.ApiRequester _requester; 790 final commons.ApiRequester _requester;
795 791
796 PretargetingConfigResourceApi(common_internal.ApiRequester client) : 792 PretargetingConfigResourceApi(commons.ApiRequester client) :
797 _requester = client; 793 _requester = client;
798 794
799 /** 795 /**
800 * Deletes an existing pretargeting config. 796 * Deletes an existing pretargeting config.
801 * 797 *
802 * Request parameters: 798 * Request parameters:
803 * 799 *
804 * [accountId] - The account id to delete the pretargeting config for. 800 * [accountId] - The account id to delete the pretargeting config for.
805 * 801 *
806 * [configId] - The specific id of the configuration to delete. 802 * [configId] - The specific id of the configuration to delete.
807 * 803 *
808 * Completes with a [common.ApiRequestError] if the API endpoint returned an 804 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
809 * error. 805 * error.
810 * 806 *
811 * If the used [http.Client] completes with an error when making a REST call, 807 * If the used [http.Client] completes with an error when making a REST call,
812 * this method will complete with the same error. 808 * this method will complete with the same error.
813 */ 809 */
814 async.Future delete(core.String accountId, core.String configId) { 810 async.Future delete(core.String accountId, core.String configId) {
815 var _url = null; 811 var _url = null;
816 var _queryParams = new core.Map(); 812 var _queryParams = new core.Map();
817 var _uploadMedia = null; 813 var _uploadMedia = null;
818 var _uploadOptions = null; 814 var _uploadOptions = null;
819 var _downloadOptions = common.DownloadOptions.Metadata; 815 var _downloadOptions = commons.DownloadOptions.Metadata;
820 var _body = null; 816 var _body = null;
821 817
822 if (accountId == null) { 818 if (accountId == null) {
823 throw new core.ArgumentError("Parameter accountId is required."); 819 throw new core.ArgumentError("Parameter accountId is required.");
824 } 820 }
825 if (configId == null) { 821 if (configId == null) {
826 throw new core.ArgumentError("Parameter configId is required."); 822 throw new core.ArgumentError("Parameter configId is required.");
827 } 823 }
828 824
829 _downloadOptions = null; 825 _downloadOptions = null;
830 826
831 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId') + '/' + common_internal.Escaper.ecapeVariable('$configId'); 827 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId');
832 828
833 var _response = _requester.request(_url, 829 var _response = _requester.request(_url,
834 "DELETE", 830 "DELETE",
835 body: _body, 831 body: _body,
836 queryParams: _queryParams, 832 queryParams: _queryParams,
837 uploadOptions: _uploadOptions, 833 uploadOptions: _uploadOptions,
838 uploadMedia: _uploadMedia, 834 uploadMedia: _uploadMedia,
839 downloadOptions: _downloadOptions); 835 downloadOptions: _downloadOptions);
840 return _response.then((data) => null); 836 return _response.then((data) => null);
841 } 837 }
842 838
843 /** 839 /**
844 * Gets a specific pretargeting configuration 840 * Gets a specific pretargeting configuration
845 * 841 *
846 * Request parameters: 842 * Request parameters:
847 * 843 *
848 * [accountId] - The account id to get the pretargeting config for. 844 * [accountId] - The account id to get the pretargeting config for.
849 * 845 *
850 * [configId] - The specific id of the configuration to retrieve. 846 * [configId] - The specific id of the configuration to retrieve.
851 * 847 *
852 * Completes with a [PretargetingConfig]. 848 * Completes with a [PretargetingConfig].
853 * 849 *
854 * Completes with a [common.ApiRequestError] if the API endpoint returned an 850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
855 * error. 851 * error.
856 * 852 *
857 * If the used [http.Client] completes with an error when making a REST call, 853 * If the used [http.Client] completes with an error when making a REST call,
858 * this method will complete with the same error. 854 * this method will complete with the same error.
859 */ 855 */
860 async.Future<PretargetingConfig> get(core.String accountId, core.String config Id) { 856 async.Future<PretargetingConfig> get(core.String accountId, core.String config Id) {
861 var _url = null; 857 var _url = null;
862 var _queryParams = new core.Map(); 858 var _queryParams = new core.Map();
863 var _uploadMedia = null; 859 var _uploadMedia = null;
864 var _uploadOptions = null; 860 var _uploadOptions = null;
865 var _downloadOptions = common.DownloadOptions.Metadata; 861 var _downloadOptions = commons.DownloadOptions.Metadata;
866 var _body = null; 862 var _body = null;
867 863
868 if (accountId == null) { 864 if (accountId == null) {
869 throw new core.ArgumentError("Parameter accountId is required."); 865 throw new core.ArgumentError("Parameter accountId is required.");
870 } 866 }
871 if (configId == null) { 867 if (configId == null) {
872 throw new core.ArgumentError("Parameter configId is required."); 868 throw new core.ArgumentError("Parameter configId is required.");
873 } 869 }
874 870
875 871
876 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId') + '/' + common_internal.Escaper.ecapeVariable('$configId'); 872 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId');
877 873
878 var _response = _requester.request(_url, 874 var _response = _requester.request(_url,
879 "GET", 875 "GET",
880 body: _body, 876 body: _body,
881 queryParams: _queryParams, 877 queryParams: _queryParams,
882 uploadOptions: _uploadOptions, 878 uploadOptions: _uploadOptions,
883 uploadMedia: _uploadMedia, 879 uploadMedia: _uploadMedia,
884 downloadOptions: _downloadOptions); 880 downloadOptions: _downloadOptions);
885 return _response.then((data) => new PretargetingConfig.fromJson(data)); 881 return _response.then((data) => new PretargetingConfig.fromJson(data));
886 } 882 }
887 883
888 /** 884 /**
889 * Inserts a new pretargeting configuration. 885 * Inserts a new pretargeting configuration.
890 * 886 *
891 * [request] - The metadata request object. 887 * [request] - The metadata request object.
892 * 888 *
893 * Request parameters: 889 * Request parameters:
894 * 890 *
895 * [accountId] - The account id to insert the pretargeting config for. 891 * [accountId] - The account id to insert the pretargeting config for.
896 * 892 *
897 * Completes with a [PretargetingConfig]. 893 * Completes with a [PretargetingConfig].
898 * 894 *
899 * Completes with a [common.ApiRequestError] if the API endpoint returned an 895 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
900 * error. 896 * error.
901 * 897 *
902 * If the used [http.Client] completes with an error when making a REST call, 898 * If the used [http.Client] completes with an error when making a REST call,
903 * this method will complete with the same error. 899 * this method will complete with the same error.
904 */ 900 */
905 async.Future<PretargetingConfig> insert(PretargetingConfig request, core.Strin g accountId) { 901 async.Future<PretargetingConfig> insert(PretargetingConfig request, core.Strin g accountId) {
906 var _url = null; 902 var _url = null;
907 var _queryParams = new core.Map(); 903 var _queryParams = new core.Map();
908 var _uploadMedia = null; 904 var _uploadMedia = null;
909 var _uploadOptions = null; 905 var _uploadOptions = null;
910 var _downloadOptions = common.DownloadOptions.Metadata; 906 var _downloadOptions = commons.DownloadOptions.Metadata;
911 var _body = null; 907 var _body = null;
912 908
913 if (request != null) { 909 if (request != null) {
914 _body = convert.JSON.encode((request).toJson()); 910 _body = convert.JSON.encode((request).toJson());
915 } 911 }
916 if (accountId == null) { 912 if (accountId == null) {
917 throw new core.ArgumentError("Parameter accountId is required."); 913 throw new core.ArgumentError("Parameter accountId is required.");
918 } 914 }
919 915
920 916
921 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId'); 917 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId');
922 918
923 var _response = _requester.request(_url, 919 var _response = _requester.request(_url,
924 "POST", 920 "POST",
925 body: _body, 921 body: _body,
926 queryParams: _queryParams, 922 queryParams: _queryParams,
927 uploadOptions: _uploadOptions, 923 uploadOptions: _uploadOptions,
928 uploadMedia: _uploadMedia, 924 uploadMedia: _uploadMedia,
929 downloadOptions: _downloadOptions); 925 downloadOptions: _downloadOptions);
930 return _response.then((data) => new PretargetingConfig.fromJson(data)); 926 return _response.then((data) => new PretargetingConfig.fromJson(data));
931 } 927 }
932 928
933 /** 929 /**
934 * Retrieves a list of the authenticated user's pretargeting configurations. 930 * Retrieves a list of the authenticated user's pretargeting configurations.
935 * 931 *
936 * Request parameters: 932 * Request parameters:
937 * 933 *
938 * [accountId] - The account id to get the pretargeting configs for. 934 * [accountId] - The account id to get the pretargeting configs for.
939 * 935 *
940 * Completes with a [PretargetingConfigList]. 936 * Completes with a [PretargetingConfigList].
941 * 937 *
942 * Completes with a [common.ApiRequestError] if the API endpoint returned an 938 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
943 * error. 939 * error.
944 * 940 *
945 * If the used [http.Client] completes with an error when making a REST call, 941 * If the used [http.Client] completes with an error when making a REST call,
946 * this method will complete with the same error. 942 * this method will complete with the same error.
947 */ 943 */
948 async.Future<PretargetingConfigList> list(core.String accountId) { 944 async.Future<PretargetingConfigList> list(core.String accountId) {
949 var _url = null; 945 var _url = null;
950 var _queryParams = new core.Map(); 946 var _queryParams = new core.Map();
951 var _uploadMedia = null; 947 var _uploadMedia = null;
952 var _uploadOptions = null; 948 var _uploadOptions = null;
953 var _downloadOptions = common.DownloadOptions.Metadata; 949 var _downloadOptions = commons.DownloadOptions.Metadata;
954 var _body = null; 950 var _body = null;
955 951
956 if (accountId == null) { 952 if (accountId == null) {
957 throw new core.ArgumentError("Parameter accountId is required."); 953 throw new core.ArgumentError("Parameter accountId is required.");
958 } 954 }
959 955
960 956
961 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId'); 957 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId');
962 958
963 var _response = _requester.request(_url, 959 var _response = _requester.request(_url,
964 "GET", 960 "GET",
965 body: _body, 961 body: _body,
966 queryParams: _queryParams, 962 queryParams: _queryParams,
967 uploadOptions: _uploadOptions, 963 uploadOptions: _uploadOptions,
968 uploadMedia: _uploadMedia, 964 uploadMedia: _uploadMedia,
969 downloadOptions: _downloadOptions); 965 downloadOptions: _downloadOptions);
970 return _response.then((data) => new PretargetingConfigList.fromJson(data)); 966 return _response.then((data) => new PretargetingConfigList.fromJson(data));
971 } 967 }
972 968
973 /** 969 /**
974 * Updates an existing pretargeting config. This method supports patch 970 * Updates an existing pretargeting config. This method supports patch
975 * semantics. 971 * semantics.
976 * 972 *
977 * [request] - The metadata request object. 973 * [request] - The metadata request object.
978 * 974 *
979 * Request parameters: 975 * Request parameters:
980 * 976 *
981 * [accountId] - The account id to update the pretargeting config for. 977 * [accountId] - The account id to update the pretargeting config for.
982 * 978 *
983 * [configId] - The specific id of the configuration to update. 979 * [configId] - The specific id of the configuration to update.
984 * 980 *
985 * Completes with a [PretargetingConfig]. 981 * Completes with a [PretargetingConfig].
986 * 982 *
987 * Completes with a [common.ApiRequestError] if the API endpoint returned an 983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
988 * error. 984 * error.
989 * 985 *
990 * If the used [http.Client] completes with an error when making a REST call, 986 * If the used [http.Client] completes with an error when making a REST call,
991 * this method will complete with the same error. 987 * this method will complete with the same error.
992 */ 988 */
993 async.Future<PretargetingConfig> patch(PretargetingConfig request, core.String accountId, core.String configId) { 989 async.Future<PretargetingConfig> patch(PretargetingConfig request, core.String accountId, core.String configId) {
994 var _url = null; 990 var _url = null;
995 var _queryParams = new core.Map(); 991 var _queryParams = new core.Map();
996 var _uploadMedia = null; 992 var _uploadMedia = null;
997 var _uploadOptions = null; 993 var _uploadOptions = null;
998 var _downloadOptions = common.DownloadOptions.Metadata; 994 var _downloadOptions = commons.DownloadOptions.Metadata;
999 var _body = null; 995 var _body = null;
1000 996
1001 if (request != null) { 997 if (request != null) {
1002 _body = convert.JSON.encode((request).toJson()); 998 _body = convert.JSON.encode((request).toJson());
1003 } 999 }
1004 if (accountId == null) { 1000 if (accountId == null) {
1005 throw new core.ArgumentError("Parameter accountId is required."); 1001 throw new core.ArgumentError("Parameter accountId is required.");
1006 } 1002 }
1007 if (configId == null) { 1003 if (configId == null) {
1008 throw new core.ArgumentError("Parameter configId is required."); 1004 throw new core.ArgumentError("Parameter configId is required.");
1009 } 1005 }
1010 1006
1011 1007
1012 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId') + '/' + common_internal.Escaper.ecapeVariable('$configId'); 1008 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId');
1013 1009
1014 var _response = _requester.request(_url, 1010 var _response = _requester.request(_url,
1015 "PATCH", 1011 "PATCH",
1016 body: _body, 1012 body: _body,
1017 queryParams: _queryParams, 1013 queryParams: _queryParams,
1018 uploadOptions: _uploadOptions, 1014 uploadOptions: _uploadOptions,
1019 uploadMedia: _uploadMedia, 1015 uploadMedia: _uploadMedia,
1020 downloadOptions: _downloadOptions); 1016 downloadOptions: _downloadOptions);
1021 return _response.then((data) => new PretargetingConfig.fromJson(data)); 1017 return _response.then((data) => new PretargetingConfig.fromJson(data));
1022 } 1018 }
1023 1019
1024 /** 1020 /**
1025 * Updates an existing pretargeting config. 1021 * Updates an existing pretargeting config.
1026 * 1022 *
1027 * [request] - The metadata request object. 1023 * [request] - The metadata request object.
1028 * 1024 *
1029 * Request parameters: 1025 * Request parameters:
1030 * 1026 *
1031 * [accountId] - The account id to update the pretargeting config for. 1027 * [accountId] - The account id to update the pretargeting config for.
1032 * 1028 *
1033 * [configId] - The specific id of the configuration to update. 1029 * [configId] - The specific id of the configuration to update.
1034 * 1030 *
1035 * Completes with a [PretargetingConfig]. 1031 * Completes with a [PretargetingConfig].
1036 * 1032 *
1037 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1033 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1038 * error. 1034 * error.
1039 * 1035 *
1040 * If the used [http.Client] completes with an error when making a REST call, 1036 * If the used [http.Client] completes with an error when making a REST call,
1041 * this method will complete with the same error. 1037 * this method will complete with the same error.
1042 */ 1038 */
1043 async.Future<PretargetingConfig> update(PretargetingConfig request, core.Strin g accountId, core.String configId) { 1039 async.Future<PretargetingConfig> update(PretargetingConfig request, core.Strin g accountId, core.String configId) {
1044 var _url = null; 1040 var _url = null;
1045 var _queryParams = new core.Map(); 1041 var _queryParams = new core.Map();
1046 var _uploadMedia = null; 1042 var _uploadMedia = null;
1047 var _uploadOptions = null; 1043 var _uploadOptions = null;
1048 var _downloadOptions = common.DownloadOptions.Metadata; 1044 var _downloadOptions = commons.DownloadOptions.Metadata;
1049 var _body = null; 1045 var _body = null;
1050 1046
1051 if (request != null) { 1047 if (request != null) {
1052 _body = convert.JSON.encode((request).toJson()); 1048 _body = convert.JSON.encode((request).toJson());
1053 } 1049 }
1054 if (accountId == null) { 1050 if (accountId == null) {
1055 throw new core.ArgumentError("Parameter accountId is required."); 1051 throw new core.ArgumentError("Parameter accountId is required.");
1056 } 1052 }
1057 if (configId == null) { 1053 if (configId == null) {
1058 throw new core.ArgumentError("Parameter configId is required."); 1054 throw new core.ArgumentError("Parameter configId is required.");
1059 } 1055 }
1060 1056
1061 1057
1062 _url = 'pretargetingconfigs/' + common_internal.Escaper.ecapeVariable('$acco untId') + '/' + common_internal.Escaper.ecapeVariable('$configId'); 1058 _url = 'pretargetingconfigs/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$configId');
1063 1059
1064 var _response = _requester.request(_url, 1060 var _response = _requester.request(_url,
1065 "PUT", 1061 "PUT",
1066 body: _body, 1062 body: _body,
1067 queryParams: _queryParams, 1063 queryParams: _queryParams,
1068 uploadOptions: _uploadOptions, 1064 uploadOptions: _uploadOptions,
1069 uploadMedia: _uploadMedia, 1065 uploadMedia: _uploadMedia,
1070 downloadOptions: _downloadOptions); 1066 downloadOptions: _downloadOptions);
1071 return _response.then((data) => new PretargetingConfig.fromJson(data)); 1067 return _response.then((data) => new PretargetingConfig.fromJson(data));
1072 } 1068 }
1073 1069
1074 } 1070 }
1075 1071
1076 1072
1077 1073
1078 /** Not documented yet. */
1079 class AccountBidderLocation { 1074 class AccountBidderLocation {
1080 /** The maximum queries per second the Ad Exchange will send. */ 1075 /** The maximum queries per second the Ad Exchange will send. */
1081 core.int maximumQps; 1076 core.int maximumQps;
1082 1077
1083 /** 1078 /**
1084 * The geographical region the Ad Exchange should send requests from. Only 1079 * The geographical region the Ad Exchange should send requests from. Only
1085 * used by some quota systems, but always setting the value is recommended. 1080 * used by some quota systems, but always setting the value is recommended.
1086 * Allowed values: 1081 * Allowed values:
1087 * - ASIA 1082 * - ASIA
1088 * - EUROPE 1083 * - EUROPE
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 _json["id"] = id; 1415 _json["id"] = id;
1421 } 1416 }
1422 if (kind != null) { 1417 if (kind != null) {
1423 _json["kind"] = kind; 1418 _json["kind"] = kind;
1424 } 1419 }
1425 return _json; 1420 return _json;
1426 } 1421 }
1427 } 1422 }
1428 1423
1429 1424
1430 /** Not documented yet. */
1431 class CreativeCorrections { 1425 class CreativeCorrections {
1432 /** Additional details about the correction. */ 1426 /** Additional details about the correction. */
1433 core.List<core.String> details; 1427 core.List<core.String> details;
1434 1428
1435 /** The type of correction that was applied to the creative. */ 1429 /** The type of correction that was applied to the creative. */
1436 core.String reason; 1430 core.String reason;
1437 1431
1438 1432
1439 CreativeCorrections(); 1433 CreativeCorrections();
1440 1434
(...skipping 12 matching lines...) Expand all
1453 _json["details"] = details; 1447 _json["details"] = details;
1454 } 1448 }
1455 if (reason != null) { 1449 if (reason != null) {
1456 _json["reason"] = reason; 1450 _json["reason"] = reason;
1457 } 1451 }
1458 return _json; 1452 return _json;
1459 } 1453 }
1460 } 1454 }
1461 1455
1462 1456
1463 /** Not documented yet. */
1464 class CreativeDisapprovalReasons { 1457 class CreativeDisapprovalReasons {
1465 /** Additional details about the reason for disapproval. */ 1458 /** Additional details about the reason for disapproval. */
1466 core.List<core.String> details; 1459 core.List<core.String> details;
1467 1460
1468 /** The categorized reason for disapproval. */ 1461 /** The categorized reason for disapproval. */
1469 core.String reason; 1462 core.String reason;
1470 1463
1471 1464
1472 CreativeDisapprovalReasons(); 1465 CreativeDisapprovalReasons();
1473 1466
(...skipping 12 matching lines...) Expand all
1486 _json["details"] = details; 1479 _json["details"] = details;
1487 } 1480 }
1488 if (reason != null) { 1481 if (reason != null) {
1489 _json["reason"] = reason; 1482 _json["reason"] = reason;
1490 } 1483 }
1491 return _json; 1484 return _json;
1492 } 1485 }
1493 } 1486 }
1494 1487
1495 1488
1496 /** Not documented yet. */
1497 class CreativeFilteringReasonsReasons { 1489 class CreativeFilteringReasonsReasons {
1498 /** 1490 /**
1499 * The number of times the creative was filtered for the status. The count is 1491 * The number of times the creative was filtered for the status. The count is
1500 * aggregated across all publishers on the exchange. 1492 * aggregated across all publishers on the exchange.
1501 */ 1493 */
1502 core.String filteringCount; 1494 core.String filteringCount;
1503 1495
1504 /** 1496 /**
1505 * The filtering status code. Please refer to the creative-status-codes.txt 1497 * The filtering status code. Please refer to the creative-status-codes.txt
1506 * file for different statuses. 1498 * file for different statuses.
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 _json["kind"] = kind; 2240 _json["kind"] = kind;
2249 } 2241 }
2250 if (performanceReport != null) { 2242 if (performanceReport != null) {
2251 _json["performanceReport"] = performanceReport.map((value) => (value).toJs on()).toList(); 2243 _json["performanceReport"] = performanceReport.map((value) => (value).toJs on()).toList();
2252 } 2244 }
2253 return _json; 2245 return _json;
2254 } 2246 }
2255 } 2247 }
2256 2248
2257 2249
2258 /** Not documented yet. */
2259 class PretargetingConfigDimensions { 2250 class PretargetingConfigDimensions {
2260 /** Height in pixels. */ 2251 /** Height in pixels. */
2261 core.String height; 2252 core.String height;
2262 2253
2263 /** Width in pixels. */ 2254 /** Width in pixels. */
2264 core.String width; 2255 core.String width;
2265 2256
2266 2257
2267 PretargetingConfigDimensions(); 2258 PretargetingConfigDimensions();
2268 2259
(...skipping 12 matching lines...) Expand all
2281 _json["height"] = height; 2272 _json["height"] = height;
2282 } 2273 }
2283 if (width != null) { 2274 if (width != null) {
2284 _json["width"] = width; 2275 _json["width"] = width;
2285 } 2276 }
2286 return _json; 2277 return _json;
2287 } 2278 }
2288 } 2279 }
2289 2280
2290 2281
2291 /** Not documented yet. */
2292 class PretargetingConfigExcludedPlacements { 2282 class PretargetingConfigExcludedPlacements {
2293 /** 2283 /**
2294 * The value of the placement. Interpretation depends on the placement type, 2284 * The value of the placement. Interpretation depends on the placement type,
2295 * e.g. URL for a site placement, channel name for a channel placement, app id 2285 * e.g. URL for a site placement, channel name for a channel placement, app id
2296 * for a mobile app placement. 2286 * for a mobile app placement.
2297 */ 2287 */
2298 core.String token; 2288 core.String token;
2299 2289
2300 /** The type of the placement. */ 2290 /** The type of the placement. */
2301 core.String type; 2291 core.String type;
(...skipping 16 matching lines...) Expand all
2318 _json["token"] = token; 2308 _json["token"] = token;
2319 } 2309 }
2320 if (type != null) { 2310 if (type != null) {
2321 _json["type"] = type; 2311 _json["type"] = type;
2322 } 2312 }
2323 return _json; 2313 return _json;
2324 } 2314 }
2325 } 2315 }
2326 2316
2327 2317
2328 /** Not documented yet. */
2329 class PretargetingConfigPlacements { 2318 class PretargetingConfigPlacements {
2330 /** 2319 /**
2331 * The value of the placement. Interpretation depends on the placement type, 2320 * The value of the placement. Interpretation depends on the placement type,
2332 * e.g. URL for a site placement, channel name for a channel placement, app id 2321 * e.g. URL for a site placement, channel name for a channel placement, app id
2333 * for a mobile app placement. 2322 * for a mobile app placement.
2334 */ 2323 */
2335 core.String token; 2324 core.String token;
2336 2325
2337 /** The type of the placement. */ 2326 /** The type of the placement. */
2338 core.String type; 2327 core.String type;
(...skipping 16 matching lines...) Expand all
2355 _json["token"] = token; 2344 _json["token"] = token;
2356 } 2345 }
2357 if (type != null) { 2346 if (type != null) {
2358 _json["type"] = type; 2347 _json["type"] = type;
2359 } 2348 }
2360 return _json; 2349 return _json;
2361 } 2350 }
2362 } 2351 }
2363 2352
2364 2353
2365 /** Not documented yet. */
2366 class PretargetingConfig { 2354 class PretargetingConfig {
2367 /** 2355 /**
2368 * The id for billing purposes, provided for reference. Leave this field blank 2356 * The id for billing purposes, provided for reference. Leave this field blank
2369 * for insert requests; the id will be generated automatically. 2357 * for insert requests; the id will be generated automatically.
2370 */ 2358 */
2371 core.String billingId; 2359 core.String billingId;
2372 2360
2373 /** 2361 /**
2374 * The config id; generated automatically. Leave this field blank for insert 2362 * The config id; generated automatically. Leave this field blank for insert
2375 * requests. 2363 * requests.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2616 _json["vendorTypes"] = vendorTypes; 2604 _json["vendorTypes"] = vendorTypes;
2617 } 2605 }
2618 if (verticals != null) { 2606 if (verticals != null) {
2619 _json["verticals"] = verticals; 2607 _json["verticals"] = verticals;
2620 } 2608 }
2621 return _json; 2609 return _json;
2622 } 2610 }
2623 } 2611 }
2624 2612
2625 2613
2626 /** Not documented yet. */
2627 class PretargetingConfigList { 2614 class PretargetingConfigList {
2628 /** A list of pretargeting configs */ 2615 /** A list of pretargeting configs */
2629 core.List<PretargetingConfig> items; 2616 core.List<PretargetingConfig> items;
2630 2617
2631 /** Resource type. */ 2618 /** Resource type. */
2632 core.String kind; 2619 core.String kind;
2633 2620
2634 2621
2635 PretargetingConfigList(); 2622 PretargetingConfigList();
2636 2623
(...skipping 10 matching lines...) Expand all
2647 var _json = new core.Map(); 2634 var _json = new core.Map();
2648 if (items != null) { 2635 if (items != null) {
2649 _json["items"] = items.map((value) => (value).toJson()).toList(); 2636 _json["items"] = items.map((value) => (value).toJson()).toList();
2650 } 2637 }
2651 if (kind != null) { 2638 if (kind != null) {
2652 _json["kind"] = kind; 2639 _json["kind"] = kind;
2653 } 2640 }
2654 return _json; 2641 return _json;
2655 } 2642 }
2656 } 2643 }
2657
2658
OLDNEW
« no previous file with comments | « generated/googleapis/README.md ('k') | generated/googleapis/lib/adexchangeseller/v1_1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698