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

Side by Side Diff: generated/googleapis/lib/doubleclicksearch/v2.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.doubleclicksearch.v2; 3 library googleapis.doubleclicksearch.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:collection' as collection; 6 import 'dart:collection' as collection;
7 import 'dart:async' as async; 7 import 'dart:async' as async;
8 import 'dart:convert' as convert; 8 import 'dart:convert' as convert;
9 9
10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
12 12
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
14 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, 14 show
15 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 15 ApiRequestError,
16 ByteRange; 16 DetailedApiRequestError,
17 Media,
18 UploadOptions,
19 ResumableUploadOptions,
20 DownloadOptions,
21 PartialDownloadOptions,
22 ByteRange;
17 23
18 const core.String USER_AGENT = 'dart-api-client doubleclicksearch/v2'; 24 const core.String USER_AGENT = 'dart-api-client doubleclicksearch/v2';
19 25
20 /** 26 /// Reports and modifies your advertising data in DoubleClick Search (for
21 * Reports and modifies your advertising data in DoubleClick Search (for 27 /// example, campaigns, ad groups, keywords, and conversions).
22 * example, campaigns, ad groups, keywords, and conversions).
23 */
24 class DoubleclicksearchApi { 28 class DoubleclicksearchApi {
25 /** View and manage your advertising data in DoubleClick Search */ 29 /// View and manage your advertising data in DoubleClick Search
26 static const DoubleclicksearchScope = "https://www.googleapis.com/auth/doublec licksearch"; 30 static const DoubleclicksearchScope =
27 31 "https://www.googleapis.com/auth/doubleclicksearch";
28 32
29 final commons.ApiRequester _requester; 33 final commons.ApiRequester _requester;
30 34
31 ConversionResourceApi get conversion => new ConversionResourceApi(_requester); 35 ConversionResourceApi get conversion => new ConversionResourceApi(_requester);
32 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 36 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
33 SavedColumnsResourceApi get savedColumns => new SavedColumnsResourceApi(_reque ster); 37 SavedColumnsResourceApi get savedColumns =>
38 new SavedColumnsResourceApi(_requester);
34 39
35 DoubleclicksearchApi(http.Client client, {core.String rootUrl: "https://www.go ogleapis.com/", core.String servicePath: "doubleclicksearch/v2/"}) : 40 DoubleclicksearchApi(http.Client client,
36 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 41 {core.String rootUrl: "https://www.googleapis.com/",
42 core.String servicePath: "doubleclicksearch/v2/"})
43 : _requester =
44 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
37 } 45 }
38 46
39
40 class ConversionResourceApi { 47 class ConversionResourceApi {
41 final commons.ApiRequester _requester; 48 final commons.ApiRequester _requester;
42 49
43 ConversionResourceApi(commons.ApiRequester client) : 50 ConversionResourceApi(commons.ApiRequester client) : _requester = client;
44 _requester = client;
45 51
46 /** 52 /// Retrieves a list of conversions from a DoubleClick Search engine account.
47 * Retrieves a list of conversions from a DoubleClick Search engine account. 53 ///
48 * 54 /// Request parameters:
49 * Request parameters: 55 ///
50 * 56 /// [agencyId] - Numeric ID of the agency.
51 * [agencyId] - Numeric ID of the agency. 57 ///
52 * 58 /// [advertiserId] - Numeric ID of the advertiser.
53 * [advertiserId] - Numeric ID of the advertiser. 59 ///
54 * 60 /// [engineAccountId] - Numeric ID of the engine account.
55 * [engineAccountId] - Numeric ID of the engine account. 61 ///
56 * 62 /// [endDate] - Last date (inclusive) on which to retrieve conversions.
57 * [endDate] - Last date (inclusive) on which to retrieve conversions. Format 63 /// Format is yyyymmdd.
58 * is yyyymmdd. 64 /// Value must be between "20091101" and "99991231".
59 * Value must be between "20091101" and "99991231". 65 ///
60 * 66 /// [rowCount] - The number of conversions to return per call.
61 * [rowCount] - The number of conversions to return per call. 67 /// Value must be between "1" and "1000".
62 * Value must be between "1" and "1000". 68 ///
63 * 69 /// [startDate] - First date (inclusive) on which to retrieve conversions.
64 * [startDate] - First date (inclusive) on which to retrieve conversions. 70 /// Format is yyyymmdd.
65 * Format is yyyymmdd. 71 /// Value must be between "20091101" and "99991231".
66 * Value must be between "20091101" and "99991231". 72 ///
67 * 73 /// [startRow] - The 0-based starting index for retrieving conversions
68 * [startRow] - The 0-based starting index for retrieving conversions results. 74 /// results.
69 * 75 ///
70 * [adGroupId] - Numeric ID of the ad group. 76 /// [adGroupId] - Numeric ID of the ad group.
71 * 77 ///
72 * [adId] - Numeric ID of the ad. 78 /// [adId] - Numeric ID of the ad.
73 * 79 ///
74 * [campaignId] - Numeric ID of the campaign. 80 /// [campaignId] - Numeric ID of the campaign.
75 * 81 ///
76 * [criterionId] - Numeric ID of the criterion. 82 /// [criterionId] - Numeric ID of the criterion.
77 * 83 ///
78 * Completes with a [ConversionList]. 84 /// Completes with a [ConversionList].
79 * 85 ///
80 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 86 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
81 * error. 87 /// an error.
82 * 88 ///
83 * If the used [http.Client] completes with an error when making a REST call, 89 /// If the used [http.Client] completes with an error when making a REST
84 * this method will complete with the same error. 90 /// call, this method will complete with the same error.
85 */ 91 async.Future<ConversionList> get(
86 async.Future<ConversionList> get(core.String agencyId, core.String advertiserI d, core.String engineAccountId, core.int endDate, core.int rowCount, core.int st artDate, core.int startRow, {core.String adGroupId, core.String adId, core.Strin g campaignId, core.String criterionId}) { 92 core.String agencyId,
93 core.String advertiserId,
94 core.String engineAccountId,
95 core.int endDate,
96 core.int rowCount,
97 core.int startDate,
98 core.int startRow,
99 {core.String adGroupId,
100 core.String adId,
101 core.String campaignId,
102 core.String criterionId}) {
87 var _url = null; 103 var _url = null;
88 var _queryParams = new core.Map(); 104 var _queryParams = new core.Map();
89 var _uploadMedia = null; 105 var _uploadMedia = null;
90 var _uploadOptions = null; 106 var _uploadOptions = null;
91 var _downloadOptions = commons.DownloadOptions.Metadata; 107 var _downloadOptions = commons.DownloadOptions.Metadata;
92 var _body = null; 108 var _body = null;
93 109
94 if (agencyId == null) { 110 if (agencyId == null) {
95 throw new core.ArgumentError("Parameter agencyId is required."); 111 throw new core.ArgumentError("Parameter agencyId is required.");
96 } 112 }
(...skipping 25 matching lines...) Expand all
122 if (adId != null) { 138 if (adId != null) {
123 _queryParams["adId"] = [adId]; 139 _queryParams["adId"] = [adId];
124 } 140 }
125 if (campaignId != null) { 141 if (campaignId != null) {
126 _queryParams["campaignId"] = [campaignId]; 142 _queryParams["campaignId"] = [campaignId];
127 } 143 }
128 if (criterionId != null) { 144 if (criterionId != null) {
129 _queryParams["criterionId"] = [criterionId]; 145 _queryParams["criterionId"] = [criterionId];
130 } 146 }
131 147
132 _url = 'agency/' + commons.Escaper.ecapeVariable('$agencyId') + '/advertiser /' + commons.Escaper.ecapeVariable('$advertiserId') + '/engine/' + commons.Escap er.ecapeVariable('$engineAccountId') + '/conversion'; 148 _url = 'agency/' +
149 commons.Escaper.ecapeVariable('$agencyId') +
150 '/advertiser/' +
151 commons.Escaper.ecapeVariable('$advertiserId') +
152 '/engine/' +
153 commons.Escaper.ecapeVariable('$engineAccountId') +
154 '/conversion';
133 155
134 var _response = _requester.request(_url, 156 var _response = _requester.request(_url, "GET",
135 "GET", 157 body: _body,
136 body: _body, 158 queryParams: _queryParams,
137 queryParams: _queryParams, 159 uploadOptions: _uploadOptions,
138 uploadOptions: _uploadOptions, 160 uploadMedia: _uploadMedia,
139 uploadMedia: _uploadMedia, 161 downloadOptions: _downloadOptions);
140 downloadOptions: _downloadOptions);
141 return _response.then((data) => new ConversionList.fromJson(data)); 162 return _response.then((data) => new ConversionList.fromJson(data));
142 } 163 }
143 164
144 /** 165 /// Inserts a batch of new conversions into DoubleClick Search.
145 * Inserts a batch of new conversions into DoubleClick Search. 166 ///
146 * 167 /// [request] - The metadata request object.
147 * [request] - The metadata request object. 168 ///
148 * 169 /// Request parameters:
149 * Request parameters: 170 ///
150 * 171 /// Completes with a [ConversionList].
151 * Completes with a [ConversionList]. 172 ///
152 * 173 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
153 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 174 /// an error.
154 * error. 175 ///
155 * 176 /// If the used [http.Client] completes with an error when making a REST
156 * If the used [http.Client] completes with an error when making a REST call, 177 /// call, this method will complete with the same error.
157 * this method will complete with the same error.
158 */
159 async.Future<ConversionList> insert(ConversionList request) { 178 async.Future<ConversionList> insert(ConversionList request) {
160 var _url = null; 179 var _url = null;
161 var _queryParams = new core.Map(); 180 var _queryParams = new core.Map();
162 var _uploadMedia = null; 181 var _uploadMedia = null;
163 var _uploadOptions = null; 182 var _uploadOptions = null;
164 var _downloadOptions = commons.DownloadOptions.Metadata; 183 var _downloadOptions = commons.DownloadOptions.Metadata;
165 var _body = null; 184 var _body = null;
166 185
167 if (request != null) { 186 if (request != null) {
168 _body = convert.JSON.encode((request).toJson()); 187 _body = convert.JSON.encode((request).toJson());
169 } 188 }
170 189
171 _url = 'conversion'; 190 _url = 'conversion';
172 191
173 var _response = _requester.request(_url, 192 var _response = _requester.request(_url, "POST",
174 "POST", 193 body: _body,
175 body: _body, 194 queryParams: _queryParams,
176 queryParams: _queryParams, 195 uploadOptions: _uploadOptions,
177 uploadOptions: _uploadOptions, 196 uploadMedia: _uploadMedia,
178 uploadMedia: _uploadMedia, 197 downloadOptions: _downloadOptions);
179 downloadOptions: _downloadOptions);
180 return _response.then((data) => new ConversionList.fromJson(data)); 198 return _response.then((data) => new ConversionList.fromJson(data));
181 } 199 }
182 200
183 /** 201 /// Updates a batch of conversions in DoubleClick Search. This method
184 * Updates a batch of conversions in DoubleClick Search. This method supports 202 /// supports patch semantics.
185 * patch semantics. 203 ///
186 * 204 /// [request] - The metadata request object.
187 * [request] - The metadata request object. 205 ///
188 * 206 /// Request parameters:
189 * Request parameters: 207 ///
190 * 208 /// [advertiserId] - Numeric ID of the advertiser.
191 * [advertiserId] - Numeric ID of the advertiser. 209 ///
192 * 210 /// [agencyId] - Numeric ID of the agency.
193 * [agencyId] - Numeric ID of the agency. 211 ///
194 * 212 /// [endDate] - Last date (inclusive) on which to retrieve conversions.
195 * [endDate] - Last date (inclusive) on which to retrieve conversions. Format 213 /// Format is yyyymmdd.
196 * is yyyymmdd. 214 /// Value must be between "20091101" and "99991231".
197 * Value must be between "20091101" and "99991231". 215 ///
198 * 216 /// [engineAccountId] - Numeric ID of the engine account.
199 * [engineAccountId] - Numeric ID of the engine account. 217 ///
200 * 218 /// [rowCount] - The number of conversions to return per call.
201 * [rowCount] - The number of conversions to return per call. 219 /// Value must be between "1" and "1000".
202 * Value must be between "1" and "1000". 220 ///
203 * 221 /// [startDate] - First date (inclusive) on which to retrieve conversions.
204 * [startDate] - First date (inclusive) on which to retrieve conversions. 222 /// Format is yyyymmdd.
205 * Format is yyyymmdd. 223 /// Value must be between "20091101" and "99991231".
206 * Value must be between "20091101" and "99991231". 224 ///
207 * 225 /// [startRow] - The 0-based starting index for retrieving conversions
208 * [startRow] - The 0-based starting index for retrieving conversions results. 226 /// results.
209 * 227 ///
210 * Completes with a [ConversionList]. 228 /// Completes with a [ConversionList].
211 * 229 ///
212 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 230 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
213 * error. 231 /// an error.
214 * 232 ///
215 * If the used [http.Client] completes with an error when making a REST call, 233 /// If the used [http.Client] completes with an error when making a REST
216 * this method will complete with the same error. 234 /// call, this method will complete with the same error.
217 */ 235 async.Future<ConversionList> patch(
218 async.Future<ConversionList> patch(ConversionList request, core.String adverti serId, core.String agencyId, core.int endDate, core.String engineAccountId, core .int rowCount, core.int startDate, core.int startRow) { 236 ConversionList request,
237 core.String advertiserId,
238 core.String agencyId,
239 core.int endDate,
240 core.String engineAccountId,
241 core.int rowCount,
242 core.int startDate,
243 core.int startRow) {
219 var _url = null; 244 var _url = null;
220 var _queryParams = new core.Map(); 245 var _queryParams = new core.Map();
221 var _uploadMedia = null; 246 var _uploadMedia = null;
222 var _uploadOptions = null; 247 var _uploadOptions = null;
223 var _downloadOptions = commons.DownloadOptions.Metadata; 248 var _downloadOptions = commons.DownloadOptions.Metadata;
224 var _body = null; 249 var _body = null;
225 250
226 if (request != null) { 251 if (request != null) {
227 _body = convert.JSON.encode((request).toJson()); 252 _body = convert.JSON.encode((request).toJson());
228 } 253 }
(...skipping 21 matching lines...) Expand all
250 throw new core.ArgumentError("Parameter startDate is required."); 275 throw new core.ArgumentError("Parameter startDate is required.");
251 } 276 }
252 _queryParams["startDate"] = ["${startDate}"]; 277 _queryParams["startDate"] = ["${startDate}"];
253 if (startRow == null) { 278 if (startRow == null) {
254 throw new core.ArgumentError("Parameter startRow is required."); 279 throw new core.ArgumentError("Parameter startRow is required.");
255 } 280 }
256 _queryParams["startRow"] = ["${startRow}"]; 281 _queryParams["startRow"] = ["${startRow}"];
257 282
258 _url = 'conversion'; 283 _url = 'conversion';
259 284
260 var _response = _requester.request(_url, 285 var _response = _requester.request(_url, "PATCH",
261 "PATCH", 286 body: _body,
262 body: _body, 287 queryParams: _queryParams,
263 queryParams: _queryParams, 288 uploadOptions: _uploadOptions,
264 uploadOptions: _uploadOptions, 289 uploadMedia: _uploadMedia,
265 uploadMedia: _uploadMedia, 290 downloadOptions: _downloadOptions);
266 downloadOptions: _downloadOptions);
267 return _response.then((data) => new ConversionList.fromJson(data)); 291 return _response.then((data) => new ConversionList.fromJson(data));
268 } 292 }
269 293
270 /** 294 /// Updates a batch of conversions in DoubleClick Search.
271 * Updates a batch of conversions in DoubleClick Search. 295 ///
272 * 296 /// [request] - The metadata request object.
273 * [request] - The metadata request object. 297 ///
274 * 298 /// Request parameters:
275 * Request parameters: 299 ///
276 * 300 /// Completes with a [ConversionList].
277 * Completes with a [ConversionList]. 301 ///
278 * 302 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 303 /// an error.
280 * error. 304 ///
281 * 305 /// If the used [http.Client] completes with an error when making a REST
282 * If the used [http.Client] completes with an error when making a REST call, 306 /// call, this method will complete with the same error.
283 * this method will complete with the same error.
284 */
285 async.Future<ConversionList> update(ConversionList request) { 307 async.Future<ConversionList> update(ConversionList request) {
286 var _url = null; 308 var _url = null;
287 var _queryParams = new core.Map(); 309 var _queryParams = new core.Map();
288 var _uploadMedia = null; 310 var _uploadMedia = null;
289 var _uploadOptions = null; 311 var _uploadOptions = null;
290 var _downloadOptions = commons.DownloadOptions.Metadata; 312 var _downloadOptions = commons.DownloadOptions.Metadata;
291 var _body = null; 313 var _body = null;
292 314
293 if (request != null) { 315 if (request != null) {
294 _body = convert.JSON.encode((request).toJson()); 316 _body = convert.JSON.encode((request).toJson());
295 } 317 }
296 318
297 _url = 'conversion'; 319 _url = 'conversion';
298 320
299 var _response = _requester.request(_url, 321 var _response = _requester.request(_url, "PUT",
300 "PUT", 322 body: _body,
301 body: _body, 323 queryParams: _queryParams,
302 queryParams: _queryParams, 324 uploadOptions: _uploadOptions,
303 uploadOptions: _uploadOptions, 325 uploadMedia: _uploadMedia,
304 uploadMedia: _uploadMedia, 326 downloadOptions: _downloadOptions);
305 downloadOptions: _downloadOptions);
306 return _response.then((data) => new ConversionList.fromJson(data)); 327 return _response.then((data) => new ConversionList.fromJson(data));
307 } 328 }
308 329
309 /** 330 /// Updates the availabilities of a batch of floodlight activities in
310 * Updates the availabilities of a batch of floodlight activities in 331 /// DoubleClick Search.
311 * DoubleClick Search. 332 ///
312 * 333 /// [request] - The metadata request object.
313 * [request] - The metadata request object. 334 ///
314 * 335 /// Request parameters:
315 * Request parameters: 336 ///
316 * 337 /// Completes with a [UpdateAvailabilityResponse].
317 * Completes with a [UpdateAvailabilityResponse]. 338 ///
318 * 339 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
319 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 340 /// an error.
320 * error. 341 ///
321 * 342 /// If the used [http.Client] completes with an error when making a REST
322 * If the used [http.Client] completes with an error when making a REST call, 343 /// call, this method will complete with the same error.
323 * this method will complete with the same error. 344 async.Future<UpdateAvailabilityResponse> updateAvailability(
324 */ 345 UpdateAvailabilityRequest request) {
325 async.Future<UpdateAvailabilityResponse> updateAvailability(UpdateAvailability Request request) {
326 var _url = null; 346 var _url = null;
327 var _queryParams = new core.Map(); 347 var _queryParams = new core.Map();
328 var _uploadMedia = null; 348 var _uploadMedia = null;
329 var _uploadOptions = null; 349 var _uploadOptions = null;
330 var _downloadOptions = commons.DownloadOptions.Metadata; 350 var _downloadOptions = commons.DownloadOptions.Metadata;
331 var _body = null; 351 var _body = null;
332 352
333 if (request != null) { 353 if (request != null) {
334 _body = convert.JSON.encode((request).toJson()); 354 _body = convert.JSON.encode((request).toJson());
335 } 355 }
336 356
337 _url = 'conversion/updateAvailability'; 357 _url = 'conversion/updateAvailability';
338 358
339 var _response = _requester.request(_url, 359 var _response = _requester.request(_url, "POST",
340 "POST", 360 body: _body,
341 body: _body, 361 queryParams: _queryParams,
342 queryParams: _queryParams, 362 uploadOptions: _uploadOptions,
343 uploadOptions: _uploadOptions, 363 uploadMedia: _uploadMedia,
344 uploadMedia: _uploadMedia, 364 downloadOptions: _downloadOptions);
345 downloadOptions: _downloadOptions); 365 return _response
346 return _response.then((data) => new UpdateAvailabilityResponse.fromJson(data )); 366 .then((data) => new UpdateAvailabilityResponse.fromJson(data));
347 } 367 }
348
349 } 368 }
350 369
351
352 class ReportsResourceApi { 370 class ReportsResourceApi {
353 final commons.ApiRequester _requester; 371 final commons.ApiRequester _requester;
354 372
355 ReportsResourceApi(commons.ApiRequester client) : 373 ReportsResourceApi(commons.ApiRequester client) : _requester = client;
356 _requester = client;
357 374
358 /** 375 /// Generates and returns a report immediately.
359 * Generates and returns a report immediately. 376 ///
360 * 377 /// [request_1] - The metadata request object.
361 * [request_1] - The metadata request object. 378 ///
362 * 379 /// Request parameters:
363 * Request parameters: 380 ///
364 * 381 /// Completes with a [Report].
365 * Completes with a [Report]. 382 ///
366 * 383 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 384 /// an error.
368 * error. 385 ///
369 * 386 /// If the used [http.Client] completes with an error when making a REST
370 * If the used [http.Client] completes with an error when making a REST call, 387 /// call, this method will complete with the same error.
371 * this method will complete with the same error.
372 */
373 async.Future<Report> generate(ReportRequest request_1) { 388 async.Future<Report> generate(ReportRequest request_1) {
374 var _url = null; 389 var _url = null;
375 var _queryParams = new core.Map(); 390 var _queryParams = new core.Map();
376 var _uploadMedia = null; 391 var _uploadMedia = null;
377 var _uploadOptions = null; 392 var _uploadOptions = null;
378 var _downloadOptions = commons.DownloadOptions.Metadata; 393 var _downloadOptions = commons.DownloadOptions.Metadata;
379 var _body = null; 394 var _body = null;
380 395
381 if (request_1 != null) { 396 if (request_1 != null) {
382 _body = convert.JSON.encode((request_1).toJson()); 397 _body = convert.JSON.encode((request_1).toJson());
383 } 398 }
384 399
385 _url = 'reports/generate'; 400 _url = 'reports/generate';
386 401
387 var _response = _requester.request(_url, 402 var _response = _requester.request(_url, "POST",
388 "POST", 403 body: _body,
389 body: _body, 404 queryParams: _queryParams,
390 queryParams: _queryParams, 405 uploadOptions: _uploadOptions,
391 uploadOptions: _uploadOptions, 406 uploadMedia: _uploadMedia,
392 uploadMedia: _uploadMedia, 407 downloadOptions: _downloadOptions);
393 downloadOptions: _downloadOptions);
394 return _response.then((data) => new Report.fromJson(data)); 408 return _response.then((data) => new Report.fromJson(data));
395 } 409 }
396 410
397 /** 411 /// Polls for the status of a report request.
398 * Polls for the status of a report request. 412 ///
399 * 413 /// Request parameters:
400 * Request parameters: 414 ///
401 * 415 /// [reportId] - ID of the report request being polled.
402 * [reportId] - ID of the report request being polled. 416 ///
403 * 417 /// Completes with a [Report].
404 * Completes with a [Report]. 418 ///
405 * 419 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
406 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 420 /// an error.
407 * error. 421 ///
408 * 422 /// If the used [http.Client] completes with an error when making a REST
409 * If the used [http.Client] completes with an error when making a REST call, 423 /// call, this method will complete with the same error.
410 * this method will complete with the same error.
411 */
412 async.Future<Report> get(core.String reportId) { 424 async.Future<Report> get(core.String reportId) {
413 var _url = null; 425 var _url = null;
414 var _queryParams = new core.Map(); 426 var _queryParams = new core.Map();
415 var _uploadMedia = null; 427 var _uploadMedia = null;
416 var _uploadOptions = null; 428 var _uploadOptions = null;
417 var _downloadOptions = commons.DownloadOptions.Metadata; 429 var _downloadOptions = commons.DownloadOptions.Metadata;
418 var _body = null; 430 var _body = null;
419 431
420 if (reportId == null) { 432 if (reportId == null) {
421 throw new core.ArgumentError("Parameter reportId is required."); 433 throw new core.ArgumentError("Parameter reportId is required.");
422 } 434 }
423 435
424 _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId'); 436 _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId');
425 437
426 var _response = _requester.request(_url, 438 var _response = _requester.request(_url, "GET",
427 "GET", 439 body: _body,
428 body: _body, 440 queryParams: _queryParams,
429 queryParams: _queryParams, 441 uploadOptions: _uploadOptions,
430 uploadOptions: _uploadOptions, 442 uploadMedia: _uploadMedia,
431 uploadMedia: _uploadMedia, 443 downloadOptions: _downloadOptions);
432 downloadOptions: _downloadOptions);
433 return _response.then((data) => new Report.fromJson(data)); 444 return _response.then((data) => new Report.fromJson(data));
434 } 445 }
435 446
436 /** 447 /// Downloads a report file encoded in UTF-8.
437 * Downloads a report file encoded in UTF-8. 448 ///
438 * 449 /// Request parameters:
439 * Request parameters: 450 ///
440 * 451 /// [reportId] - ID of the report.
441 * [reportId] - ID of the report. 452 ///
442 * 453 /// [reportFragment] - The index of the report fragment to download.
443 * [reportFragment] - The index of the report fragment to download. 454 ///
444 * 455 /// [downloadOptions] - Options for downloading. A download can be either a
445 * [downloadOptions] - Options for downloading. A download can be either a 456 /// Metadata (default) or Media download. Partial Media downloads are
446 * Metadata (default) or Media download. Partial Media downloads are possible 457 /// possible as well.
447 * as well. 458 ///
448 * 459 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
449 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 460 /// an error.
450 * error. 461 ///
451 * 462 /// If the used [http.Client] completes with an error when making a REST
452 * If the used [http.Client] completes with an error when making a REST call, 463 /// call, this method will complete with the same error.
453 * this method will complete with the same error. 464 async.Future getFile(core.String reportId, core.int reportFragment,
454 */ 465 {commons.DownloadOptions downloadOptions:
455 async.Future getFile(core.String reportId, core.int reportFragment, {commons.D ownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { 466 commons.DownloadOptions.Metadata}) {
456 var _url = null; 467 var _url = null;
457 var _queryParams = new core.Map(); 468 var _queryParams = new core.Map();
458 var _uploadMedia = null; 469 var _uploadMedia = null;
459 var _uploadOptions = null; 470 var _uploadOptions = null;
460 var _downloadOptions = commons.DownloadOptions.Metadata; 471 var _downloadOptions = commons.DownloadOptions.Metadata;
461 var _body = null; 472 var _body = null;
462 473
463 if (reportId == null) { 474 if (reportId == null) {
464 throw new core.ArgumentError("Parameter reportId is required."); 475 throw new core.ArgumentError("Parameter reportId is required.");
465 } 476 }
466 if (reportFragment == null) { 477 if (reportFragment == null) {
467 throw new core.ArgumentError("Parameter reportFragment is required."); 478 throw new core.ArgumentError("Parameter reportFragment is required.");
468 } 479 }
469 480
470 _downloadOptions = downloadOptions; 481 _downloadOptions = downloadOptions;
471 482
472 _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$reportFragment'); 483 _url = 'reports/' +
484 commons.Escaper.ecapeVariable('$reportId') +
485 '/files/' +
486 commons.Escaper.ecapeVariable('$reportFragment');
473 487
474 var _response = _requester.request(_url, 488 var _response = _requester.request(_url, "GET",
475 "GET", 489 body: _body,
476 body: _body, 490 queryParams: _queryParams,
477 queryParams: _queryParams, 491 uploadOptions: _uploadOptions,
478 uploadOptions: _uploadOptions, 492 uploadMedia: _uploadMedia,
479 uploadMedia: _uploadMedia, 493 downloadOptions: _downloadOptions);
480 downloadOptions: _downloadOptions);
481 if (_downloadOptions == null || 494 if (_downloadOptions == null ||
482 _downloadOptions == commons.DownloadOptions.Metadata) { 495 _downloadOptions == commons.DownloadOptions.Metadata) {
483 return _response.then((data) => null); 496 return _response.then((data) => null);
484 } else { 497 } else {
485 return _response; 498 return _response;
486 } 499 }
487 } 500 }
488 501
489 /** 502 /// Inserts a report request into the reporting system.
490 * Inserts a report request into the reporting system. 503 ///
491 * 504 /// [request_1] - The metadata request object.
492 * [request_1] - The metadata request object. 505 ///
493 * 506 /// Request parameters:
494 * Request parameters: 507 ///
495 * 508 /// Completes with a [Report].
496 * Completes with a [Report]. 509 ///
497 * 510 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
498 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 511 /// an error.
499 * error. 512 ///
500 * 513 /// If the used [http.Client] completes with an error when making a REST
501 * If the used [http.Client] completes with an error when making a REST call, 514 /// call, this method will complete with the same error.
502 * this method will complete with the same error.
503 */
504 async.Future<Report> request(ReportRequest request_1) { 515 async.Future<Report> request(ReportRequest request_1) {
505 var _url = null; 516 var _url = null;
506 var _queryParams = new core.Map(); 517 var _queryParams = new core.Map();
507 var _uploadMedia = null; 518 var _uploadMedia = null;
508 var _uploadOptions = null; 519 var _uploadOptions = null;
509 var _downloadOptions = commons.DownloadOptions.Metadata; 520 var _downloadOptions = commons.DownloadOptions.Metadata;
510 var _body = null; 521 var _body = null;
511 522
512 if (request_1 != null) { 523 if (request_1 != null) {
513 _body = convert.JSON.encode((request_1).toJson()); 524 _body = convert.JSON.encode((request_1).toJson());
514 } 525 }
515 526
516 _url = 'reports'; 527 _url = 'reports';
517 528
518 var _response = _requester.request(_url, 529 var _response = _requester.request(_url, "POST",
519 "POST", 530 body: _body,
520 body: _body, 531 queryParams: _queryParams,
521 queryParams: _queryParams, 532 uploadOptions: _uploadOptions,
522 uploadOptions: _uploadOptions, 533 uploadMedia: _uploadMedia,
523 uploadMedia: _uploadMedia, 534 downloadOptions: _downloadOptions);
524 downloadOptions: _downloadOptions);
525 return _response.then((data) => new Report.fromJson(data)); 535 return _response.then((data) => new Report.fromJson(data));
526 } 536 }
527
528 } 537 }
529 538
530
531 class SavedColumnsResourceApi { 539 class SavedColumnsResourceApi {
532 final commons.ApiRequester _requester; 540 final commons.ApiRequester _requester;
533 541
534 SavedColumnsResourceApi(commons.ApiRequester client) : 542 SavedColumnsResourceApi(commons.ApiRequester client) : _requester = client;
535 _requester = client;
536 543
537 /** 544 /// Retrieve the list of saved columns for a specified advertiser.
538 * Retrieve the list of saved columns for a specified advertiser. 545 ///
539 * 546 /// Request parameters:
540 * Request parameters: 547 ///
541 * 548 /// [agencyId] - DS ID of the agency.
542 * [agencyId] - DS ID of the agency. 549 ///
543 * 550 /// [advertiserId] - DS ID of the advertiser.
544 * [advertiserId] - DS ID of the advertiser. 551 ///
545 * 552 /// Completes with a [SavedColumnList].
546 * Completes with a [SavedColumnList]. 553 ///
547 * 554 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
548 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 555 /// an error.
549 * error. 556 ///
550 * 557 /// If the used [http.Client] completes with an error when making a REST
551 * If the used [http.Client] completes with an error when making a REST call, 558 /// call, this method will complete with the same error.
552 * this method will complete with the same error. 559 async.Future<SavedColumnList> list(
553 */ 560 core.String agencyId, core.String advertiserId) {
554 async.Future<SavedColumnList> list(core.String agencyId, core.String advertise rId) {
555 var _url = null; 561 var _url = null;
556 var _queryParams = new core.Map(); 562 var _queryParams = new core.Map();
557 var _uploadMedia = null; 563 var _uploadMedia = null;
558 var _uploadOptions = null; 564 var _uploadOptions = null;
559 var _downloadOptions = commons.DownloadOptions.Metadata; 565 var _downloadOptions = commons.DownloadOptions.Metadata;
560 var _body = null; 566 var _body = null;
561 567
562 if (agencyId == null) { 568 if (agencyId == null) {
563 throw new core.ArgumentError("Parameter agencyId is required."); 569 throw new core.ArgumentError("Parameter agencyId is required.");
564 } 570 }
565 if (advertiserId == null) { 571 if (advertiserId == null) {
566 throw new core.ArgumentError("Parameter advertiserId is required."); 572 throw new core.ArgumentError("Parameter advertiserId is required.");
567 } 573 }
568 574
569 _url = 'agency/' + commons.Escaper.ecapeVariable('$agencyId') + '/advertiser /' + commons.Escaper.ecapeVariable('$advertiserId') + '/savedcolumns'; 575 _url = 'agency/' +
576 commons.Escaper.ecapeVariable('$agencyId') +
577 '/advertiser/' +
578 commons.Escaper.ecapeVariable('$advertiserId') +
579 '/savedcolumns';
570 580
571 var _response = _requester.request(_url, 581 var _response = _requester.request(_url, "GET",
572 "GET", 582 body: _body,
573 body: _body, 583 queryParams: _queryParams,
574 queryParams: _queryParams, 584 uploadOptions: _uploadOptions,
575 uploadOptions: _uploadOptions, 585 uploadMedia: _uploadMedia,
576 uploadMedia: _uploadMedia, 586 downloadOptions: _downloadOptions);
577 downloadOptions: _downloadOptions);
578 return _response.then((data) => new SavedColumnList.fromJson(data)); 587 return _response.then((data) => new SavedColumnList.fromJson(data));
579 } 588 }
580
581 } 589 }
582 590
591 /// A message containing availability data relevant to DoubleClick Search.
592 class Availability {
593 /// DS advertiser ID.
594 core.String advertiserId;
583 595
596 /// DS agency ID.
597 core.String agencyId;
584 598
585 /** A message containing availability data relevant to DoubleClick Search. */ 599 /// The time by which all conversions have been uploaded, in epoch millis
586 class Availability { 600 /// UTC.
587 /** DS advertiser ID. */
588 core.String advertiserId;
589 /** DS agency ID. */
590 core.String agencyId;
591 /**
592 * The time by which all conversions have been uploaded, in epoch millis UTC.
593 */
594 core.String availabilityTimestamp; 601 core.String availabilityTimestamp;
595 /** 602
596 * The numeric segmentation identifier (for example, DoubleClick Search 603 /// The numeric segmentation identifier (for example, DoubleClick Search
597 * Floodlight activity ID). 604 /// Floodlight activity ID).
598 */
599 core.String segmentationId; 605 core.String segmentationId;
600 /** 606
601 * The friendly segmentation identifier (for example, DoubleClick Search 607 /// The friendly segmentation identifier (for example, DoubleClick Search
602 * Floodlight activity name). 608 /// Floodlight activity name).
603 */
604 core.String segmentationName; 609 core.String segmentationName;
605 /** 610
606 * The segmentation type that this availability is for (its default value is 611 /// The segmentation type that this availability is for (its default value is
607 * FLOODLIGHT). 612 /// FLOODLIGHT).
608 */
609 core.String segmentationType; 613 core.String segmentationType;
610 614
611 Availability(); 615 Availability();
612 616
613 Availability.fromJson(core.Map _json) { 617 Availability.fromJson(core.Map _json) {
614 if (_json.containsKey("advertiserId")) { 618 if (_json.containsKey("advertiserId")) {
615 advertiserId = _json["advertiserId"]; 619 advertiserId = _json["advertiserId"];
616 } 620 }
617 if (_json.containsKey("agencyId")) { 621 if (_json.containsKey("agencyId")) {
618 agencyId = _json["agencyId"]; 622 agencyId = _json["agencyId"];
619 } 623 }
620 if (_json.containsKey("availabilityTimestamp")) { 624 if (_json.containsKey("availabilityTimestamp")) {
621 availabilityTimestamp = _json["availabilityTimestamp"]; 625 availabilityTimestamp = _json["availabilityTimestamp"];
622 } 626 }
623 if (_json.containsKey("segmentationId")) { 627 if (_json.containsKey("segmentationId")) {
624 segmentationId = _json["segmentationId"]; 628 segmentationId = _json["segmentationId"];
625 } 629 }
626 if (_json.containsKey("segmentationName")) { 630 if (_json.containsKey("segmentationName")) {
627 segmentationName = _json["segmentationName"]; 631 segmentationName = _json["segmentationName"];
628 } 632 }
629 if (_json.containsKey("segmentationType")) { 633 if (_json.containsKey("segmentationType")) {
630 segmentationType = _json["segmentationType"]; 634 segmentationType = _json["segmentationType"];
631 } 635 }
632 } 636 }
633 637
634 core.Map<core.String, core.Object> toJson() { 638 core.Map<core.String, core.Object> toJson() {
635 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 639 final core.Map<core.String, core.Object> _json =
640 new core.Map<core.String, core.Object>();
636 if (advertiserId != null) { 641 if (advertiserId != null) {
637 _json["advertiserId"] = advertiserId; 642 _json["advertiserId"] = advertiserId;
638 } 643 }
639 if (agencyId != null) { 644 if (agencyId != null) {
640 _json["agencyId"] = agencyId; 645 _json["agencyId"] = agencyId;
641 } 646 }
642 if (availabilityTimestamp != null) { 647 if (availabilityTimestamp != null) {
643 _json["availabilityTimestamp"] = availabilityTimestamp; 648 _json["availabilityTimestamp"] = availabilityTimestamp;
644 } 649 }
645 if (segmentationId != null) { 650 if (segmentationId != null) {
646 _json["segmentationId"] = segmentationId; 651 _json["segmentationId"] = segmentationId;
647 } 652 }
648 if (segmentationName != null) { 653 if (segmentationName != null) {
649 _json["segmentationName"] = segmentationName; 654 _json["segmentationName"] = segmentationName;
650 } 655 }
651 if (segmentationType != null) { 656 if (segmentationType != null) {
652 _json["segmentationType"] = segmentationType; 657 _json["segmentationType"] = segmentationType;
653 } 658 }
654 return _json; 659 return _json;
655 } 660 }
656 } 661 }
657 662
658 /** A conversion containing data relevant to DoubleClick Search. */ 663 /// A conversion containing data relevant to DoubleClick Search.
659 class Conversion { 664 class Conversion {
660 /** DS ad group ID. */ 665 /// DS ad group ID.
661 core.String adGroupId; 666 core.String adGroupId;
662 /** DS ad ID. */ 667
668 /// DS ad ID.
663 core.String adId; 669 core.String adId;
664 /** DS advertiser ID. */ 670
671 /// DS advertiser ID.
665 core.String advertiserId; 672 core.String advertiserId;
666 /** DS agency ID. */ 673
674 /// DS agency ID.
667 core.String agencyId; 675 core.String agencyId;
668 /** 676
669 * Available to advertisers only after contacting DoubleClick Search customer 677 /// Available to advertisers only after contacting DoubleClick Search
670 * support. 678 /// customer support.
671 */
672 core.String attributionModel; 679 core.String attributionModel;
673 /** DS campaign ID. */ 680
681 /// DS campaign ID.
674 core.String campaignId; 682 core.String campaignId;
675 /** 683
676 * Sales channel for the product. Acceptable values are: 684 /// Sales channel for the product. Acceptable values are:
677 * - "local": a physical store 685 /// - "local": a physical store
678 * - "online": an online store 686 /// - "online": an online store
679 */
680 core.String channel; 687 core.String channel;
681 /** DS click ID for the conversion. */ 688
689 /// DS click ID for the conversion.
682 core.String clickId; 690 core.String clickId;
683 /** 691
684 * For offline conversions, advertisers provide this ID. Advertisers can 692 /// For offline conversions, advertisers provide this ID. Advertisers can
685 * specify any ID that is meaningful to them. Each conversion in a request 693 /// specify any ID that is meaningful to them. Each conversion in a request
686 * must specify a unique ID, and the combination of ID and timestamp must be 694 /// must specify a unique ID, and the combination of ID and timestamp must be
687 * unique amongst all conversions within the advertiser. 695 /// unique amongst all conversions within the advertiser.
688 * For online conversions, DS copies the dsConversionId or floodlightOrderId 696 /// For online conversions, DS copies the dsConversionId or floodlightOrderId
689 * into this property depending on the advertiser's Floodlight instructions. 697 /// into this property depending on the advertiser's Floodlight instructions.
690 */
691 core.String conversionId; 698 core.String conversionId;
692 /** 699
693 * The time at which the conversion was last modified, in epoch millis UTC. 700 /// The time at which the conversion was last modified, in epoch millis UTC.
694 */
695 core.String conversionModifiedTimestamp; 701 core.String conversionModifiedTimestamp;
696 /** The time at which the conversion took place, in epoch millis UTC. */ 702
703 /// The time at which the conversion took place, in epoch millis UTC.
697 core.String conversionTimestamp; 704 core.String conversionTimestamp;
698 /** 705
699 * Available to advertisers only after contacting DoubleClick Search customer 706 /// Available to advertisers only after contacting DoubleClick Search
700 * support. 707 /// customer support.
701 */
702 core.String countMillis; 708 core.String countMillis;
703 /** DS criterion (keyword) ID. */ 709
710 /// DS criterion (keyword) ID.
704 core.String criterionId; 711 core.String criterionId;
705 /** 712
706 * The currency code for the conversion's revenue. Should be in ISO 4217 713 /// The currency code for the conversion's revenue. Should be in ISO 4217
707 * alphabetic (3-char) format. 714 /// alphabetic (3-char) format.
708 */
709 core.String currencyCode; 715 core.String currencyCode;
710 /** 716
711 * Custom dimensions for the conversion, which can be used to filter data in a 717 /// Custom dimensions for the conversion, which can be used to filter data in
712 * report. 718 /// a report.
713 */
714 core.List<CustomDimension> customDimension; 719 core.List<CustomDimension> customDimension;
715 /** Custom metrics for the conversion. */ 720
721 /// Custom metrics for the conversion.
716 core.List<CustomMetric> customMetric; 722 core.List<CustomMetric> customMetric;
717 /** The type of device on which the conversion occurred. */ 723
724 /// The type of device on which the conversion occurred.
718 core.String deviceType; 725 core.String deviceType;
719 /** ID that DoubleClick Search generates for each conversion. */ 726
727 /// ID that DoubleClick Search generates for each conversion.
720 core.String dsConversionId; 728 core.String dsConversionId;
721 /** DS engine account ID. */ 729
730 /// DS engine account ID.
722 core.String engineAccountId; 731 core.String engineAccountId;
723 /** The Floodlight order ID provided by the advertiser for the conversion. */ 732
733 /// The Floodlight order ID provided by the advertiser for the conversion.
724 core.String floodlightOrderId; 734 core.String floodlightOrderId;
725 /** 735
726 * ID that DS generates and uses to uniquely identify the inventory account 736 /// ID that DS generates and uses to uniquely identify the inventory account
727 * that contains the product. 737 /// that contains the product.
728 */
729 core.String inventoryAccountId; 738 core.String inventoryAccountId;
730 /** 739
731 * The country registered for the Merchant Center feed that contains the 740 /// The country registered for the Merchant Center feed that contains the
732 * product. Use an ISO 3166 code to specify a country. 741 /// product. Use an ISO 3166 code to specify a country.
733 */
734 core.String productCountry; 742 core.String productCountry;
735 /** DS product group ID. */ 743
744 /// DS product group ID.
736 core.String productGroupId; 745 core.String productGroupId;
737 /** The product ID (SKU). */ 746
747 /// The product ID (SKU).
738 core.String productId; 748 core.String productId;
739 /** 749
740 * The language registered for the Merchant Center feed that contains the 750 /// The language registered for the Merchant Center feed that contains the
741 * product. Use an ISO 639 code to specify a language. 751 /// product. Use an ISO 639 code to specify a language.
742 */
743 core.String productLanguage; 752 core.String productLanguage;
744 /** The quantity of this conversion, in millis. */ 753
754 /// The quantity of this conversion, in millis.
745 core.String quantityMillis; 755 core.String quantityMillis;
746 /** 756
747 * The revenue amount of this TRANSACTION conversion, in micros (value 757 /// The revenue amount of this TRANSACTION conversion, in micros (value
748 * multiplied by 1000000, no decimal). For example, to specify a revenue value 758 /// multiplied by 1000000, no decimal). For example, to specify a revenue
749 * of "10" enter "10000000" (10 million) in your request. 759 /// value of "10" enter "10000000" (10 million) in your request.
750 */
751 core.String revenueMicros; 760 core.String revenueMicros;
752 /** 761
753 * The numeric segmentation identifier (for example, DoubleClick Search 762 /// The numeric segmentation identifier (for example, DoubleClick Search
754 * Floodlight activity ID). 763 /// Floodlight activity ID).
755 */
756 core.String segmentationId; 764 core.String segmentationId;
757 /** 765
758 * The friendly segmentation identifier (for example, DoubleClick Search 766 /// The friendly segmentation identifier (for example, DoubleClick Search
759 * Floodlight activity name). 767 /// Floodlight activity name).
760 */
761 core.String segmentationName; 768 core.String segmentationName;
762 /** The segmentation type of this conversion (for example, FLOODLIGHT). */ 769
770 /// The segmentation type of this conversion (for example, FLOODLIGHT).
763 core.String segmentationType; 771 core.String segmentationType;
764 /** 772
765 * The state of the conversion, that is, either ACTIVE or REMOVED. Note: state 773 /// The state of the conversion, that is, either ACTIVE or REMOVED. Note:
766 * DELETED is deprecated. 774 /// state DELETED is deprecated.
767 */
768 core.String state; 775 core.String state;
769 /** 776
770 * The ID of the local store for which the product was advertised. Applicable 777 /// The ID of the local store for which the product was advertised.
771 * only when the channel is "local". 778 /// Applicable only when the channel is "local".
772 */
773 core.String storeId; 779 core.String storeId;
774 /** 780
775 * The type of the conversion, that is, either ACTION or TRANSACTION. An 781 /// The type of the conversion, that is, either ACTION or TRANSACTION. An
776 * ACTION conversion is an action by the user that has no monetarily 782 /// ACTION conversion is an action by the user that has no monetarily
777 * quantifiable value, while a TRANSACTION conversion is an action that does 783 /// quantifiable value, while a TRANSACTION conversion is an action that does
778 * have a monetarily quantifiable value. Examples are email list signups 784 /// have a monetarily quantifiable value. Examples are email list signups
779 * (ACTION) versus ecommerce purchases (TRANSACTION). 785 /// (ACTION) versus ecommerce purchases (TRANSACTION).
780 */
781 core.String type; 786 core.String type;
782 787
783 Conversion(); 788 Conversion();
784 789
785 Conversion.fromJson(core.Map _json) { 790 Conversion.fromJson(core.Map _json) {
786 if (_json.containsKey("adGroupId")) { 791 if (_json.containsKey("adGroupId")) {
787 adGroupId = _json["adGroupId"]; 792 adGroupId = _json["adGroupId"];
788 } 793 }
789 if (_json.containsKey("adId")) { 794 if (_json.containsKey("adId")) {
790 adId = _json["adId"]; 795 adId = _json["adId"];
(...skipping 28 matching lines...) Expand all
819 if (_json.containsKey("countMillis")) { 824 if (_json.containsKey("countMillis")) {
820 countMillis = _json["countMillis"]; 825 countMillis = _json["countMillis"];
821 } 826 }
822 if (_json.containsKey("criterionId")) { 827 if (_json.containsKey("criterionId")) {
823 criterionId = _json["criterionId"]; 828 criterionId = _json["criterionId"];
824 } 829 }
825 if (_json.containsKey("currencyCode")) { 830 if (_json.containsKey("currencyCode")) {
826 currencyCode = _json["currencyCode"]; 831 currencyCode = _json["currencyCode"];
827 } 832 }
828 if (_json.containsKey("customDimension")) { 833 if (_json.containsKey("customDimension")) {
829 customDimension = _json["customDimension"].map((value) => new CustomDimens ion.fromJson(value)).toList(); 834 customDimension = _json["customDimension"]
835 .map((value) => new CustomDimension.fromJson(value))
836 .toList();
830 } 837 }
831 if (_json.containsKey("customMetric")) { 838 if (_json.containsKey("customMetric")) {
832 customMetric = _json["customMetric"].map((value) => new CustomMetric.fromJ son(value)).toList(); 839 customMetric = _json["customMetric"]
840 .map((value) => new CustomMetric.fromJson(value))
841 .toList();
833 } 842 }
834 if (_json.containsKey("deviceType")) { 843 if (_json.containsKey("deviceType")) {
835 deviceType = _json["deviceType"]; 844 deviceType = _json["deviceType"];
836 } 845 }
837 if (_json.containsKey("dsConversionId")) { 846 if (_json.containsKey("dsConversionId")) {
838 dsConversionId = _json["dsConversionId"]; 847 dsConversionId = _json["dsConversionId"];
839 } 848 }
840 if (_json.containsKey("engineAccountId")) { 849 if (_json.containsKey("engineAccountId")) {
841 engineAccountId = _json["engineAccountId"]; 850 engineAccountId = _json["engineAccountId"];
842 } 851 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 } 887 }
879 if (_json.containsKey("storeId")) { 888 if (_json.containsKey("storeId")) {
880 storeId = _json["storeId"]; 889 storeId = _json["storeId"];
881 } 890 }
882 if (_json.containsKey("type")) { 891 if (_json.containsKey("type")) {
883 type = _json["type"]; 892 type = _json["type"];
884 } 893 }
885 } 894 }
886 895
887 core.Map<core.String, core.Object> toJson() { 896 core.Map<core.String, core.Object> toJson() {
888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 897 final core.Map<core.String, core.Object> _json =
898 new core.Map<core.String, core.Object>();
889 if (adGroupId != null) { 899 if (adGroupId != null) {
890 _json["adGroupId"] = adGroupId; 900 _json["adGroupId"] = adGroupId;
891 } 901 }
892 if (adId != null) { 902 if (adId != null) {
893 _json["adId"] = adId; 903 _json["adId"] = adId;
894 } 904 }
895 if (advertiserId != null) { 905 if (advertiserId != null) {
896 _json["advertiserId"] = advertiserId; 906 _json["advertiserId"] = advertiserId;
897 } 907 }
898 if (agencyId != null) { 908 if (agencyId != null) {
(...skipping 23 matching lines...) Expand all
922 if (countMillis != null) { 932 if (countMillis != null) {
923 _json["countMillis"] = countMillis; 933 _json["countMillis"] = countMillis;
924 } 934 }
925 if (criterionId != null) { 935 if (criterionId != null) {
926 _json["criterionId"] = criterionId; 936 _json["criterionId"] = criterionId;
927 } 937 }
928 if (currencyCode != null) { 938 if (currencyCode != null) {
929 _json["currencyCode"] = currencyCode; 939 _json["currencyCode"] = currencyCode;
930 } 940 }
931 if (customDimension != null) { 941 if (customDimension != null) {
932 _json["customDimension"] = customDimension.map((value) => (value).toJson() ).toList(); 942 _json["customDimension"] =
943 customDimension.map((value) => (value).toJson()).toList();
933 } 944 }
934 if (customMetric != null) { 945 if (customMetric != null) {
935 _json["customMetric"] = customMetric.map((value) => (value).toJson()).toLi st(); 946 _json["customMetric"] =
947 customMetric.map((value) => (value).toJson()).toList();
936 } 948 }
937 if (deviceType != null) { 949 if (deviceType != null) {
938 _json["deviceType"] = deviceType; 950 _json["deviceType"] = deviceType;
939 } 951 }
940 if (dsConversionId != null) { 952 if (dsConversionId != null) {
941 _json["dsConversionId"] = dsConversionId; 953 _json["dsConversionId"] = dsConversionId;
942 } 954 }
943 if (engineAccountId != null) { 955 if (engineAccountId != null) {
944 _json["engineAccountId"] = engineAccountId; 956 _json["engineAccountId"] = engineAccountId;
945 } 957 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 if (storeId != null) { 994 if (storeId != null) {
983 _json["storeId"] = storeId; 995 _json["storeId"] = storeId;
984 } 996 }
985 if (type != null) { 997 if (type != null) {
986 _json["type"] = type; 998 _json["type"] = type;
987 } 999 }
988 return _json; 1000 return _json;
989 } 1001 }
990 } 1002 }
991 1003
992 /** A list of conversions. */ 1004 /// A list of conversions.
993 class ConversionList { 1005 class ConversionList {
994 /** The conversions being requested. */ 1006 /// The conversions being requested.
995 core.List<Conversion> conversion; 1007 core.List<Conversion> conversion;
996 /** 1008
997 * Identifies this as a ConversionList resource. Value: the fixed string 1009 /// Identifies this as a ConversionList resource. Value: the fixed string
998 * doubleclicksearch#conversionList. 1010 /// doubleclicksearch#conversionList.
999 */
1000 core.String kind; 1011 core.String kind;
1001 1012
1002 ConversionList(); 1013 ConversionList();
1003 1014
1004 ConversionList.fromJson(core.Map _json) { 1015 ConversionList.fromJson(core.Map _json) {
1005 if (_json.containsKey("conversion")) { 1016 if (_json.containsKey("conversion")) {
1006 conversion = _json["conversion"].map((value) => new Conversion.fromJson(va lue)).toList(); 1017 conversion = _json["conversion"]
1018 .map((value) => new Conversion.fromJson(value))
1019 .toList();
1007 } 1020 }
1008 if (_json.containsKey("kind")) { 1021 if (_json.containsKey("kind")) {
1009 kind = _json["kind"]; 1022 kind = _json["kind"];
1010 } 1023 }
1011 } 1024 }
1012 1025
1013 core.Map<core.String, core.Object> toJson() { 1026 core.Map<core.String, core.Object> toJson() {
1014 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1027 final core.Map<core.String, core.Object> _json =
1028 new core.Map<core.String, core.Object>();
1015 if (conversion != null) { 1029 if (conversion != null) {
1016 _json["conversion"] = conversion.map((value) => (value).toJson()).toList() ; 1030 _json["conversion"] =
1031 conversion.map((value) => (value).toJson()).toList();
1017 } 1032 }
1018 if (kind != null) { 1033 if (kind != null) {
1019 _json["kind"] = kind; 1034 _json["kind"] = kind;
1020 } 1035 }
1021 return _json; 1036 return _json;
1022 } 1037 }
1023 } 1038 }
1024 1039
1025 /** A message containing the custome dimension. */ 1040 /// A message containing the custome dimension.
1026 class CustomDimension { 1041 class CustomDimension {
1027 /** Custom dimension name. */ 1042 /// Custom dimension name.
1028 core.String name; 1043 core.String name;
1029 /** Custom dimension value. */ 1044
1045 /// Custom dimension value.
1030 core.String value; 1046 core.String value;
1031 1047
1032 CustomDimension(); 1048 CustomDimension();
1033 1049
1034 CustomDimension.fromJson(core.Map _json) { 1050 CustomDimension.fromJson(core.Map _json) {
1035 if (_json.containsKey("name")) { 1051 if (_json.containsKey("name")) {
1036 name = _json["name"]; 1052 name = _json["name"];
1037 } 1053 }
1038 if (_json.containsKey("value")) { 1054 if (_json.containsKey("value")) {
1039 value = _json["value"]; 1055 value = _json["value"];
1040 } 1056 }
1041 } 1057 }
1042 1058
1043 core.Map<core.String, core.Object> toJson() { 1059 core.Map<core.String, core.Object> toJson() {
1044 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1060 final core.Map<core.String, core.Object> _json =
1061 new core.Map<core.String, core.Object>();
1045 if (name != null) { 1062 if (name != null) {
1046 _json["name"] = name; 1063 _json["name"] = name;
1047 } 1064 }
1048 if (value != null) { 1065 if (value != null) {
1049 _json["value"] = value; 1066 _json["value"] = value;
1050 } 1067 }
1051 return _json; 1068 return _json;
1052 } 1069 }
1053 } 1070 }
1054 1071
1055 /** A message containing the custome metric. */ 1072 /// A message containing the custome metric.
1056 class CustomMetric { 1073 class CustomMetric {
1057 /** Custom metric name. */ 1074 /// Custom metric name.
1058 core.String name; 1075 core.String name;
1059 /** Custom metric numeric value. */ 1076
1077 /// Custom metric numeric value.
1060 core.double value; 1078 core.double value;
1061 1079
1062 CustomMetric(); 1080 CustomMetric();
1063 1081
1064 CustomMetric.fromJson(core.Map _json) { 1082 CustomMetric.fromJson(core.Map _json) {
1065 if (_json.containsKey("name")) { 1083 if (_json.containsKey("name")) {
1066 name = _json["name"]; 1084 name = _json["name"];
1067 } 1085 }
1068 if (_json.containsKey("value")) { 1086 if (_json.containsKey("value")) {
1069 value = _json["value"]; 1087 value = _json["value"];
1070 } 1088 }
1071 } 1089 }
1072 1090
1073 core.Map<core.String, core.Object> toJson() { 1091 core.Map<core.String, core.Object> toJson() {
1074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1092 final core.Map<core.String, core.Object> _json =
1093 new core.Map<core.String, core.Object>();
1075 if (name != null) { 1094 if (name != null) {
1076 _json["name"] = name; 1095 _json["name"] = name;
1077 } 1096 }
1078 if (value != null) { 1097 if (value != null) {
1079 _json["value"] = value; 1098 _json["value"] = value;
1080 } 1099 }
1081 return _json; 1100 return _json;
1082 } 1101 }
1083 } 1102 }
1084 1103
1085 class ReportFiles { 1104 class ReportFiles {
1086 /** The size of this report file in bytes. */ 1105 /// The size of this report file in bytes.
1087 core.String byteCount; 1106 core.String byteCount;
1088 /** Use this url to download the report file. */ 1107
1108 /// Use this url to download the report file.
1089 core.String url; 1109 core.String url;
1090 1110
1091 ReportFiles(); 1111 ReportFiles();
1092 1112
1093 ReportFiles.fromJson(core.Map _json) { 1113 ReportFiles.fromJson(core.Map _json) {
1094 if (_json.containsKey("byteCount")) { 1114 if (_json.containsKey("byteCount")) {
1095 byteCount = _json["byteCount"]; 1115 byteCount = _json["byteCount"];
1096 } 1116 }
1097 if (_json.containsKey("url")) { 1117 if (_json.containsKey("url")) {
1098 url = _json["url"]; 1118 url = _json["url"];
1099 } 1119 }
1100 } 1120 }
1101 1121
1102 core.Map<core.String, core.Object> toJson() { 1122 core.Map<core.String, core.Object> toJson() {
1103 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1123 final core.Map<core.String, core.Object> _json =
1124 new core.Map<core.String, core.Object>();
1104 if (byteCount != null) { 1125 if (byteCount != null) {
1105 _json["byteCount"] = byteCount; 1126 _json["byteCount"] = byteCount;
1106 } 1127 }
1107 if (url != null) { 1128 if (url != null) {
1108 _json["url"] = url; 1129 _json["url"] = url;
1109 } 1130 }
1110 return _json; 1131 return _json;
1111 } 1132 }
1112 } 1133 }
1113 1134
1114 /** 1135 /// A DoubleClick Search report. This object contains the report request, some
1115 * A DoubleClick Search report. This object contains the report request, some 1136 /// report metadata such as currency code, and the generated report rows or
1116 * report metadata such as currency code, and the generated report rows or 1137 /// report files.
1117 * report files.
1118 */
1119 class Report { 1138 class Report {
1120 /** 1139 /// Asynchronous report only. Contains a list of generated report files once
1121 * Asynchronous report only. Contains a list of generated report files once 1140 /// the report has succesfully completed.
1122 * the report has succesfully completed.
1123 */
1124 core.List<ReportFiles> files; 1141 core.List<ReportFiles> files;
1125 /** Asynchronous report only. Id of the report. */ 1142
1143 /// Asynchronous report only. Id of the report.
1126 core.String id; 1144 core.String id;
1127 /** 1145
1128 * Asynchronous report only. True if and only if the report has completed 1146 /// Asynchronous report only. True if and only if the report has completed
1129 * successfully and the report files are ready to be downloaded. 1147 /// successfully and the report files are ready to be downloaded.
1130 */
1131 core.bool isReportReady; 1148 core.bool isReportReady;
1132 /** 1149
1133 * Identifies this as a Report resource. Value: the fixed string 1150 /// Identifies this as a Report resource. Value: the fixed string
1134 * doubleclicksearch#report. 1151 /// doubleclicksearch#report.
1135 */
1136 core.String kind; 1152 core.String kind;
1137 /** 1153
1138 * The request that created the report. Optional fields not specified in the 1154 /// The request that created the report. Optional fields not specified in the
1139 * original request are filled with default values. 1155 /// original request are filled with default values.
1140 */
1141 ReportRequest request; 1156 ReportRequest request;
1142 /** 1157
1143 * The number of report rows generated by the report, not including headers. 1158 /// The number of report rows generated by the report, not including headers.
1144 */
1145 core.int rowCount; 1159 core.int rowCount;
1146 /** Synchronous report only. Generated report rows. */ 1160
1161 /// Synchronous report only. Generated report rows.
1147 core.List<ReportRow> rows; 1162 core.List<ReportRow> rows;
1148 /** 1163
1149 * The currency code of all monetary values produced in the report, including 1164 /// The currency code of all monetary values produced in the report,
1150 * values that are set by users (e.g., keyword bid settings) and metrics 1165 /// including values that are set by users (e.g., keyword bid settings) and
1151 * (e.g., cost and revenue). The currency code of a report is determined by 1166 /// metrics (e.g., cost and revenue). The currency code of a report is
1152 * the statisticsCurrency field of the report request. 1167 /// determined by the statisticsCurrency field of the report request.
1153 */
1154 core.String statisticsCurrencyCode; 1168 core.String statisticsCurrencyCode;
1155 /** 1169
1156 * If all statistics of the report are sourced from the same time zone, this 1170 /// If all statistics of the report are sourced from the same time zone, this
1157 * would be it. Otherwise the field is unset. 1171 /// would be it. Otherwise the field is unset.
1158 */
1159 core.String statisticsTimeZone; 1172 core.String statisticsTimeZone;
1160 1173
1161 Report(); 1174 Report();
1162 1175
1163 Report.fromJson(core.Map _json) { 1176 Report.fromJson(core.Map _json) {
1164 if (_json.containsKey("files")) { 1177 if (_json.containsKey("files")) {
1165 files = _json["files"].map((value) => new ReportFiles.fromJson(value)).toL ist(); 1178 files = _json["files"]
1179 .map((value) => new ReportFiles.fromJson(value))
1180 .toList();
1166 } 1181 }
1167 if (_json.containsKey("id")) { 1182 if (_json.containsKey("id")) {
1168 id = _json["id"]; 1183 id = _json["id"];
1169 } 1184 }
1170 if (_json.containsKey("isReportReady")) { 1185 if (_json.containsKey("isReportReady")) {
1171 isReportReady = _json["isReportReady"]; 1186 isReportReady = _json["isReportReady"];
1172 } 1187 }
1173 if (_json.containsKey("kind")) { 1188 if (_json.containsKey("kind")) {
1174 kind = _json["kind"]; 1189 kind = _json["kind"];
1175 } 1190 }
1176 if (_json.containsKey("request")) { 1191 if (_json.containsKey("request")) {
1177 request = new ReportRequest.fromJson(_json["request"]); 1192 request = new ReportRequest.fromJson(_json["request"]);
1178 } 1193 }
1179 if (_json.containsKey("rowCount")) { 1194 if (_json.containsKey("rowCount")) {
1180 rowCount = _json["rowCount"]; 1195 rowCount = _json["rowCount"];
1181 } 1196 }
1182 if (_json.containsKey("rows")) { 1197 if (_json.containsKey("rows")) {
1183 rows = _json["rows"].map((value) => new ReportRow.fromJson(value)).toList( ); 1198 rows =
1199 _json["rows"].map((value) => new ReportRow.fromJson(value)).toList();
1184 } 1200 }
1185 if (_json.containsKey("statisticsCurrencyCode")) { 1201 if (_json.containsKey("statisticsCurrencyCode")) {
1186 statisticsCurrencyCode = _json["statisticsCurrencyCode"]; 1202 statisticsCurrencyCode = _json["statisticsCurrencyCode"];
1187 } 1203 }
1188 if (_json.containsKey("statisticsTimeZone")) { 1204 if (_json.containsKey("statisticsTimeZone")) {
1189 statisticsTimeZone = _json["statisticsTimeZone"]; 1205 statisticsTimeZone = _json["statisticsTimeZone"];
1190 } 1206 }
1191 } 1207 }
1192 1208
1193 core.Map<core.String, core.Object> toJson() { 1209 core.Map<core.String, core.Object> toJson() {
1194 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1210 final core.Map<core.String, core.Object> _json =
1211 new core.Map<core.String, core.Object>();
1195 if (files != null) { 1212 if (files != null) {
1196 _json["files"] = files.map((value) => (value).toJson()).toList(); 1213 _json["files"] = files.map((value) => (value).toJson()).toList();
1197 } 1214 }
1198 if (id != null) { 1215 if (id != null) {
1199 _json["id"] = id; 1216 _json["id"] = id;
1200 } 1217 }
1201 if (isReportReady != null) { 1218 if (isReportReady != null) {
1202 _json["isReportReady"] = isReportReady; 1219 _json["isReportReady"] = isReportReady;
1203 } 1220 }
1204 if (kind != null) { 1221 if (kind != null) {
(...skipping 11 matching lines...) Expand all
1216 if (statisticsCurrencyCode != null) { 1233 if (statisticsCurrencyCode != null) {
1217 _json["statisticsCurrencyCode"] = statisticsCurrencyCode; 1234 _json["statisticsCurrencyCode"] = statisticsCurrencyCode;
1218 } 1235 }
1219 if (statisticsTimeZone != null) { 1236 if (statisticsTimeZone != null) {
1220 _json["statisticsTimeZone"] = statisticsTimeZone; 1237 _json["statisticsTimeZone"] = statisticsTimeZone;
1221 } 1238 }
1222 return _json; 1239 return _json;
1223 } 1240 }
1224 } 1241 }
1225 1242
1226 /** A request object used to create a DoubleClick Search report. */ 1243 /// A request object used to create a DoubleClick Search report.
1227 class ReportApiColumnSpec { 1244 class ReportApiColumnSpec {
1228 /** Name of a DoubleClick Search column to include in the report. */ 1245 /// Name of a DoubleClick Search column to include in the report.
1229 core.String columnName; 1246 core.String columnName;
1230 /** 1247
1231 * Segments a report by a custom dimension. The report must be scoped to an 1248 /// Segments a report by a custom dimension. The report must be scoped to an
1232 * advertiser or lower, and the custom dimension must already be set up in 1249 /// advertiser or lower, and the custom dimension must already be set up in
1233 * DoubleClick Search. The custom dimension name, which appears in DoubleClick 1250 /// DoubleClick Search. The custom dimension name, which appears in
1234 * Search, is case sensitive. 1251 /// DoubleClick Search, is case sensitive.
1235 * If used in a conversion report, returns the value of the specified custom 1252 /// If used in a conversion report, returns the value of the specified custom
1236 * dimension for the given conversion, if set. This column does not segment 1253 /// dimension for the given conversion, if set. This column does not segment
1237 * the conversion report. 1254 /// the conversion report.
1238 */
1239 core.String customDimensionName; 1255 core.String customDimensionName;
1240 /** 1256
1241 * Name of a custom metric to include in the report. The report must be scoped 1257 /// Name of a custom metric to include in the report. The report must be
1242 * to an advertiser or lower, and the custom metric must already be set up in 1258 /// scoped to an advertiser or lower, and the custom metric must already be
1243 * DoubleClick Search. The custom metric name, which appears in DoubleClick 1259 /// set up in DoubleClick Search. The custom metric name, which appears in
1244 * Search, is case sensitive. 1260 /// DoubleClick Search, is case sensitive.
1245 */
1246 core.String customMetricName; 1261 core.String customMetricName;
1247 /** 1262
1248 * Inclusive day in YYYY-MM-DD format. When provided, this overrides the 1263 /// Inclusive day in YYYY-MM-DD format. When provided, this overrides the
1249 * overall time range of the report for this column only. Must be provided 1264 /// overall time range of the report for this column only. Must be provided
1250 * together with startDate. 1265 /// together with startDate.
1251 */
1252 core.String endDate; 1266 core.String endDate;
1253 /** 1267
1254 * Synchronous report only. Set to true to group by this column. Defaults to 1268 /// Synchronous report only. Set to true to group by this column. Defaults to
1255 * false. 1269 /// false.
1256 */
1257 core.bool groupByColumn; 1270 core.bool groupByColumn;
1258 /** 1271
1259 * Text used to identify this column in the report output; defaults to 1272 /// Text used to identify this column in the report output; defaults to
1260 * columnName or savedColumnName when not specified. This can be used to 1273 /// columnName or savedColumnName when not specified. This can be used to
1261 * prevent collisions between DoubleClick Search columns and saved columns 1274 /// prevent collisions between DoubleClick Search columns and saved columns
1262 * with the same name. 1275 /// with the same name.
1263 */
1264 core.String headerText; 1276 core.String headerText;
1265 /** 1277
1266 * The platform that is used to provide data for the custom dimension. 1278 /// The platform that is used to provide data for the custom dimension.
1267 * Acceptable values are "floodlight". 1279 /// Acceptable values are "floodlight".
1268 */
1269 core.String platformSource; 1280 core.String platformSource;
1270 /** 1281
1271 * Returns metrics only for a specific type of product activity. Accepted 1282 /// Returns metrics only for a specific type of product activity. Accepted
1272 * values are: 1283 /// values are:
1273 * - "sold": returns metrics only for products that were sold 1284 /// - "sold": returns metrics only for products that were sold
1274 * - "advertised": returns metrics only for products that were advertised in a 1285 /// - "advertised": returns metrics only for products that were advertised in
1275 * Shopping campaign, and that might or might not have been sold 1286 /// a Shopping campaign, and that might or might not have been sold
1276 */
1277 core.String productReportPerspective; 1287 core.String productReportPerspective;
1278 /** 1288
1279 * Name of a saved column to include in the report. The report must be scoped 1289 /// Name of a saved column to include in the report. The report must be
1280 * at advertiser or lower, and this saved column must already be created in 1290 /// scoped at advertiser or lower, and this saved column must already be
1281 * the DoubleClick Search UI. 1291 /// created in the DoubleClick Search UI.
1282 */
1283 core.String savedColumnName; 1292 core.String savedColumnName;
1284 /** 1293
1285 * Inclusive date in YYYY-MM-DD format. When provided, this overrides the 1294 /// Inclusive date in YYYY-MM-DD format. When provided, this overrides the
1286 * overall time range of the report for this column only. Must be provided 1295 /// overall time range of the report for this column only. Must be provided
1287 * together with endDate. 1296 /// together with endDate.
1288 */
1289 core.String startDate; 1297 core.String startDate;
1290 1298
1291 ReportApiColumnSpec(); 1299 ReportApiColumnSpec();
1292 1300
1293 ReportApiColumnSpec.fromJson(core.Map _json) { 1301 ReportApiColumnSpec.fromJson(core.Map _json) {
1294 if (_json.containsKey("columnName")) { 1302 if (_json.containsKey("columnName")) {
1295 columnName = _json["columnName"]; 1303 columnName = _json["columnName"];
1296 } 1304 }
1297 if (_json.containsKey("customDimensionName")) { 1305 if (_json.containsKey("customDimensionName")) {
1298 customDimensionName = _json["customDimensionName"]; 1306 customDimensionName = _json["customDimensionName"];
(...skipping 18 matching lines...) Expand all
1317 } 1325 }
1318 if (_json.containsKey("savedColumnName")) { 1326 if (_json.containsKey("savedColumnName")) {
1319 savedColumnName = _json["savedColumnName"]; 1327 savedColumnName = _json["savedColumnName"];
1320 } 1328 }
1321 if (_json.containsKey("startDate")) { 1329 if (_json.containsKey("startDate")) {
1322 startDate = _json["startDate"]; 1330 startDate = _json["startDate"];
1323 } 1331 }
1324 } 1332 }
1325 1333
1326 core.Map<core.String, core.Object> toJson() { 1334 core.Map<core.String, core.Object> toJson() {
1327 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1335 final core.Map<core.String, core.Object> _json =
1336 new core.Map<core.String, core.Object>();
1328 if (columnName != null) { 1337 if (columnName != null) {
1329 _json["columnName"] = columnName; 1338 _json["columnName"] = columnName;
1330 } 1339 }
1331 if (customDimensionName != null) { 1340 if (customDimensionName != null) {
1332 _json["customDimensionName"] = customDimensionName; 1341 _json["customDimensionName"] = customDimensionName;
1333 } 1342 }
1334 if (customMetricName != null) { 1343 if (customMetricName != null) {
1335 _json["customMetricName"] = customMetricName; 1344 _json["customMetricName"] = customMetricName;
1336 } 1345 }
1337 if (endDate != null) { 1346 if (endDate != null) {
(...skipping 15 matching lines...) Expand all
1353 _json["savedColumnName"] = savedColumnName; 1362 _json["savedColumnName"] = savedColumnName;
1354 } 1363 }
1355 if (startDate != null) { 1364 if (startDate != null) {
1356 _json["startDate"] = startDate; 1365 _json["startDate"] = startDate;
1357 } 1366 }
1358 return _json; 1367 return _json;
1359 } 1368 }
1360 } 1369 }
1361 1370
1362 class ReportRequestFilters { 1371 class ReportRequestFilters {
1363 /** 1372 /// Column to perform the filter on. This can be a DoubleClick Search column
1364 * Column to perform the filter on. This can be a DoubleClick Search column or 1373 /// or a saved column.
1365 * a saved column.
1366 */
1367 ReportApiColumnSpec column; 1374 ReportApiColumnSpec column;
1368 /** 1375
1369 * Operator to use in the filter. See the filter reference for a list of 1376 /// Operator to use in the filter. See the filter reference for a list of
1370 * available operators. 1377 /// available operators.
1371 */
1372 core.String operator; 1378 core.String operator;
1373 /** 1379
1374 * A list of values to filter the column value against. 1380 /// A list of values to filter the column value against.
1375 * 1381 ///
1376 * The values for Object must be JSON objects. It can consist of `num`, 1382 /// The values for Object must be JSON objects. It can consist of `num`,
1377 * `String`, `bool` and `null` as well as `Map` and `List` values. 1383 /// `String`, `bool` and `null` as well as `Map` and `List` values.
1378 */
1379 core.List<core.Object> values; 1384 core.List<core.Object> values;
1380 1385
1381 ReportRequestFilters(); 1386 ReportRequestFilters();
1382 1387
1383 ReportRequestFilters.fromJson(core.Map _json) { 1388 ReportRequestFilters.fromJson(core.Map _json) {
1384 if (_json.containsKey("column")) { 1389 if (_json.containsKey("column")) {
1385 column = new ReportApiColumnSpec.fromJson(_json["column"]); 1390 column = new ReportApiColumnSpec.fromJson(_json["column"]);
1386 } 1391 }
1387 if (_json.containsKey("operator")) { 1392 if (_json.containsKey("operator")) {
1388 operator = _json["operator"]; 1393 operator = _json["operator"];
1389 } 1394 }
1390 if (_json.containsKey("values")) { 1395 if (_json.containsKey("values")) {
1391 values = _json["values"]; 1396 values = _json["values"];
1392 } 1397 }
1393 } 1398 }
1394 1399
1395 core.Map<core.String, core.Object> toJson() { 1400 core.Map<core.String, core.Object> toJson() {
1396 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1401 final core.Map<core.String, core.Object> _json =
1402 new core.Map<core.String, core.Object>();
1397 if (column != null) { 1403 if (column != null) {
1398 _json["column"] = (column).toJson(); 1404 _json["column"] = (column).toJson();
1399 } 1405 }
1400 if (operator != null) { 1406 if (operator != null) {
1401 _json["operator"] = operator; 1407 _json["operator"] = operator;
1402 } 1408 }
1403 if (values != null) { 1409 if (values != null) {
1404 _json["values"] = values; 1410 _json["values"] = values;
1405 } 1411 }
1406 return _json; 1412 return _json;
1407 } 1413 }
1408 } 1414 }
1409 1415
1410 class ReportRequestOrderBy { 1416 class ReportRequestOrderBy {
1411 /** 1417 /// Column to perform the sort on. This can be a DoubleClick Search-defined
1412 * Column to perform the sort on. This can be a DoubleClick Search-defined 1418 /// column or a saved column.
1413 * column or a saved column.
1414 */
1415 ReportApiColumnSpec column; 1419 ReportApiColumnSpec column;
1416 /** The sort direction, which is either ascending or descending. */ 1420
1421 /// The sort direction, which is either ascending or descending.
1417 core.String sortOrder; 1422 core.String sortOrder;
1418 1423
1419 ReportRequestOrderBy(); 1424 ReportRequestOrderBy();
1420 1425
1421 ReportRequestOrderBy.fromJson(core.Map _json) { 1426 ReportRequestOrderBy.fromJson(core.Map _json) {
1422 if (_json.containsKey("column")) { 1427 if (_json.containsKey("column")) {
1423 column = new ReportApiColumnSpec.fromJson(_json["column"]); 1428 column = new ReportApiColumnSpec.fromJson(_json["column"]);
1424 } 1429 }
1425 if (_json.containsKey("sortOrder")) { 1430 if (_json.containsKey("sortOrder")) {
1426 sortOrder = _json["sortOrder"]; 1431 sortOrder = _json["sortOrder"];
1427 } 1432 }
1428 } 1433 }
1429 1434
1430 core.Map<core.String, core.Object> toJson() { 1435 core.Map<core.String, core.Object> toJson() {
1431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1436 final core.Map<core.String, core.Object> _json =
1437 new core.Map<core.String, core.Object>();
1432 if (column != null) { 1438 if (column != null) {
1433 _json["column"] = (column).toJson(); 1439 _json["column"] = (column).toJson();
1434 } 1440 }
1435 if (sortOrder != null) { 1441 if (sortOrder != null) {
1436 _json["sortOrder"] = sortOrder; 1442 _json["sortOrder"] = sortOrder;
1437 } 1443 }
1438 return _json; 1444 return _json;
1439 } 1445 }
1440 } 1446 }
1441 1447
1442 /** 1448 /// The reportScope is a set of IDs that are used to determine which subset of
1443 * The reportScope is a set of IDs that are used to determine which subset of 1449 /// entities will be returned in the report. The full lineage of IDs from the
1444 * entities will be returned in the report. The full lineage of IDs from the 1450 /// lowest scoped level desired up through agency is required.
1445 * lowest scoped level desired up through agency is required.
1446 */
1447 class ReportRequestReportScope { 1451 class ReportRequestReportScope {
1448 /** DS ad group ID. */ 1452 /// DS ad group ID.
1449 core.String adGroupId; 1453 core.String adGroupId;
1450 /** DS ad ID. */ 1454
1455 /// DS ad ID.
1451 core.String adId; 1456 core.String adId;
1452 /** DS advertiser ID. */ 1457
1458 /// DS advertiser ID.
1453 core.String advertiserId; 1459 core.String advertiserId;
1454 /** DS agency ID. */ 1460
1461 /// DS agency ID.
1455 core.String agencyId; 1462 core.String agencyId;
1456 /** DS campaign ID. */ 1463
1464 /// DS campaign ID.
1457 core.String campaignId; 1465 core.String campaignId;
1458 /** DS engine account ID. */ 1466
1467 /// DS engine account ID.
1459 core.String engineAccountId; 1468 core.String engineAccountId;
1460 /** DS keyword ID. */ 1469
1470 /// DS keyword ID.
1461 core.String keywordId; 1471 core.String keywordId;
1462 1472
1463 ReportRequestReportScope(); 1473 ReportRequestReportScope();
1464 1474
1465 ReportRequestReportScope.fromJson(core.Map _json) { 1475 ReportRequestReportScope.fromJson(core.Map _json) {
1466 if (_json.containsKey("adGroupId")) { 1476 if (_json.containsKey("adGroupId")) {
1467 adGroupId = _json["adGroupId"]; 1477 adGroupId = _json["adGroupId"];
1468 } 1478 }
1469 if (_json.containsKey("adId")) { 1479 if (_json.containsKey("adId")) {
1470 adId = _json["adId"]; 1480 adId = _json["adId"];
1471 } 1481 }
1472 if (_json.containsKey("advertiserId")) { 1482 if (_json.containsKey("advertiserId")) {
1473 advertiserId = _json["advertiserId"]; 1483 advertiserId = _json["advertiserId"];
1474 } 1484 }
1475 if (_json.containsKey("agencyId")) { 1485 if (_json.containsKey("agencyId")) {
1476 agencyId = _json["agencyId"]; 1486 agencyId = _json["agencyId"];
1477 } 1487 }
1478 if (_json.containsKey("campaignId")) { 1488 if (_json.containsKey("campaignId")) {
1479 campaignId = _json["campaignId"]; 1489 campaignId = _json["campaignId"];
1480 } 1490 }
1481 if (_json.containsKey("engineAccountId")) { 1491 if (_json.containsKey("engineAccountId")) {
1482 engineAccountId = _json["engineAccountId"]; 1492 engineAccountId = _json["engineAccountId"];
1483 } 1493 }
1484 if (_json.containsKey("keywordId")) { 1494 if (_json.containsKey("keywordId")) {
1485 keywordId = _json["keywordId"]; 1495 keywordId = _json["keywordId"];
1486 } 1496 }
1487 } 1497 }
1488 1498
1489 core.Map<core.String, core.Object> toJson() { 1499 core.Map<core.String, core.Object> toJson() {
1490 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1500 final core.Map<core.String, core.Object> _json =
1501 new core.Map<core.String, core.Object>();
1491 if (adGroupId != null) { 1502 if (adGroupId != null) {
1492 _json["adGroupId"] = adGroupId; 1503 _json["adGroupId"] = adGroupId;
1493 } 1504 }
1494 if (adId != null) { 1505 if (adId != null) {
1495 _json["adId"] = adId; 1506 _json["adId"] = adId;
1496 } 1507 }
1497 if (advertiserId != null) { 1508 if (advertiserId != null) {
1498 _json["advertiserId"] = advertiserId; 1509 _json["advertiserId"] = advertiserId;
1499 } 1510 }
1500 if (agencyId != null) { 1511 if (agencyId != null) {
1501 _json["agencyId"] = agencyId; 1512 _json["agencyId"] = agencyId;
1502 } 1513 }
1503 if (campaignId != null) { 1514 if (campaignId != null) {
1504 _json["campaignId"] = campaignId; 1515 _json["campaignId"] = campaignId;
1505 } 1516 }
1506 if (engineAccountId != null) { 1517 if (engineAccountId != null) {
1507 _json["engineAccountId"] = engineAccountId; 1518 _json["engineAccountId"] = engineAccountId;
1508 } 1519 }
1509 if (keywordId != null) { 1520 if (keywordId != null) {
1510 _json["keywordId"] = keywordId; 1521 _json["keywordId"] = keywordId;
1511 } 1522 }
1512 return _json; 1523 return _json;
1513 } 1524 }
1514 } 1525 }
1515 1526
1516 /** 1527 /// If metrics are requested in a report, this argument will be used to
1517 * If metrics are requested in a report, this argument will be used to restrict 1528 /// restrict the metrics to a specific time range.
1518 * the metrics to a specific time range.
1519 */
1520 class ReportRequestTimeRange { 1529 class ReportRequestTimeRange {
1521 /** 1530 /// Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z.
1522 * Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See 1531 /// See additional references on how changed attribute reports work.
1523 * additional references on how changed attribute reports work.
1524 */
1525 core.DateTime changedAttributesSinceTimestamp; 1532 core.DateTime changedAttributesSinceTimestamp;
1526 /** 1533
1527 * Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z. See 1534 /// Inclusive UTC timestamp in RFC format, e.g., 2013-07-16T10:16:23.555Z.
1528 * additional references on how changed metrics reports work. 1535 /// See additional references on how changed metrics reports work.
1529 */
1530 core.DateTime changedMetricsSinceTimestamp; 1536 core.DateTime changedMetricsSinceTimestamp;
1531 /** Inclusive date in YYYY-MM-DD format. */ 1537
1538 /// Inclusive date in YYYY-MM-DD format.
1532 core.String endDate; 1539 core.String endDate;
1533 /** Inclusive date in YYYY-MM-DD format. */ 1540
1541 /// Inclusive date in YYYY-MM-DD format.
1534 core.String startDate; 1542 core.String startDate;
1535 1543
1536 ReportRequestTimeRange(); 1544 ReportRequestTimeRange();
1537 1545
1538 ReportRequestTimeRange.fromJson(core.Map _json) { 1546 ReportRequestTimeRange.fromJson(core.Map _json) {
1539 if (_json.containsKey("changedAttributesSinceTimestamp")) { 1547 if (_json.containsKey("changedAttributesSinceTimestamp")) {
1540 changedAttributesSinceTimestamp = core.DateTime.parse(_json["changedAttrib utesSinceTimestamp"]); 1548 changedAttributesSinceTimestamp =
1549 core.DateTime.parse(_json["changedAttributesSinceTimestamp"]);
1541 } 1550 }
1542 if (_json.containsKey("changedMetricsSinceTimestamp")) { 1551 if (_json.containsKey("changedMetricsSinceTimestamp")) {
1543 changedMetricsSinceTimestamp = core.DateTime.parse(_json["changedMetricsSi nceTimestamp"]); 1552 changedMetricsSinceTimestamp =
1553 core.DateTime.parse(_json["changedMetricsSinceTimestamp"]);
1544 } 1554 }
1545 if (_json.containsKey("endDate")) { 1555 if (_json.containsKey("endDate")) {
1546 endDate = _json["endDate"]; 1556 endDate = _json["endDate"];
1547 } 1557 }
1548 if (_json.containsKey("startDate")) { 1558 if (_json.containsKey("startDate")) {
1549 startDate = _json["startDate"]; 1559 startDate = _json["startDate"];
1550 } 1560 }
1551 } 1561 }
1552 1562
1553 core.Map<core.String, core.Object> toJson() { 1563 core.Map<core.String, core.Object> toJson() {
1554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1564 final core.Map<core.String, core.Object> _json =
1565 new core.Map<core.String, core.Object>();
1555 if (changedAttributesSinceTimestamp != null) { 1566 if (changedAttributesSinceTimestamp != null) {
1556 _json["changedAttributesSinceTimestamp"] = (changedAttributesSinceTimestam p).toIso8601String(); 1567 _json["changedAttributesSinceTimestamp"] =
1568 (changedAttributesSinceTimestamp).toIso8601String();
1557 } 1569 }
1558 if (changedMetricsSinceTimestamp != null) { 1570 if (changedMetricsSinceTimestamp != null) {
1559 _json["changedMetricsSinceTimestamp"] = (changedMetricsSinceTimestamp).toI so8601String(); 1571 _json["changedMetricsSinceTimestamp"] =
1572 (changedMetricsSinceTimestamp).toIso8601String();
1560 } 1573 }
1561 if (endDate != null) { 1574 if (endDate != null) {
1562 _json["endDate"] = endDate; 1575 _json["endDate"] = endDate;
1563 } 1576 }
1564 if (startDate != null) { 1577 if (startDate != null) {
1565 _json["startDate"] = startDate; 1578 _json["startDate"] = startDate;
1566 } 1579 }
1567 return _json; 1580 return _json;
1568 } 1581 }
1569 } 1582 }
1570 1583
1571 /** A request object used to create a DoubleClick Search report. */ 1584 /// A request object used to create a DoubleClick Search report.
1572 class ReportRequest { 1585 class ReportRequest {
1573 /** 1586 /// The columns to include in the report. This includes both DoubleClick
1574 * The columns to include in the report. This includes both DoubleClick Search 1587 /// Search columns and saved columns. For DoubleClick Search columns, only
1575 * columns and saved columns. For DoubleClick Search columns, only the 1588 /// the columnName parameter is required. For saved columns only the
1576 * columnName parameter is required. For saved columns only the 1589 /// savedColumnName parameter is required. Both columnName and
1577 * savedColumnName parameter is required. Both columnName and savedColumnName 1590 /// savedColumnName cannot be set in the same stanza.
1578 * cannot be set in the same stanza.
1579 */
1580 core.List<ReportApiColumnSpec> columns; 1591 core.List<ReportApiColumnSpec> columns;
1581 /** 1592
1582 * Format that the report should be returned in. Currently csv or tsv is 1593 /// Format that the report should be returned in. Currently csv or tsv is
1583 * supported. 1594 /// supported.
1584 */
1585 core.String downloadFormat; 1595 core.String downloadFormat;
1586 /** A list of filters to be applied to the report. */ 1596
1597 /// A list of filters to be applied to the report.
1587 core.List<ReportRequestFilters> filters; 1598 core.List<ReportRequestFilters> filters;
1588 /** 1599
1589 * Determines if removed entities should be included in the report. Defaults 1600 /// Determines if removed entities should be included in the report. Defaults
1590 * to false. Deprecated, please use includeRemovedEntities instead. 1601 /// to false. Deprecated, please use includeRemovedEntities instead.
1591 */
1592 core.bool includeDeletedEntities; 1602 core.bool includeDeletedEntities;
1593 /** 1603
1594 * Determines if removed entities should be included in the report. Defaults 1604 /// Determines if removed entities should be included in the report. Defaults
1595 * to false. 1605 /// to false.
1596 */
1597 core.bool includeRemovedEntities; 1606 core.bool includeRemovedEntities;
1598 /** 1607
1599 * Asynchronous report only. The maximum number of rows per report file. A 1608 /// Asynchronous report only. The maximum number of rows per report file. A
1600 * large report is split into many files based on this field. Acceptable 1609 /// large report is split into many files based on this field. Acceptable
1601 * values are 1000000 to 100000000, inclusive. 1610 /// values are 1000000 to 100000000, inclusive.
1602 */
1603 core.int maxRowsPerFile; 1611 core.int maxRowsPerFile;
1604 /** 1612
1605 * Synchronous report only. A list of columns and directions defining sorting 1613 /// Synchronous report only. A list of columns and directions defining
1606 * to be performed on the report rows. 1614 /// sorting to be performed on the report rows.
1607 */
1608 core.List<ReportRequestOrderBy> orderBy; 1615 core.List<ReportRequestOrderBy> orderBy;
1609 /** 1616
1610 * The reportScope is a set of IDs that are used to determine which subset of 1617 /// The reportScope is a set of IDs that are used to determine which subset
1611 * entities will be returned in the report. The full lineage of IDs from the 1618 /// of entities will be returned in the report. The full lineage of IDs from
1612 * lowest scoped level desired up through agency is required. 1619 /// the lowest scoped level desired up through agency is required.
1613 */
1614 ReportRequestReportScope reportScope; 1620 ReportRequestReportScope reportScope;
1615 /** 1621
1616 * Determines the type of rows that are returned in the report. For example, 1622 /// Determines the type of rows that are returned in the report. For example,
1617 * if you specify reportType: keyword, each row in the report will contain 1623 /// if you specify reportType: keyword, each row in the report will contain
1618 * data about a keyword. See the Types of Reports reference for the columns 1624 /// data about a keyword. See the Types of Reports reference for the columns
1619 * that are available for each type. 1625 /// that are available for each type.
1620 */
1621 core.String reportType; 1626 core.String reportType;
1622 /** 1627
1623 * Synchronous report only. The maxinum number of rows to return; additional 1628 /// Synchronous report only. The maxinum number of rows to return; additional
1624 * rows are dropped. Acceptable values are 0 to 10000, inclusive. Defaults to 1629 /// rows are dropped. Acceptable values are 0 to 10000, inclusive. Defaults
1625 * 10000. 1630 /// to 10000.
1626 */
1627 core.int rowCount; 1631 core.int rowCount;
1628 /** 1632
1629 * Synchronous report only. Zero-based index of the first row to return. 1633 /// Synchronous report only. Zero-based index of the first row to return.
1630 * Acceptable values are 0 to 50000, inclusive. Defaults to 0. 1634 /// Acceptable values are 0 to 50000, inclusive. Defaults to 0.
1631 */
1632 core.int startRow; 1635 core.int startRow;
1633 /** 1636
1634 * Specifies the currency in which monetary will be returned. Possible values 1637 /// Specifies the currency in which monetary will be returned. Possible
1635 * are: usd, agency (valid if the report is scoped to agency or lower), 1638 /// values are: usd, agency (valid if the report is scoped to agency or
1636 * advertiser (valid if the report is scoped to * advertiser or lower), or 1639 /// lower), advertiser (valid if the report is scoped to * advertiser or
1637 * account (valid if the report is scoped to engine account or lower). 1640 /// lower), or account (valid if the report is scoped to engine account or
1638 */ 1641 /// lower).
1639 core.String statisticsCurrency; 1642 core.String statisticsCurrency;
1640 /** 1643
1641 * If metrics are requested in a report, this argument will be used to 1644 /// If metrics are requested in a report, this argument will be used to
1642 * restrict the metrics to a specific time range. 1645 /// restrict the metrics to a specific time range.
1643 */
1644 ReportRequestTimeRange timeRange; 1646 ReportRequestTimeRange timeRange;
1645 /** 1647
1646 * If true, the report would only be created if all the requested stat data 1648 /// If true, the report would only be created if all the requested stat data
1647 * are sourced from a single timezone. Defaults to false. 1649 /// are sourced from a single timezone. Defaults to false.
1648 */
1649 core.bool verifySingleTimeZone; 1650 core.bool verifySingleTimeZone;
1650 1651
1651 ReportRequest(); 1652 ReportRequest();
1652 1653
1653 ReportRequest.fromJson(core.Map _json) { 1654 ReportRequest.fromJson(core.Map _json) {
1654 if (_json.containsKey("columns")) { 1655 if (_json.containsKey("columns")) {
1655 columns = _json["columns"].map((value) => new ReportApiColumnSpec.fromJson (value)).toList(); 1656 columns = _json["columns"]
1657 .map((value) => new ReportApiColumnSpec.fromJson(value))
1658 .toList();
1656 } 1659 }
1657 if (_json.containsKey("downloadFormat")) { 1660 if (_json.containsKey("downloadFormat")) {
1658 downloadFormat = _json["downloadFormat"]; 1661 downloadFormat = _json["downloadFormat"];
1659 } 1662 }
1660 if (_json.containsKey("filters")) { 1663 if (_json.containsKey("filters")) {
1661 filters = _json["filters"].map((value) => new ReportRequestFilters.fromJso n(value)).toList(); 1664 filters = _json["filters"]
1665 .map((value) => new ReportRequestFilters.fromJson(value))
1666 .toList();
1662 } 1667 }
1663 if (_json.containsKey("includeDeletedEntities")) { 1668 if (_json.containsKey("includeDeletedEntities")) {
1664 includeDeletedEntities = _json["includeDeletedEntities"]; 1669 includeDeletedEntities = _json["includeDeletedEntities"];
1665 } 1670 }
1666 if (_json.containsKey("includeRemovedEntities")) { 1671 if (_json.containsKey("includeRemovedEntities")) {
1667 includeRemovedEntities = _json["includeRemovedEntities"]; 1672 includeRemovedEntities = _json["includeRemovedEntities"];
1668 } 1673 }
1669 if (_json.containsKey("maxRowsPerFile")) { 1674 if (_json.containsKey("maxRowsPerFile")) {
1670 maxRowsPerFile = _json["maxRowsPerFile"]; 1675 maxRowsPerFile = _json["maxRowsPerFile"];
1671 } 1676 }
1672 if (_json.containsKey("orderBy")) { 1677 if (_json.containsKey("orderBy")) {
1673 orderBy = _json["orderBy"].map((value) => new ReportRequestOrderBy.fromJso n(value)).toList(); 1678 orderBy = _json["orderBy"]
1679 .map((value) => new ReportRequestOrderBy.fromJson(value))
1680 .toList();
1674 } 1681 }
1675 if (_json.containsKey("reportScope")) { 1682 if (_json.containsKey("reportScope")) {
1676 reportScope = new ReportRequestReportScope.fromJson(_json["reportScope"]); 1683 reportScope = new ReportRequestReportScope.fromJson(_json["reportScope"]);
1677 } 1684 }
1678 if (_json.containsKey("reportType")) { 1685 if (_json.containsKey("reportType")) {
1679 reportType = _json["reportType"]; 1686 reportType = _json["reportType"];
1680 } 1687 }
1681 if (_json.containsKey("rowCount")) { 1688 if (_json.containsKey("rowCount")) {
1682 rowCount = _json["rowCount"]; 1689 rowCount = _json["rowCount"];
1683 } 1690 }
1684 if (_json.containsKey("startRow")) { 1691 if (_json.containsKey("startRow")) {
1685 startRow = _json["startRow"]; 1692 startRow = _json["startRow"];
1686 } 1693 }
1687 if (_json.containsKey("statisticsCurrency")) { 1694 if (_json.containsKey("statisticsCurrency")) {
1688 statisticsCurrency = _json["statisticsCurrency"]; 1695 statisticsCurrency = _json["statisticsCurrency"];
1689 } 1696 }
1690 if (_json.containsKey("timeRange")) { 1697 if (_json.containsKey("timeRange")) {
1691 timeRange = new ReportRequestTimeRange.fromJson(_json["timeRange"]); 1698 timeRange = new ReportRequestTimeRange.fromJson(_json["timeRange"]);
1692 } 1699 }
1693 if (_json.containsKey("verifySingleTimeZone")) { 1700 if (_json.containsKey("verifySingleTimeZone")) {
1694 verifySingleTimeZone = _json["verifySingleTimeZone"]; 1701 verifySingleTimeZone = _json["verifySingleTimeZone"];
1695 } 1702 }
1696 } 1703 }
1697 1704
1698 core.Map<core.String, core.Object> toJson() { 1705 core.Map<core.String, core.Object> toJson() {
1699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1706 final core.Map<core.String, core.Object> _json =
1707 new core.Map<core.String, core.Object>();
1700 if (columns != null) { 1708 if (columns != null) {
1701 _json["columns"] = columns.map((value) => (value).toJson()).toList(); 1709 _json["columns"] = columns.map((value) => (value).toJson()).toList();
1702 } 1710 }
1703 if (downloadFormat != null) { 1711 if (downloadFormat != null) {
1704 _json["downloadFormat"] = downloadFormat; 1712 _json["downloadFormat"] = downloadFormat;
1705 } 1713 }
1706 if (filters != null) { 1714 if (filters != null) {
1707 _json["filters"] = filters.map((value) => (value).toJson()).toList(); 1715 _json["filters"] = filters.map((value) => (value).toJson()).toList();
1708 } 1716 }
1709 if (includeDeletedEntities != null) { 1717 if (includeDeletedEntities != null) {
(...skipping 26 matching lines...) Expand all
1736 if (timeRange != null) { 1744 if (timeRange != null) {
1737 _json["timeRange"] = (timeRange).toJson(); 1745 _json["timeRange"] = (timeRange).toJson();
1738 } 1746 }
1739 if (verifySingleTimeZone != null) { 1747 if (verifySingleTimeZone != null) {
1740 _json["verifySingleTimeZone"] = verifySingleTimeZone; 1748 _json["verifySingleTimeZone"] = verifySingleTimeZone;
1741 } 1749 }
1742 return _json; 1750 return _json;
1743 } 1751 }
1744 } 1752 }
1745 1753
1746 /** 1754 /// A row in a DoubleClick Search report.
1747 * A row in a DoubleClick Search report. 1755 ///
1748 * 1756 /// Indicates the columns that are represented in this row. That is, each key
1749 * Indicates the columns that are represented in this row. That is, each key 1757 /// corresponds to a column with a non-empty cell in this row.
1750 * corresponds to a column with a non-empty cell in this row. 1758 class ReportRow extends collection.MapBase<core.String, core.Object> {
1751 */
1752 class ReportRow
1753 extends collection.MapBase<core.String, core.Object> {
1754 final core.Map _innerMap = {}; 1759 final core.Map _innerMap = {};
1755 1760
1756 ReportRow(); 1761 ReportRow();
1757 1762
1758 ReportRow.fromJson(core.Map _json) { 1763 ReportRow.fromJson(core.Map _json) {
1759 _json.forEach((core.String key, value) { 1764 _json.forEach((core.String key, value) {
1760 this[key] = value; 1765 this[key] = value;
1761 }); 1766 });
1762 } 1767 }
1763 1768
1764 core.Map<core.String, core.Object> toJson() { 1769 core.Map<core.String, core.Object> toJson() {
1765 final core.Map<core.String, core.Object> _json = <core.String, core.Object>{ }; 1770 final core.Map<core.String, core.Object> _json =
1771 <core.String, core.Object>{};
1766 this.forEach((core.String key, value) { 1772 this.forEach((core.String key, value) {
1767 _json[key] = value; 1773 _json[key] = value;
1768 }); 1774 });
1769 return _json; 1775 return _json;
1770 } 1776 }
1771 1777
1772 core.Object operator [](core.Object key) 1778 core.Object operator [](core.Object key) => _innerMap[key];
1773 => _innerMap[key];
1774 1779
1775 operator []=(core.String key, core.Object value) { 1780 operator []=(core.String key, core.Object value) {
1776 _innerMap[key] = value; 1781 _innerMap[key] = value;
1777 } 1782 }
1778 1783
1779 void clear() { 1784 void clear() {
1780 _innerMap.clear(); 1785 _innerMap.clear();
1781 } 1786 }
1782 1787
1783 core.Iterable<core.String> get keys => _innerMap.keys; 1788 core.Iterable<core.String> get keys => _innerMap.keys;
1784 1789
1785 core.Object remove(core.Object key) => _innerMap.remove(key); 1790 core.Object remove(core.Object key) => _innerMap.remove(key);
1786 } 1791 }
1787 1792
1788 /** A saved column */ 1793 /// A saved column
1789 class SavedColumn { 1794 class SavedColumn {
1790 /** 1795 /// Identifies this as a SavedColumn resource. Value: the fixed string
1791 * Identifies this as a SavedColumn resource. Value: the fixed string 1796 /// doubleclicksearch#savedColumn.
1792 * doubleclicksearch#savedColumn.
1793 */
1794 core.String kind; 1797 core.String kind;
1795 /** The name of the saved column. */ 1798
1799 /// The name of the saved column.
1796 core.String savedColumnName; 1800 core.String savedColumnName;
1797 /** The type of data this saved column will produce. */ 1801
1802 /// The type of data this saved column will produce.
1798 core.String type; 1803 core.String type;
1799 1804
1800 SavedColumn(); 1805 SavedColumn();
1801 1806
1802 SavedColumn.fromJson(core.Map _json) { 1807 SavedColumn.fromJson(core.Map _json) {
1803 if (_json.containsKey("kind")) { 1808 if (_json.containsKey("kind")) {
1804 kind = _json["kind"]; 1809 kind = _json["kind"];
1805 } 1810 }
1806 if (_json.containsKey("savedColumnName")) { 1811 if (_json.containsKey("savedColumnName")) {
1807 savedColumnName = _json["savedColumnName"]; 1812 savedColumnName = _json["savedColumnName"];
1808 } 1813 }
1809 if (_json.containsKey("type")) { 1814 if (_json.containsKey("type")) {
1810 type = _json["type"]; 1815 type = _json["type"];
1811 } 1816 }
1812 } 1817 }
1813 1818
1814 core.Map<core.String, core.Object> toJson() { 1819 core.Map<core.String, core.Object> toJson() {
1815 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1820 final core.Map<core.String, core.Object> _json =
1821 new core.Map<core.String, core.Object>();
1816 if (kind != null) { 1822 if (kind != null) {
1817 _json["kind"] = kind; 1823 _json["kind"] = kind;
1818 } 1824 }
1819 if (savedColumnName != null) { 1825 if (savedColumnName != null) {
1820 _json["savedColumnName"] = savedColumnName; 1826 _json["savedColumnName"] = savedColumnName;
1821 } 1827 }
1822 if (type != null) { 1828 if (type != null) {
1823 _json["type"] = type; 1829 _json["type"] = type;
1824 } 1830 }
1825 return _json; 1831 return _json;
1826 } 1832 }
1827 } 1833 }
1828 1834
1829 /** 1835 /// A list of saved columns. Advertisers create saved columns to report on
1830 * A list of saved columns. Advertisers create saved columns to report on 1836 /// Floodlight activities, Google Analytics goals, or custom KPIs. To request
1831 * Floodlight activities, Google Analytics goals, or custom KPIs. To request 1837 /// reports with saved columns, you'll need the saved column names that are
1832 * reports with saved columns, you'll need the saved column names that are 1838 /// available from this list.
1833 * available from this list.
1834 */
1835 class SavedColumnList { 1839 class SavedColumnList {
1836 /** The saved columns being requested. */ 1840 /// The saved columns being requested.
1837 core.List<SavedColumn> items; 1841 core.List<SavedColumn> items;
1838 /** 1842
1839 * Identifies this as a SavedColumnList resource. Value: the fixed string 1843 /// Identifies this as a SavedColumnList resource. Value: the fixed string
1840 * doubleclicksearch#savedColumnList. 1844 /// doubleclicksearch#savedColumnList.
1841 */
1842 core.String kind; 1845 core.String kind;
1843 1846
1844 SavedColumnList(); 1847 SavedColumnList();
1845 1848
1846 SavedColumnList.fromJson(core.Map _json) { 1849 SavedColumnList.fromJson(core.Map _json) {
1847 if (_json.containsKey("items")) { 1850 if (_json.containsKey("items")) {
1848 items = _json["items"].map((value) => new SavedColumn.fromJson(value)).toL ist(); 1851 items = _json["items"]
1852 .map((value) => new SavedColumn.fromJson(value))
1853 .toList();
1849 } 1854 }
1850 if (_json.containsKey("kind")) { 1855 if (_json.containsKey("kind")) {
1851 kind = _json["kind"]; 1856 kind = _json["kind"];
1852 } 1857 }
1853 } 1858 }
1854 1859
1855 core.Map<core.String, core.Object> toJson() { 1860 core.Map<core.String, core.Object> toJson() {
1856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1861 final core.Map<core.String, core.Object> _json =
1862 new core.Map<core.String, core.Object>();
1857 if (items != null) { 1863 if (items != null) {
1858 _json["items"] = items.map((value) => (value).toJson()).toList(); 1864 _json["items"] = items.map((value) => (value).toJson()).toList();
1859 } 1865 }
1860 if (kind != null) { 1866 if (kind != null) {
1861 _json["kind"] = kind; 1867 _json["kind"] = kind;
1862 } 1868 }
1863 return _json; 1869 return _json;
1864 } 1870 }
1865 } 1871 }
1866 1872
1867 /** The request to update availability. */ 1873 /// The request to update availability.
1868 class UpdateAvailabilityRequest { 1874 class UpdateAvailabilityRequest {
1869 /** The availabilities being requested. */ 1875 /// The availabilities being requested.
1870 core.List<Availability> availabilities; 1876 core.List<Availability> availabilities;
1871 1877
1872 UpdateAvailabilityRequest(); 1878 UpdateAvailabilityRequest();
1873 1879
1874 UpdateAvailabilityRequest.fromJson(core.Map _json) { 1880 UpdateAvailabilityRequest.fromJson(core.Map _json) {
1875 if (_json.containsKey("availabilities")) { 1881 if (_json.containsKey("availabilities")) {
1876 availabilities = _json["availabilities"].map((value) => new Availability.f romJson(value)).toList(); 1882 availabilities = _json["availabilities"]
1883 .map((value) => new Availability.fromJson(value))
1884 .toList();
1877 } 1885 }
1878 } 1886 }
1879 1887
1880 core.Map<core.String, core.Object> toJson() { 1888 core.Map<core.String, core.Object> toJson() {
1881 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1889 final core.Map<core.String, core.Object> _json =
1890 new core.Map<core.String, core.Object>();
1882 if (availabilities != null) { 1891 if (availabilities != null) {
1883 _json["availabilities"] = availabilities.map((value) => (value).toJson()). toList(); 1892 _json["availabilities"] =
1893 availabilities.map((value) => (value).toJson()).toList();
1884 } 1894 }
1885 return _json; 1895 return _json;
1886 } 1896 }
1887 } 1897 }
1888 1898
1889 /** The response to a update availability request. */ 1899 /// The response to a update availability request.
1890 class UpdateAvailabilityResponse { 1900 class UpdateAvailabilityResponse {
1891 /** The availabilities being returned. */ 1901 /// The availabilities being returned.
1892 core.List<Availability> availabilities; 1902 core.List<Availability> availabilities;
1893 1903
1894 UpdateAvailabilityResponse(); 1904 UpdateAvailabilityResponse();
1895 1905
1896 UpdateAvailabilityResponse.fromJson(core.Map _json) { 1906 UpdateAvailabilityResponse.fromJson(core.Map _json) {
1897 if (_json.containsKey("availabilities")) { 1907 if (_json.containsKey("availabilities")) {
1898 availabilities = _json["availabilities"].map((value) => new Availability.f romJson(value)).toList(); 1908 availabilities = _json["availabilities"]
1909 .map((value) => new Availability.fromJson(value))
1910 .toList();
1899 } 1911 }
1900 } 1912 }
1901 1913
1902 core.Map<core.String, core.Object> toJson() { 1914 core.Map<core.String, core.Object> toJson() {
1903 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1915 final core.Map<core.String, core.Object> _json =
1916 new core.Map<core.String, core.Object>();
1904 if (availabilities != null) { 1917 if (availabilities != null) {
1905 _json["availabilities"] = availabilities.map((value) => (value).toJson()). toList(); 1918 _json["availabilities"] =
1919 availabilities.map((value) => (value).toJson()).toList();
1906 } 1920 }
1907 return _json; 1921 return _json;
1908 } 1922 }
1909 } 1923 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/doubleclickbidmanager/v1.dart ('k') | generated/googleapis/lib/drive/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698