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

Side by Side Diff: generated/googleapis/lib/adsense/v1_4.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.adsense.v1_4; 3 library googleapis.adsense.v1_4;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, 13 show
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 14 ApiRequestError,
15 ByteRange; 15 DetailedApiRequestError,
16 Media,
17 UploadOptions,
18 ResumableUploadOptions,
19 DownloadOptions,
20 PartialDownloadOptions,
21 ByteRange;
16 22
17 const core.String USER_AGENT = 'dart-api-client adsense/v1.4'; 23 const core.String USER_AGENT = 'dart-api-client adsense/v1.4';
18 24
19 /** 25 /// Accesses AdSense publishers' inventory and generates performance reports.
20 * Accesses AdSense publishers' inventory and generates performance reports.
21 */
22 class AdsenseApi { 26 class AdsenseApi {
23 /** View and manage your AdSense data */ 27 /// View and manage your AdSense data
24 static const AdsenseScope = "https://www.googleapis.com/auth/adsense"; 28 static const AdsenseScope = "https://www.googleapis.com/auth/adsense";
25 29
26 /** View your AdSense data */ 30 /// View your AdSense data
27 static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.r eadonly"; 31 static const AdsenseReadonlyScope =
28 32 "https://www.googleapis.com/auth/adsense.readonly";
29 33
30 final commons.ApiRequester _requester; 34 final commons.ApiRequester _requester;
31 35
32 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); 36 AccountsResourceApi get accounts => new AccountsResourceApi(_requester);
33 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester); 37 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester);
34 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester); 38 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester);
35 AlertsResourceApi get alerts => new AlertsResourceApi(_requester); 39 AlertsResourceApi get alerts => new AlertsResourceApi(_requester);
36 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi( _requester); 40 CustomchannelsResourceApi get customchannels =>
41 new CustomchannelsResourceApi(_requester);
37 MetadataResourceApi get metadata => new MetadataResourceApi(_requester); 42 MetadataResourceApi get metadata => new MetadataResourceApi(_requester);
38 PaymentsResourceApi get payments => new PaymentsResourceApi(_requester); 43 PaymentsResourceApi get payments => new PaymentsResourceApi(_requester);
39 ReportsResourceApi get reports => new ReportsResourceApi(_requester); 44 ReportsResourceApi get reports => new ReportsResourceApi(_requester);
40 SavedadstylesResourceApi get savedadstyles => new SavedadstylesResourceApi(_re quester); 45 SavedadstylesResourceApi get savedadstyles =>
41 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste r); 46 new SavedadstylesResourceApi(_requester);
47 UrlchannelsResourceApi get urlchannels =>
48 new UrlchannelsResourceApi(_requester);
42 49
43 AdsenseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "adsense/v1.4/"}) : 50 AdsenseApi(http.Client client,
44 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 51 {core.String rootUrl: "https://www.googleapis.com/",
52 core.String servicePath: "adsense/v1.4/"})
53 : _requester =
54 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
45 } 55 }
46 56
47
48 class AccountsResourceApi { 57 class AccountsResourceApi {
49 final commons.ApiRequester _requester; 58 final commons.ApiRequester _requester;
50 59
51 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi (_requester); 60 AccountsAdclientsResourceApi get adclients =>
52 AccountsAdunitsResourceApi get adunits => new AccountsAdunitsResourceApi(_requ ester); 61 new AccountsAdclientsResourceApi(_requester);
53 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request er); 62 AccountsAdunitsResourceApi get adunits =>
54 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan nelsResourceApi(_requester); 63 new AccountsAdunitsResourceApi(_requester);
55 AccountsPaymentsResourceApi get payments => new AccountsPaymentsResourceApi(_r equester); 64 AccountsAlertsResourceApi get alerts =>
56 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ ester); 65 new AccountsAlertsResourceApi(_requester);
57 AccountsSavedadstylesResourceApi get savedadstyles => new AccountsSavedadstyle sResourceApi(_requester); 66 AccountsCustomchannelsResourceApi get customchannels =>
58 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou rceApi(_requester); 67 new AccountsCustomchannelsResourceApi(_requester);
68 AccountsPaymentsResourceApi get payments =>
69 new AccountsPaymentsResourceApi(_requester);
70 AccountsReportsResourceApi get reports =>
71 new AccountsReportsResourceApi(_requester);
72 AccountsSavedadstylesResourceApi get savedadstyles =>
73 new AccountsSavedadstylesResourceApi(_requester);
74 AccountsUrlchannelsResourceApi get urlchannels =>
75 new AccountsUrlchannelsResourceApi(_requester);
59 76
60 AccountsResourceApi(commons.ApiRequester client) : 77 AccountsResourceApi(commons.ApiRequester client) : _requester = client;
61 _requester = client;
62 78
63 /** 79 /// Get information about the selected AdSense account.
64 * Get information about the selected AdSense account. 80 ///
65 * 81 /// Request parameters:
66 * Request parameters: 82 ///
67 * 83 /// [accountId] - Account to get information about.
68 * [accountId] - Account to get information about. 84 ///
69 * 85 /// [tree] - Whether the tree of sub accounts should be returned.
70 * [tree] - Whether the tree of sub accounts should be returned. 86 ///
71 * 87 /// Completes with a [Account].
72 * Completes with a [Account]. 88 ///
73 * 89 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
74 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 90 /// an error.
75 * error. 91 ///
76 * 92 /// If the used [http.Client] completes with an error when making a REST
77 * If the used [http.Client] completes with an error when making a REST call, 93 /// call, this method will complete with the same error.
78 * this method will complete with the same error.
79 */
80 async.Future<Account> get(core.String accountId, {core.bool tree}) { 94 async.Future<Account> get(core.String accountId, {core.bool tree}) {
81 var _url = null; 95 var _url = null;
82 var _queryParams = new core.Map(); 96 var _queryParams = new core.Map();
83 var _uploadMedia = null; 97 var _uploadMedia = null;
84 var _uploadOptions = null; 98 var _uploadOptions = null;
85 var _downloadOptions = commons.DownloadOptions.Metadata; 99 var _downloadOptions = commons.DownloadOptions.Metadata;
86 var _body = null; 100 var _body = null;
87 101
88 if (accountId == null) { 102 if (accountId == null) {
89 throw new core.ArgumentError("Parameter accountId is required."); 103 throw new core.ArgumentError("Parameter accountId is required.");
90 } 104 }
91 if (tree != null) { 105 if (tree != null) {
92 _queryParams["tree"] = ["${tree}"]; 106 _queryParams["tree"] = ["${tree}"];
93 } 107 }
94 108
95 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId'); 109 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId');
96 110
97 var _response = _requester.request(_url, 111 var _response = _requester.request(_url, "GET",
98 "GET", 112 body: _body,
99 body: _body, 113 queryParams: _queryParams,
100 queryParams: _queryParams, 114 uploadOptions: _uploadOptions,
101 uploadOptions: _uploadOptions, 115 uploadMedia: _uploadMedia,
102 uploadMedia: _uploadMedia, 116 downloadOptions: _downloadOptions);
103 downloadOptions: _downloadOptions);
104 return _response.then((data) => new Account.fromJson(data)); 117 return _response.then((data) => new Account.fromJson(data));
105 } 118 }
106 119
107 /** 120 /// List all accounts available to this AdSense account.
108 * List all accounts available to this AdSense account. 121 ///
109 * 122 /// Request parameters:
110 * Request parameters: 123 ///
111 * 124 /// [maxResults] - The maximum number of accounts to include in the response,
112 * [maxResults] - The maximum number of accounts to include in the response, 125 /// used for paging.
113 * used for paging. 126 /// Value must be between "0" and "10000".
114 * Value must be between "0" and "10000". 127 ///
115 * 128 /// [pageToken] - A continuation token, used to page through accounts. To
116 * [pageToken] - A continuation token, used to page through accounts. To 129 /// retrieve the next page, set this parameter to the value of
117 * retrieve the next page, set this parameter to the value of "nextPageToken" 130 /// "nextPageToken" from the previous response.
118 * from the previous response. 131 ///
119 * 132 /// Completes with a [Accounts].
120 * Completes with a [Accounts]. 133 ///
121 * 134 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
122 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 135 /// an error.
123 * error. 136 ///
124 * 137 /// If the used [http.Client] completes with an error when making a REST
125 * If the used [http.Client] completes with an error when making a REST call, 138 /// call, this method will complete with the same error.
126 * this method will complete with the same error.
127 */
128 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { 139 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) {
129 var _url = null; 140 var _url = null;
130 var _queryParams = new core.Map(); 141 var _queryParams = new core.Map();
131 var _uploadMedia = null; 142 var _uploadMedia = null;
132 var _uploadOptions = null; 143 var _uploadOptions = null;
133 var _downloadOptions = commons.DownloadOptions.Metadata; 144 var _downloadOptions = commons.DownloadOptions.Metadata;
134 var _body = null; 145 var _body = null;
135 146
136 if (maxResults != null) { 147 if (maxResults != null) {
137 _queryParams["maxResults"] = ["${maxResults}"]; 148 _queryParams["maxResults"] = ["${maxResults}"];
138 } 149 }
139 if (pageToken != null) { 150 if (pageToken != null) {
140 _queryParams["pageToken"] = [pageToken]; 151 _queryParams["pageToken"] = [pageToken];
141 } 152 }
142 153
143 _url = 'accounts'; 154 _url = 'accounts';
144 155
145 var _response = _requester.request(_url, 156 var _response = _requester.request(_url, "GET",
146 "GET", 157 body: _body,
147 body: _body, 158 queryParams: _queryParams,
148 queryParams: _queryParams, 159 uploadOptions: _uploadOptions,
149 uploadOptions: _uploadOptions, 160 uploadMedia: _uploadMedia,
150 uploadMedia: _uploadMedia, 161 downloadOptions: _downloadOptions);
151 downloadOptions: _downloadOptions);
152 return _response.then((data) => new Accounts.fromJson(data)); 162 return _response.then((data) => new Accounts.fromJson(data));
153 } 163 }
154
155 } 164 }
156 165
157
158 class AccountsAdclientsResourceApi { 166 class AccountsAdclientsResourceApi {
159 final commons.ApiRequester _requester; 167 final commons.ApiRequester _requester;
160 168
161 AccountsAdclientsResourceApi(commons.ApiRequester client) : 169 AccountsAdclientsResourceApi(commons.ApiRequester client)
162 _requester = client; 170 : _requester = client;
163 171
164 /** 172 /// List all ad clients in the specified account.
165 * List all ad clients in the specified account. 173 ///
166 * 174 /// Request parameters:
167 * Request parameters: 175 ///
168 * 176 /// [accountId] - Account for which to list ad clients.
169 * [accountId] - Account for which to list ad clients. 177 ///
170 * 178 /// [maxResults] - The maximum number of ad clients to include in the
171 * [maxResults] - The maximum number of ad clients to include in the response, 179 /// response, used for paging.
172 * used for paging. 180 /// Value must be between "0" and "10000".
173 * Value must be between "0" and "10000". 181 ///
174 * 182 /// [pageToken] - A continuation token, used to page through ad clients. To
175 * [pageToken] - A continuation token, used to page through ad clients. To 183 /// retrieve the next page, set this parameter to the value of
176 * retrieve the next page, set this parameter to the value of "nextPageToken" 184 /// "nextPageToken" from the previous response.
177 * from the previous response. 185 ///
178 * 186 /// Completes with a [AdClients].
179 * Completes with a [AdClients]. 187 ///
180 * 188 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
181 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 189 /// an error.
182 * error. 190 ///
183 * 191 /// If the used [http.Client] completes with an error when making a REST
184 * If the used [http.Client] completes with an error when making a REST call, 192 /// call, this method will complete with the same error.
185 * this method will complete with the same error. 193 async.Future<AdClients> list(core.String accountId,
186 */ 194 {core.int maxResults, core.String pageToken}) {
187 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core .String pageToken}) {
188 var _url = null; 195 var _url = null;
189 var _queryParams = new core.Map(); 196 var _queryParams = new core.Map();
190 var _uploadMedia = null; 197 var _uploadMedia = null;
191 var _uploadOptions = null; 198 var _uploadOptions = null;
192 var _downloadOptions = commons.DownloadOptions.Metadata; 199 var _downloadOptions = commons.DownloadOptions.Metadata;
193 var _body = null; 200 var _body = null;
194 201
195 if (accountId == null) { 202 if (accountId == null) {
196 throw new core.ArgumentError("Parameter accountId is required."); 203 throw new core.ArgumentError("Parameter accountId is required.");
197 } 204 }
198 if (maxResults != null) { 205 if (maxResults != null) {
199 _queryParams["maxResults"] = ["${maxResults}"]; 206 _queryParams["maxResults"] = ["${maxResults}"];
200 } 207 }
201 if (pageToken != null) { 208 if (pageToken != null) {
202 _queryParams["pageToken"] = [pageToken]; 209 _queryParams["pageToken"] = [pageToken];
203 } 210 }
204 211
205 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts'; 212 _url = 'accounts/' +
213 commons.Escaper.ecapeVariable('$accountId') +
214 '/adclients';
206 215
207 var _response = _requester.request(_url, 216 var _response = _requester.request(_url, "GET",
208 "GET", 217 body: _body,
209 body: _body, 218 queryParams: _queryParams,
210 queryParams: _queryParams, 219 uploadOptions: _uploadOptions,
211 uploadOptions: _uploadOptions, 220 uploadMedia: _uploadMedia,
212 uploadMedia: _uploadMedia, 221 downloadOptions: _downloadOptions);
213 downloadOptions: _downloadOptions);
214 return _response.then((data) => new AdClients.fromJson(data)); 222 return _response.then((data) => new AdClients.fromJson(data));
215 } 223 }
216
217 } 224 }
218 225
219
220 class AccountsAdunitsResourceApi { 226 class AccountsAdunitsResourceApi {
221 final commons.ApiRequester _requester; 227 final commons.ApiRequester _requester;
222 228
223 AccountsAdunitsCustomchannelsResourceApi get customchannels => new AccountsAdu nitsCustomchannelsResourceApi(_requester); 229 AccountsAdunitsCustomchannelsResourceApi get customchannels =>
230 new AccountsAdunitsCustomchannelsResourceApi(_requester);
224 231
225 AccountsAdunitsResourceApi(commons.ApiRequester client) : 232 AccountsAdunitsResourceApi(commons.ApiRequester client) : _requester = client;
226 _requester = client;
227 233
228 /** 234 /// Gets the specified ad unit in the specified ad client for the specified
229 * Gets the specified ad unit in the specified ad client for the specified 235 /// account.
230 * account. 236 ///
231 * 237 /// Request parameters:
232 * Request parameters: 238 ///
233 * 239 /// [accountId] - Account to which the ad client belongs.
234 * [accountId] - Account to which the ad client belongs. 240 ///
235 * 241 /// [adClientId] - Ad client for which to get the ad unit.
236 * [adClientId] - Ad client for which to get the ad unit. 242 ///
237 * 243 /// [adUnitId] - Ad unit to retrieve.
238 * [adUnitId] - Ad unit to retrieve. 244 ///
239 * 245 /// Completes with a [AdUnit].
240 * Completes with a [AdUnit]. 246 ///
241 * 247 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 248 /// an error.
243 * error. 249 ///
244 * 250 /// If the used [http.Client] completes with an error when making a REST
245 * If the used [http.Client] completes with an error when making a REST call, 251 /// call, this method will complete with the same error.
246 * this method will complete with the same error. 252 async.Future<AdUnit> get(
247 */ 253 core.String accountId, core.String adClientId, core.String adUnitId) {
248 async.Future<AdUnit> get(core.String accountId, core.String adClientId, core.S tring adUnitId) {
249 var _url = null; 254 var _url = null;
250 var _queryParams = new core.Map(); 255 var _queryParams = new core.Map();
251 var _uploadMedia = null; 256 var _uploadMedia = null;
252 var _uploadOptions = null; 257 var _uploadOptions = null;
253 var _downloadOptions = commons.DownloadOptions.Metadata; 258 var _downloadOptions = commons.DownloadOptions.Metadata;
254 var _body = null; 259 var _body = null;
255 260
256 if (accountId == null) { 261 if (accountId == null) {
257 throw new core.ArgumentError("Parameter accountId is required."); 262 throw new core.ArgumentError("Parameter accountId is required.");
258 } 263 }
259 if (adClientId == null) { 264 if (adClientId == null) {
260 throw new core.ArgumentError("Parameter adClientId is required."); 265 throw new core.ArgumentError("Parameter adClientId is required.");
261 } 266 }
262 if (adUnitId == null) { 267 if (adUnitId == null) {
263 throw new core.ArgumentError("Parameter adUnitId is required."); 268 throw new core.ArgumentError("Parameter adUnitId is required.");
264 } 269 }
265 270
266 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca per.ecapeVariable('$adUnitId'); 271 _url = 'accounts/' +
272 commons.Escaper.ecapeVariable('$accountId') +
273 '/adclients/' +
274 commons.Escaper.ecapeVariable('$adClientId') +
275 '/adunits/' +
276 commons.Escaper.ecapeVariable('$adUnitId');
267 277
268 var _response = _requester.request(_url, 278 var _response = _requester.request(_url, "GET",
269 "GET", 279 body: _body,
270 body: _body, 280 queryParams: _queryParams,
271 queryParams: _queryParams, 281 uploadOptions: _uploadOptions,
272 uploadOptions: _uploadOptions, 282 uploadMedia: _uploadMedia,
273 uploadMedia: _uploadMedia, 283 downloadOptions: _downloadOptions);
274 downloadOptions: _downloadOptions);
275 return _response.then((data) => new AdUnit.fromJson(data)); 284 return _response.then((data) => new AdUnit.fromJson(data));
276 } 285 }
277 286
278 /** 287 /// Get ad code for the specified ad unit.
279 * Get ad code for the specified ad unit. 288 ///
280 * 289 /// Request parameters:
281 * Request parameters: 290 ///
282 * 291 /// [accountId] - Account which contains the ad client.
283 * [accountId] - Account which contains the ad client. 292 ///
284 * 293 /// [adClientId] - Ad client with contains the ad unit.
285 * [adClientId] - Ad client with contains the ad unit. 294 ///
286 * 295 /// [adUnitId] - Ad unit to get the code for.
287 * [adUnitId] - Ad unit to get the code for. 296 ///
288 * 297 /// Completes with a [AdCode].
289 * Completes with a [AdCode]. 298 ///
290 * 299 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
291 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 300 /// an error.
292 * error. 301 ///
293 * 302 /// If the used [http.Client] completes with an error when making a REST
294 * If the used [http.Client] completes with an error when making a REST call, 303 /// call, this method will complete with the same error.
295 * this method will complete with the same error. 304 async.Future<AdCode> getAdCode(
296 */ 305 core.String accountId, core.String adClientId, core.String adUnitId) {
297 async.Future<AdCode> getAdCode(core.String accountId, core.String adClientId, core.String adUnitId) {
298 var _url = null; 306 var _url = null;
299 var _queryParams = new core.Map(); 307 var _queryParams = new core.Map();
300 var _uploadMedia = null; 308 var _uploadMedia = null;
301 var _uploadOptions = null; 309 var _uploadOptions = null;
302 var _downloadOptions = commons.DownloadOptions.Metadata; 310 var _downloadOptions = commons.DownloadOptions.Metadata;
303 var _body = null; 311 var _body = null;
304 312
305 if (accountId == null) { 313 if (accountId == null) {
306 throw new core.ArgumentError("Parameter accountId is required."); 314 throw new core.ArgumentError("Parameter accountId is required.");
307 } 315 }
308 if (adClientId == null) { 316 if (adClientId == null) {
309 throw new core.ArgumentError("Parameter adClientId is required."); 317 throw new core.ArgumentError("Parameter adClientId is required.");
310 } 318 }
311 if (adUnitId == null) { 319 if (adUnitId == null) {
312 throw new core.ArgumentError("Parameter adUnitId is required."); 320 throw new core.ArgumentError("Parameter adUnitId is required.");
313 } 321 }
314 322
315 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca per.ecapeVariable('$adUnitId') + '/adcode'; 323 _url = 'accounts/' +
324 commons.Escaper.ecapeVariable('$accountId') +
325 '/adclients/' +
326 commons.Escaper.ecapeVariable('$adClientId') +
327 '/adunits/' +
328 commons.Escaper.ecapeVariable('$adUnitId') +
329 '/adcode';
316 330
317 var _response = _requester.request(_url, 331 var _response = _requester.request(_url, "GET",
318 "GET", 332 body: _body,
319 body: _body, 333 queryParams: _queryParams,
320 queryParams: _queryParams, 334 uploadOptions: _uploadOptions,
321 uploadOptions: _uploadOptions, 335 uploadMedia: _uploadMedia,
322 uploadMedia: _uploadMedia, 336 downloadOptions: _downloadOptions);
323 downloadOptions: _downloadOptions);
324 return _response.then((data) => new AdCode.fromJson(data)); 337 return _response.then((data) => new AdCode.fromJson(data));
325 } 338 }
326 339
327 /** 340 /// List all ad units in the specified ad client for the specified account.
328 * List all ad units in the specified ad client for the specified account. 341 ///
329 * 342 /// Request parameters:
330 * Request parameters: 343 ///
331 * 344 /// [accountId] - Account to which the ad client belongs.
332 * [accountId] - Account to which the ad client belongs. 345 ///
333 * 346 /// [adClientId] - Ad client for which to list ad units.
334 * [adClientId] - Ad client for which to list ad units. 347 ///
335 * 348 /// [includeInactive] - Whether to include inactive ad units. Default: true.
336 * [includeInactive] - Whether to include inactive ad units. Default: true. 349 ///
337 * 350 /// [maxResults] - The maximum number of ad units to include in the response,
338 * [maxResults] - The maximum number of ad units to include in the response, 351 /// used for paging.
339 * used for paging. 352 /// Value must be between "0" and "10000".
340 * Value must be between "0" and "10000". 353 ///
341 * 354 /// [pageToken] - A continuation token, used to page through ad units. To
342 * [pageToken] - A continuation token, used to page through ad units. To 355 /// retrieve the next page, set this parameter to the value of
343 * retrieve the next page, set this parameter to the value of "nextPageToken" 356 /// "nextPageToken" from the previous response.
344 * from the previous response. 357 ///
345 * 358 /// Completes with a [AdUnits].
346 * Completes with a [AdUnits]. 359 ///
347 * 360 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 361 /// an error.
349 * error. 362 ///
350 * 363 /// If the used [http.Client] completes with an error when making a REST
351 * If the used [http.Client] completes with an error when making a REST call, 364 /// call, this method will complete with the same error.
352 * this method will complete with the same error. 365 async.Future<AdUnits> list(core.String accountId, core.String adClientId,
353 */ 366 {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
354 async.Future<AdUnits> list(core.String accountId, core.String adClientId, {cor e.bool includeInactive, core.int maxResults, core.String pageToken}) {
355 var _url = null; 367 var _url = null;
356 var _queryParams = new core.Map(); 368 var _queryParams = new core.Map();
357 var _uploadMedia = null; 369 var _uploadMedia = null;
358 var _uploadOptions = null; 370 var _uploadOptions = null;
359 var _downloadOptions = commons.DownloadOptions.Metadata; 371 var _downloadOptions = commons.DownloadOptions.Metadata;
360 var _body = null; 372 var _body = null;
361 373
362 if (accountId == null) { 374 if (accountId == null) {
363 throw new core.ArgumentError("Parameter accountId is required."); 375 throw new core.ArgumentError("Parameter accountId is required.");
364 } 376 }
365 if (adClientId == null) { 377 if (adClientId == null) {
366 throw new core.ArgumentError("Parameter adClientId is required."); 378 throw new core.ArgumentError("Parameter adClientId is required.");
367 } 379 }
368 if (includeInactive != null) { 380 if (includeInactive != null) {
369 _queryParams["includeInactive"] = ["${includeInactive}"]; 381 _queryParams["includeInactive"] = ["${includeInactive}"];
370 } 382 }
371 if (maxResults != null) { 383 if (maxResults != null) {
372 _queryParams["maxResults"] = ["${maxResults}"]; 384 _queryParams["maxResults"] = ["${maxResults}"];
373 } 385 }
374 if (pageToken != null) { 386 if (pageToken != null) {
375 _queryParams["pageToken"] = [pageToken]; 387 _queryParams["pageToken"] = [pageToken];
376 } 388 }
377 389
378 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits'; 390 _url = 'accounts/' +
391 commons.Escaper.ecapeVariable('$accountId') +
392 '/adclients/' +
393 commons.Escaper.ecapeVariable('$adClientId') +
394 '/adunits';
379 395
380 var _response = _requester.request(_url, 396 var _response = _requester.request(_url, "GET",
381 "GET", 397 body: _body,
382 body: _body, 398 queryParams: _queryParams,
383 queryParams: _queryParams, 399 uploadOptions: _uploadOptions,
384 uploadOptions: _uploadOptions, 400 uploadMedia: _uploadMedia,
385 uploadMedia: _uploadMedia, 401 downloadOptions: _downloadOptions);
386 downloadOptions: _downloadOptions);
387 return _response.then((data) => new AdUnits.fromJson(data)); 402 return _response.then((data) => new AdUnits.fromJson(data));
388 } 403 }
389
390 } 404 }
391 405
392
393 class AccountsAdunitsCustomchannelsResourceApi { 406 class AccountsAdunitsCustomchannelsResourceApi {
394 final commons.ApiRequester _requester; 407 final commons.ApiRequester _requester;
395 408
396 AccountsAdunitsCustomchannelsResourceApi(commons.ApiRequester client) : 409 AccountsAdunitsCustomchannelsResourceApi(commons.ApiRequester client)
397 _requester = client; 410 : _requester = client;
398 411
399 /** 412 /// List all custom channels which the specified ad unit belongs to.
400 * List all custom channels which the specified ad unit belongs to. 413 ///
401 * 414 /// Request parameters:
402 * Request parameters: 415 ///
403 * 416 /// [accountId] - Account to which the ad client belongs.
404 * [accountId] - Account to which the ad client belongs. 417 ///
405 * 418 /// [adClientId] - Ad client which contains the ad unit.
406 * [adClientId] - Ad client which contains the ad unit. 419 ///
407 * 420 /// [adUnitId] - Ad unit for which to list custom channels.
408 * [adUnitId] - Ad unit for which to list custom channels. 421 ///
409 * 422 /// [maxResults] - The maximum number of custom channels to include in the
410 * [maxResults] - The maximum number of custom channels to include in the 423 /// response, used for paging.
411 * response, used for paging. 424 /// Value must be between "0" and "10000".
412 * Value must be between "0" and "10000". 425 ///
413 * 426 /// [pageToken] - A continuation token, used to page through custom channels.
414 * [pageToken] - A continuation token, used to page through custom channels. 427 /// To retrieve the next page, set this parameter to the value of
415 * To retrieve the next page, set this parameter to the value of 428 /// "nextPageToken" from the previous response.
416 * "nextPageToken" from the previous response. 429 ///
417 * 430 /// Completes with a [CustomChannels].
418 * Completes with a [CustomChannels]. 431 ///
419 * 432 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
420 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 433 /// an error.
421 * error. 434 ///
422 * 435 /// If the used [http.Client] completes with an error when making a REST
423 * If the used [http.Client] completes with an error when making a REST call, 436 /// call, this method will complete with the same error.
424 * this method will complete with the same error. 437 async.Future<CustomChannels> list(
425 */ 438 core.String accountId, core.String adClientId, core.String adUnitId,
426 async.Future<CustomChannels> list(core.String accountId, core.String adClientI d, core.String adUnitId, {core.int maxResults, core.String pageToken}) { 439 {core.int maxResults, core.String pageToken}) {
427 var _url = null; 440 var _url = null;
428 var _queryParams = new core.Map(); 441 var _queryParams = new core.Map();
429 var _uploadMedia = null; 442 var _uploadMedia = null;
430 var _uploadOptions = null; 443 var _uploadOptions = null;
431 var _downloadOptions = commons.DownloadOptions.Metadata; 444 var _downloadOptions = commons.DownloadOptions.Metadata;
432 var _body = null; 445 var _body = null;
433 446
434 if (accountId == null) { 447 if (accountId == null) {
435 throw new core.ArgumentError("Parameter accountId is required."); 448 throw new core.ArgumentError("Parameter accountId is required.");
436 } 449 }
437 if (adClientId == null) { 450 if (adClientId == null) {
438 throw new core.ArgumentError("Parameter adClientId is required."); 451 throw new core.ArgumentError("Parameter adClientId is required.");
439 } 452 }
440 if (adUnitId == null) { 453 if (adUnitId == null) {
441 throw new core.ArgumentError("Parameter adUnitId is required."); 454 throw new core.ArgumentError("Parameter adUnitId is required.");
442 } 455 }
443 if (maxResults != null) { 456 if (maxResults != null) {
444 _queryParams["maxResults"] = ["${maxResults}"]; 457 _queryParams["maxResults"] = ["${maxResults}"];
445 } 458 }
446 if (pageToken != null) { 459 if (pageToken != null) {
447 _queryParams["pageToken"] = [pageToken]; 460 _queryParams["pageToken"] = [pageToken];
448 } 461 }
449 462
450 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca per.ecapeVariable('$adUnitId') + '/customchannels'; 463 _url = 'accounts/' +
464 commons.Escaper.ecapeVariable('$accountId') +
465 '/adclients/' +
466 commons.Escaper.ecapeVariable('$adClientId') +
467 '/adunits/' +
468 commons.Escaper.ecapeVariable('$adUnitId') +
469 '/customchannels';
451 470
452 var _response = _requester.request(_url, 471 var _response = _requester.request(_url, "GET",
453 "GET", 472 body: _body,
454 body: _body, 473 queryParams: _queryParams,
455 queryParams: _queryParams, 474 uploadOptions: _uploadOptions,
456 uploadOptions: _uploadOptions, 475 uploadMedia: _uploadMedia,
457 uploadMedia: _uploadMedia, 476 downloadOptions: _downloadOptions);
458 downloadOptions: _downloadOptions);
459 return _response.then((data) => new CustomChannels.fromJson(data)); 477 return _response.then((data) => new CustomChannels.fromJson(data));
460 } 478 }
461
462 } 479 }
463 480
464
465 class AccountsAlertsResourceApi { 481 class AccountsAlertsResourceApi {
466 final commons.ApiRequester _requester; 482 final commons.ApiRequester _requester;
467 483
468 AccountsAlertsResourceApi(commons.ApiRequester client) : 484 AccountsAlertsResourceApi(commons.ApiRequester client) : _requester = client;
469 _requester = client;
470 485
471 /** 486 /// Dismiss (delete) the specified alert from the specified publisher AdSense
472 * Dismiss (delete) the specified alert from the specified publisher AdSense 487 /// account.
473 * account. 488 ///
474 * 489 /// Request parameters:
475 * Request parameters: 490 ///
476 * 491 /// [accountId] - Account which contains the ad unit.
477 * [accountId] - Account which contains the ad unit. 492 ///
478 * 493 /// [alertId] - Alert to delete.
479 * [alertId] - Alert to delete. 494 ///
480 * 495 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
481 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 496 /// an error.
482 * error. 497 ///
483 * 498 /// If the used [http.Client] completes with an error when making a REST
484 * If the used [http.Client] completes with an error when making a REST call, 499 /// call, this method will complete with the same error.
485 * this method will complete with the same error.
486 */
487 async.Future delete(core.String accountId, core.String alertId) { 500 async.Future delete(core.String accountId, core.String alertId) {
488 var _url = null; 501 var _url = null;
489 var _queryParams = new core.Map(); 502 var _queryParams = new core.Map();
490 var _uploadMedia = null; 503 var _uploadMedia = null;
491 var _uploadOptions = null; 504 var _uploadOptions = null;
492 var _downloadOptions = commons.DownloadOptions.Metadata; 505 var _downloadOptions = commons.DownloadOptions.Metadata;
493 var _body = null; 506 var _body = null;
494 507
495 if (accountId == null) { 508 if (accountId == null) {
496 throw new core.ArgumentError("Parameter accountId is required."); 509 throw new core.ArgumentError("Parameter accountId is required.");
497 } 510 }
498 if (alertId == null) { 511 if (alertId == null) {
499 throw new core.ArgumentError("Parameter alertId is required."); 512 throw new core.ArgumentError("Parameter alertId is required.");
500 } 513 }
501 514
502 _downloadOptions = null; 515 _downloadOptions = null;
503 516
504 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts/ ' + commons.Escaper.ecapeVariable('$alertId'); 517 _url = 'accounts/' +
518 commons.Escaper.ecapeVariable('$accountId') +
519 '/alerts/' +
520 commons.Escaper.ecapeVariable('$alertId');
505 521
506 var _response = _requester.request(_url, 522 var _response = _requester.request(_url, "DELETE",
507 "DELETE", 523 body: _body,
508 body: _body, 524 queryParams: _queryParams,
509 queryParams: _queryParams, 525 uploadOptions: _uploadOptions,
510 uploadOptions: _uploadOptions, 526 uploadMedia: _uploadMedia,
511 uploadMedia: _uploadMedia, 527 downloadOptions: _downloadOptions);
512 downloadOptions: _downloadOptions);
513 return _response.then((data) => null); 528 return _response.then((data) => null);
514 } 529 }
515 530
516 /** 531 /// List the alerts for the specified AdSense account.
517 * List the alerts for the specified AdSense account. 532 ///
518 * 533 /// Request parameters:
519 * Request parameters: 534 ///
520 * 535 /// [accountId] - Account for which to retrieve the alerts.
521 * [accountId] - Account for which to retrieve the alerts. 536 ///
522 * 537 /// [locale] - The locale to use for translating alert messages. The account
523 * [locale] - The locale to use for translating alert messages. The account 538 /// locale will be used if this is not supplied. The AdSense default
524 * locale will be used if this is not supplied. The AdSense default (English) 539 /// (English) will be used if the supplied locale is invalid or unsupported.
525 * will be used if the supplied locale is invalid or unsupported. 540 ///
526 * 541 /// Completes with a [Alerts].
527 * Completes with a [Alerts]. 542 ///
528 * 543 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
529 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 544 /// an error.
530 * error. 545 ///
531 * 546 /// If the used [http.Client] completes with an error when making a REST
532 * If the used [http.Client] completes with an error when making a REST call, 547 /// call, this method will complete with the same error.
533 * this method will complete with the same error.
534 */
535 async.Future<Alerts> list(core.String accountId, {core.String locale}) { 548 async.Future<Alerts> list(core.String accountId, {core.String locale}) {
536 var _url = null; 549 var _url = null;
537 var _queryParams = new core.Map(); 550 var _queryParams = new core.Map();
538 var _uploadMedia = null; 551 var _uploadMedia = null;
539 var _uploadOptions = null; 552 var _uploadOptions = null;
540 var _downloadOptions = commons.DownloadOptions.Metadata; 553 var _downloadOptions = commons.DownloadOptions.Metadata;
541 var _body = null; 554 var _body = null;
542 555
543 if (accountId == null) { 556 if (accountId == null) {
544 throw new core.ArgumentError("Parameter accountId is required."); 557 throw new core.ArgumentError("Parameter accountId is required.");
545 } 558 }
546 if (locale != null) { 559 if (locale != null) {
547 _queryParams["locale"] = [locale]; 560 _queryParams["locale"] = [locale];
548 } 561 }
549 562
550 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts' ; 563 _url =
564 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts';
551 565
552 var _response = _requester.request(_url, 566 var _response = _requester.request(_url, "GET",
553 "GET", 567 body: _body,
554 body: _body, 568 queryParams: _queryParams,
555 queryParams: _queryParams, 569 uploadOptions: _uploadOptions,
556 uploadOptions: _uploadOptions, 570 uploadMedia: _uploadMedia,
557 uploadMedia: _uploadMedia, 571 downloadOptions: _downloadOptions);
558 downloadOptions: _downloadOptions);
559 return _response.then((data) => new Alerts.fromJson(data)); 572 return _response.then((data) => new Alerts.fromJson(data));
560 } 573 }
561
562 } 574 }
563 575
564
565 class AccountsCustomchannelsResourceApi { 576 class AccountsCustomchannelsResourceApi {
566 final commons.ApiRequester _requester; 577 final commons.ApiRequester _requester;
567 578
568 AccountsCustomchannelsAdunitsResourceApi get adunits => new AccountsCustomchan nelsAdunitsResourceApi(_requester); 579 AccountsCustomchannelsAdunitsResourceApi get adunits =>
580 new AccountsCustomchannelsAdunitsResourceApi(_requester);
569 581
570 AccountsCustomchannelsResourceApi(commons.ApiRequester client) : 582 AccountsCustomchannelsResourceApi(commons.ApiRequester client)
571 _requester = client; 583 : _requester = client;
572 584
573 /** 585 /// Get the specified custom channel from the specified ad client for the
574 * Get the specified custom channel from the specified ad client for the 586 /// specified account.
575 * specified account. 587 ///
576 * 588 /// Request parameters:
577 * Request parameters: 589 ///
578 * 590 /// [accountId] - Account to which the ad client belongs.
579 * [accountId] - Account to which the ad client belongs. 591 ///
580 * 592 /// [adClientId] - Ad client which contains the custom channel.
581 * [adClientId] - Ad client which contains the custom channel. 593 ///
582 * 594 /// [customChannelId] - Custom channel to retrieve.
583 * [customChannelId] - Custom channel to retrieve. 595 ///
584 * 596 /// Completes with a [CustomChannel].
585 * Completes with a [CustomChannel]. 597 ///
586 * 598 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
587 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 599 /// an error.
588 * error. 600 ///
589 * 601 /// If the used [http.Client] completes with an error when making a REST
590 * If the used [http.Client] completes with an error when making a REST call, 602 /// call, this method will complete with the same error.
591 * this method will complete with the same error. 603 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
592 */ 604 core.String customChannelId) {
593 async.Future<CustomChannel> get(core.String accountId, core.String adClientId, core.String customChannelId) {
594 var _url = null; 605 var _url = null;
595 var _queryParams = new core.Map(); 606 var _queryParams = new core.Map();
596 var _uploadMedia = null; 607 var _uploadMedia = null;
597 var _uploadOptions = null; 608 var _uploadOptions = null;
598 var _downloadOptions = commons.DownloadOptions.Metadata; 609 var _downloadOptions = commons.DownloadOptions.Metadata;
599 var _body = null; 610 var _body = null;
600 611
601 if (accountId == null) { 612 if (accountId == null) {
602 throw new core.ArgumentError("Parameter accountId is required."); 613 throw new core.ArgumentError("Parameter accountId is required.");
603 } 614 }
604 if (adClientId == null) { 615 if (adClientId == null) {
605 throw new core.ArgumentError("Parameter adClientId is required."); 616 throw new core.ArgumentError("Parameter adClientId is required.");
606 } 617 }
607 if (customChannelId == null) { 618 if (customChannelId == null) {
608 throw new core.ArgumentError("Parameter customChannelId is required."); 619 throw new core.ArgumentError("Parameter customChannelId is required.");
609 } 620 }
610 621
611 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo ns.Escaper.ecapeVariable('$customChannelId'); 622 _url = 'accounts/' +
623 commons.Escaper.ecapeVariable('$accountId') +
624 '/adclients/' +
625 commons.Escaper.ecapeVariable('$adClientId') +
626 '/customchannels/' +
627 commons.Escaper.ecapeVariable('$customChannelId');
612 628
613 var _response = _requester.request(_url, 629 var _response = _requester.request(_url, "GET",
614 "GET", 630 body: _body,
615 body: _body, 631 queryParams: _queryParams,
616 queryParams: _queryParams, 632 uploadOptions: _uploadOptions,
617 uploadOptions: _uploadOptions, 633 uploadMedia: _uploadMedia,
618 uploadMedia: _uploadMedia, 634 downloadOptions: _downloadOptions);
619 downloadOptions: _downloadOptions);
620 return _response.then((data) => new CustomChannel.fromJson(data)); 635 return _response.then((data) => new CustomChannel.fromJson(data));
621 } 636 }
622 637
623 /** 638 /// List all custom channels in the specified ad client for the specified
624 * List all custom channels in the specified ad client for the specified 639 /// account.
625 * account. 640 ///
626 * 641 /// Request parameters:
627 * Request parameters: 642 ///
628 * 643 /// [accountId] - Account to which the ad client belongs.
629 * [accountId] - Account to which the ad client belongs. 644 ///
630 * 645 /// [adClientId] - Ad client for which to list custom channels.
631 * [adClientId] - Ad client for which to list custom channels. 646 ///
632 * 647 /// [maxResults] - The maximum number of custom channels to include in the
633 * [maxResults] - The maximum number of custom channels to include in the 648 /// response, used for paging.
634 * response, used for paging. 649 /// Value must be between "0" and "10000".
635 * Value must be between "0" and "10000". 650 ///
636 * 651 /// [pageToken] - A continuation token, used to page through custom channels.
637 * [pageToken] - A continuation token, used to page through custom channels. 652 /// To retrieve the next page, set this parameter to the value of
638 * To retrieve the next page, set this parameter to the value of 653 /// "nextPageToken" from the previous response.
639 * "nextPageToken" from the previous response. 654 ///
640 * 655 /// Completes with a [CustomChannels].
641 * Completes with a [CustomChannels]. 656 ///
642 * 657 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
643 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 658 /// an error.
644 * error. 659 ///
645 * 660 /// If the used [http.Client] completes with an error when making a REST
646 * If the used [http.Client] completes with an error when making a REST call, 661 /// call, this method will complete with the same error.
647 * this method will complete with the same error. 662 async.Future<CustomChannels> list(
648 */ 663 core.String accountId, core.String adClientId,
649 async.Future<CustomChannels> list(core.String accountId, core.String adClientI d, {core.int maxResults, core.String pageToken}) { 664 {core.int maxResults, core.String pageToken}) {
650 var _url = null; 665 var _url = null;
651 var _queryParams = new core.Map(); 666 var _queryParams = new core.Map();
652 var _uploadMedia = null; 667 var _uploadMedia = null;
653 var _uploadOptions = null; 668 var _uploadOptions = null;
654 var _downloadOptions = commons.DownloadOptions.Metadata; 669 var _downloadOptions = commons.DownloadOptions.Metadata;
655 var _body = null; 670 var _body = null;
656 671
657 if (accountId == null) { 672 if (accountId == null) {
658 throw new core.ArgumentError("Parameter accountId is required."); 673 throw new core.ArgumentError("Parameter accountId is required.");
659 } 674 }
660 if (adClientId == null) { 675 if (adClientId == null) {
661 throw new core.ArgumentError("Parameter adClientId is required."); 676 throw new core.ArgumentError("Parameter adClientId is required.");
662 } 677 }
663 if (maxResults != null) { 678 if (maxResults != null) {
664 _queryParams["maxResults"] = ["${maxResults}"]; 679 _queryParams["maxResults"] = ["${maxResults}"];
665 } 680 }
666 if (pageToken != null) { 681 if (pageToken != null) {
667 _queryParams["pageToken"] = [pageToken]; 682 _queryParams["pageToken"] = [pageToken];
668 } 683 }
669 684
670 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels'; 685 _url = 'accounts/' +
686 commons.Escaper.ecapeVariable('$accountId') +
687 '/adclients/' +
688 commons.Escaper.ecapeVariable('$adClientId') +
689 '/customchannels';
671 690
672 var _response = _requester.request(_url, 691 var _response = _requester.request(_url, "GET",
673 "GET", 692 body: _body,
674 body: _body, 693 queryParams: _queryParams,
675 queryParams: _queryParams, 694 uploadOptions: _uploadOptions,
676 uploadOptions: _uploadOptions, 695 uploadMedia: _uploadMedia,
677 uploadMedia: _uploadMedia, 696 downloadOptions: _downloadOptions);
678 downloadOptions: _downloadOptions);
679 return _response.then((data) => new CustomChannels.fromJson(data)); 697 return _response.then((data) => new CustomChannels.fromJson(data));
680 } 698 }
681
682 } 699 }
683 700
684
685 class AccountsCustomchannelsAdunitsResourceApi { 701 class AccountsCustomchannelsAdunitsResourceApi {
686 final commons.ApiRequester _requester; 702 final commons.ApiRequester _requester;
687 703
688 AccountsCustomchannelsAdunitsResourceApi(commons.ApiRequester client) : 704 AccountsCustomchannelsAdunitsResourceApi(commons.ApiRequester client)
689 _requester = client; 705 : _requester = client;
690 706
691 /** 707 /// List all ad units in the specified custom channel.
692 * List all ad units in the specified custom channel. 708 ///
693 * 709 /// Request parameters:
694 * Request parameters: 710 ///
695 * 711 /// [accountId] - Account to which the ad client belongs.
696 * [accountId] - Account to which the ad client belongs. 712 ///
697 * 713 /// [adClientId] - Ad client which contains the custom channel.
698 * [adClientId] - Ad client which contains the custom channel. 714 ///
699 * 715 /// [customChannelId] - Custom channel for which to list ad units.
700 * [customChannelId] - Custom channel for which to list ad units. 716 ///
701 * 717 /// [includeInactive] - Whether to include inactive ad units. Default: true.
702 * [includeInactive] - Whether to include inactive ad units. Default: true. 718 ///
703 * 719 /// [maxResults] - The maximum number of ad units to include in the response,
704 * [maxResults] - The maximum number of ad units to include in the response, 720 /// used for paging.
705 * used for paging. 721 /// Value must be between "0" and "10000".
706 * Value must be between "0" and "10000". 722 ///
707 * 723 /// [pageToken] - A continuation token, used to page through ad units. To
708 * [pageToken] - A continuation token, used to page through ad units. To 724 /// retrieve the next page, set this parameter to the value of
709 * retrieve the next page, set this parameter to the value of "nextPageToken" 725 /// "nextPageToken" from the previous response.
710 * from the previous response. 726 ///
711 * 727 /// Completes with a [AdUnits].
712 * Completes with a [AdUnits]. 728 ///
713 * 729 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
714 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 730 /// an error.
715 * error. 731 ///
716 * 732 /// If the used [http.Client] completes with an error when making a REST
717 * If the used [http.Client] completes with an error when making a REST call, 733 /// call, this method will complete with the same error.
718 * this method will complete with the same error. 734 async.Future<AdUnits> list(core.String accountId, core.String adClientId,
719 */ 735 core.String customChannelId,
720 async.Future<AdUnits> list(core.String accountId, core.String adClientId, core .String customChannelId, {core.bool includeInactive, core.int maxResults, core.S tring pageToken}) { 736 {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
721 var _url = null; 737 var _url = null;
722 var _queryParams = new core.Map(); 738 var _queryParams = new core.Map();
723 var _uploadMedia = null; 739 var _uploadMedia = null;
724 var _uploadOptions = null; 740 var _uploadOptions = null;
725 var _downloadOptions = commons.DownloadOptions.Metadata; 741 var _downloadOptions = commons.DownloadOptions.Metadata;
726 var _body = null; 742 var _body = null;
727 743
728 if (accountId == null) { 744 if (accountId == null) {
729 throw new core.ArgumentError("Parameter accountId is required."); 745 throw new core.ArgumentError("Parameter accountId is required.");
730 } 746 }
731 if (adClientId == null) { 747 if (adClientId == null) {
732 throw new core.ArgumentError("Parameter adClientId is required."); 748 throw new core.ArgumentError("Parameter adClientId is required.");
733 } 749 }
734 if (customChannelId == null) { 750 if (customChannelId == null) {
735 throw new core.ArgumentError("Parameter customChannelId is required."); 751 throw new core.ArgumentError("Parameter customChannelId is required.");
736 } 752 }
737 if (includeInactive != null) { 753 if (includeInactive != null) {
738 _queryParams["includeInactive"] = ["${includeInactive}"]; 754 _queryParams["includeInactive"] = ["${includeInactive}"];
739 } 755 }
740 if (maxResults != null) { 756 if (maxResults != null) {
741 _queryParams["maxResults"] = ["${maxResults}"]; 757 _queryParams["maxResults"] = ["${maxResults}"];
742 } 758 }
743 if (pageToken != null) { 759 if (pageToken != null) {
744 _queryParams["pageToken"] = [pageToken]; 760 _queryParams["pageToken"] = [pageToken];
745 } 761 }
746 762
747 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo ns.Escaper.ecapeVariable('$customChannelId') + '/adunits'; 763 _url = 'accounts/' +
764 commons.Escaper.ecapeVariable('$accountId') +
765 '/adclients/' +
766 commons.Escaper.ecapeVariable('$adClientId') +
767 '/customchannels/' +
768 commons.Escaper.ecapeVariable('$customChannelId') +
769 '/adunits';
748 770
749 var _response = _requester.request(_url, 771 var _response = _requester.request(_url, "GET",
750 "GET", 772 body: _body,
751 body: _body, 773 queryParams: _queryParams,
752 queryParams: _queryParams, 774 uploadOptions: _uploadOptions,
753 uploadOptions: _uploadOptions, 775 uploadMedia: _uploadMedia,
754 uploadMedia: _uploadMedia, 776 downloadOptions: _downloadOptions);
755 downloadOptions: _downloadOptions);
756 return _response.then((data) => new AdUnits.fromJson(data)); 777 return _response.then((data) => new AdUnits.fromJson(data));
757 } 778 }
758
759 } 779 }
760 780
761
762 class AccountsPaymentsResourceApi { 781 class AccountsPaymentsResourceApi {
763 final commons.ApiRequester _requester; 782 final commons.ApiRequester _requester;
764 783
765 AccountsPaymentsResourceApi(commons.ApiRequester client) : 784 AccountsPaymentsResourceApi(commons.ApiRequester client)
766 _requester = client; 785 : _requester = client;
767 786
768 /** 787 /// List the payments for the specified AdSense account.
769 * List the payments for the specified AdSense account. 788 ///
770 * 789 /// Request parameters:
771 * Request parameters: 790 ///
772 * 791 /// [accountId] - Account for which to retrieve the payments.
773 * [accountId] - Account for which to retrieve the payments. 792 ///
774 * 793 /// Completes with a [Payments].
775 * Completes with a [Payments]. 794 ///
776 * 795 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
777 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 796 /// an error.
778 * error. 797 ///
779 * 798 /// If the used [http.Client] completes with an error when making a REST
780 * If the used [http.Client] completes with an error when making a REST call, 799 /// call, this method will complete with the same error.
781 * this method will complete with the same error.
782 */
783 async.Future<Payments> list(core.String accountId) { 800 async.Future<Payments> list(core.String accountId) {
784 var _url = null; 801 var _url = null;
785 var _queryParams = new core.Map(); 802 var _queryParams = new core.Map();
786 var _uploadMedia = null; 803 var _uploadMedia = null;
787 var _uploadOptions = null; 804 var _uploadOptions = null;
788 var _downloadOptions = commons.DownloadOptions.Metadata; 805 var _downloadOptions = commons.DownloadOptions.Metadata;
789 var _body = null; 806 var _body = null;
790 807
791 if (accountId == null) { 808 if (accountId == null) {
792 throw new core.ArgumentError("Parameter accountId is required."); 809 throw new core.ArgumentError("Parameter accountId is required.");
793 } 810 }
794 811
795 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/payment s'; 812 _url =
813 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/payments';
796 814
797 var _response = _requester.request(_url, 815 var _response = _requester.request(_url, "GET",
798 "GET", 816 body: _body,
799 body: _body, 817 queryParams: _queryParams,
800 queryParams: _queryParams, 818 uploadOptions: _uploadOptions,
801 uploadOptions: _uploadOptions, 819 uploadMedia: _uploadMedia,
802 uploadMedia: _uploadMedia, 820 downloadOptions: _downloadOptions);
803 downloadOptions: _downloadOptions);
804 return _response.then((data) => new Payments.fromJson(data)); 821 return _response.then((data) => new Payments.fromJson(data));
805 } 822 }
806
807 } 823 }
808 824
809
810 class AccountsReportsResourceApi { 825 class AccountsReportsResourceApi {
811 final commons.ApiRequester _requester; 826 final commons.ApiRequester _requester;
812 827
813 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA pi(_requester); 828 AccountsReportsSavedResourceApi get saved =>
829 new AccountsReportsSavedResourceApi(_requester);
814 830
815 AccountsReportsResourceApi(commons.ApiRequester client) : 831 AccountsReportsResourceApi(commons.ApiRequester client) : _requester = client;
816 _requester = client;
817 832
818 /** 833 /// Generate an AdSense report based on the report request sent in the query
819 * Generate an AdSense report based on the report request sent in the query 834 /// parameters. Returns the result as JSON; to retrieve output in CSV format
820 * parameters. Returns the result as JSON; to retrieve output in CSV format 835 /// specify "alt=csv" as a query parameter.
821 * specify "alt=csv" as a query parameter. 836 ///
822 * 837 /// Request parameters:
823 * Request parameters: 838 ///
824 * 839 /// [accountId] - Account upon which to report.
825 * [accountId] - Account upon which to report. 840 ///
826 * 841 /// [startDate] - Start of the date range to report on in "YYYY-MM-DD"
827 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, 842 /// format, inclusive.
828 * inclusive. 843 /// Value must have pattern
829 * Value must have pattern 844 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3} ?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
830 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)". 845 ///
831 * 846 /// [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
832 * [endDate] - End of the date range to report on in "YYYY-MM-DD" format, 847 /// inclusive.
833 * inclusive. 848 /// Value must have pattern
834 * Value must have pattern 849 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3} ?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
835 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)". 850 ///
836 * 851 /// [currency] - Optional currency to use when reporting on monetary metrics.
837 * [currency] - Optional currency to use when reporting on monetary metrics. 852 /// Defaults to the account's currency if not set.
838 * Defaults to the account's currency if not set. 853 /// Value must have pattern "[a-zA-Z]+".
839 * Value must have pattern "[a-zA-Z]+". 854 ///
840 * 855 /// [dimension] - Dimensions to base the report on.
841 * [dimension] - Dimensions to base the report on. 856 /// Value must have pattern "[a-zA-Z_]+".
842 * Value must have pattern "[a-zA-Z_]+". 857 ///
843 * 858 /// [filter] - Filters to be run on the report.
844 * [filter] - Filters to be run on the report. 859 /// Value must have pattern "[a-zA-Z_]+(==|=@).+".
845 * Value must have pattern "[a-zA-Z_]+(==|=@).+". 860 ///
846 * 861 /// [locale] - Optional locale to use for translating report output to a
847 * [locale] - Optional locale to use for translating report output to a local 862 /// local language. Defaults to "en_US" if not specified.
848 * language. Defaults to "en_US" if not specified. 863 /// Value must have pattern "[a-zA-Z_]+".
849 * Value must have pattern "[a-zA-Z_]+". 864 ///
850 * 865 /// [maxResults] - The maximum number of rows of report data to return.
851 * [maxResults] - The maximum number of rows of report data to return. 866 /// Value must be between "0" and "50000".
852 * Value must be between "0" and "50000". 867 ///
853 * 868 /// [metric] - Numeric columns to include in the report.
854 * [metric] - Numeric columns to include in the report. 869 /// Value must have pattern "[a-zA-Z_]+".
855 * Value must have pattern "[a-zA-Z_]+". 870 ///
856 * 871 /// [sort] - The name of a dimension or metric to sort the resulting report
857 * [sort] - The name of a dimension or metric to sort the resulting report on, 872 /// on, optionally prefixed with "+" to sort ascending or "-" to sort
858 * optionally prefixed with "+" to sort ascending or "-" to sort descending. 873 /// descending. If no prefix is specified, the column is sorted ascending.
859 * If no prefix is specified, the column is sorted ascending. 874 /// Value must have pattern "(\+|-)?[a-zA-Z_]+".
860 * Value must have pattern "(\+|-)?[a-zA-Z_]+". 875 ///
861 * 876 /// [startIndex] - Index of the first row of report data to return.
862 * [startIndex] - Index of the first row of report data to return. 877 /// Value must be between "0" and "5000".
863 * Value must be between "0" and "5000". 878 ///
864 * 879 /// [useTimezoneReporting] - Whether the report should be generated in the
865 * [useTimezoneReporting] - Whether the report should be generated in the 880 /// AdSense account's local timezone. If false default PST/PDT timezone will
866 * AdSense account's local timezone. If false default PST/PDT timezone will be 881 /// be used.
867 * used. 882 ///
868 * 883 /// [downloadOptions] - Options for downloading. A download can be either a
869 * [downloadOptions] - Options for downloading. A download can be either a 884 /// Metadata (default) or Media download. Partial Media downloads are
870 * Metadata (default) or Media download. Partial Media downloads are possible 885 /// possible as well.
871 * as well. 886 ///
872 * 887 /// Completes with a
873 * Completes with a 888 ///
874 * 889 /// - [AdsenseReportsGenerateResponse] for Metadata downloads (see
875 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see 890 /// [downloadOptions]).
876 * [downloadOptions]). 891 ///
877 * 892 /// - [commons.Media] for Media downloads (see [downloadOptions]).
878 * - [commons.Media] for Media downloads (see [downloadOptions]). 893 ///
879 * 894 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
880 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 895 /// an error.
881 * error. 896 ///
882 * 897 /// If the used [http.Client] completes with an error when making a REST
883 * If the used [http.Client] completes with an error when making a REST call, 898 /// call, this method will complete with the same error.
884 * this method will complete with the same error. 899 async.Future generate(
885 */ 900 core.String accountId, core.String startDate, core.String endDate,
886 async.Future generate(core.String accountId, core.String startDate, core.Strin g endDate, {core.String currency, core.List<core.String> dimension, core.List<co re.String> filter, core.String locale, core.int maxResults, core.List<core.Strin g> metric, core.List<core.String> sort, core.int startIndex, core.bool useTimezo neReporting, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Me tadata}) { 901 {core.String currency,
902 core.List<core.String> dimension,
903 core.List<core.String> filter,
904 core.String locale,
905 core.int maxResults,
906 core.List<core.String> metric,
907 core.List<core.String> sort,
908 core.int startIndex,
909 core.bool useTimezoneReporting,
910 commons.DownloadOptions downloadOptions:
911 commons.DownloadOptions.Metadata}) {
887 var _url = null; 912 var _url = null;
888 var _queryParams = new core.Map(); 913 var _queryParams = new core.Map();
889 var _uploadMedia = null; 914 var _uploadMedia = null;
890 var _uploadOptions = null; 915 var _uploadOptions = null;
891 var _downloadOptions = commons.DownloadOptions.Metadata; 916 var _downloadOptions = commons.DownloadOptions.Metadata;
892 var _body = null; 917 var _body = null;
893 918
894 if (accountId == null) { 919 if (accountId == null) {
895 throw new core.ArgumentError("Parameter accountId is required."); 920 throw new core.ArgumentError("Parameter accountId is required.");
896 } 921 }
(...skipping 28 matching lines...) Expand all
925 } 950 }
926 if (startIndex != null) { 951 if (startIndex != null) {
927 _queryParams["startIndex"] = ["${startIndex}"]; 952 _queryParams["startIndex"] = ["${startIndex}"];
928 } 953 }
929 if (useTimezoneReporting != null) { 954 if (useTimezoneReporting != null) {
930 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"]; 955 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"];
931 } 956 }
932 957
933 _downloadOptions = downloadOptions; 958 _downloadOptions = downloadOptions;
934 959
935 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports '; 960 _url =
961 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports';
936 962
937 var _response = _requester.request(_url, 963 var _response = _requester.request(_url, "GET",
938 "GET", 964 body: _body,
939 body: _body, 965 queryParams: _queryParams,
940 queryParams: _queryParams, 966 uploadOptions: _uploadOptions,
941 uploadOptions: _uploadOptions, 967 uploadMedia: _uploadMedia,
942 uploadMedia: _uploadMedia, 968 downloadOptions: _downloadOptions);
943 downloadOptions: _downloadOptions);
944 if (_downloadOptions == null || 969 if (_downloadOptions == null ||
945 _downloadOptions == commons.DownloadOptions.Metadata) { 970 _downloadOptions == commons.DownloadOptions.Metadata) {
946 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso n(data)); 971 return _response
972 .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
947 } else { 973 } else {
948 return _response; 974 return _response;
949 } 975 }
950 } 976 }
951
952 } 977 }
953 978
954
955 class AccountsReportsSavedResourceApi { 979 class AccountsReportsSavedResourceApi {
956 final commons.ApiRequester _requester; 980 final commons.ApiRequester _requester;
957 981
958 AccountsReportsSavedResourceApi(commons.ApiRequester client) : 982 AccountsReportsSavedResourceApi(commons.ApiRequester client)
959 _requester = client; 983 : _requester = client;
960 984
961 /** 985 /// Generate an AdSense report based on the saved report ID sent in the query
962 * Generate an AdSense report based on the saved report ID sent in the query 986 /// parameters.
963 * parameters. 987 ///
964 * 988 /// Request parameters:
965 * Request parameters: 989 ///
966 * 990 /// [accountId] - Account to which the saved reports belong.
967 * [accountId] - Account to which the saved reports belong. 991 ///
968 * 992 /// [savedReportId] - The saved report to retrieve.
969 * [savedReportId] - The saved report to retrieve. 993 ///
970 * 994 /// [locale] - Optional locale to use for translating report output to a
971 * [locale] - Optional locale to use for translating report output to a local 995 /// local language. Defaults to "en_US" if not specified.
972 * language. Defaults to "en_US" if not specified. 996 /// Value must have pattern "[a-zA-Z_]+".
973 * Value must have pattern "[a-zA-Z_]+". 997 ///
974 * 998 /// [maxResults] - The maximum number of rows of report data to return.
975 * [maxResults] - The maximum number of rows of report data to return. 999 /// Value must be between "0" and "50000".
976 * Value must be between "0" and "50000". 1000 ///
977 * 1001 /// [startIndex] - Index of the first row of report data to return.
978 * [startIndex] - Index of the first row of report data to return. 1002 /// Value must be between "0" and "5000".
979 * Value must be between "0" and "5000". 1003 ///
980 * 1004 /// Completes with a [AdsenseReportsGenerateResponse].
981 * Completes with a [AdsenseReportsGenerateResponse]. 1005 ///
982 * 1006 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1007 /// an error.
984 * error. 1008 ///
985 * 1009 /// If the used [http.Client] completes with an error when making a REST
986 * If the used [http.Client] completes with an error when making a REST call, 1010 /// call, this method will complete with the same error.
987 * this method will complete with the same error. 1011 async.Future<AdsenseReportsGenerateResponse> generate(
988 */ 1012 core.String accountId, core.String savedReportId,
989 async.Future<AdsenseReportsGenerateResponse> generate(core.String accountId, c ore.String savedReportId, {core.String locale, core.int maxResults, core.int sta rtIndex}) { 1013 {core.String locale, core.int maxResults, core.int startIndex}) {
990 var _url = null; 1014 var _url = null;
991 var _queryParams = new core.Map(); 1015 var _queryParams = new core.Map();
992 var _uploadMedia = null; 1016 var _uploadMedia = null;
993 var _uploadOptions = null; 1017 var _uploadOptions = null;
994 var _downloadOptions = commons.DownloadOptions.Metadata; 1018 var _downloadOptions = commons.DownloadOptions.Metadata;
995 var _body = null; 1019 var _body = null;
996 1020
997 if (accountId == null) { 1021 if (accountId == null) {
998 throw new core.ArgumentError("Parameter accountId is required."); 1022 throw new core.ArgumentError("Parameter accountId is required.");
999 } 1023 }
1000 if (savedReportId == null) { 1024 if (savedReportId == null) {
1001 throw new core.ArgumentError("Parameter savedReportId is required."); 1025 throw new core.ArgumentError("Parameter savedReportId is required.");
1002 } 1026 }
1003 if (locale != null) { 1027 if (locale != null) {
1004 _queryParams["locale"] = [locale]; 1028 _queryParams["locale"] = [locale];
1005 } 1029 }
1006 if (maxResults != null) { 1030 if (maxResults != null) {
1007 _queryParams["maxResults"] = ["${maxResults}"]; 1031 _queryParams["maxResults"] = ["${maxResults}"];
1008 } 1032 }
1009 if (startIndex != null) { 1033 if (startIndex != null) {
1010 _queryParams["startIndex"] = ["${startIndex}"]; 1034 _queryParams["startIndex"] = ["${startIndex}"];
1011 } 1035 }
1012 1036
1013 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports /' + commons.Escaper.ecapeVariable('$savedReportId'); 1037 _url = 'accounts/' +
1038 commons.Escaper.ecapeVariable('$accountId') +
1039 '/reports/' +
1040 commons.Escaper.ecapeVariable('$savedReportId');
1014 1041
1015 var _response = _requester.request(_url, 1042 var _response = _requester.request(_url, "GET",
1016 "GET", 1043 body: _body,
1017 body: _body, 1044 queryParams: _queryParams,
1018 queryParams: _queryParams, 1045 uploadOptions: _uploadOptions,
1019 uploadOptions: _uploadOptions, 1046 uploadMedia: _uploadMedia,
1020 uploadMedia: _uploadMedia, 1047 downloadOptions: _downloadOptions);
1021 downloadOptions: _downloadOptions); 1048 return _response
1022 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson( data)); 1049 .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
1023 } 1050 }
1024 1051
1025 /** 1052 /// List all saved reports in the specified AdSense account.
1026 * List all saved reports in the specified AdSense account. 1053 ///
1027 * 1054 /// Request parameters:
1028 * Request parameters: 1055 ///
1029 * 1056 /// [accountId] - Account to which the saved reports belong.
1030 * [accountId] - Account to which the saved reports belong. 1057 ///
1031 * 1058 /// [maxResults] - The maximum number of saved reports to include in the
1032 * [maxResults] - The maximum number of saved reports to include in the 1059 /// response, used for paging.
1033 * response, used for paging. 1060 /// Value must be between "0" and "100".
1034 * Value must be between "0" and "100". 1061 ///
1035 * 1062 /// [pageToken] - A continuation token, used to page through saved reports.
1036 * [pageToken] - A continuation token, used to page through saved reports. To 1063 /// To retrieve the next page, set this parameter to the value of
1037 * retrieve the next page, set this parameter to the value of "nextPageToken" 1064 /// "nextPageToken" from the previous response.
1038 * from the previous response. 1065 ///
1039 * 1066 /// Completes with a [SavedReports].
1040 * Completes with a [SavedReports]. 1067 ///
1041 * 1068 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1042 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1069 /// an error.
1043 * error. 1070 ///
1044 * 1071 /// If the used [http.Client] completes with an error when making a REST
1045 * If the used [http.Client] completes with an error when making a REST call, 1072 /// call, this method will complete with the same error.
1046 * this method will complete with the same error. 1073 async.Future<SavedReports> list(core.String accountId,
1047 */ 1074 {core.int maxResults, core.String pageToken}) {
1048 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c ore.String pageToken}) {
1049 var _url = null; 1075 var _url = null;
1050 var _queryParams = new core.Map(); 1076 var _queryParams = new core.Map();
1051 var _uploadMedia = null; 1077 var _uploadMedia = null;
1052 var _uploadOptions = null; 1078 var _uploadOptions = null;
1053 var _downloadOptions = commons.DownloadOptions.Metadata; 1079 var _downloadOptions = commons.DownloadOptions.Metadata;
1054 var _body = null; 1080 var _body = null;
1055 1081
1056 if (accountId == null) { 1082 if (accountId == null) {
1057 throw new core.ArgumentError("Parameter accountId is required."); 1083 throw new core.ArgumentError("Parameter accountId is required.");
1058 } 1084 }
1059 if (maxResults != null) { 1085 if (maxResults != null) {
1060 _queryParams["maxResults"] = ["${maxResults}"]; 1086 _queryParams["maxResults"] = ["${maxResults}"];
1061 } 1087 }
1062 if (pageToken != null) { 1088 if (pageToken != null) {
1063 _queryParams["pageToken"] = [pageToken]; 1089 _queryParams["pageToken"] = [pageToken];
1064 } 1090 }
1065 1091
1066 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports /saved'; 1092 _url = 'accounts/' +
1093 commons.Escaper.ecapeVariable('$accountId') +
1094 '/reports/saved';
1067 1095
1068 var _response = _requester.request(_url, 1096 var _response = _requester.request(_url, "GET",
1069 "GET", 1097 body: _body,
1070 body: _body, 1098 queryParams: _queryParams,
1071 queryParams: _queryParams, 1099 uploadOptions: _uploadOptions,
1072 uploadOptions: _uploadOptions, 1100 uploadMedia: _uploadMedia,
1073 uploadMedia: _uploadMedia, 1101 downloadOptions: _downloadOptions);
1074 downloadOptions: _downloadOptions);
1075 return _response.then((data) => new SavedReports.fromJson(data)); 1102 return _response.then((data) => new SavedReports.fromJson(data));
1076 } 1103 }
1077
1078 } 1104 }
1079 1105
1080
1081 class AccountsSavedadstylesResourceApi { 1106 class AccountsSavedadstylesResourceApi {
1082 final commons.ApiRequester _requester; 1107 final commons.ApiRequester _requester;
1083 1108
1084 AccountsSavedadstylesResourceApi(commons.ApiRequester client) : 1109 AccountsSavedadstylesResourceApi(commons.ApiRequester client)
1085 _requester = client; 1110 : _requester = client;
1086 1111
1087 /** 1112 /// List a specific saved ad style for the specified account.
1088 * List a specific saved ad style for the specified account. 1113 ///
1089 * 1114 /// Request parameters:
1090 * Request parameters: 1115 ///
1091 * 1116 /// [accountId] - Account for which to get the saved ad style.
1092 * [accountId] - Account for which to get the saved ad style. 1117 ///
1093 * 1118 /// [savedAdStyleId] - Saved ad style to retrieve.
1094 * [savedAdStyleId] - Saved ad style to retrieve. 1119 ///
1095 * 1120 /// Completes with a [SavedAdStyle].
1096 * Completes with a [SavedAdStyle]. 1121 ///
1097 * 1122 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1098 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1123 /// an error.
1099 * error. 1124 ///
1100 * 1125 /// If the used [http.Client] completes with an error when making a REST
1101 * If the used [http.Client] completes with an error when making a REST call, 1126 /// call, this method will complete with the same error.
1102 * this method will complete with the same error. 1127 async.Future<SavedAdStyle> get(
1103 */ 1128 core.String accountId, core.String savedAdStyleId) {
1104 async.Future<SavedAdStyle> get(core.String accountId, core.String savedAdStyle Id) {
1105 var _url = null; 1129 var _url = null;
1106 var _queryParams = new core.Map(); 1130 var _queryParams = new core.Map();
1107 var _uploadMedia = null; 1131 var _uploadMedia = null;
1108 var _uploadOptions = null; 1132 var _uploadOptions = null;
1109 var _downloadOptions = commons.DownloadOptions.Metadata; 1133 var _downloadOptions = commons.DownloadOptions.Metadata;
1110 var _body = null; 1134 var _body = null;
1111 1135
1112 if (accountId == null) { 1136 if (accountId == null) {
1113 throw new core.ArgumentError("Parameter accountId is required."); 1137 throw new core.ArgumentError("Parameter accountId is required.");
1114 } 1138 }
1115 if (savedAdStyleId == null) { 1139 if (savedAdStyleId == null) {
1116 throw new core.ArgumentError("Parameter savedAdStyleId is required."); 1140 throw new core.ArgumentError("Parameter savedAdStyleId is required.");
1117 } 1141 }
1118 1142
1119 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedad styles/' + commons.Escaper.ecapeVariable('$savedAdStyleId'); 1143 _url = 'accounts/' +
1144 commons.Escaper.ecapeVariable('$accountId') +
1145 '/savedadstyles/' +
1146 commons.Escaper.ecapeVariable('$savedAdStyleId');
1120 1147
1121 var _response = _requester.request(_url, 1148 var _response = _requester.request(_url, "GET",
1122 "GET", 1149 body: _body,
1123 body: _body, 1150 queryParams: _queryParams,
1124 queryParams: _queryParams, 1151 uploadOptions: _uploadOptions,
1125 uploadOptions: _uploadOptions, 1152 uploadMedia: _uploadMedia,
1126 uploadMedia: _uploadMedia, 1153 downloadOptions: _downloadOptions);
1127 downloadOptions: _downloadOptions);
1128 return _response.then((data) => new SavedAdStyle.fromJson(data)); 1154 return _response.then((data) => new SavedAdStyle.fromJson(data));
1129 } 1155 }
1130 1156
1131 /** 1157 /// List all saved ad styles in the specified account.
1132 * List all saved ad styles in the specified account. 1158 ///
1133 * 1159 /// Request parameters:
1134 * Request parameters: 1160 ///
1135 * 1161 /// [accountId] - Account for which to list saved ad styles.
1136 * [accountId] - Account for which to list saved ad styles. 1162 ///
1137 * 1163 /// [maxResults] - The maximum number of saved ad styles to include in the
1138 * [maxResults] - The maximum number of saved ad styles to include in the 1164 /// response, used for paging.
1139 * response, used for paging. 1165 /// Value must be between "0" and "10000".
1140 * Value must be between "0" and "10000". 1166 ///
1141 * 1167 /// [pageToken] - A continuation token, used to page through saved ad styles.
1142 * [pageToken] - A continuation token, used to page through saved ad styles. 1168 /// To retrieve the next page, set this parameter to the value of
1143 * To retrieve the next page, set this parameter to the value of 1169 /// "nextPageToken" from the previous response.
1144 * "nextPageToken" from the previous response. 1170 ///
1145 * 1171 /// Completes with a [SavedAdStyles].
1146 * Completes with a [SavedAdStyles]. 1172 ///
1147 * 1173 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1174 /// an error.
1149 * error. 1175 ///
1150 * 1176 /// If the used [http.Client] completes with an error when making a REST
1151 * If the used [http.Client] completes with an error when making a REST call, 1177 /// call, this method will complete with the same error.
1152 * this method will complete with the same error. 1178 async.Future<SavedAdStyles> list(core.String accountId,
1153 */ 1179 {core.int maxResults, core.String pageToken}) {
1154 async.Future<SavedAdStyles> list(core.String accountId, {core.int maxResults, core.String pageToken}) {
1155 var _url = null; 1180 var _url = null;
1156 var _queryParams = new core.Map(); 1181 var _queryParams = new core.Map();
1157 var _uploadMedia = null; 1182 var _uploadMedia = null;
1158 var _uploadOptions = null; 1183 var _uploadOptions = null;
1159 var _downloadOptions = commons.DownloadOptions.Metadata; 1184 var _downloadOptions = commons.DownloadOptions.Metadata;
1160 var _body = null; 1185 var _body = null;
1161 1186
1162 if (accountId == null) { 1187 if (accountId == null) {
1163 throw new core.ArgumentError("Parameter accountId is required."); 1188 throw new core.ArgumentError("Parameter accountId is required.");
1164 } 1189 }
1165 if (maxResults != null) { 1190 if (maxResults != null) {
1166 _queryParams["maxResults"] = ["${maxResults}"]; 1191 _queryParams["maxResults"] = ["${maxResults}"];
1167 } 1192 }
1168 if (pageToken != null) { 1193 if (pageToken != null) {
1169 _queryParams["pageToken"] = [pageToken]; 1194 _queryParams["pageToken"] = [pageToken];
1170 } 1195 }
1171 1196
1172 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedad styles'; 1197 _url = 'accounts/' +
1198 commons.Escaper.ecapeVariable('$accountId') +
1199 '/savedadstyles';
1173 1200
1174 var _response = _requester.request(_url, 1201 var _response = _requester.request(_url, "GET",
1175 "GET", 1202 body: _body,
1176 body: _body, 1203 queryParams: _queryParams,
1177 queryParams: _queryParams, 1204 uploadOptions: _uploadOptions,
1178 uploadOptions: _uploadOptions, 1205 uploadMedia: _uploadMedia,
1179 uploadMedia: _uploadMedia, 1206 downloadOptions: _downloadOptions);
1180 downloadOptions: _downloadOptions);
1181 return _response.then((data) => new SavedAdStyles.fromJson(data)); 1207 return _response.then((data) => new SavedAdStyles.fromJson(data));
1182 } 1208 }
1183
1184 } 1209 }
1185 1210
1186
1187 class AccountsUrlchannelsResourceApi { 1211 class AccountsUrlchannelsResourceApi {
1188 final commons.ApiRequester _requester; 1212 final commons.ApiRequester _requester;
1189 1213
1190 AccountsUrlchannelsResourceApi(commons.ApiRequester client) : 1214 AccountsUrlchannelsResourceApi(commons.ApiRequester client)
1191 _requester = client; 1215 : _requester = client;
1192 1216
1193 /** 1217 /// List all URL channels in the specified ad client for the specified
1194 * List all URL channels in the specified ad client for the specified account. 1218 /// account.
1195 * 1219 ///
1196 * Request parameters: 1220 /// Request parameters:
1197 * 1221 ///
1198 * [accountId] - Account to which the ad client belongs. 1222 /// [accountId] - Account to which the ad client belongs.
1199 * 1223 ///
1200 * [adClientId] - Ad client for which to list URL channels. 1224 /// [adClientId] - Ad client for which to list URL channels.
1201 * 1225 ///
1202 * [maxResults] - The maximum number of URL channels to include in the 1226 /// [maxResults] - The maximum number of URL channels to include in the
1203 * response, used for paging. 1227 /// response, used for paging.
1204 * Value must be between "0" and "10000". 1228 /// Value must be between "0" and "10000".
1205 * 1229 ///
1206 * [pageToken] - A continuation token, used to page through URL channels. To 1230 /// [pageToken] - A continuation token, used to page through URL channels. To
1207 * retrieve the next page, set this parameter to the value of "nextPageToken" 1231 /// retrieve the next page, set this parameter to the value of
1208 * from the previous response. 1232 /// "nextPageToken" from the previous response.
1209 * 1233 ///
1210 * Completes with a [UrlChannels]. 1234 /// Completes with a [UrlChannels].
1211 * 1235 ///
1212 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1236 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1213 * error. 1237 /// an error.
1214 * 1238 ///
1215 * If the used [http.Client] completes with an error when making a REST call, 1239 /// If the used [http.Client] completes with an error when making a REST
1216 * this method will complete with the same error. 1240 /// call, this method will complete with the same error.
1217 */ 1241 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
1218 async.Future<UrlChannels> list(core.String accountId, core.String adClientId, {core.int maxResults, core.String pageToken}) { 1242 {core.int maxResults, core.String pageToken}) {
1219 var _url = null; 1243 var _url = null;
1220 var _queryParams = new core.Map(); 1244 var _queryParams = new core.Map();
1221 var _uploadMedia = null; 1245 var _uploadMedia = null;
1222 var _uploadOptions = null; 1246 var _uploadOptions = null;
1223 var _downloadOptions = commons.DownloadOptions.Metadata; 1247 var _downloadOptions = commons.DownloadOptions.Metadata;
1224 var _body = null; 1248 var _body = null;
1225 1249
1226 if (accountId == null) { 1250 if (accountId == null) {
1227 throw new core.ArgumentError("Parameter accountId is required."); 1251 throw new core.ArgumentError("Parameter accountId is required.");
1228 } 1252 }
1229 if (adClientId == null) { 1253 if (adClientId == null) {
1230 throw new core.ArgumentError("Parameter adClientId is required."); 1254 throw new core.ArgumentError("Parameter adClientId is required.");
1231 } 1255 }
1232 if (maxResults != null) { 1256 if (maxResults != null) {
1233 _queryParams["maxResults"] = ["${maxResults}"]; 1257 _queryParams["maxResults"] = ["${maxResults}"];
1234 } 1258 }
1235 if (pageToken != null) { 1259 if (pageToken != null) {
1236 _queryParams["pageToken"] = [pageToken]; 1260 _queryParams["pageToken"] = [pageToken];
1237 } 1261 }
1238 1262
1239 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; 1263 _url = 'accounts/' +
1264 commons.Escaper.ecapeVariable('$accountId') +
1265 '/adclients/' +
1266 commons.Escaper.ecapeVariable('$adClientId') +
1267 '/urlchannels';
1240 1268
1241 var _response = _requester.request(_url, 1269 var _response = _requester.request(_url, "GET",
1242 "GET", 1270 body: _body,
1243 body: _body, 1271 queryParams: _queryParams,
1244 queryParams: _queryParams, 1272 uploadOptions: _uploadOptions,
1245 uploadOptions: _uploadOptions, 1273 uploadMedia: _uploadMedia,
1246 uploadMedia: _uploadMedia, 1274 downloadOptions: _downloadOptions);
1247 downloadOptions: _downloadOptions);
1248 return _response.then((data) => new UrlChannels.fromJson(data)); 1275 return _response.then((data) => new UrlChannels.fromJson(data));
1249 } 1276 }
1250
1251 } 1277 }
1252 1278
1253
1254 class AdclientsResourceApi { 1279 class AdclientsResourceApi {
1255 final commons.ApiRequester _requester; 1280 final commons.ApiRequester _requester;
1256 1281
1257 AdclientsResourceApi(commons.ApiRequester client) : 1282 AdclientsResourceApi(commons.ApiRequester client) : _requester = client;
1258 _requester = client;
1259 1283
1260 /** 1284 /// List all ad clients in this AdSense account.
1261 * List all ad clients in this AdSense account. 1285 ///
1262 * 1286 /// Request parameters:
1263 * Request parameters: 1287 ///
1264 * 1288 /// [maxResults] - The maximum number of ad clients to include in the
1265 * [maxResults] - The maximum number of ad clients to include in the response, 1289 /// response, used for paging.
1266 * used for paging. 1290 /// Value must be between "0" and "10000".
1267 * Value must be between "0" and "10000". 1291 ///
1268 * 1292 /// [pageToken] - A continuation token, used to page through ad clients. To
1269 * [pageToken] - A continuation token, used to page through ad clients. To 1293 /// retrieve the next page, set this parameter to the value of
1270 * retrieve the next page, set this parameter to the value of "nextPageToken" 1294 /// "nextPageToken" from the previous response.
1271 * from the previous response. 1295 ///
1272 * 1296 /// Completes with a [AdClients].
1273 * Completes with a [AdClients]. 1297 ///
1274 * 1298 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1299 /// an error.
1276 * error. 1300 ///
1277 * 1301 /// If the used [http.Client] completes with an error when making a REST
1278 * If the used [http.Client] completes with an error when making a REST call, 1302 /// call, this method will complete with the same error.
1279 * this method will complete with the same error.
1280 */
1281 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) { 1303 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) {
1282 var _url = null; 1304 var _url = null;
1283 var _queryParams = new core.Map(); 1305 var _queryParams = new core.Map();
1284 var _uploadMedia = null; 1306 var _uploadMedia = null;
1285 var _uploadOptions = null; 1307 var _uploadOptions = null;
1286 var _downloadOptions = commons.DownloadOptions.Metadata; 1308 var _downloadOptions = commons.DownloadOptions.Metadata;
1287 var _body = null; 1309 var _body = null;
1288 1310
1289 if (maxResults != null) { 1311 if (maxResults != null) {
1290 _queryParams["maxResults"] = ["${maxResults}"]; 1312 _queryParams["maxResults"] = ["${maxResults}"];
1291 } 1313 }
1292 if (pageToken != null) { 1314 if (pageToken != null) {
1293 _queryParams["pageToken"] = [pageToken]; 1315 _queryParams["pageToken"] = [pageToken];
1294 } 1316 }
1295 1317
1296 _url = 'adclients'; 1318 _url = 'adclients';
1297 1319
1298 var _response = _requester.request(_url, 1320 var _response = _requester.request(_url, "GET",
1299 "GET", 1321 body: _body,
1300 body: _body, 1322 queryParams: _queryParams,
1301 queryParams: _queryParams, 1323 uploadOptions: _uploadOptions,
1302 uploadOptions: _uploadOptions, 1324 uploadMedia: _uploadMedia,
1303 uploadMedia: _uploadMedia, 1325 downloadOptions: _downloadOptions);
1304 downloadOptions: _downloadOptions);
1305 return _response.then((data) => new AdClients.fromJson(data)); 1326 return _response.then((data) => new AdClients.fromJson(data));
1306 } 1327 }
1307
1308 } 1328 }
1309 1329
1310
1311 class AdunitsResourceApi { 1330 class AdunitsResourceApi {
1312 final commons.ApiRequester _requester; 1331 final commons.ApiRequester _requester;
1313 1332
1314 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne lsResourceApi(_requester); 1333 AdunitsCustomchannelsResourceApi get customchannels =>
1334 new AdunitsCustomchannelsResourceApi(_requester);
1315 1335
1316 AdunitsResourceApi(commons.ApiRequester client) : 1336 AdunitsResourceApi(commons.ApiRequester client) : _requester = client;
1317 _requester = client;
1318 1337
1319 /** 1338 /// Gets the specified ad unit in the specified ad client.
1320 * Gets the specified ad unit in the specified ad client. 1339 ///
1321 * 1340 /// Request parameters:
1322 * Request parameters: 1341 ///
1323 * 1342 /// [adClientId] - Ad client for which to get the ad unit.
1324 * [adClientId] - Ad client for which to get the ad unit. 1343 ///
1325 * 1344 /// [adUnitId] - Ad unit to retrieve.
1326 * [adUnitId] - Ad unit to retrieve. 1345 ///
1327 * 1346 /// Completes with a [AdUnit].
1328 * Completes with a [AdUnit]. 1347 ///
1329 * 1348 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1349 /// an error.
1331 * error. 1350 ///
1332 * 1351 /// If the used [http.Client] completes with an error when making a REST
1333 * If the used [http.Client] completes with an error when making a REST call, 1352 /// call, this method will complete with the same error.
1334 * this method will complete with the same error.
1335 */
1336 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) { 1353 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) {
1337 var _url = null; 1354 var _url = null;
1338 var _queryParams = new core.Map(); 1355 var _queryParams = new core.Map();
1339 var _uploadMedia = null; 1356 var _uploadMedia = null;
1340 var _uploadOptions = null; 1357 var _uploadOptions = null;
1341 var _downloadOptions = commons.DownloadOptions.Metadata; 1358 var _downloadOptions = commons.DownloadOptions.Metadata;
1342 var _body = null; 1359 var _body = null;
1343 1360
1344 if (adClientId == null) { 1361 if (adClientId == null) {
1345 throw new core.ArgumentError("Parameter adClientId is required."); 1362 throw new core.ArgumentError("Parameter adClientId is required.");
1346 } 1363 }
1347 if (adUnitId == null) { 1364 if (adUnitId == null) {
1348 throw new core.ArgumentError("Parameter adUnitId is required."); 1365 throw new core.ArgumentError("Parameter adUnitId is required.");
1349 } 1366 }
1350 1367
1351 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts/' + commons.Escaper.ecapeVariable('$adUnitId'); 1368 _url = 'adclients/' +
1369 commons.Escaper.ecapeVariable('$adClientId') +
1370 '/adunits/' +
1371 commons.Escaper.ecapeVariable('$adUnitId');
1352 1372
1353 var _response = _requester.request(_url, 1373 var _response = _requester.request(_url, "GET",
1354 "GET", 1374 body: _body,
1355 body: _body, 1375 queryParams: _queryParams,
1356 queryParams: _queryParams, 1376 uploadOptions: _uploadOptions,
1357 uploadOptions: _uploadOptions, 1377 uploadMedia: _uploadMedia,
1358 uploadMedia: _uploadMedia, 1378 downloadOptions: _downloadOptions);
1359 downloadOptions: _downloadOptions);
1360 return _response.then((data) => new AdUnit.fromJson(data)); 1379 return _response.then((data) => new AdUnit.fromJson(data));
1361 } 1380 }
1362 1381
1363 /** 1382 /// Get ad code for the specified ad unit.
1364 * Get ad code for the specified ad unit. 1383 ///
1365 * 1384 /// Request parameters:
1366 * Request parameters: 1385 ///
1367 * 1386 /// [adClientId] - Ad client with contains the ad unit.
1368 * [adClientId] - Ad client with contains the ad unit. 1387 ///
1369 * 1388 /// [adUnitId] - Ad unit to get the code for.
1370 * [adUnitId] - Ad unit to get the code for. 1389 ///
1371 * 1390 /// Completes with a [AdCode].
1372 * Completes with a [AdCode]. 1391 ///
1373 * 1392 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1374 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1393 /// an error.
1375 * error. 1394 ///
1376 * 1395 /// If the used [http.Client] completes with an error when making a REST
1377 * If the used [http.Client] completes with an error when making a REST call, 1396 /// call, this method will complete with the same error.
1378 * this method will complete with the same error.
1379 */
1380 async.Future<AdCode> getAdCode(core.String adClientId, core.String adUnitId) { 1397 async.Future<AdCode> getAdCode(core.String adClientId, core.String adUnitId) {
1381 var _url = null; 1398 var _url = null;
1382 var _queryParams = new core.Map(); 1399 var _queryParams = new core.Map();
1383 var _uploadMedia = null; 1400 var _uploadMedia = null;
1384 var _uploadOptions = null; 1401 var _uploadOptions = null;
1385 var _downloadOptions = commons.DownloadOptions.Metadata; 1402 var _downloadOptions = commons.DownloadOptions.Metadata;
1386 var _body = null; 1403 var _body = null;
1387 1404
1388 if (adClientId == null) { 1405 if (adClientId == null) {
1389 throw new core.ArgumentError("Parameter adClientId is required."); 1406 throw new core.ArgumentError("Parameter adClientId is required.");
1390 } 1407 }
1391 if (adUnitId == null) { 1408 if (adUnitId == null) {
1392 throw new core.ArgumentError("Parameter adUnitId is required."); 1409 throw new core.ArgumentError("Parameter adUnitId is required.");
1393 } 1410 }
1394 1411
1395 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts/' + commons.Escaper.ecapeVariable('$adUnitId') + '/adcode'; 1412 _url = 'adclients/' +
1413 commons.Escaper.ecapeVariable('$adClientId') +
1414 '/adunits/' +
1415 commons.Escaper.ecapeVariable('$adUnitId') +
1416 '/adcode';
1396 1417
1397 var _response = _requester.request(_url, 1418 var _response = _requester.request(_url, "GET",
1398 "GET", 1419 body: _body,
1399 body: _body, 1420 queryParams: _queryParams,
1400 queryParams: _queryParams, 1421 uploadOptions: _uploadOptions,
1401 uploadOptions: _uploadOptions, 1422 uploadMedia: _uploadMedia,
1402 uploadMedia: _uploadMedia, 1423 downloadOptions: _downloadOptions);
1403 downloadOptions: _downloadOptions);
1404 return _response.then((data) => new AdCode.fromJson(data)); 1424 return _response.then((data) => new AdCode.fromJson(data));
1405 } 1425 }
1406 1426
1407 /** 1427 /// List all ad units in the specified ad client for this AdSense account.
1408 * List all ad units in the specified ad client for this AdSense account. 1428 ///
1409 * 1429 /// Request parameters:
1410 * Request parameters: 1430 ///
1411 * 1431 /// [adClientId] - Ad client for which to list ad units.
1412 * [adClientId] - Ad client for which to list ad units. 1432 ///
1413 * 1433 /// [includeInactive] - Whether to include inactive ad units. Default: true.
1414 * [includeInactive] - Whether to include inactive ad units. Default: true. 1434 ///
1415 * 1435 /// [maxResults] - The maximum number of ad units to include in the response,
1416 * [maxResults] - The maximum number of ad units to include in the response, 1436 /// used for paging.
1417 * used for paging. 1437 /// Value must be between "0" and "10000".
1418 * Value must be between "0" and "10000". 1438 ///
1419 * 1439 /// [pageToken] - A continuation token, used to page through ad units. To
1420 * [pageToken] - A continuation token, used to page through ad units. To 1440 /// retrieve the next page, set this parameter to the value of
1421 * retrieve the next page, set this parameter to the value of "nextPageToken" 1441 /// "nextPageToken" from the previous response.
1422 * from the previous response. 1442 ///
1423 * 1443 /// Completes with a [AdUnits].
1424 * Completes with a [AdUnits]. 1444 ///
1425 * 1445 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1426 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1446 /// an error.
1427 * error. 1447 ///
1428 * 1448 /// If the used [http.Client] completes with an error when making a REST
1429 * If the used [http.Client] completes with an error when making a REST call, 1449 /// call, this method will complete with the same error.
1430 * this method will complete with the same error. 1450 async.Future<AdUnits> list(core.String adClientId,
1431 */ 1451 {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
1432 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
1433 var _url = null; 1452 var _url = null;
1434 var _queryParams = new core.Map(); 1453 var _queryParams = new core.Map();
1435 var _uploadMedia = null; 1454 var _uploadMedia = null;
1436 var _uploadOptions = null; 1455 var _uploadOptions = null;
1437 var _downloadOptions = commons.DownloadOptions.Metadata; 1456 var _downloadOptions = commons.DownloadOptions.Metadata;
1438 var _body = null; 1457 var _body = null;
1439 1458
1440 if (adClientId == null) { 1459 if (adClientId == null) {
1441 throw new core.ArgumentError("Parameter adClientId is required."); 1460 throw new core.ArgumentError("Parameter adClientId is required.");
1442 } 1461 }
1443 if (includeInactive != null) { 1462 if (includeInactive != null) {
1444 _queryParams["includeInactive"] = ["${includeInactive}"]; 1463 _queryParams["includeInactive"] = ["${includeInactive}"];
1445 } 1464 }
1446 if (maxResults != null) { 1465 if (maxResults != null) {
1447 _queryParams["maxResults"] = ["${maxResults}"]; 1466 _queryParams["maxResults"] = ["${maxResults}"];
1448 } 1467 }
1449 if (pageToken != null) { 1468 if (pageToken != null) {
1450 _queryParams["pageToken"] = [pageToken]; 1469 _queryParams["pageToken"] = [pageToken];
1451 } 1470 }
1452 1471
1453 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts'; 1472 _url = 'adclients/' +
1473 commons.Escaper.ecapeVariable('$adClientId') +
1474 '/adunits';
1454 1475
1455 var _response = _requester.request(_url, 1476 var _response = _requester.request(_url, "GET",
1456 "GET", 1477 body: _body,
1457 body: _body, 1478 queryParams: _queryParams,
1458 queryParams: _queryParams, 1479 uploadOptions: _uploadOptions,
1459 uploadOptions: _uploadOptions, 1480 uploadMedia: _uploadMedia,
1460 uploadMedia: _uploadMedia, 1481 downloadOptions: _downloadOptions);
1461 downloadOptions: _downloadOptions);
1462 return _response.then((data) => new AdUnits.fromJson(data)); 1482 return _response.then((data) => new AdUnits.fromJson(data));
1463 } 1483 }
1464
1465 } 1484 }
1466 1485
1467
1468 class AdunitsCustomchannelsResourceApi { 1486 class AdunitsCustomchannelsResourceApi {
1469 final commons.ApiRequester _requester; 1487 final commons.ApiRequester _requester;
1470 1488
1471 AdunitsCustomchannelsResourceApi(commons.ApiRequester client) : 1489 AdunitsCustomchannelsResourceApi(commons.ApiRequester client)
1472 _requester = client; 1490 : _requester = client;
1473 1491
1474 /** 1492 /// List all custom channels which the specified ad unit belongs to.
1475 * List all custom channels which the specified ad unit belongs to. 1493 ///
1476 * 1494 /// Request parameters:
1477 * Request parameters: 1495 ///
1478 * 1496 /// [adClientId] - Ad client which contains the ad unit.
1479 * [adClientId] - Ad client which contains the ad unit. 1497 ///
1480 * 1498 /// [adUnitId] - Ad unit for which to list custom channels.
1481 * [adUnitId] - Ad unit for which to list custom channels. 1499 ///
1482 * 1500 /// [maxResults] - The maximum number of custom channels to include in the
1483 * [maxResults] - The maximum number of custom channels to include in the 1501 /// response, used for paging.
1484 * response, used for paging. 1502 /// Value must be between "0" and "10000".
1485 * Value must be between "0" and "10000". 1503 ///
1486 * 1504 /// [pageToken] - A continuation token, used to page through custom channels.
1487 * [pageToken] - A continuation token, used to page through custom channels. 1505 /// To retrieve the next page, set this parameter to the value of
1488 * To retrieve the next page, set this parameter to the value of 1506 /// "nextPageToken" from the previous response.
1489 * "nextPageToken" from the previous response. 1507 ///
1490 * 1508 /// Completes with a [CustomChannels].
1491 * Completes with a [CustomChannels]. 1509 ///
1492 * 1510 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1493 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1511 /// an error.
1494 * error. 1512 ///
1495 * 1513 /// If the used [http.Client] completes with an error when making a REST
1496 * If the used [http.Client] completes with an error when making a REST call, 1514 /// call, this method will complete with the same error.
1497 * this method will complete with the same error. 1515 async.Future<CustomChannels> list(
1498 */ 1516 core.String adClientId, core.String adUnitId,
1499 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId , {core.int maxResults, core.String pageToken}) { 1517 {core.int maxResults, core.String pageToken}) {
1500 var _url = null; 1518 var _url = null;
1501 var _queryParams = new core.Map(); 1519 var _queryParams = new core.Map();
1502 var _uploadMedia = null; 1520 var _uploadMedia = null;
1503 var _uploadOptions = null; 1521 var _uploadOptions = null;
1504 var _downloadOptions = commons.DownloadOptions.Metadata; 1522 var _downloadOptions = commons.DownloadOptions.Metadata;
1505 var _body = null; 1523 var _body = null;
1506 1524
1507 if (adClientId == null) { 1525 if (adClientId == null) {
1508 throw new core.ArgumentError("Parameter adClientId is required."); 1526 throw new core.ArgumentError("Parameter adClientId is required.");
1509 } 1527 }
1510 if (adUnitId == null) { 1528 if (adUnitId == null) {
1511 throw new core.ArgumentError("Parameter adUnitId is required."); 1529 throw new core.ArgumentError("Parameter adUnitId is required.");
1512 } 1530 }
1513 if (maxResults != null) { 1531 if (maxResults != null) {
1514 _queryParams["maxResults"] = ["${maxResults}"]; 1532 _queryParams["maxResults"] = ["${maxResults}"];
1515 } 1533 }
1516 if (pageToken != null) { 1534 if (pageToken != null) {
1517 _queryParams["pageToken"] = [pageToken]; 1535 _queryParams["pageToken"] = [pageToken];
1518 } 1536 }
1519 1537
1520 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni ts/' + commons.Escaper.ecapeVariable('$adUnitId') + '/customchannels'; 1538 _url = 'adclients/' +
1539 commons.Escaper.ecapeVariable('$adClientId') +
1540 '/adunits/' +
1541 commons.Escaper.ecapeVariable('$adUnitId') +
1542 '/customchannels';
1521 1543
1522 var _response = _requester.request(_url, 1544 var _response = _requester.request(_url, "GET",
1523 "GET", 1545 body: _body,
1524 body: _body, 1546 queryParams: _queryParams,
1525 queryParams: _queryParams, 1547 uploadOptions: _uploadOptions,
1526 uploadOptions: _uploadOptions, 1548 uploadMedia: _uploadMedia,
1527 uploadMedia: _uploadMedia, 1549 downloadOptions: _downloadOptions);
1528 downloadOptions: _downloadOptions);
1529 return _response.then((data) => new CustomChannels.fromJson(data)); 1550 return _response.then((data) => new CustomChannels.fromJson(data));
1530 } 1551 }
1531
1532 } 1552 }
1533 1553
1534
1535 class AlertsResourceApi { 1554 class AlertsResourceApi {
1536 final commons.ApiRequester _requester; 1555 final commons.ApiRequester _requester;
1537 1556
1538 AlertsResourceApi(commons.ApiRequester client) : 1557 AlertsResourceApi(commons.ApiRequester client) : _requester = client;
1539 _requester = client;
1540 1558
1541 /** 1559 /// Dismiss (delete) the specified alert from the publisher's AdSense
1542 * Dismiss (delete) the specified alert from the publisher's AdSense account. 1560 /// account.
1543 * 1561 ///
1544 * Request parameters: 1562 /// Request parameters:
1545 * 1563 ///
1546 * [alertId] - Alert to delete. 1564 /// [alertId] - Alert to delete.
1547 * 1565 ///
1548 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1566 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1549 * error. 1567 /// an error.
1550 * 1568 ///
1551 * If the used [http.Client] completes with an error when making a REST call, 1569 /// If the used [http.Client] completes with an error when making a REST
1552 * this method will complete with the same error. 1570 /// call, this method will complete with the same error.
1553 */
1554 async.Future delete(core.String alertId) { 1571 async.Future delete(core.String alertId) {
1555 var _url = null; 1572 var _url = null;
1556 var _queryParams = new core.Map(); 1573 var _queryParams = new core.Map();
1557 var _uploadMedia = null; 1574 var _uploadMedia = null;
1558 var _uploadOptions = null; 1575 var _uploadOptions = null;
1559 var _downloadOptions = commons.DownloadOptions.Metadata; 1576 var _downloadOptions = commons.DownloadOptions.Metadata;
1560 var _body = null; 1577 var _body = null;
1561 1578
1562 if (alertId == null) { 1579 if (alertId == null) {
1563 throw new core.ArgumentError("Parameter alertId is required."); 1580 throw new core.ArgumentError("Parameter alertId is required.");
1564 } 1581 }
1565 1582
1566 _downloadOptions = null; 1583 _downloadOptions = null;
1567 1584
1568 _url = 'alerts/' + commons.Escaper.ecapeVariable('$alertId'); 1585 _url = 'alerts/' + commons.Escaper.ecapeVariable('$alertId');
1569 1586
1570 var _response = _requester.request(_url, 1587 var _response = _requester.request(_url, "DELETE",
1571 "DELETE", 1588 body: _body,
1572 body: _body, 1589 queryParams: _queryParams,
1573 queryParams: _queryParams, 1590 uploadOptions: _uploadOptions,
1574 uploadOptions: _uploadOptions, 1591 uploadMedia: _uploadMedia,
1575 uploadMedia: _uploadMedia, 1592 downloadOptions: _downloadOptions);
1576 downloadOptions: _downloadOptions);
1577 return _response.then((data) => null); 1593 return _response.then((data) => null);
1578 } 1594 }
1579 1595
1580 /** 1596 /// List the alerts for this AdSense account.
1581 * List the alerts for this AdSense account. 1597 ///
1582 * 1598 /// Request parameters:
1583 * Request parameters: 1599 ///
1584 * 1600 /// [locale] - The locale to use for translating alert messages. The account
1585 * [locale] - The locale to use for translating alert messages. The account 1601 /// locale will be used if this is not supplied. The AdSense default
1586 * locale will be used if this is not supplied. The AdSense default (English) 1602 /// (English) will be used if the supplied locale is invalid or unsupported.
1587 * will be used if the supplied locale is invalid or unsupported. 1603 ///
1588 * 1604 /// Completes with a [Alerts].
1589 * Completes with a [Alerts]. 1605 ///
1590 * 1606 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1607 /// an error.
1592 * error. 1608 ///
1593 * 1609 /// If the used [http.Client] completes with an error when making a REST
1594 * If the used [http.Client] completes with an error when making a REST call, 1610 /// call, this method will complete with the same error.
1595 * this method will complete with the same error.
1596 */
1597 async.Future<Alerts> list({core.String locale}) { 1611 async.Future<Alerts> list({core.String locale}) {
1598 var _url = null; 1612 var _url = null;
1599 var _queryParams = new core.Map(); 1613 var _queryParams = new core.Map();
1600 var _uploadMedia = null; 1614 var _uploadMedia = null;
1601 var _uploadOptions = null; 1615 var _uploadOptions = null;
1602 var _downloadOptions = commons.DownloadOptions.Metadata; 1616 var _downloadOptions = commons.DownloadOptions.Metadata;
1603 var _body = null; 1617 var _body = null;
1604 1618
1605 if (locale != null) { 1619 if (locale != null) {
1606 _queryParams["locale"] = [locale]; 1620 _queryParams["locale"] = [locale];
1607 } 1621 }
1608 1622
1609 _url = 'alerts'; 1623 _url = 'alerts';
1610 1624
1611 var _response = _requester.request(_url, 1625 var _response = _requester.request(_url, "GET",
1612 "GET", 1626 body: _body,
1613 body: _body, 1627 queryParams: _queryParams,
1614 queryParams: _queryParams, 1628 uploadOptions: _uploadOptions,
1615 uploadOptions: _uploadOptions, 1629 uploadMedia: _uploadMedia,
1616 uploadMedia: _uploadMedia, 1630 downloadOptions: _downloadOptions);
1617 downloadOptions: _downloadOptions);
1618 return _response.then((data) => new Alerts.fromJson(data)); 1631 return _response.then((data) => new Alerts.fromJson(data));
1619 } 1632 }
1620
1621 } 1633 }
1622 1634
1623
1624 class CustomchannelsResourceApi { 1635 class CustomchannelsResourceApi {
1625 final commons.ApiRequester _requester; 1636 final commons.ApiRequester _requester;
1626 1637
1627 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou rceApi(_requester); 1638 CustomchannelsAdunitsResourceApi get adunits =>
1639 new CustomchannelsAdunitsResourceApi(_requester);
1628 1640
1629 CustomchannelsResourceApi(commons.ApiRequester client) : 1641 CustomchannelsResourceApi(commons.ApiRequester client) : _requester = client;
1630 _requester = client;
1631 1642
1632 /** 1643 /// Get the specified custom channel from the specified ad client.
1633 * Get the specified custom channel from the specified ad client. 1644 ///
1634 * 1645 /// Request parameters:
1635 * Request parameters: 1646 ///
1636 * 1647 /// [adClientId] - Ad client which contains the custom channel.
1637 * [adClientId] - Ad client which contains the custom channel. 1648 ///
1638 * 1649 /// [customChannelId] - Custom channel to retrieve.
1639 * [customChannelId] - Custom channel to retrieve. 1650 ///
1640 * 1651 /// Completes with a [CustomChannel].
1641 * Completes with a [CustomChannel]. 1652 ///
1642 * 1653 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1643 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1654 /// an error.
1644 * error. 1655 ///
1645 * 1656 /// If the used [http.Client] completes with an error when making a REST
1646 * If the used [http.Client] completes with an error when making a REST call, 1657 /// call, this method will complete with the same error.
1647 * this method will complete with the same error. 1658 async.Future<CustomChannel> get(
1648 */ 1659 core.String adClientId, core.String customChannelId) {
1649 async.Future<CustomChannel> get(core.String adClientId, core.String customChan nelId) {
1650 var _url = null; 1660 var _url = null;
1651 var _queryParams = new core.Map(); 1661 var _queryParams = new core.Map();
1652 var _uploadMedia = null; 1662 var _uploadMedia = null;
1653 var _uploadOptions = null; 1663 var _uploadOptions = null;
1654 var _downloadOptions = commons.DownloadOptions.Metadata; 1664 var _downloadOptions = commons.DownloadOptions.Metadata;
1655 var _body = null; 1665 var _body = null;
1656 1666
1657 if (adClientId == null) { 1667 if (adClientId == null) {
1658 throw new core.ArgumentError("Parameter adClientId is required."); 1668 throw new core.ArgumentError("Parameter adClientId is required.");
1659 } 1669 }
1660 if (customChannelId == null) { 1670 if (customChannelId == null) {
1661 throw new core.ArgumentError("Parameter customChannelId is required."); 1671 throw new core.ArgumentError("Parameter customChannelId is required.");
1662 } 1672 }
1663 1673
1664 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels/' + commons.Escaper.ecapeVariable('$customChannelId'); 1674 _url = 'adclients/' +
1675 commons.Escaper.ecapeVariable('$adClientId') +
1676 '/customchannels/' +
1677 commons.Escaper.ecapeVariable('$customChannelId');
1665 1678
1666 var _response = _requester.request(_url, 1679 var _response = _requester.request(_url, "GET",
1667 "GET", 1680 body: _body,
1668 body: _body, 1681 queryParams: _queryParams,
1669 queryParams: _queryParams, 1682 uploadOptions: _uploadOptions,
1670 uploadOptions: _uploadOptions, 1683 uploadMedia: _uploadMedia,
1671 uploadMedia: _uploadMedia, 1684 downloadOptions: _downloadOptions);
1672 downloadOptions: _downloadOptions);
1673 return _response.then((data) => new CustomChannel.fromJson(data)); 1685 return _response.then((data) => new CustomChannel.fromJson(data));
1674 } 1686 }
1675 1687
1676 /** 1688 /// List all custom channels in the specified ad client for this AdSense
1677 * List all custom channels in the specified ad client for this AdSense 1689 /// account.
1678 * account. 1690 ///
1679 * 1691 /// Request parameters:
1680 * Request parameters: 1692 ///
1681 * 1693 /// [adClientId] - Ad client for which to list custom channels.
1682 * [adClientId] - Ad client for which to list custom channels. 1694 ///
1683 * 1695 /// [maxResults] - The maximum number of custom channels to include in the
1684 * [maxResults] - The maximum number of custom channels to include in the 1696 /// response, used for paging.
1685 * response, used for paging. 1697 /// Value must be between "0" and "10000".
1686 * Value must be between "0" and "10000". 1698 ///
1687 * 1699 /// [pageToken] - A continuation token, used to page through custom channels.
1688 * [pageToken] - A continuation token, used to page through custom channels. 1700 /// To retrieve the next page, set this parameter to the value of
1689 * To retrieve the next page, set this parameter to the value of 1701 /// "nextPageToken" from the previous response.
1690 * "nextPageToken" from the previous response. 1702 ///
1691 * 1703 /// Completes with a [CustomChannels].
1692 * Completes with a [CustomChannels]. 1704 ///
1693 * 1705 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1694 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1706 /// an error.
1695 * error. 1707 ///
1696 * 1708 /// If the used [http.Client] completes with an error when making a REST
1697 * If the used [http.Client] completes with an error when making a REST call, 1709 /// call, this method will complete with the same error.
1698 * this method will complete with the same error. 1710 async.Future<CustomChannels> list(core.String adClientId,
1699 */ 1711 {core.int maxResults, core.String pageToken}) {
1700 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults , core.String pageToken}) {
1701 var _url = null; 1712 var _url = null;
1702 var _queryParams = new core.Map(); 1713 var _queryParams = new core.Map();
1703 var _uploadMedia = null; 1714 var _uploadMedia = null;
1704 var _uploadOptions = null; 1715 var _uploadOptions = null;
1705 var _downloadOptions = commons.DownloadOptions.Metadata; 1716 var _downloadOptions = commons.DownloadOptions.Metadata;
1706 var _body = null; 1717 var _body = null;
1707 1718
1708 if (adClientId == null) { 1719 if (adClientId == null) {
1709 throw new core.ArgumentError("Parameter adClientId is required."); 1720 throw new core.ArgumentError("Parameter adClientId is required.");
1710 } 1721 }
1711 if (maxResults != null) { 1722 if (maxResults != null) {
1712 _queryParams["maxResults"] = ["${maxResults}"]; 1723 _queryParams["maxResults"] = ["${maxResults}"];
1713 } 1724 }
1714 if (pageToken != null) { 1725 if (pageToken != null) {
1715 _queryParams["pageToken"] = [pageToken]; 1726 _queryParams["pageToken"] = [pageToken];
1716 } 1727 }
1717 1728
1718 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels'; 1729 _url = 'adclients/' +
1730 commons.Escaper.ecapeVariable('$adClientId') +
1731 '/customchannels';
1719 1732
1720 var _response = _requester.request(_url, 1733 var _response = _requester.request(_url, "GET",
1721 "GET", 1734 body: _body,
1722 body: _body, 1735 queryParams: _queryParams,
1723 queryParams: _queryParams, 1736 uploadOptions: _uploadOptions,
1724 uploadOptions: _uploadOptions, 1737 uploadMedia: _uploadMedia,
1725 uploadMedia: _uploadMedia, 1738 downloadOptions: _downloadOptions);
1726 downloadOptions: _downloadOptions);
1727 return _response.then((data) => new CustomChannels.fromJson(data)); 1739 return _response.then((data) => new CustomChannels.fromJson(data));
1728 } 1740 }
1729
1730 } 1741 }
1731 1742
1732
1733 class CustomchannelsAdunitsResourceApi { 1743 class CustomchannelsAdunitsResourceApi {
1734 final commons.ApiRequester _requester; 1744 final commons.ApiRequester _requester;
1735 1745
1736 CustomchannelsAdunitsResourceApi(commons.ApiRequester client) : 1746 CustomchannelsAdunitsResourceApi(commons.ApiRequester client)
1737 _requester = client; 1747 : _requester = client;
1738 1748
1739 /** 1749 /// List all ad units in the specified custom channel.
1740 * List all ad units in the specified custom channel. 1750 ///
1741 * 1751 /// Request parameters:
1742 * Request parameters: 1752 ///
1743 * 1753 /// [adClientId] - Ad client which contains the custom channel.
1744 * [adClientId] - Ad client which contains the custom channel. 1754 ///
1745 * 1755 /// [customChannelId] - Custom channel for which to list ad units.
1746 * [customChannelId] - Custom channel for which to list ad units. 1756 ///
1747 * 1757 /// [includeInactive] - Whether to include inactive ad units. Default: true.
1748 * [includeInactive] - Whether to include inactive ad units. Default: true. 1758 ///
1749 * 1759 /// [maxResults] - The maximum number of ad units to include in the response,
1750 * [maxResults] - The maximum number of ad units to include in the response, 1760 /// used for paging.
1751 * used for paging. 1761 /// Value must be between "0" and "10000".
1752 * Value must be between "0" and "10000". 1762 ///
1753 * 1763 /// [pageToken] - A continuation token, used to page through ad units. To
1754 * [pageToken] - A continuation token, used to page through ad units. To 1764 /// retrieve the next page, set this parameter to the value of
1755 * retrieve the next page, set this parameter to the value of "nextPageToken" 1765 /// "nextPageToken" from the previous response.
1756 * from the previous response. 1766 ///
1757 * 1767 /// Completes with a [AdUnits].
1758 * Completes with a [AdUnits]. 1768 ///
1759 * 1769 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1770 /// an error.
1761 * error. 1771 ///
1762 * 1772 /// If the used [http.Client] completes with an error when making a REST
1763 * If the used [http.Client] completes with an error when making a REST call, 1773 /// call, this method will complete with the same error.
1764 * this method will complete with the same error. 1774 async.Future<AdUnits> list(
1765 */ 1775 core.String adClientId, core.String customChannelId,
1766 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId , {core.bool includeInactive, core.int maxResults, core.String pageToken}) { 1776 {core.bool includeInactive, core.int maxResults, core.String pageToken}) {
1767 var _url = null; 1777 var _url = null;
1768 var _queryParams = new core.Map(); 1778 var _queryParams = new core.Map();
1769 var _uploadMedia = null; 1779 var _uploadMedia = null;
1770 var _uploadOptions = null; 1780 var _uploadOptions = null;
1771 var _downloadOptions = commons.DownloadOptions.Metadata; 1781 var _downloadOptions = commons.DownloadOptions.Metadata;
1772 var _body = null; 1782 var _body = null;
1773 1783
1774 if (adClientId == null) { 1784 if (adClientId == null) {
1775 throw new core.ArgumentError("Parameter adClientId is required."); 1785 throw new core.ArgumentError("Parameter adClientId is required.");
1776 } 1786 }
1777 if (customChannelId == null) { 1787 if (customChannelId == null) {
1778 throw new core.ArgumentError("Parameter customChannelId is required."); 1788 throw new core.ArgumentError("Parameter customChannelId is required.");
1779 } 1789 }
1780 if (includeInactive != null) { 1790 if (includeInactive != null) {
1781 _queryParams["includeInactive"] = ["${includeInactive}"]; 1791 _queryParams["includeInactive"] = ["${includeInactive}"];
1782 } 1792 }
1783 if (maxResults != null) { 1793 if (maxResults != null) {
1784 _queryParams["maxResults"] = ["${maxResults}"]; 1794 _queryParams["maxResults"] = ["${maxResults}"];
1785 } 1795 }
1786 if (pageToken != null) { 1796 if (pageToken != null) {
1787 _queryParams["pageToken"] = [pageToken]; 1797 _queryParams["pageToken"] = [pageToken];
1788 } 1798 }
1789 1799
1790 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo mchannels/' + commons.Escaper.ecapeVariable('$customChannelId') + '/adunits'; 1800 _url = 'adclients/' +
1801 commons.Escaper.ecapeVariable('$adClientId') +
1802 '/customchannels/' +
1803 commons.Escaper.ecapeVariable('$customChannelId') +
1804 '/adunits';
1791 1805
1792 var _response = _requester.request(_url, 1806 var _response = _requester.request(_url, "GET",
1793 "GET", 1807 body: _body,
1794 body: _body, 1808 queryParams: _queryParams,
1795 queryParams: _queryParams, 1809 uploadOptions: _uploadOptions,
1796 uploadOptions: _uploadOptions, 1810 uploadMedia: _uploadMedia,
1797 uploadMedia: _uploadMedia, 1811 downloadOptions: _downloadOptions);
1798 downloadOptions: _downloadOptions);
1799 return _response.then((data) => new AdUnits.fromJson(data)); 1812 return _response.then((data) => new AdUnits.fromJson(data));
1800 } 1813 }
1801
1802 } 1814 }
1803 1815
1804
1805 class MetadataResourceApi { 1816 class MetadataResourceApi {
1806 final commons.ApiRequester _requester; 1817 final commons.ApiRequester _requester;
1807 1818
1808 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource Api(_requester); 1819 MetadataDimensionsResourceApi get dimensions =>
1809 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ ester); 1820 new MetadataDimensionsResourceApi(_requester);
1821 MetadataMetricsResourceApi get metrics =>
1822 new MetadataMetricsResourceApi(_requester);
1810 1823
1811 MetadataResourceApi(commons.ApiRequester client) : 1824 MetadataResourceApi(commons.ApiRequester client) : _requester = client;
1812 _requester = client;
1813 } 1825 }
1814 1826
1815
1816 class MetadataDimensionsResourceApi { 1827 class MetadataDimensionsResourceApi {
1817 final commons.ApiRequester _requester; 1828 final commons.ApiRequester _requester;
1818 1829
1819 MetadataDimensionsResourceApi(commons.ApiRequester client) : 1830 MetadataDimensionsResourceApi(commons.ApiRequester client)
1820 _requester = client; 1831 : _requester = client;
1821 1832
1822 /** 1833 /// List the metadata for the dimensions available to this AdSense account.
1823 * List the metadata for the dimensions available to this AdSense account. 1834 ///
1824 * 1835 /// Request parameters:
1825 * Request parameters: 1836 ///
1826 * 1837 /// Completes with a [Metadata].
1827 * Completes with a [Metadata]. 1838 ///
1828 * 1839 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1829 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1840 /// an error.
1830 * error. 1841 ///
1831 * 1842 /// If the used [http.Client] completes with an error when making a REST
1832 * If the used [http.Client] completes with an error when making a REST call, 1843 /// call, this method will complete with the same error.
1833 * this method will complete with the same error.
1834 */
1835 async.Future<Metadata> list() { 1844 async.Future<Metadata> list() {
1836 var _url = null; 1845 var _url = null;
1837 var _queryParams = new core.Map(); 1846 var _queryParams = new core.Map();
1838 var _uploadMedia = null; 1847 var _uploadMedia = null;
1839 var _uploadOptions = null; 1848 var _uploadOptions = null;
1840 var _downloadOptions = commons.DownloadOptions.Metadata; 1849 var _downloadOptions = commons.DownloadOptions.Metadata;
1841 var _body = null; 1850 var _body = null;
1842 1851
1843
1844 _url = 'metadata/dimensions'; 1852 _url = 'metadata/dimensions';
1845 1853
1846 var _response = _requester.request(_url, 1854 var _response = _requester.request(_url, "GET",
1847 "GET", 1855 body: _body,
1848 body: _body, 1856 queryParams: _queryParams,
1849 queryParams: _queryParams, 1857 uploadOptions: _uploadOptions,
1850 uploadOptions: _uploadOptions, 1858 uploadMedia: _uploadMedia,
1851 uploadMedia: _uploadMedia, 1859 downloadOptions: _downloadOptions);
1852 downloadOptions: _downloadOptions);
1853 return _response.then((data) => new Metadata.fromJson(data)); 1860 return _response.then((data) => new Metadata.fromJson(data));
1854 } 1861 }
1855
1856 } 1862 }
1857 1863
1858
1859 class MetadataMetricsResourceApi { 1864 class MetadataMetricsResourceApi {
1860 final commons.ApiRequester _requester; 1865 final commons.ApiRequester _requester;
1861 1866
1862 MetadataMetricsResourceApi(commons.ApiRequester client) : 1867 MetadataMetricsResourceApi(commons.ApiRequester client) : _requester = client;
1863 _requester = client;
1864 1868
1865 /** 1869 /// List the metadata for the metrics available to this AdSense account.
1866 * List the metadata for the metrics available to this AdSense account. 1870 ///
1867 * 1871 /// Request parameters:
1868 * Request parameters: 1872 ///
1869 * 1873 /// Completes with a [Metadata].
1870 * Completes with a [Metadata]. 1874 ///
1871 * 1875 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1872 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1876 /// an error.
1873 * error. 1877 ///
1874 * 1878 /// If the used [http.Client] completes with an error when making a REST
1875 * If the used [http.Client] completes with an error when making a REST call, 1879 /// call, this method will complete with the same error.
1876 * this method will complete with the same error.
1877 */
1878 async.Future<Metadata> list() { 1880 async.Future<Metadata> list() {
1879 var _url = null; 1881 var _url = null;
1880 var _queryParams = new core.Map(); 1882 var _queryParams = new core.Map();
1881 var _uploadMedia = null; 1883 var _uploadMedia = null;
1882 var _uploadOptions = null; 1884 var _uploadOptions = null;
1883 var _downloadOptions = commons.DownloadOptions.Metadata; 1885 var _downloadOptions = commons.DownloadOptions.Metadata;
1884 var _body = null; 1886 var _body = null;
1885 1887
1886
1887 _url = 'metadata/metrics'; 1888 _url = 'metadata/metrics';
1888 1889
1889 var _response = _requester.request(_url, 1890 var _response = _requester.request(_url, "GET",
1890 "GET", 1891 body: _body,
1891 body: _body, 1892 queryParams: _queryParams,
1892 queryParams: _queryParams, 1893 uploadOptions: _uploadOptions,
1893 uploadOptions: _uploadOptions, 1894 uploadMedia: _uploadMedia,
1894 uploadMedia: _uploadMedia, 1895 downloadOptions: _downloadOptions);
1895 downloadOptions: _downloadOptions);
1896 return _response.then((data) => new Metadata.fromJson(data)); 1896 return _response.then((data) => new Metadata.fromJson(data));
1897 } 1897 }
1898
1899 } 1898 }
1900 1899
1901
1902 class PaymentsResourceApi { 1900 class PaymentsResourceApi {
1903 final commons.ApiRequester _requester; 1901 final commons.ApiRequester _requester;
1904 1902
1905 PaymentsResourceApi(commons.ApiRequester client) : 1903 PaymentsResourceApi(commons.ApiRequester client) : _requester = client;
1906 _requester = client;
1907 1904
1908 /** 1905 /// List the payments for this AdSense account.
1909 * List the payments for this AdSense account. 1906 ///
1910 * 1907 /// Request parameters:
1911 * Request parameters: 1908 ///
1912 * 1909 /// Completes with a [Payments].
1913 * Completes with a [Payments]. 1910 ///
1914 * 1911 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1915 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1912 /// an error.
1916 * error. 1913 ///
1917 * 1914 /// If the used [http.Client] completes with an error when making a REST
1918 * If the used [http.Client] completes with an error when making a REST call, 1915 /// call, this method will complete with the same error.
1919 * this method will complete with the same error.
1920 */
1921 async.Future<Payments> list() { 1916 async.Future<Payments> list() {
1922 var _url = null; 1917 var _url = null;
1923 var _queryParams = new core.Map(); 1918 var _queryParams = new core.Map();
1924 var _uploadMedia = null; 1919 var _uploadMedia = null;
1925 var _uploadOptions = null; 1920 var _uploadOptions = null;
1926 var _downloadOptions = commons.DownloadOptions.Metadata; 1921 var _downloadOptions = commons.DownloadOptions.Metadata;
1927 var _body = null; 1922 var _body = null;
1928 1923
1929
1930 _url = 'payments'; 1924 _url = 'payments';
1931 1925
1932 var _response = _requester.request(_url, 1926 var _response = _requester.request(_url, "GET",
1933 "GET", 1927 body: _body,
1934 body: _body, 1928 queryParams: _queryParams,
1935 queryParams: _queryParams, 1929 uploadOptions: _uploadOptions,
1936 uploadOptions: _uploadOptions, 1930 uploadMedia: _uploadMedia,
1937 uploadMedia: _uploadMedia, 1931 downloadOptions: _downloadOptions);
1938 downloadOptions: _downloadOptions);
1939 return _response.then((data) => new Payments.fromJson(data)); 1932 return _response.then((data) => new Payments.fromJson(data));
1940 } 1933 }
1941
1942 } 1934 }
1943 1935
1944
1945 class ReportsResourceApi { 1936 class ReportsResourceApi {
1946 final commons.ApiRequester _requester; 1937 final commons.ApiRequester _requester;
1947 1938
1948 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester); 1939 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester);
1949 1940
1950 ReportsResourceApi(commons.ApiRequester client) : 1941 ReportsResourceApi(commons.ApiRequester client) : _requester = client;
1951 _requester = client;
1952 1942
1953 /** 1943 /// Generate an AdSense report based on the report request sent in the query
1954 * Generate an AdSense report based on the report request sent in the query 1944 /// parameters. Returns the result as JSON; to retrieve output in CSV format
1955 * parameters. Returns the result as JSON; to retrieve output in CSV format 1945 /// specify "alt=csv" as a query parameter.
1956 * specify "alt=csv" as a query parameter. 1946 ///
1957 * 1947 /// Request parameters:
1958 * Request parameters: 1948 ///
1959 * 1949 /// [startDate] - Start of the date range to report on in "YYYY-MM-DD"
1960 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, 1950 /// format, inclusive.
1961 * inclusive. 1951 /// Value must have pattern
1962 * Value must have pattern 1952 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3} ?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
1963 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)". 1953 ///
1964 * 1954 /// [endDate] - End of the date range to report on in "YYYY-MM-DD" format,
1965 * [endDate] - End of the date range to report on in "YYYY-MM-DD" format, 1955 /// inclusive.
1966 * inclusive. 1956 /// Value must have pattern
1967 * Value must have pattern 1957 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3} ?)|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)".
1968 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}? )|(latest-(\d{2})-(\d{2})(-\d+y)?)|(latest-latest-(\d{2})(-\d+m)?)". 1958 ///
1969 * 1959 /// [accountId] - Accounts upon which to report.
1970 * [accountId] - Accounts upon which to report. 1960 ///
1971 * 1961 /// [currency] - Optional currency to use when reporting on monetary metrics.
1972 * [currency] - Optional currency to use when reporting on monetary metrics. 1962 /// Defaults to the account's currency if not set.
1973 * Defaults to the account's currency if not set. 1963 /// Value must have pattern "[a-zA-Z]+".
1974 * Value must have pattern "[a-zA-Z]+". 1964 ///
1975 * 1965 /// [dimension] - Dimensions to base the report on.
1976 * [dimension] - Dimensions to base the report on. 1966 /// Value must have pattern "[a-zA-Z_]+".
1977 * Value must have pattern "[a-zA-Z_]+". 1967 ///
1978 * 1968 /// [filter] - Filters to be run on the report.
1979 * [filter] - Filters to be run on the report. 1969 /// Value must have pattern "[a-zA-Z_]+(==|=@).+".
1980 * Value must have pattern "[a-zA-Z_]+(==|=@).+". 1970 ///
1981 * 1971 /// [locale] - Optional locale to use for translating report output to a
1982 * [locale] - Optional locale to use for translating report output to a local 1972 /// local language. Defaults to "en_US" if not specified.
1983 * language. Defaults to "en_US" if not specified. 1973 /// Value must have pattern "[a-zA-Z_]+".
1984 * Value must have pattern "[a-zA-Z_]+". 1974 ///
1985 * 1975 /// [maxResults] - The maximum number of rows of report data to return.
1986 * [maxResults] - The maximum number of rows of report data to return. 1976 /// Value must be between "0" and "50000".
1987 * Value must be between "0" and "50000". 1977 ///
1988 * 1978 /// [metric] - Numeric columns to include in the report.
1989 * [metric] - Numeric columns to include in the report. 1979 /// Value must have pattern "[a-zA-Z_]+".
1990 * Value must have pattern "[a-zA-Z_]+". 1980 ///
1991 * 1981 /// [sort] - The name of a dimension or metric to sort the resulting report
1992 * [sort] - The name of a dimension or metric to sort the resulting report on, 1982 /// on, optionally prefixed with "+" to sort ascending or "-" to sort
1993 * optionally prefixed with "+" to sort ascending or "-" to sort descending. 1983 /// descending. If no prefix is specified, the column is sorted ascending.
1994 * If no prefix is specified, the column is sorted ascending. 1984 /// Value must have pattern "(\+|-)?[a-zA-Z_]+".
1995 * Value must have pattern "(\+|-)?[a-zA-Z_]+". 1985 ///
1996 * 1986 /// [startIndex] - Index of the first row of report data to return.
1997 * [startIndex] - Index of the first row of report data to return. 1987 /// Value must be between "0" and "5000".
1998 * Value must be between "0" and "5000". 1988 ///
1999 * 1989 /// [useTimezoneReporting] - Whether the report should be generated in the
2000 * [useTimezoneReporting] - Whether the report should be generated in the 1990 /// AdSense account's local timezone. If false default PST/PDT timezone will
2001 * AdSense account's local timezone. If false default PST/PDT timezone will be 1991 /// be used.
2002 * used. 1992 ///
2003 * 1993 /// [downloadOptions] - Options for downloading. A download can be either a
2004 * [downloadOptions] - Options for downloading. A download can be either a 1994 /// Metadata (default) or Media download. Partial Media downloads are
2005 * Metadata (default) or Media download. Partial Media downloads are possible 1995 /// possible as well.
2006 * as well. 1996 ///
2007 * 1997 /// Completes with a
2008 * Completes with a 1998 ///
2009 * 1999 /// - [AdsenseReportsGenerateResponse] for Metadata downloads (see
2010 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see 2000 /// [downloadOptions]).
2011 * [downloadOptions]). 2001 ///
2012 * 2002 /// - [commons.Media] for Media downloads (see [downloadOptions]).
2013 * - [commons.Media] for Media downloads (see [downloadOptions]). 2003 ///
2014 * 2004 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2015 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2005 /// an error.
2016 * error. 2006 ///
2017 * 2007 /// If the used [http.Client] completes with an error when making a REST
2018 * If the used [http.Client] completes with an error when making a REST call, 2008 /// call, this method will complete with the same error.
2019 * this method will complete with the same error. 2009 async.Future generate(core.String startDate, core.String endDate,
2020 */ 2010 {core.List<core.String> accountId,
2021 async.Future generate(core.String startDate, core.String endDate, {core.List<c ore.String> accountId, core.String currency, core.List<core.String> dimension, c ore.List<core.String> filter, core.String locale, core.int maxResults, core.List <core.String> metric, core.List<core.String> sort, core.int startIndex, core.boo l useTimezoneReporting, commons.DownloadOptions downloadOptions: commons.Downloa dOptions.Metadata}) { 2011 core.String currency,
2012 core.List<core.String> dimension,
2013 core.List<core.String> filter,
2014 core.String locale,
2015 core.int maxResults,
2016 core.List<core.String> metric,
2017 core.List<core.String> sort,
2018 core.int startIndex,
2019 core.bool useTimezoneReporting,
2020 commons.DownloadOptions downloadOptions:
2021 commons.DownloadOptions.Metadata}) {
2022 var _url = null; 2022 var _url = null;
2023 var _queryParams = new core.Map(); 2023 var _queryParams = new core.Map();
2024 var _uploadMedia = null; 2024 var _uploadMedia = null;
2025 var _uploadOptions = null; 2025 var _uploadOptions = null;
2026 var _downloadOptions = commons.DownloadOptions.Metadata; 2026 var _downloadOptions = commons.DownloadOptions.Metadata;
2027 var _body = null; 2027 var _body = null;
2028 2028
2029 if (startDate == null) { 2029 if (startDate == null) {
2030 throw new core.ArgumentError("Parameter startDate is required."); 2030 throw new core.ArgumentError("Parameter startDate is required.");
2031 } 2031 }
(...skipping 30 matching lines...) Expand all
2062 _queryParams["startIndex"] = ["${startIndex}"]; 2062 _queryParams["startIndex"] = ["${startIndex}"];
2063 } 2063 }
2064 if (useTimezoneReporting != null) { 2064 if (useTimezoneReporting != null) {
2065 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"]; 2065 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"];
2066 } 2066 }
2067 2067
2068 _downloadOptions = downloadOptions; 2068 _downloadOptions = downloadOptions;
2069 2069
2070 _url = 'reports'; 2070 _url = 'reports';
2071 2071
2072 var _response = _requester.request(_url, 2072 var _response = _requester.request(_url, "GET",
2073 "GET", 2073 body: _body,
2074 body: _body, 2074 queryParams: _queryParams,
2075 queryParams: _queryParams, 2075 uploadOptions: _uploadOptions,
2076 uploadOptions: _uploadOptions, 2076 uploadMedia: _uploadMedia,
2077 uploadMedia: _uploadMedia, 2077 downloadOptions: _downloadOptions);
2078 downloadOptions: _downloadOptions);
2079 if (_downloadOptions == null || 2078 if (_downloadOptions == null ||
2080 _downloadOptions == commons.DownloadOptions.Metadata) { 2079 _downloadOptions == commons.DownloadOptions.Metadata) {
2081 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso n(data)); 2080 return _response
2081 .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
2082 } else { 2082 } else {
2083 return _response; 2083 return _response;
2084 } 2084 }
2085 } 2085 }
2086
2087 } 2086 }
2088 2087
2089
2090 class ReportsSavedResourceApi { 2088 class ReportsSavedResourceApi {
2091 final commons.ApiRequester _requester; 2089 final commons.ApiRequester _requester;
2092 2090
2093 ReportsSavedResourceApi(commons.ApiRequester client) : 2091 ReportsSavedResourceApi(commons.ApiRequester client) : _requester = client;
2094 _requester = client;
2095 2092
2096 /** 2093 /// Generate an AdSense report based on the saved report ID sent in the query
2097 * Generate an AdSense report based on the saved report ID sent in the query 2094 /// parameters.
2098 * parameters. 2095 ///
2099 * 2096 /// Request parameters:
2100 * Request parameters: 2097 ///
2101 * 2098 /// [savedReportId] - The saved report to retrieve.
2102 * [savedReportId] - The saved report to retrieve. 2099 ///
2103 * 2100 /// [locale] - Optional locale to use for translating report output to a
2104 * [locale] - Optional locale to use for translating report output to a local 2101 /// local language. Defaults to "en_US" if not specified.
2105 * language. Defaults to "en_US" if not specified. 2102 /// Value must have pattern "[a-zA-Z_]+".
2106 * Value must have pattern "[a-zA-Z_]+". 2103 ///
2107 * 2104 /// [maxResults] - The maximum number of rows of report data to return.
2108 * [maxResults] - The maximum number of rows of report data to return. 2105 /// Value must be between "0" and "50000".
2109 * Value must be between "0" and "50000". 2106 ///
2110 * 2107 /// [startIndex] - Index of the first row of report data to return.
2111 * [startIndex] - Index of the first row of report data to return. 2108 /// Value must be between "0" and "5000".
2112 * Value must be between "0" and "5000". 2109 ///
2113 * 2110 /// Completes with a [AdsenseReportsGenerateResponse].
2114 * Completes with a [AdsenseReportsGenerateResponse]. 2111 ///
2115 * 2112 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2113 /// an error.
2117 * error. 2114 ///
2118 * 2115 /// If the used [http.Client] completes with an error when making a REST
2119 * If the used [http.Client] completes with an error when making a REST call, 2116 /// call, this method will complete with the same error.
2120 * this method will complete with the same error. 2117 async.Future<AdsenseReportsGenerateResponse> generate(
2121 */ 2118 core.String savedReportId,
2122 async.Future<AdsenseReportsGenerateResponse> generate(core.String savedReportI d, {core.String locale, core.int maxResults, core.int startIndex}) { 2119 {core.String locale,
2120 core.int maxResults,
2121 core.int startIndex}) {
2123 var _url = null; 2122 var _url = null;
2124 var _queryParams = new core.Map(); 2123 var _queryParams = new core.Map();
2125 var _uploadMedia = null; 2124 var _uploadMedia = null;
2126 var _uploadOptions = null; 2125 var _uploadOptions = null;
2127 var _downloadOptions = commons.DownloadOptions.Metadata; 2126 var _downloadOptions = commons.DownloadOptions.Metadata;
2128 var _body = null; 2127 var _body = null;
2129 2128
2130 if (savedReportId == null) { 2129 if (savedReportId == null) {
2131 throw new core.ArgumentError("Parameter savedReportId is required."); 2130 throw new core.ArgumentError("Parameter savedReportId is required.");
2132 } 2131 }
2133 if (locale != null) { 2132 if (locale != null) {
2134 _queryParams["locale"] = [locale]; 2133 _queryParams["locale"] = [locale];
2135 } 2134 }
2136 if (maxResults != null) { 2135 if (maxResults != null) {
2137 _queryParams["maxResults"] = ["${maxResults}"]; 2136 _queryParams["maxResults"] = ["${maxResults}"];
2138 } 2137 }
2139 if (startIndex != null) { 2138 if (startIndex != null) {
2140 _queryParams["startIndex"] = ["${startIndex}"]; 2139 _queryParams["startIndex"] = ["${startIndex}"];
2141 } 2140 }
2142 2141
2143 _url = 'reports/' + commons.Escaper.ecapeVariable('$savedReportId'); 2142 _url = 'reports/' + commons.Escaper.ecapeVariable('$savedReportId');
2144 2143
2145 var _response = _requester.request(_url, 2144 var _response = _requester.request(_url, "GET",
2146 "GET", 2145 body: _body,
2147 body: _body, 2146 queryParams: _queryParams,
2148 queryParams: _queryParams, 2147 uploadOptions: _uploadOptions,
2149 uploadOptions: _uploadOptions, 2148 uploadMedia: _uploadMedia,
2150 uploadMedia: _uploadMedia, 2149 downloadOptions: _downloadOptions);
2151 downloadOptions: _downloadOptions); 2150 return _response
2152 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson( data)); 2151 .then((data) => new AdsenseReportsGenerateResponse.fromJson(data));
2153 } 2152 }
2154 2153
2155 /** 2154 /// List all saved reports in this AdSense account.
2156 * List all saved reports in this AdSense account. 2155 ///
2157 * 2156 /// Request parameters:
2158 * Request parameters: 2157 ///
2159 * 2158 /// [maxResults] - The maximum number of saved reports to include in the
2160 * [maxResults] - The maximum number of saved reports to include in the 2159 /// response, used for paging.
2161 * response, used for paging. 2160 /// Value must be between "0" and "100".
2162 * Value must be between "0" and "100". 2161 ///
2163 * 2162 /// [pageToken] - A continuation token, used to page through saved reports.
2164 * [pageToken] - A continuation token, used to page through saved reports. To 2163 /// To retrieve the next page, set this parameter to the value of
2165 * retrieve the next page, set this parameter to the value of "nextPageToken" 2164 /// "nextPageToken" from the previous response.
2166 * from the previous response. 2165 ///
2167 * 2166 /// Completes with a [SavedReports].
2168 * Completes with a [SavedReports]. 2167 ///
2169 * 2168 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2170 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2169 /// an error.
2171 * error. 2170 ///
2172 * 2171 /// If the used [http.Client] completes with an error when making a REST
2173 * If the used [http.Client] completes with an error when making a REST call, 2172 /// call, this method will complete with the same error.
2174 * this method will complete with the same error. 2173 async.Future<SavedReports> list(
2175 */ 2174 {core.int maxResults, core.String pageToken}) {
2176 async.Future<SavedReports> list({core.int maxResults, core.String pageToken}) {
2177 var _url = null; 2175 var _url = null;
2178 var _queryParams = new core.Map(); 2176 var _queryParams = new core.Map();
2179 var _uploadMedia = null; 2177 var _uploadMedia = null;
2180 var _uploadOptions = null; 2178 var _uploadOptions = null;
2181 var _downloadOptions = commons.DownloadOptions.Metadata; 2179 var _downloadOptions = commons.DownloadOptions.Metadata;
2182 var _body = null; 2180 var _body = null;
2183 2181
2184 if (maxResults != null) { 2182 if (maxResults != null) {
2185 _queryParams["maxResults"] = ["${maxResults}"]; 2183 _queryParams["maxResults"] = ["${maxResults}"];
2186 } 2184 }
2187 if (pageToken != null) { 2185 if (pageToken != null) {
2188 _queryParams["pageToken"] = [pageToken]; 2186 _queryParams["pageToken"] = [pageToken];
2189 } 2187 }
2190 2188
2191 _url = 'reports/saved'; 2189 _url = 'reports/saved';
2192 2190
2193 var _response = _requester.request(_url, 2191 var _response = _requester.request(_url, "GET",
2194 "GET", 2192 body: _body,
2195 body: _body, 2193 queryParams: _queryParams,
2196 queryParams: _queryParams, 2194 uploadOptions: _uploadOptions,
2197 uploadOptions: _uploadOptions, 2195 uploadMedia: _uploadMedia,
2198 uploadMedia: _uploadMedia, 2196 downloadOptions: _downloadOptions);
2199 downloadOptions: _downloadOptions);
2200 return _response.then((data) => new SavedReports.fromJson(data)); 2197 return _response.then((data) => new SavedReports.fromJson(data));
2201 } 2198 }
2202
2203 } 2199 }
2204 2200
2205
2206 class SavedadstylesResourceApi { 2201 class SavedadstylesResourceApi {
2207 final commons.ApiRequester _requester; 2202 final commons.ApiRequester _requester;
2208 2203
2209 SavedadstylesResourceApi(commons.ApiRequester client) : 2204 SavedadstylesResourceApi(commons.ApiRequester client) : _requester = client;
2210 _requester = client;
2211 2205
2212 /** 2206 /// Get a specific saved ad style from the user's account.
2213 * Get a specific saved ad style from the user's account. 2207 ///
2214 * 2208 /// Request parameters:
2215 * Request parameters: 2209 ///
2216 * 2210 /// [savedAdStyleId] - Saved ad style to retrieve.
2217 * [savedAdStyleId] - Saved ad style to retrieve. 2211 ///
2218 * 2212 /// Completes with a [SavedAdStyle].
2219 * Completes with a [SavedAdStyle]. 2213 ///
2220 * 2214 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2221 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2215 /// an error.
2222 * error. 2216 ///
2223 * 2217 /// If the used [http.Client] completes with an error when making a REST
2224 * If the used [http.Client] completes with an error when making a REST call, 2218 /// call, this method will complete with the same error.
2225 * this method will complete with the same error.
2226 */
2227 async.Future<SavedAdStyle> get(core.String savedAdStyleId) { 2219 async.Future<SavedAdStyle> get(core.String savedAdStyleId) {
2228 var _url = null; 2220 var _url = null;
2229 var _queryParams = new core.Map(); 2221 var _queryParams = new core.Map();
2230 var _uploadMedia = null; 2222 var _uploadMedia = null;
2231 var _uploadOptions = null; 2223 var _uploadOptions = null;
2232 var _downloadOptions = commons.DownloadOptions.Metadata; 2224 var _downloadOptions = commons.DownloadOptions.Metadata;
2233 var _body = null; 2225 var _body = null;
2234 2226
2235 if (savedAdStyleId == null) { 2227 if (savedAdStyleId == null) {
2236 throw new core.ArgumentError("Parameter savedAdStyleId is required."); 2228 throw new core.ArgumentError("Parameter savedAdStyleId is required.");
2237 } 2229 }
2238 2230
2239 _url = 'savedadstyles/' + commons.Escaper.ecapeVariable('$savedAdStyleId'); 2231 _url = 'savedadstyles/' + commons.Escaper.ecapeVariable('$savedAdStyleId');
2240 2232
2241 var _response = _requester.request(_url, 2233 var _response = _requester.request(_url, "GET",
2242 "GET", 2234 body: _body,
2243 body: _body, 2235 queryParams: _queryParams,
2244 queryParams: _queryParams, 2236 uploadOptions: _uploadOptions,
2245 uploadOptions: _uploadOptions, 2237 uploadMedia: _uploadMedia,
2246 uploadMedia: _uploadMedia, 2238 downloadOptions: _downloadOptions);
2247 downloadOptions: _downloadOptions);
2248 return _response.then((data) => new SavedAdStyle.fromJson(data)); 2239 return _response.then((data) => new SavedAdStyle.fromJson(data));
2249 } 2240 }
2250 2241
2251 /** 2242 /// List all saved ad styles in the user's account.
2252 * List all saved ad styles in the user's account. 2243 ///
2253 * 2244 /// Request parameters:
2254 * Request parameters: 2245 ///
2255 * 2246 /// [maxResults] - The maximum number of saved ad styles to include in the
2256 * [maxResults] - The maximum number of saved ad styles to include in the 2247 /// response, used for paging.
2257 * response, used for paging. 2248 /// Value must be between "0" and "10000".
2258 * Value must be between "0" and "10000". 2249 ///
2259 * 2250 /// [pageToken] - A continuation token, used to page through saved ad styles.
2260 * [pageToken] - A continuation token, used to page through saved ad styles. 2251 /// To retrieve the next page, set this parameter to the value of
2261 * To retrieve the next page, set this parameter to the value of 2252 /// "nextPageToken" from the previous response.
2262 * "nextPageToken" from the previous response. 2253 ///
2263 * 2254 /// Completes with a [SavedAdStyles].
2264 * Completes with a [SavedAdStyles]. 2255 ///
2265 * 2256 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2266 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2257 /// an error.
2267 * error. 2258 ///
2268 * 2259 /// If the used [http.Client] completes with an error when making a REST
2269 * If the used [http.Client] completes with an error when making a REST call, 2260 /// call, this method will complete with the same error.
2270 * this method will complete with the same error. 2261 async.Future<SavedAdStyles> list(
2271 */ 2262 {core.int maxResults, core.String pageToken}) {
2272 async.Future<SavedAdStyles> list({core.int maxResults, core.String pageToken}) {
2273 var _url = null; 2263 var _url = null;
2274 var _queryParams = new core.Map(); 2264 var _queryParams = new core.Map();
2275 var _uploadMedia = null; 2265 var _uploadMedia = null;
2276 var _uploadOptions = null; 2266 var _uploadOptions = null;
2277 var _downloadOptions = commons.DownloadOptions.Metadata; 2267 var _downloadOptions = commons.DownloadOptions.Metadata;
2278 var _body = null; 2268 var _body = null;
2279 2269
2280 if (maxResults != null) { 2270 if (maxResults != null) {
2281 _queryParams["maxResults"] = ["${maxResults}"]; 2271 _queryParams["maxResults"] = ["${maxResults}"];
2282 } 2272 }
2283 if (pageToken != null) { 2273 if (pageToken != null) {
2284 _queryParams["pageToken"] = [pageToken]; 2274 _queryParams["pageToken"] = [pageToken];
2285 } 2275 }
2286 2276
2287 _url = 'savedadstyles'; 2277 _url = 'savedadstyles';
2288 2278
2289 var _response = _requester.request(_url, 2279 var _response = _requester.request(_url, "GET",
2290 "GET", 2280 body: _body,
2291 body: _body, 2281 queryParams: _queryParams,
2292 queryParams: _queryParams, 2282 uploadOptions: _uploadOptions,
2293 uploadOptions: _uploadOptions, 2283 uploadMedia: _uploadMedia,
2294 uploadMedia: _uploadMedia, 2284 downloadOptions: _downloadOptions);
2295 downloadOptions: _downloadOptions);
2296 return _response.then((data) => new SavedAdStyles.fromJson(data)); 2285 return _response.then((data) => new SavedAdStyles.fromJson(data));
2297 } 2286 }
2298
2299 } 2287 }
2300 2288
2301
2302 class UrlchannelsResourceApi { 2289 class UrlchannelsResourceApi {
2303 final commons.ApiRequester _requester; 2290 final commons.ApiRequester _requester;
2304 2291
2305 UrlchannelsResourceApi(commons.ApiRequester client) : 2292 UrlchannelsResourceApi(commons.ApiRequester client) : _requester = client;
2306 _requester = client;
2307 2293
2308 /** 2294 /// List all URL channels in the specified ad client for this AdSense
2309 * List all URL channels in the specified ad client for this AdSense account. 2295 /// account.
2310 * 2296 ///
2311 * Request parameters: 2297 /// Request parameters:
2312 * 2298 ///
2313 * [adClientId] - Ad client for which to list URL channels. 2299 /// [adClientId] - Ad client for which to list URL channels.
2314 * 2300 ///
2315 * [maxResults] - The maximum number of URL channels to include in the 2301 /// [maxResults] - The maximum number of URL channels to include in the
2316 * response, used for paging. 2302 /// response, used for paging.
2317 * Value must be between "0" and "10000". 2303 /// Value must be between "0" and "10000".
2318 * 2304 ///
2319 * [pageToken] - A continuation token, used to page through URL channels. To 2305 /// [pageToken] - A continuation token, used to page through URL channels. To
2320 * retrieve the next page, set this parameter to the value of "nextPageToken" 2306 /// retrieve the next page, set this parameter to the value of
2321 * from the previous response. 2307 /// "nextPageToken" from the previous response.
2322 * 2308 ///
2323 * Completes with a [UrlChannels]. 2309 /// Completes with a [UrlChannels].
2324 * 2310 ///
2325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2311 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
2326 * error. 2312 /// an error.
2327 * 2313 ///
2328 * If the used [http.Client] completes with an error when making a REST call, 2314 /// If the used [http.Client] completes with an error when making a REST
2329 * this method will complete with the same error. 2315 /// call, this method will complete with the same error.
2330 */ 2316 async.Future<UrlChannels> list(core.String adClientId,
2331 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c ore.String pageToken}) { 2317 {core.int maxResults, core.String pageToken}) {
2332 var _url = null; 2318 var _url = null;
2333 var _queryParams = new core.Map(); 2319 var _queryParams = new core.Map();
2334 var _uploadMedia = null; 2320 var _uploadMedia = null;
2335 var _uploadOptions = null; 2321 var _uploadOptions = null;
2336 var _downloadOptions = commons.DownloadOptions.Metadata; 2322 var _downloadOptions = commons.DownloadOptions.Metadata;
2337 var _body = null; 2323 var _body = null;
2338 2324
2339 if (adClientId == null) { 2325 if (adClientId == null) {
2340 throw new core.ArgumentError("Parameter adClientId is required."); 2326 throw new core.ArgumentError("Parameter adClientId is required.");
2341 } 2327 }
2342 if (maxResults != null) { 2328 if (maxResults != null) {
2343 _queryParams["maxResults"] = ["${maxResults}"]; 2329 _queryParams["maxResults"] = ["${maxResults}"];
2344 } 2330 }
2345 if (pageToken != null) { 2331 if (pageToken != null) {
2346 _queryParams["pageToken"] = [pageToken]; 2332 _queryParams["pageToken"] = [pageToken];
2347 } 2333 }
2348 2334
2349 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlch annels'; 2335 _url = 'adclients/' +
2336 commons.Escaper.ecapeVariable('$adClientId') +
2337 '/urlchannels';
2350 2338
2351 var _response = _requester.request(_url, 2339 var _response = _requester.request(_url, "GET",
2352 "GET", 2340 body: _body,
2353 body: _body, 2341 queryParams: _queryParams,
2354 queryParams: _queryParams, 2342 uploadOptions: _uploadOptions,
2355 uploadOptions: _uploadOptions, 2343 uploadMedia: _uploadMedia,
2356 uploadMedia: _uploadMedia, 2344 downloadOptions: _downloadOptions);
2357 downloadOptions: _downloadOptions);
2358 return _response.then((data) => new UrlChannels.fromJson(data)); 2345 return _response.then((data) => new UrlChannels.fromJson(data));
2359 } 2346 }
2360
2361 } 2347 }
2362 2348
2363
2364
2365 class Account { 2349 class Account {
2366 core.String creationTime; 2350 core.String creationTime;
2367 /** Unique identifier of this account. */ 2351
2352 /// Unique identifier of this account.
2368 core.String id; 2353 core.String id;
2369 /** Kind of resource this is, in this case adsense#account. */ 2354
2355 /// Kind of resource this is, in this case adsense#account.
2370 core.String kind; 2356 core.String kind;
2371 /** Name of this account. */ 2357
2358 /// Name of this account.
2372 core.String name; 2359 core.String name;
2373 /** Whether this account is premium. */ 2360
2361 /// Whether this account is premium.
2374 core.bool premium; 2362 core.bool premium;
2375 /** Sub accounts of the this account. */ 2363
2364 /// Sub accounts of the this account.
2376 core.List<Account> subAccounts; 2365 core.List<Account> subAccounts;
2377 /** AdSense timezone of this account. */ 2366
2367 /// AdSense timezone of this account.
2378 core.String timezone; 2368 core.String timezone;
2379 2369
2380 Account(); 2370 Account();
2381 2371
2382 Account.fromJson(core.Map _json) { 2372 Account.fromJson(core.Map _json) {
2383 if (_json.containsKey("creation_time")) { 2373 if (_json.containsKey("creation_time")) {
2384 creationTime = _json["creation_time"]; 2374 creationTime = _json["creation_time"];
2385 } 2375 }
2386 if (_json.containsKey("id")) { 2376 if (_json.containsKey("id")) {
2387 id = _json["id"]; 2377 id = _json["id"];
2388 } 2378 }
2389 if (_json.containsKey("kind")) { 2379 if (_json.containsKey("kind")) {
2390 kind = _json["kind"]; 2380 kind = _json["kind"];
2391 } 2381 }
2392 if (_json.containsKey("name")) { 2382 if (_json.containsKey("name")) {
2393 name = _json["name"]; 2383 name = _json["name"];
2394 } 2384 }
2395 if (_json.containsKey("premium")) { 2385 if (_json.containsKey("premium")) {
2396 premium = _json["premium"]; 2386 premium = _json["premium"];
2397 } 2387 }
2398 if (_json.containsKey("subAccounts")) { 2388 if (_json.containsKey("subAccounts")) {
2399 subAccounts = _json["subAccounts"].map((value) => new Account.fromJson(val ue)).toList(); 2389 subAccounts = _json["subAccounts"]
2390 .map((value) => new Account.fromJson(value))
2391 .toList();
2400 } 2392 }
2401 if (_json.containsKey("timezone")) { 2393 if (_json.containsKey("timezone")) {
2402 timezone = _json["timezone"]; 2394 timezone = _json["timezone"];
2403 } 2395 }
2404 } 2396 }
2405 2397
2406 core.Map<core.String, core.Object> toJson() { 2398 core.Map<core.String, core.Object> toJson() {
2407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2399 final core.Map<core.String, core.Object> _json =
2400 new core.Map<core.String, core.Object>();
2408 if (creationTime != null) { 2401 if (creationTime != null) {
2409 _json["creation_time"] = creationTime; 2402 _json["creation_time"] = creationTime;
2410 } 2403 }
2411 if (id != null) { 2404 if (id != null) {
2412 _json["id"] = id; 2405 _json["id"] = id;
2413 } 2406 }
2414 if (kind != null) { 2407 if (kind != null) {
2415 _json["kind"] = kind; 2408 _json["kind"] = kind;
2416 } 2409 }
2417 if (name != null) { 2410 if (name != null) {
2418 _json["name"] = name; 2411 _json["name"] = name;
2419 } 2412 }
2420 if (premium != null) { 2413 if (premium != null) {
2421 _json["premium"] = premium; 2414 _json["premium"] = premium;
2422 } 2415 }
2423 if (subAccounts != null) { 2416 if (subAccounts != null) {
2424 _json["subAccounts"] = subAccounts.map((value) => (value).toJson()).toList (); 2417 _json["subAccounts"] =
2418 subAccounts.map((value) => (value).toJson()).toList();
2425 } 2419 }
2426 if (timezone != null) { 2420 if (timezone != null) {
2427 _json["timezone"] = timezone; 2421 _json["timezone"] = timezone;
2428 } 2422 }
2429 return _json; 2423 return _json;
2430 } 2424 }
2431 } 2425 }
2432 2426
2433 class Accounts { 2427 class Accounts {
2434 /** ETag of this response for caching purposes. */ 2428 /// ETag of this response for caching purposes.
2435 core.String etag; 2429 core.String etag;
2436 /** The accounts returned in this list response. */ 2430
2431 /// The accounts returned in this list response.
2437 core.List<Account> items; 2432 core.List<Account> items;
2438 /** Kind of list this is, in this case adsense#accounts. */ 2433
2434 /// Kind of list this is, in this case adsense#accounts.
2439 core.String kind; 2435 core.String kind;
2440 /** 2436
2441 * Continuation token used to page through accounts. To retrieve the next page 2437 /// Continuation token used to page through accounts. To retrieve the next
2442 * of results, set the next request's "pageToken" value to this. 2438 /// page of results, set the next request's "pageToken" value to this.
2443 */
2444 core.String nextPageToken; 2439 core.String nextPageToken;
2445 2440
2446 Accounts(); 2441 Accounts();
2447 2442
2448 Accounts.fromJson(core.Map _json) { 2443 Accounts.fromJson(core.Map _json) {
2449 if (_json.containsKey("etag")) { 2444 if (_json.containsKey("etag")) {
2450 etag = _json["etag"]; 2445 etag = _json["etag"];
2451 } 2446 }
2452 if (_json.containsKey("items")) { 2447 if (_json.containsKey("items")) {
2453 items = _json["items"].map((value) => new Account.fromJson(value)).toList( ); 2448 items =
2449 _json["items"].map((value) => new Account.fromJson(value)).toList();
2454 } 2450 }
2455 if (_json.containsKey("kind")) { 2451 if (_json.containsKey("kind")) {
2456 kind = _json["kind"]; 2452 kind = _json["kind"];
2457 } 2453 }
2458 if (_json.containsKey("nextPageToken")) { 2454 if (_json.containsKey("nextPageToken")) {
2459 nextPageToken = _json["nextPageToken"]; 2455 nextPageToken = _json["nextPageToken"];
2460 } 2456 }
2461 } 2457 }
2462 2458
2463 core.Map<core.String, core.Object> toJson() { 2459 core.Map<core.String, core.Object> toJson() {
2464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2460 final core.Map<core.String, core.Object> _json =
2461 new core.Map<core.String, core.Object>();
2465 if (etag != null) { 2462 if (etag != null) {
2466 _json["etag"] = etag; 2463 _json["etag"] = etag;
2467 } 2464 }
2468 if (items != null) { 2465 if (items != null) {
2469 _json["items"] = items.map((value) => (value).toJson()).toList(); 2466 _json["items"] = items.map((value) => (value).toJson()).toList();
2470 } 2467 }
2471 if (kind != null) { 2468 if (kind != null) {
2472 _json["kind"] = kind; 2469 _json["kind"] = kind;
2473 } 2470 }
2474 if (nextPageToken != null) { 2471 if (nextPageToken != null) {
2475 _json["nextPageToken"] = nextPageToken; 2472 _json["nextPageToken"] = nextPageToken;
2476 } 2473 }
2477 return _json; 2474 return _json;
2478 } 2475 }
2479 } 2476 }
2480 2477
2481 class AdClient { 2478 class AdClient {
2482 /** Whether this ad client is opted in to ARC. */ 2479 /// Whether this ad client is opted in to ARC.
2483 core.bool arcOptIn; 2480 core.bool arcOptIn;
2484 /** Unique identifier of this ad client. */ 2481
2482 /// Unique identifier of this ad client.
2485 core.String id; 2483 core.String id;
2486 /** Kind of resource this is, in this case adsense#adClient. */ 2484
2485 /// Kind of resource this is, in this case adsense#adClient.
2487 core.String kind; 2486 core.String kind;
2488 /** 2487
2489 * This ad client's product code, which corresponds to the PRODUCT_CODE report 2488 /// This ad client's product code, which corresponds to the PRODUCT_CODE
2490 * dimension. 2489 /// report dimension.
2491 */
2492 core.String productCode; 2490 core.String productCode;
2493 /** Whether this ad client supports being reported on. */ 2491
2492 /// Whether this ad client supports being reported on.
2494 core.bool supportsReporting; 2493 core.bool supportsReporting;
2495 2494
2496 AdClient(); 2495 AdClient();
2497 2496
2498 AdClient.fromJson(core.Map _json) { 2497 AdClient.fromJson(core.Map _json) {
2499 if (_json.containsKey("arcOptIn")) { 2498 if (_json.containsKey("arcOptIn")) {
2500 arcOptIn = _json["arcOptIn"]; 2499 arcOptIn = _json["arcOptIn"];
2501 } 2500 }
2502 if (_json.containsKey("id")) { 2501 if (_json.containsKey("id")) {
2503 id = _json["id"]; 2502 id = _json["id"];
2504 } 2503 }
2505 if (_json.containsKey("kind")) { 2504 if (_json.containsKey("kind")) {
2506 kind = _json["kind"]; 2505 kind = _json["kind"];
2507 } 2506 }
2508 if (_json.containsKey("productCode")) { 2507 if (_json.containsKey("productCode")) {
2509 productCode = _json["productCode"]; 2508 productCode = _json["productCode"];
2510 } 2509 }
2511 if (_json.containsKey("supportsReporting")) { 2510 if (_json.containsKey("supportsReporting")) {
2512 supportsReporting = _json["supportsReporting"]; 2511 supportsReporting = _json["supportsReporting"];
2513 } 2512 }
2514 } 2513 }
2515 2514
2516 core.Map<core.String, core.Object> toJson() { 2515 core.Map<core.String, core.Object> toJson() {
2517 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2516 final core.Map<core.String, core.Object> _json =
2517 new core.Map<core.String, core.Object>();
2518 if (arcOptIn != null) { 2518 if (arcOptIn != null) {
2519 _json["arcOptIn"] = arcOptIn; 2519 _json["arcOptIn"] = arcOptIn;
2520 } 2520 }
2521 if (id != null) { 2521 if (id != null) {
2522 _json["id"] = id; 2522 _json["id"] = id;
2523 } 2523 }
2524 if (kind != null) { 2524 if (kind != null) {
2525 _json["kind"] = kind; 2525 _json["kind"] = kind;
2526 } 2526 }
2527 if (productCode != null) { 2527 if (productCode != null) {
2528 _json["productCode"] = productCode; 2528 _json["productCode"] = productCode;
2529 } 2529 }
2530 if (supportsReporting != null) { 2530 if (supportsReporting != null) {
2531 _json["supportsReporting"] = supportsReporting; 2531 _json["supportsReporting"] = supportsReporting;
2532 } 2532 }
2533 return _json; 2533 return _json;
2534 } 2534 }
2535 } 2535 }
2536 2536
2537 class AdClients { 2537 class AdClients {
2538 /** ETag of this response for caching purposes. */ 2538 /// ETag of this response for caching purposes.
2539 core.String etag; 2539 core.String etag;
2540 /** The ad clients returned in this list response. */ 2540
2541 /// The ad clients returned in this list response.
2541 core.List<AdClient> items; 2542 core.List<AdClient> items;
2542 /** Kind of list this is, in this case adsense#adClients. */ 2543
2544 /// Kind of list this is, in this case adsense#adClients.
2543 core.String kind; 2545 core.String kind;
2544 /** 2546
2545 * Continuation token used to page through ad clients. To retrieve the next 2547 /// Continuation token used to page through ad clients. To retrieve the next
2546 * page of results, set the next request's "pageToken" value to this. 2548 /// page of results, set the next request's "pageToken" value to this.
2547 */
2548 core.String nextPageToken; 2549 core.String nextPageToken;
2549 2550
2550 AdClients(); 2551 AdClients();
2551 2552
2552 AdClients.fromJson(core.Map _json) { 2553 AdClients.fromJson(core.Map _json) {
2553 if (_json.containsKey("etag")) { 2554 if (_json.containsKey("etag")) {
2554 etag = _json["etag"]; 2555 etag = _json["etag"];
2555 } 2556 }
2556 if (_json.containsKey("items")) { 2557 if (_json.containsKey("items")) {
2557 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList (); 2558 items =
2559 _json["items"].map((value) => new AdClient.fromJson(value)).toList();
2558 } 2560 }
2559 if (_json.containsKey("kind")) { 2561 if (_json.containsKey("kind")) {
2560 kind = _json["kind"]; 2562 kind = _json["kind"];
2561 } 2563 }
2562 if (_json.containsKey("nextPageToken")) { 2564 if (_json.containsKey("nextPageToken")) {
2563 nextPageToken = _json["nextPageToken"]; 2565 nextPageToken = _json["nextPageToken"];
2564 } 2566 }
2565 } 2567 }
2566 2568
2567 core.Map<core.String, core.Object> toJson() { 2569 core.Map<core.String, core.Object> toJson() {
2568 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2570 final core.Map<core.String, core.Object> _json =
2571 new core.Map<core.String, core.Object>();
2569 if (etag != null) { 2572 if (etag != null) {
2570 _json["etag"] = etag; 2573 _json["etag"] = etag;
2571 } 2574 }
2572 if (items != null) { 2575 if (items != null) {
2573 _json["items"] = items.map((value) => (value).toJson()).toList(); 2576 _json["items"] = items.map((value) => (value).toJson()).toList();
2574 } 2577 }
2575 if (kind != null) { 2578 if (kind != null) {
2576 _json["kind"] = kind; 2579 _json["kind"] = kind;
2577 } 2580 }
2578 if (nextPageToken != null) { 2581 if (nextPageToken != null) {
2579 _json["nextPageToken"] = nextPageToken; 2582 _json["nextPageToken"] = nextPageToken;
2580 } 2583 }
2581 return _json; 2584 return _json;
2582 } 2585 }
2583 } 2586 }
2584 2587
2585 class AdCode { 2588 class AdCode {
2586 /** The ad code snippet. */ 2589 /// The ad code snippet.
2587 core.String adCode; 2590 core.String adCode;
2588 /** Kind this is, in this case adsense#adCode. */ 2591
2592 /// Kind this is, in this case adsense#adCode.
2589 core.String kind; 2593 core.String kind;
2590 2594
2591 AdCode(); 2595 AdCode();
2592 2596
2593 AdCode.fromJson(core.Map _json) { 2597 AdCode.fromJson(core.Map _json) {
2594 if (_json.containsKey("adCode")) { 2598 if (_json.containsKey("adCode")) {
2595 adCode = _json["adCode"]; 2599 adCode = _json["adCode"];
2596 } 2600 }
2597 if (_json.containsKey("kind")) { 2601 if (_json.containsKey("kind")) {
2598 kind = _json["kind"]; 2602 kind = _json["kind"];
2599 } 2603 }
2600 } 2604 }
2601 2605
2602 core.Map<core.String, core.Object> toJson() { 2606 core.Map<core.String, core.Object> toJson() {
2603 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2607 final core.Map<core.String, core.Object> _json =
2608 new core.Map<core.String, core.Object>();
2604 if (adCode != null) { 2609 if (adCode != null) {
2605 _json["adCode"] = adCode; 2610 _json["adCode"] = adCode;
2606 } 2611 }
2607 if (kind != null) { 2612 if (kind != null) {
2608 _json["kind"] = kind; 2613 _json["kind"] = kind;
2609 } 2614 }
2610 return _json; 2615 return _json;
2611 } 2616 }
2612 } 2617 }
2613 2618
2614 /** 2619 /// The colors which are included in the style. These are represented as six
2615 * The colors which are included in the style. These are represented as six 2620 /// hexadecimal characters, similar to HTML color codes, but without the
2616 * hexadecimal characters, similar to HTML color codes, but without the leading 2621 /// leading hash.
2617 * hash.
2618 */
2619 class AdStyleColors { 2622 class AdStyleColors {
2620 /** The color of the ad background. */ 2623 /// The color of the ad background.
2621 core.String background; 2624 core.String background;
2622 /** The color of the ad border. */ 2625
2626 /// The color of the ad border.
2623 core.String border; 2627 core.String border;
2624 /** The color of the ad text. */ 2628
2629 /// The color of the ad text.
2625 core.String text; 2630 core.String text;
2626 /** The color of the ad title. */ 2631
2632 /// The color of the ad title.
2627 core.String title; 2633 core.String title;
2628 /** The color of the ad url. */ 2634
2635 /// The color of the ad url.
2629 core.String url; 2636 core.String url;
2630 2637
2631 AdStyleColors(); 2638 AdStyleColors();
2632 2639
2633 AdStyleColors.fromJson(core.Map _json) { 2640 AdStyleColors.fromJson(core.Map _json) {
2634 if (_json.containsKey("background")) { 2641 if (_json.containsKey("background")) {
2635 background = _json["background"]; 2642 background = _json["background"];
2636 } 2643 }
2637 if (_json.containsKey("border")) { 2644 if (_json.containsKey("border")) {
2638 border = _json["border"]; 2645 border = _json["border"];
2639 } 2646 }
2640 if (_json.containsKey("text")) { 2647 if (_json.containsKey("text")) {
2641 text = _json["text"]; 2648 text = _json["text"];
2642 } 2649 }
2643 if (_json.containsKey("title")) { 2650 if (_json.containsKey("title")) {
2644 title = _json["title"]; 2651 title = _json["title"];
2645 } 2652 }
2646 if (_json.containsKey("url")) { 2653 if (_json.containsKey("url")) {
2647 url = _json["url"]; 2654 url = _json["url"];
2648 } 2655 }
2649 } 2656 }
2650 2657
2651 core.Map<core.String, core.Object> toJson() { 2658 core.Map<core.String, core.Object> toJson() {
2652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2659 final core.Map<core.String, core.Object> _json =
2660 new core.Map<core.String, core.Object>();
2653 if (background != null) { 2661 if (background != null) {
2654 _json["background"] = background; 2662 _json["background"] = background;
2655 } 2663 }
2656 if (border != null) { 2664 if (border != null) {
2657 _json["border"] = border; 2665 _json["border"] = border;
2658 } 2666 }
2659 if (text != null) { 2667 if (text != null) {
2660 _json["text"] = text; 2668 _json["text"] = text;
2661 } 2669 }
2662 if (title != null) { 2670 if (title != null) {
2663 _json["title"] = title; 2671 _json["title"] = title;
2664 } 2672 }
2665 if (url != null) { 2673 if (url != null) {
2666 _json["url"] = url; 2674 _json["url"] = url;
2667 } 2675 }
2668 return _json; 2676 return _json;
2669 } 2677 }
2670 } 2678 }
2671 2679
2672 /** The font which is included in the style. */ 2680 /// The font which is included in the style.
2673 class AdStyleFont { 2681 class AdStyleFont {
2674 /** The family of the font. */ 2682 /// The family of the font.
2675 core.String family; 2683 core.String family;
2676 /** The size of the font. */ 2684
2685 /// The size of the font.
2677 core.String size; 2686 core.String size;
2678 2687
2679 AdStyleFont(); 2688 AdStyleFont();
2680 2689
2681 AdStyleFont.fromJson(core.Map _json) { 2690 AdStyleFont.fromJson(core.Map _json) {
2682 if (_json.containsKey("family")) { 2691 if (_json.containsKey("family")) {
2683 family = _json["family"]; 2692 family = _json["family"];
2684 } 2693 }
2685 if (_json.containsKey("size")) { 2694 if (_json.containsKey("size")) {
2686 size = _json["size"]; 2695 size = _json["size"];
2687 } 2696 }
2688 } 2697 }
2689 2698
2690 core.Map<core.String, core.Object> toJson() { 2699 core.Map<core.String, core.Object> toJson() {
2691 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2700 final core.Map<core.String, core.Object> _json =
2701 new core.Map<core.String, core.Object>();
2692 if (family != null) { 2702 if (family != null) {
2693 _json["family"] = family; 2703 _json["family"] = family;
2694 } 2704 }
2695 if (size != null) { 2705 if (size != null) {
2696 _json["size"] = size; 2706 _json["size"] = size;
2697 } 2707 }
2698 return _json; 2708 return _json;
2699 } 2709 }
2700 } 2710 }
2701 2711
2702 class AdStyle { 2712 class AdStyle {
2703 /** 2713 /// The colors which are included in the style. These are represented as six
2704 * The colors which are included in the style. These are represented as six 2714 /// hexadecimal characters, similar to HTML color codes, but without the
2705 * hexadecimal characters, similar to HTML color codes, but without the 2715 /// leading hash.
2706 * leading hash.
2707 */
2708 AdStyleColors colors; 2716 AdStyleColors colors;
2709 /** 2717
2710 * The style of the corners in the ad (deprecated: never populated, ignored). 2718 /// The style of the corners in the ad (deprecated: never populated,
2711 */ 2719 /// ignored).
2712 core.String corners; 2720 core.String corners;
2713 /** The font which is included in the style. */ 2721
2722 /// The font which is included in the style.
2714 AdStyleFont font; 2723 AdStyleFont font;
2715 /** Kind this is, in this case adsense#adStyle. */ 2724
2725 /// Kind this is, in this case adsense#adStyle.
2716 core.String kind; 2726 core.String kind;
2717 2727
2718 AdStyle(); 2728 AdStyle();
2719 2729
2720 AdStyle.fromJson(core.Map _json) { 2730 AdStyle.fromJson(core.Map _json) {
2721 if (_json.containsKey("colors")) { 2731 if (_json.containsKey("colors")) {
2722 colors = new AdStyleColors.fromJson(_json["colors"]); 2732 colors = new AdStyleColors.fromJson(_json["colors"]);
2723 } 2733 }
2724 if (_json.containsKey("corners")) { 2734 if (_json.containsKey("corners")) {
2725 corners = _json["corners"]; 2735 corners = _json["corners"];
2726 } 2736 }
2727 if (_json.containsKey("font")) { 2737 if (_json.containsKey("font")) {
2728 font = new AdStyleFont.fromJson(_json["font"]); 2738 font = new AdStyleFont.fromJson(_json["font"]);
2729 } 2739 }
2730 if (_json.containsKey("kind")) { 2740 if (_json.containsKey("kind")) {
2731 kind = _json["kind"]; 2741 kind = _json["kind"];
2732 } 2742 }
2733 } 2743 }
2734 2744
2735 core.Map<core.String, core.Object> toJson() { 2745 core.Map<core.String, core.Object> toJson() {
2736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2746 final core.Map<core.String, core.Object> _json =
2747 new core.Map<core.String, core.Object>();
2737 if (colors != null) { 2748 if (colors != null) {
2738 _json["colors"] = (colors).toJson(); 2749 _json["colors"] = (colors).toJson();
2739 } 2750 }
2740 if (corners != null) { 2751 if (corners != null) {
2741 _json["corners"] = corners; 2752 _json["corners"] = corners;
2742 } 2753 }
2743 if (font != null) { 2754 if (font != null) {
2744 _json["font"] = (font).toJson(); 2755 _json["font"] = (font).toJson();
2745 } 2756 }
2746 if (kind != null) { 2757 if (kind != null) {
2747 _json["kind"] = kind; 2758 _json["kind"] = kind;
2748 } 2759 }
2749 return _json; 2760 return _json;
2750 } 2761 }
2751 } 2762 }
2752 2763
2753 /** The backup option to be used in instances where no ad is available. */ 2764 /// The backup option to be used in instances where no ad is available.
2754 class AdUnitContentAdsSettingsBackupOption { 2765 class AdUnitContentAdsSettingsBackupOption {
2755 /** Color to use when type is set to COLOR. */ 2766 /// Color to use when type is set to COLOR.
2756 core.String color; 2767 core.String color;
2757 /** Type of the backup option. Possible values are BLANK, COLOR and URL. */ 2768
2769 /// Type of the backup option. Possible values are BLANK, COLOR and URL.
2758 core.String type; 2770 core.String type;
2759 /** URL to use when type is set to URL. */ 2771
2772 /// URL to use when type is set to URL.
2760 core.String url; 2773 core.String url;
2761 2774
2762 AdUnitContentAdsSettingsBackupOption(); 2775 AdUnitContentAdsSettingsBackupOption();
2763 2776
2764 AdUnitContentAdsSettingsBackupOption.fromJson(core.Map _json) { 2777 AdUnitContentAdsSettingsBackupOption.fromJson(core.Map _json) {
2765 if (_json.containsKey("color")) { 2778 if (_json.containsKey("color")) {
2766 color = _json["color"]; 2779 color = _json["color"];
2767 } 2780 }
2768 if (_json.containsKey("type")) { 2781 if (_json.containsKey("type")) {
2769 type = _json["type"]; 2782 type = _json["type"];
2770 } 2783 }
2771 if (_json.containsKey("url")) { 2784 if (_json.containsKey("url")) {
2772 url = _json["url"]; 2785 url = _json["url"];
2773 } 2786 }
2774 } 2787 }
2775 2788
2776 core.Map<core.String, core.Object> toJson() { 2789 core.Map<core.String, core.Object> toJson() {
2777 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2790 final core.Map<core.String, core.Object> _json =
2791 new core.Map<core.String, core.Object>();
2778 if (color != null) { 2792 if (color != null) {
2779 _json["color"] = color; 2793 _json["color"] = color;
2780 } 2794 }
2781 if (type != null) { 2795 if (type != null) {
2782 _json["type"] = type; 2796 _json["type"] = type;
2783 } 2797 }
2784 if (url != null) { 2798 if (url != null) {
2785 _json["url"] = url; 2799 _json["url"] = url;
2786 } 2800 }
2787 return _json; 2801 return _json;
2788 } 2802 }
2789 } 2803 }
2790 2804
2791 /** 2805 /// Settings specific to content ads (AFC) and highend mobile content ads (AFMC
2792 * Settings specific to content ads (AFC) and highend mobile content ads (AFMC - 2806 /// - deprecated).
2793 * deprecated).
2794 */
2795 class AdUnitContentAdsSettings { 2807 class AdUnitContentAdsSettings {
2796 /** The backup option to be used in instances where no ad is available. */ 2808 /// The backup option to be used in instances where no ad is available.
2797 AdUnitContentAdsSettingsBackupOption backupOption; 2809 AdUnitContentAdsSettingsBackupOption backupOption;
2798 /** Size of this ad unit. */ 2810
2811 /// Size of this ad unit.
2799 core.String size; 2812 core.String size;
2800 /** Type of this ad unit. */ 2813
2814 /// Type of this ad unit.
2801 core.String type; 2815 core.String type;
2802 2816
2803 AdUnitContentAdsSettings(); 2817 AdUnitContentAdsSettings();
2804 2818
2805 AdUnitContentAdsSettings.fromJson(core.Map _json) { 2819 AdUnitContentAdsSettings.fromJson(core.Map _json) {
2806 if (_json.containsKey("backupOption")) { 2820 if (_json.containsKey("backupOption")) {
2807 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(_json["ba ckupOption"]); 2821 backupOption = new AdUnitContentAdsSettingsBackupOption.fromJson(
2822 _json["backupOption"]);
2808 } 2823 }
2809 if (_json.containsKey("size")) { 2824 if (_json.containsKey("size")) {
2810 size = _json["size"]; 2825 size = _json["size"];
2811 } 2826 }
2812 if (_json.containsKey("type")) { 2827 if (_json.containsKey("type")) {
2813 type = _json["type"]; 2828 type = _json["type"];
2814 } 2829 }
2815 } 2830 }
2816 2831
2817 core.Map<core.String, core.Object> toJson() { 2832 core.Map<core.String, core.Object> toJson() {
2818 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2833 final core.Map<core.String, core.Object> _json =
2834 new core.Map<core.String, core.Object>();
2819 if (backupOption != null) { 2835 if (backupOption != null) {
2820 _json["backupOption"] = (backupOption).toJson(); 2836 _json["backupOption"] = (backupOption).toJson();
2821 } 2837 }
2822 if (size != null) { 2838 if (size != null) {
2823 _json["size"] = size; 2839 _json["size"] = size;
2824 } 2840 }
2825 if (type != null) { 2841 if (type != null) {
2826 _json["type"] = type; 2842 _json["type"] = type;
2827 } 2843 }
2828 return _json; 2844 return _json;
2829 } 2845 }
2830 } 2846 }
2831 2847
2832 /** Settings specific to feed ads (AFF) - deprecated. */ 2848 /// Settings specific to feed ads (AFF) - deprecated.
2833 class AdUnitFeedAdsSettings { 2849 class AdUnitFeedAdsSettings {
2834 /** The position of the ads relative to the feed entries. */ 2850 /// The position of the ads relative to the feed entries.
2835 core.String adPosition; 2851 core.String adPosition;
2836 /** 2852
2837 * The frequency at which ads should appear in the feed (i.e. every N 2853 /// The frequency at which ads should appear in the feed (i.e. every N
2838 * entries). 2854 /// entries).
2839 */
2840 core.int frequency; 2855 core.int frequency;
2841 /** The minimum length an entry should be in order to have attached ads. */ 2856
2857 /// The minimum length an entry should be in order to have attached ads.
2842 core.int minimumWordCount; 2858 core.int minimumWordCount;
2843 /** The type of ads which should appear. */ 2859
2860 /// The type of ads which should appear.
2844 core.String type; 2861 core.String type;
2845 2862
2846 AdUnitFeedAdsSettings(); 2863 AdUnitFeedAdsSettings();
2847 2864
2848 AdUnitFeedAdsSettings.fromJson(core.Map _json) { 2865 AdUnitFeedAdsSettings.fromJson(core.Map _json) {
2849 if (_json.containsKey("adPosition")) { 2866 if (_json.containsKey("adPosition")) {
2850 adPosition = _json["adPosition"]; 2867 adPosition = _json["adPosition"];
2851 } 2868 }
2852 if (_json.containsKey("frequency")) { 2869 if (_json.containsKey("frequency")) {
2853 frequency = _json["frequency"]; 2870 frequency = _json["frequency"];
2854 } 2871 }
2855 if (_json.containsKey("minimumWordCount")) { 2872 if (_json.containsKey("minimumWordCount")) {
2856 minimumWordCount = _json["minimumWordCount"]; 2873 minimumWordCount = _json["minimumWordCount"];
2857 } 2874 }
2858 if (_json.containsKey("type")) { 2875 if (_json.containsKey("type")) {
2859 type = _json["type"]; 2876 type = _json["type"];
2860 } 2877 }
2861 } 2878 }
2862 2879
2863 core.Map<core.String, core.Object> toJson() { 2880 core.Map<core.String, core.Object> toJson() {
2864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2881 final core.Map<core.String, core.Object> _json =
2882 new core.Map<core.String, core.Object>();
2865 if (adPosition != null) { 2883 if (adPosition != null) {
2866 _json["adPosition"] = adPosition; 2884 _json["adPosition"] = adPosition;
2867 } 2885 }
2868 if (frequency != null) { 2886 if (frequency != null) {
2869 _json["frequency"] = frequency; 2887 _json["frequency"] = frequency;
2870 } 2888 }
2871 if (minimumWordCount != null) { 2889 if (minimumWordCount != null) {
2872 _json["minimumWordCount"] = minimumWordCount; 2890 _json["minimumWordCount"] = minimumWordCount;
2873 } 2891 }
2874 if (type != null) { 2892 if (type != null) {
2875 _json["type"] = type; 2893 _json["type"] = type;
2876 } 2894 }
2877 return _json; 2895 return _json;
2878 } 2896 }
2879 } 2897 }
2880 2898
2881 /** Settings specific to WAP mobile content ads (AFMC) - deprecated. */ 2899 /// Settings specific to WAP mobile content ads (AFMC) - deprecated.
2882 class AdUnitMobileContentAdsSettings { 2900 class AdUnitMobileContentAdsSettings {
2883 /** The markup language to use for this ad unit. */ 2901 /// The markup language to use for this ad unit.
2884 core.String markupLanguage; 2902 core.String markupLanguage;
2885 /** The scripting language to use for this ad unit. */ 2903
2904 /// The scripting language to use for this ad unit.
2886 core.String scriptingLanguage; 2905 core.String scriptingLanguage;
2887 /** Size of this ad unit. */ 2906
2907 /// Size of this ad unit.
2888 core.String size; 2908 core.String size;
2889 /** Type of this ad unit. */ 2909
2910 /// Type of this ad unit.
2890 core.String type; 2911 core.String type;
2891 2912
2892 AdUnitMobileContentAdsSettings(); 2913 AdUnitMobileContentAdsSettings();
2893 2914
2894 AdUnitMobileContentAdsSettings.fromJson(core.Map _json) { 2915 AdUnitMobileContentAdsSettings.fromJson(core.Map _json) {
2895 if (_json.containsKey("markupLanguage")) { 2916 if (_json.containsKey("markupLanguage")) {
2896 markupLanguage = _json["markupLanguage"]; 2917 markupLanguage = _json["markupLanguage"];
2897 } 2918 }
2898 if (_json.containsKey("scriptingLanguage")) { 2919 if (_json.containsKey("scriptingLanguage")) {
2899 scriptingLanguage = _json["scriptingLanguage"]; 2920 scriptingLanguage = _json["scriptingLanguage"];
2900 } 2921 }
2901 if (_json.containsKey("size")) { 2922 if (_json.containsKey("size")) {
2902 size = _json["size"]; 2923 size = _json["size"];
2903 } 2924 }
2904 if (_json.containsKey("type")) { 2925 if (_json.containsKey("type")) {
2905 type = _json["type"]; 2926 type = _json["type"];
2906 } 2927 }
2907 } 2928 }
2908 2929
2909 core.Map<core.String, core.Object> toJson() { 2930 core.Map<core.String, core.Object> toJson() {
2910 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2931 final core.Map<core.String, core.Object> _json =
2932 new core.Map<core.String, core.Object>();
2911 if (markupLanguage != null) { 2933 if (markupLanguage != null) {
2912 _json["markupLanguage"] = markupLanguage; 2934 _json["markupLanguage"] = markupLanguage;
2913 } 2935 }
2914 if (scriptingLanguage != null) { 2936 if (scriptingLanguage != null) {
2915 _json["scriptingLanguage"] = scriptingLanguage; 2937 _json["scriptingLanguage"] = scriptingLanguage;
2916 } 2938 }
2917 if (size != null) { 2939 if (size != null) {
2918 _json["size"] = size; 2940 _json["size"] = size;
2919 } 2941 }
2920 if (type != null) { 2942 if (type != null) {
2921 _json["type"] = type; 2943 _json["type"] = type;
2922 } 2944 }
2923 return _json; 2945 return _json;
2924 } 2946 }
2925 } 2947 }
2926 2948
2927 class AdUnit { 2949 class AdUnit {
2928 /** 2950 /// Identity code of this ad unit, not necessarily unique across ad clients.
2929 * Identity code of this ad unit, not necessarily unique across ad clients.
2930 */
2931 core.String code; 2951 core.String code;
2932 /** 2952
2933 * Settings specific to content ads (AFC) and highend mobile content ads (AFMC 2953 /// Settings specific to content ads (AFC) and highend mobile content ads
2934 * - deprecated). 2954 /// (AFMC - deprecated).
2935 */
2936 AdUnitContentAdsSettings contentAdsSettings; 2955 AdUnitContentAdsSettings contentAdsSettings;
2937 /** Custom style information specific to this ad unit. */ 2956
2957 /// Custom style information specific to this ad unit.
2938 AdStyle customStyle; 2958 AdStyle customStyle;
2939 /** Settings specific to feed ads (AFF) - deprecated. */ 2959
2960 /// Settings specific to feed ads (AFF) - deprecated.
2940 AdUnitFeedAdsSettings feedAdsSettings; 2961 AdUnitFeedAdsSettings feedAdsSettings;
2941 /** 2962
2942 * Unique identifier of this ad unit. This should be considered an opaque 2963 /// Unique identifier of this ad unit. This should be considered an opaque
2943 * identifier; it is not safe to rely on it being in any particular format. 2964 /// identifier; it is not safe to rely on it being in any particular format.
2944 */
2945 core.String id; 2965 core.String id;
2946 /** Kind of resource this is, in this case adsense#adUnit. */ 2966
2967 /// Kind of resource this is, in this case adsense#adUnit.
2947 core.String kind; 2968 core.String kind;
2948 /** Settings specific to WAP mobile content ads (AFMC) - deprecated. */ 2969
2970 /// Settings specific to WAP mobile content ads (AFMC) - deprecated.
2949 AdUnitMobileContentAdsSettings mobileContentAdsSettings; 2971 AdUnitMobileContentAdsSettings mobileContentAdsSettings;
2950 /** Name of this ad unit. */ 2972
2973 /// Name of this ad unit.
2951 core.String name; 2974 core.String name;
2952 /** ID of the saved ad style which holds this ad unit's style information. */ 2975
2976 /// ID of the saved ad style which holds this ad unit's style information.
2953 core.String savedStyleId; 2977 core.String savedStyleId;
2954 /** 2978
2955 * Status of this ad unit. Possible values are: 2979 /// Status of this ad unit. Possible values are:
2956 * NEW: Indicates that the ad unit was created within the last seven days and 2980 /// NEW: Indicates that the ad unit was created within the last seven days
2957 * does not yet have any activity associated with it. 2981 /// and does not yet have any activity associated with it.
2958 * 2982 ///
2959 * ACTIVE: Indicates that there has been activity on this ad unit in the last 2983 /// ACTIVE: Indicates that there has been activity on this ad unit in the
2960 * seven days. 2984 /// last seven days.
2961 * 2985 ///
2962 * INACTIVE: Indicates that there has been no activity on this ad unit in the 2986 /// INACTIVE: Indicates that there has been no activity on this ad unit in
2963 * last seven days. 2987 /// the last seven days.
2964 */
2965 core.String status; 2988 core.String status;
2966 2989
2967 AdUnit(); 2990 AdUnit();
2968 2991
2969 AdUnit.fromJson(core.Map _json) { 2992 AdUnit.fromJson(core.Map _json) {
2970 if (_json.containsKey("code")) { 2993 if (_json.containsKey("code")) {
2971 code = _json["code"]; 2994 code = _json["code"];
2972 } 2995 }
2973 if (_json.containsKey("contentAdsSettings")) { 2996 if (_json.containsKey("contentAdsSettings")) {
2974 contentAdsSettings = new AdUnitContentAdsSettings.fromJson(_json["contentA dsSettings"]); 2997 contentAdsSettings =
2998 new AdUnitContentAdsSettings.fromJson(_json["contentAdsSettings"]);
2975 } 2999 }
2976 if (_json.containsKey("customStyle")) { 3000 if (_json.containsKey("customStyle")) {
2977 customStyle = new AdStyle.fromJson(_json["customStyle"]); 3001 customStyle = new AdStyle.fromJson(_json["customStyle"]);
2978 } 3002 }
2979 if (_json.containsKey("feedAdsSettings")) { 3003 if (_json.containsKey("feedAdsSettings")) {
2980 feedAdsSettings = new AdUnitFeedAdsSettings.fromJson(_json["feedAdsSetting s"]); 3004 feedAdsSettings =
3005 new AdUnitFeedAdsSettings.fromJson(_json["feedAdsSettings"]);
2981 } 3006 }
2982 if (_json.containsKey("id")) { 3007 if (_json.containsKey("id")) {
2983 id = _json["id"]; 3008 id = _json["id"];
2984 } 3009 }
2985 if (_json.containsKey("kind")) { 3010 if (_json.containsKey("kind")) {
2986 kind = _json["kind"]; 3011 kind = _json["kind"];
2987 } 3012 }
2988 if (_json.containsKey("mobileContentAdsSettings")) { 3013 if (_json.containsKey("mobileContentAdsSettings")) {
2989 mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(_js on["mobileContentAdsSettings"]); 3014 mobileContentAdsSettings = new AdUnitMobileContentAdsSettings.fromJson(
3015 _json["mobileContentAdsSettings"]);
2990 } 3016 }
2991 if (_json.containsKey("name")) { 3017 if (_json.containsKey("name")) {
2992 name = _json["name"]; 3018 name = _json["name"];
2993 } 3019 }
2994 if (_json.containsKey("savedStyleId")) { 3020 if (_json.containsKey("savedStyleId")) {
2995 savedStyleId = _json["savedStyleId"]; 3021 savedStyleId = _json["savedStyleId"];
2996 } 3022 }
2997 if (_json.containsKey("status")) { 3023 if (_json.containsKey("status")) {
2998 status = _json["status"]; 3024 status = _json["status"];
2999 } 3025 }
3000 } 3026 }
3001 3027
3002 core.Map<core.String, core.Object> toJson() { 3028 core.Map<core.String, core.Object> toJson() {
3003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3029 final core.Map<core.String, core.Object> _json =
3030 new core.Map<core.String, core.Object>();
3004 if (code != null) { 3031 if (code != null) {
3005 _json["code"] = code; 3032 _json["code"] = code;
3006 } 3033 }
3007 if (contentAdsSettings != null) { 3034 if (contentAdsSettings != null) {
3008 _json["contentAdsSettings"] = (contentAdsSettings).toJson(); 3035 _json["contentAdsSettings"] = (contentAdsSettings).toJson();
3009 } 3036 }
3010 if (customStyle != null) { 3037 if (customStyle != null) {
3011 _json["customStyle"] = (customStyle).toJson(); 3038 _json["customStyle"] = (customStyle).toJson();
3012 } 3039 }
3013 if (feedAdsSettings != null) { 3040 if (feedAdsSettings != null) {
(...skipping 15 matching lines...) Expand all
3029 _json["savedStyleId"] = savedStyleId; 3056 _json["savedStyleId"] = savedStyleId;
3030 } 3057 }
3031 if (status != null) { 3058 if (status != null) {
3032 _json["status"] = status; 3059 _json["status"] = status;
3033 } 3060 }
3034 return _json; 3061 return _json;
3035 } 3062 }
3036 } 3063 }
3037 3064
3038 class AdUnits { 3065 class AdUnits {
3039 /** ETag of this response for caching purposes. */ 3066 /// ETag of this response for caching purposes.
3040 core.String etag; 3067 core.String etag;
3041 /** The ad units returned in this list response. */ 3068
3069 /// The ad units returned in this list response.
3042 core.List<AdUnit> items; 3070 core.List<AdUnit> items;
3043 /** Kind of list this is, in this case adsense#adUnits. */ 3071
3072 /// Kind of list this is, in this case adsense#adUnits.
3044 core.String kind; 3073 core.String kind;
3045 /** 3074
3046 * Continuation token used to page through ad units. To retrieve the next page 3075 /// Continuation token used to page through ad units. To retrieve the next
3047 * of results, set the next request's "pageToken" value to this. 3076 /// page of results, set the next request's "pageToken" value to this.
3048 */
3049 core.String nextPageToken; 3077 core.String nextPageToken;
3050 3078
3051 AdUnits(); 3079 AdUnits();
3052 3080
3053 AdUnits.fromJson(core.Map _json) { 3081 AdUnits.fromJson(core.Map _json) {
3054 if (_json.containsKey("etag")) { 3082 if (_json.containsKey("etag")) {
3055 etag = _json["etag"]; 3083 etag = _json["etag"];
3056 } 3084 }
3057 if (_json.containsKey("items")) { 3085 if (_json.containsKey("items")) {
3058 items = _json["items"].map((value) => new AdUnit.fromJson(value)).toList() ; 3086 items =
3087 _json["items"].map((value) => new AdUnit.fromJson(value)).toList();
3059 } 3088 }
3060 if (_json.containsKey("kind")) { 3089 if (_json.containsKey("kind")) {
3061 kind = _json["kind"]; 3090 kind = _json["kind"];
3062 } 3091 }
3063 if (_json.containsKey("nextPageToken")) { 3092 if (_json.containsKey("nextPageToken")) {
3064 nextPageToken = _json["nextPageToken"]; 3093 nextPageToken = _json["nextPageToken"];
3065 } 3094 }
3066 } 3095 }
3067 3096
3068 core.Map<core.String, core.Object> toJson() { 3097 core.Map<core.String, core.Object> toJson() {
3069 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3098 final core.Map<core.String, core.Object> _json =
3099 new core.Map<core.String, core.Object>();
3070 if (etag != null) { 3100 if (etag != null) {
3071 _json["etag"] = etag; 3101 _json["etag"] = etag;
3072 } 3102 }
3073 if (items != null) { 3103 if (items != null) {
3074 _json["items"] = items.map((value) => (value).toJson()).toList(); 3104 _json["items"] = items.map((value) => (value).toJson()).toList();
3075 } 3105 }
3076 if (kind != null) { 3106 if (kind != null) {
3077 _json["kind"] = kind; 3107 _json["kind"] = kind;
3078 } 3108 }
3079 if (nextPageToken != null) { 3109 if (nextPageToken != null) {
3080 _json["nextPageToken"] = nextPageToken; 3110 _json["nextPageToken"] = nextPageToken;
3081 } 3111 }
3082 return _json; 3112 return _json;
3083 } 3113 }
3084 } 3114 }
3085 3115
3086 class AdsenseReportsGenerateResponseHeaders { 3116 class AdsenseReportsGenerateResponseHeaders {
3087 /** 3117 /// The currency of this column. Only present if the header type is
3088 * The currency of this column. Only present if the header type is 3118 /// METRIC_CURRENCY.
3089 * METRIC_CURRENCY.
3090 */
3091 core.String currency; 3119 core.String currency;
3092 /** The name of the header. */ 3120
3121 /// The name of the header.
3093 core.String name; 3122 core.String name;
3094 /** 3123
3095 * The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or 3124 /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
3096 * METRIC_CURRENCY. 3125 /// METRIC_CURRENCY.
3097 */
3098 core.String type; 3126 core.String type;
3099 3127
3100 AdsenseReportsGenerateResponseHeaders(); 3128 AdsenseReportsGenerateResponseHeaders();
3101 3129
3102 AdsenseReportsGenerateResponseHeaders.fromJson(core.Map _json) { 3130 AdsenseReportsGenerateResponseHeaders.fromJson(core.Map _json) {
3103 if (_json.containsKey("currency")) { 3131 if (_json.containsKey("currency")) {
3104 currency = _json["currency"]; 3132 currency = _json["currency"];
3105 } 3133 }
3106 if (_json.containsKey("name")) { 3134 if (_json.containsKey("name")) {
3107 name = _json["name"]; 3135 name = _json["name"];
3108 } 3136 }
3109 if (_json.containsKey("type")) { 3137 if (_json.containsKey("type")) {
3110 type = _json["type"]; 3138 type = _json["type"];
3111 } 3139 }
3112 } 3140 }
3113 3141
3114 core.Map<core.String, core.Object> toJson() { 3142 core.Map<core.String, core.Object> toJson() {
3115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3143 final core.Map<core.String, core.Object> _json =
3144 new core.Map<core.String, core.Object>();
3116 if (currency != null) { 3145 if (currency != null) {
3117 _json["currency"] = currency; 3146 _json["currency"] = currency;
3118 } 3147 }
3119 if (name != null) { 3148 if (name != null) {
3120 _json["name"] = name; 3149 _json["name"] = name;
3121 } 3150 }
3122 if (type != null) { 3151 if (type != null) {
3123 _json["type"] = type; 3152 _json["type"] = type;
3124 } 3153 }
3125 return _json; 3154 return _json;
3126 } 3155 }
3127 } 3156 }
3128 3157
3129 class AdsenseReportsGenerateResponse { 3158 class AdsenseReportsGenerateResponse {
3130 /** 3159 /// The averages of the report. This is the same length as any other row in
3131 * The averages of the report. This is the same length as any other row in the 3160 /// the report; cells corresponding to dimension columns are empty.
3132 * report; cells corresponding to dimension columns are empty.
3133 */
3134 core.List<core.String> averages; 3161 core.List<core.String> averages;
3135 /** The requested end date in yyyy-mm-dd format. */ 3162
3163 /// The requested end date in yyyy-mm-dd format.
3136 core.String endDate; 3164 core.String endDate;
3137 /** 3165
3138 * The header information of the columns requested in the report. This is a 3166 /// The header information of the columns requested in the report. This is a
3139 * list of headers; one for each dimension in the request, followed by one for 3167 /// list of headers; one for each dimension in the request, followed by one
3140 * each metric in the request. 3168 /// for each metric in the request.
3141 */
3142 core.List<AdsenseReportsGenerateResponseHeaders> headers; 3169 core.List<AdsenseReportsGenerateResponseHeaders> headers;
3143 /** Kind this is, in this case adsense#report. */ 3170
3171 /// Kind this is, in this case adsense#report.
3144 core.String kind; 3172 core.String kind;
3145 /** 3173
3146 * The output rows of the report. Each row is a list of cells; one for each 3174 /// The output rows of the report. Each row is a list of cells; one for each
3147 * dimension in the request, followed by one for each metric in the request. 3175 /// dimension in the request, followed by one for each metric in the request.
3148 * The dimension cells contain strings, and the metric cells contain numbers. 3176 /// The dimension cells contain strings, and the metric cells contain
3149 */ 3177 /// numbers.
3150 core.List<core.List<core.String>> rows; 3178 core.List<core.List<core.String>> rows;
3151 /** The requested start date in yyyy-mm-dd format. */ 3179
3180 /// The requested start date in yyyy-mm-dd format.
3152 core.String startDate; 3181 core.String startDate;
3153 /** 3182
3154 * The total number of rows matched by the report request. Fewer rows may be 3183 /// The total number of rows matched by the report request. Fewer rows may be
3155 * returned in the response due to being limited by the row count requested or 3184 /// returned in the response due to being limited by the row count requested
3156 * the report row limit. 3185 /// or the report row limit.
3157 */
3158 core.String totalMatchedRows; 3186 core.String totalMatchedRows;
3159 /** 3187
3160 * The totals of the report. This is the same length as any other row in the 3188 /// The totals of the report. This is the same length as any other row in the
3161 * report; cells corresponding to dimension columns are empty. 3189 /// report; cells corresponding to dimension columns are empty.
3162 */
3163 core.List<core.String> totals; 3190 core.List<core.String> totals;
3164 /** Any warnings associated with generation of the report. */ 3191
3192 /// Any warnings associated with generation of the report.
3165 core.List<core.String> warnings; 3193 core.List<core.String> warnings;
3166 3194
3167 AdsenseReportsGenerateResponse(); 3195 AdsenseReportsGenerateResponse();
3168 3196
3169 AdsenseReportsGenerateResponse.fromJson(core.Map _json) { 3197 AdsenseReportsGenerateResponse.fromJson(core.Map _json) {
3170 if (_json.containsKey("averages")) { 3198 if (_json.containsKey("averages")) {
3171 averages = _json["averages"]; 3199 averages = _json["averages"];
3172 } 3200 }
3173 if (_json.containsKey("endDate")) { 3201 if (_json.containsKey("endDate")) {
3174 endDate = _json["endDate"]; 3202 endDate = _json["endDate"];
3175 } 3203 }
3176 if (_json.containsKey("headers")) { 3204 if (_json.containsKey("headers")) {
3177 headers = _json["headers"].map((value) => new AdsenseReportsGenerateRespon seHeaders.fromJson(value)).toList(); 3205 headers = _json["headers"]
3206 .map((value) =>
3207 new AdsenseReportsGenerateResponseHeaders.fromJson(value))
3208 .toList();
3178 } 3209 }
3179 if (_json.containsKey("kind")) { 3210 if (_json.containsKey("kind")) {
3180 kind = _json["kind"]; 3211 kind = _json["kind"];
3181 } 3212 }
3182 if (_json.containsKey("rows")) { 3213 if (_json.containsKey("rows")) {
3183 rows = _json["rows"]; 3214 rows = _json["rows"];
3184 } 3215 }
3185 if (_json.containsKey("startDate")) { 3216 if (_json.containsKey("startDate")) {
3186 startDate = _json["startDate"]; 3217 startDate = _json["startDate"];
3187 } 3218 }
3188 if (_json.containsKey("totalMatchedRows")) { 3219 if (_json.containsKey("totalMatchedRows")) {
3189 totalMatchedRows = _json["totalMatchedRows"]; 3220 totalMatchedRows = _json["totalMatchedRows"];
3190 } 3221 }
3191 if (_json.containsKey("totals")) { 3222 if (_json.containsKey("totals")) {
3192 totals = _json["totals"]; 3223 totals = _json["totals"];
3193 } 3224 }
3194 if (_json.containsKey("warnings")) { 3225 if (_json.containsKey("warnings")) {
3195 warnings = _json["warnings"]; 3226 warnings = _json["warnings"];
3196 } 3227 }
3197 } 3228 }
3198 3229
3199 core.Map<core.String, core.Object> toJson() { 3230 core.Map<core.String, core.Object> toJson() {
3200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3231 final core.Map<core.String, core.Object> _json =
3232 new core.Map<core.String, core.Object>();
3201 if (averages != null) { 3233 if (averages != null) {
3202 _json["averages"] = averages; 3234 _json["averages"] = averages;
3203 } 3235 }
3204 if (endDate != null) { 3236 if (endDate != null) {
3205 _json["endDate"] = endDate; 3237 _json["endDate"] = endDate;
3206 } 3238 }
3207 if (headers != null) { 3239 if (headers != null) {
3208 _json["headers"] = headers.map((value) => (value).toJson()).toList(); 3240 _json["headers"] = headers.map((value) => (value).toJson()).toList();
3209 } 3241 }
3210 if (kind != null) { 3242 if (kind != null) {
(...skipping 12 matching lines...) Expand all
3223 _json["totals"] = totals; 3255 _json["totals"] = totals;
3224 } 3256 }
3225 if (warnings != null) { 3257 if (warnings != null) {
3226 _json["warnings"] = warnings; 3258 _json["warnings"] = warnings;
3227 } 3259 }
3228 return _json; 3260 return _json;
3229 } 3261 }
3230 } 3262 }
3231 3263
3232 class Alert { 3264 class Alert {
3233 /** 3265 /// Unique identifier of this alert. This should be considered an opaque
3234 * Unique identifier of this alert. This should be considered an opaque 3266 /// identifier; it is not safe to rely on it being in any particular format.
3235 * identifier; it is not safe to rely on it being in any particular format.
3236 */
3237 core.String id; 3267 core.String id;
3238 /** Whether this alert can be dismissed. */ 3268
3269 /// Whether this alert can be dismissed.
3239 core.bool isDismissible; 3270 core.bool isDismissible;
3240 /** Kind of resource this is, in this case adsense#alert. */ 3271
3272 /// Kind of resource this is, in this case adsense#alert.
3241 core.String kind; 3273 core.String kind;
3242 /** The localized alert message. */ 3274
3275 /// The localized alert message.
3243 core.String message; 3276 core.String message;
3244 /** Severity of this alert. Possible values: INFO, WARNING, SEVERE. */ 3277
3278 /// Severity of this alert. Possible values: INFO, WARNING, SEVERE.
3245 core.String severity; 3279 core.String severity;
3246 /** 3280
3247 * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, 3281 /// Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
3248 * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, 3282 /// ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
3249 * GRAYLISTED_PUBLISHER, API_HOLD. 3283 /// GRAYLISTED_PUBLISHER, API_HOLD.
3250 */
3251 core.String type; 3284 core.String type;
3252 3285
3253 Alert(); 3286 Alert();
3254 3287
3255 Alert.fromJson(core.Map _json) { 3288 Alert.fromJson(core.Map _json) {
3256 if (_json.containsKey("id")) { 3289 if (_json.containsKey("id")) {
3257 id = _json["id"]; 3290 id = _json["id"];
3258 } 3291 }
3259 if (_json.containsKey("isDismissible")) { 3292 if (_json.containsKey("isDismissible")) {
3260 isDismissible = _json["isDismissible"]; 3293 isDismissible = _json["isDismissible"];
3261 } 3294 }
3262 if (_json.containsKey("kind")) { 3295 if (_json.containsKey("kind")) {
3263 kind = _json["kind"]; 3296 kind = _json["kind"];
3264 } 3297 }
3265 if (_json.containsKey("message")) { 3298 if (_json.containsKey("message")) {
3266 message = _json["message"]; 3299 message = _json["message"];
3267 } 3300 }
3268 if (_json.containsKey("severity")) { 3301 if (_json.containsKey("severity")) {
3269 severity = _json["severity"]; 3302 severity = _json["severity"];
3270 } 3303 }
3271 if (_json.containsKey("type")) { 3304 if (_json.containsKey("type")) {
3272 type = _json["type"]; 3305 type = _json["type"];
3273 } 3306 }
3274 } 3307 }
3275 3308
3276 core.Map<core.String, core.Object> toJson() { 3309 core.Map<core.String, core.Object> toJson() {
3277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3310 final core.Map<core.String, core.Object> _json =
3311 new core.Map<core.String, core.Object>();
3278 if (id != null) { 3312 if (id != null) {
3279 _json["id"] = id; 3313 _json["id"] = id;
3280 } 3314 }
3281 if (isDismissible != null) { 3315 if (isDismissible != null) {
3282 _json["isDismissible"] = isDismissible; 3316 _json["isDismissible"] = isDismissible;
3283 } 3317 }
3284 if (kind != null) { 3318 if (kind != null) {
3285 _json["kind"] = kind; 3319 _json["kind"] = kind;
3286 } 3320 }
3287 if (message != null) { 3321 if (message != null) {
3288 _json["message"] = message; 3322 _json["message"] = message;
3289 } 3323 }
3290 if (severity != null) { 3324 if (severity != null) {
3291 _json["severity"] = severity; 3325 _json["severity"] = severity;
3292 } 3326 }
3293 if (type != null) { 3327 if (type != null) {
3294 _json["type"] = type; 3328 _json["type"] = type;
3295 } 3329 }
3296 return _json; 3330 return _json;
3297 } 3331 }
3298 } 3332 }
3299 3333
3300 class Alerts { 3334 class Alerts {
3301 /** The alerts returned in this list response. */ 3335 /// The alerts returned in this list response.
3302 core.List<Alert> items; 3336 core.List<Alert> items;
3303 /** Kind of list this is, in this case adsense#alerts. */ 3337
3338 /// Kind of list this is, in this case adsense#alerts.
3304 core.String kind; 3339 core.String kind;
3305 3340
3306 Alerts(); 3341 Alerts();
3307 3342
3308 Alerts.fromJson(core.Map _json) { 3343 Alerts.fromJson(core.Map _json) {
3309 if (_json.containsKey("items")) { 3344 if (_json.containsKey("items")) {
3310 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); 3345 items = _json["items"].map((value) => new Alert.fromJson(value)).toList();
3311 } 3346 }
3312 if (_json.containsKey("kind")) { 3347 if (_json.containsKey("kind")) {
3313 kind = _json["kind"]; 3348 kind = _json["kind"];
3314 } 3349 }
3315 } 3350 }
3316 3351
3317 core.Map<core.String, core.Object> toJson() { 3352 core.Map<core.String, core.Object> toJson() {
3318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3353 final core.Map<core.String, core.Object> _json =
3354 new core.Map<core.String, core.Object>();
3319 if (items != null) { 3355 if (items != null) {
3320 _json["items"] = items.map((value) => (value).toJson()).toList(); 3356 _json["items"] = items.map((value) => (value).toJson()).toList();
3321 } 3357 }
3322 if (kind != null) { 3358 if (kind != null) {
3323 _json["kind"] = kind; 3359 _json["kind"] = kind;
3324 } 3360 }
3325 return _json; 3361 return _json;
3326 } 3362 }
3327 } 3363 }
3328 3364
3329 /** The targeting information of this custom channel, if activated. */ 3365 /// The targeting information of this custom channel, if activated.
3330 class CustomChannelTargetingInfo { 3366 class CustomChannelTargetingInfo {
3331 /** The name used to describe this channel externally. */ 3367 /// The name used to describe this channel externally.
3332 core.String adsAppearOn; 3368 core.String adsAppearOn;
3333 /** The external description of the channel. */ 3369
3370 /// The external description of the channel.
3334 core.String description; 3371 core.String description;
3335 /** 3372
3336 * The locations in which ads appear. (Only valid for content and mobile 3373 /// The locations in which ads appear. (Only valid for content and mobile
3337 * content ads (deprecated)). Acceptable values for content ads are: TOP_LEFT, 3374 /// content ads (deprecated)). Acceptable values for content ads are:
3338 * TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, 3375 /// TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER,
3339 * BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable 3376 /// MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT,
3340 * values for mobile content ads (deprecated) are: TOP, MIDDLE, BOTTOM, 3377 /// MULTIPLE_LOCATIONS. Acceptable values for mobile content ads (deprecated)
3341 * MULTIPLE_LOCATIONS. 3378 /// are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
3342 */
3343 core.String location; 3379 core.String location;
3344 /** The language of the sites ads will be displayed on. */ 3380
3381 /// The language of the sites ads will be displayed on.
3345 core.String siteLanguage; 3382 core.String siteLanguage;
3346 3383
3347 CustomChannelTargetingInfo(); 3384 CustomChannelTargetingInfo();
3348 3385
3349 CustomChannelTargetingInfo.fromJson(core.Map _json) { 3386 CustomChannelTargetingInfo.fromJson(core.Map _json) {
3350 if (_json.containsKey("adsAppearOn")) { 3387 if (_json.containsKey("adsAppearOn")) {
3351 adsAppearOn = _json["adsAppearOn"]; 3388 adsAppearOn = _json["adsAppearOn"];
3352 } 3389 }
3353 if (_json.containsKey("description")) { 3390 if (_json.containsKey("description")) {
3354 description = _json["description"]; 3391 description = _json["description"];
3355 } 3392 }
3356 if (_json.containsKey("location")) { 3393 if (_json.containsKey("location")) {
3357 location = _json["location"]; 3394 location = _json["location"];
3358 } 3395 }
3359 if (_json.containsKey("siteLanguage")) { 3396 if (_json.containsKey("siteLanguage")) {
3360 siteLanguage = _json["siteLanguage"]; 3397 siteLanguage = _json["siteLanguage"];
3361 } 3398 }
3362 } 3399 }
3363 3400
3364 core.Map<core.String, core.Object> toJson() { 3401 core.Map<core.String, core.Object> toJson() {
3365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3402 final core.Map<core.String, core.Object> _json =
3403 new core.Map<core.String, core.Object>();
3366 if (adsAppearOn != null) { 3404 if (adsAppearOn != null) {
3367 _json["adsAppearOn"] = adsAppearOn; 3405 _json["adsAppearOn"] = adsAppearOn;
3368 } 3406 }
3369 if (description != null) { 3407 if (description != null) {
3370 _json["description"] = description; 3408 _json["description"] = description;
3371 } 3409 }
3372 if (location != null) { 3410 if (location != null) {
3373 _json["location"] = location; 3411 _json["location"] = location;
3374 } 3412 }
3375 if (siteLanguage != null) { 3413 if (siteLanguage != null) {
3376 _json["siteLanguage"] = siteLanguage; 3414 _json["siteLanguage"] = siteLanguage;
3377 } 3415 }
3378 return _json; 3416 return _json;
3379 } 3417 }
3380 } 3418 }
3381 3419
3382 class CustomChannel { 3420 class CustomChannel {
3383 /** Code of this custom channel, not necessarily unique across ad clients. */ 3421 /// Code of this custom channel, not necessarily unique across ad clients.
3384 core.String code; 3422 core.String code;
3385 /** 3423
3386 * Unique identifier of this custom channel. This should be considered an 3424 /// Unique identifier of this custom channel. This should be considered an
3387 * opaque identifier; it is not safe to rely on it being in any particular 3425 /// opaque identifier; it is not safe to rely on it being in any particular
3388 * format. 3426 /// format.
3389 */
3390 core.String id; 3427 core.String id;
3391 /** Kind of resource this is, in this case adsense#customChannel. */ 3428
3429 /// Kind of resource this is, in this case adsense#customChannel.
3392 core.String kind; 3430 core.String kind;
3393 /** Name of this custom channel. */ 3431
3432 /// Name of this custom channel.
3394 core.String name; 3433 core.String name;
3395 /** The targeting information of this custom channel, if activated. */ 3434
3435 /// The targeting information of this custom channel, if activated.
3396 CustomChannelTargetingInfo targetingInfo; 3436 CustomChannelTargetingInfo targetingInfo;
3397 3437
3398 CustomChannel(); 3438 CustomChannel();
3399 3439
3400 CustomChannel.fromJson(core.Map _json) { 3440 CustomChannel.fromJson(core.Map _json) {
3401 if (_json.containsKey("code")) { 3441 if (_json.containsKey("code")) {
3402 code = _json["code"]; 3442 code = _json["code"];
3403 } 3443 }
3404 if (_json.containsKey("id")) { 3444 if (_json.containsKey("id")) {
3405 id = _json["id"]; 3445 id = _json["id"];
3406 } 3446 }
3407 if (_json.containsKey("kind")) { 3447 if (_json.containsKey("kind")) {
3408 kind = _json["kind"]; 3448 kind = _json["kind"];
3409 } 3449 }
3410 if (_json.containsKey("name")) { 3450 if (_json.containsKey("name")) {
3411 name = _json["name"]; 3451 name = _json["name"];
3412 } 3452 }
3413 if (_json.containsKey("targetingInfo")) { 3453 if (_json.containsKey("targetingInfo")) {
3414 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn fo"]); 3454 targetingInfo =
3455 new CustomChannelTargetingInfo.fromJson(_json["targetingInfo"]);
3415 } 3456 }
3416 } 3457 }
3417 3458
3418 core.Map<core.String, core.Object> toJson() { 3459 core.Map<core.String, core.Object> toJson() {
3419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3460 final core.Map<core.String, core.Object> _json =
3461 new core.Map<core.String, core.Object>();
3420 if (code != null) { 3462 if (code != null) {
3421 _json["code"] = code; 3463 _json["code"] = code;
3422 } 3464 }
3423 if (id != null) { 3465 if (id != null) {
3424 _json["id"] = id; 3466 _json["id"] = id;
3425 } 3467 }
3426 if (kind != null) { 3468 if (kind != null) {
3427 _json["kind"] = kind; 3469 _json["kind"] = kind;
3428 } 3470 }
3429 if (name != null) { 3471 if (name != null) {
3430 _json["name"] = name; 3472 _json["name"] = name;
3431 } 3473 }
3432 if (targetingInfo != null) { 3474 if (targetingInfo != null) {
3433 _json["targetingInfo"] = (targetingInfo).toJson(); 3475 _json["targetingInfo"] = (targetingInfo).toJson();
3434 } 3476 }
3435 return _json; 3477 return _json;
3436 } 3478 }
3437 } 3479 }
3438 3480
3439 class CustomChannels { 3481 class CustomChannels {
3440 /** ETag of this response for caching purposes. */ 3482 /// ETag of this response for caching purposes.
3441 core.String etag; 3483 core.String etag;
3442 /** The custom channels returned in this list response. */ 3484
3485 /// The custom channels returned in this list response.
3443 core.List<CustomChannel> items; 3486 core.List<CustomChannel> items;
3444 /** Kind of list this is, in this case adsense#customChannels. */ 3487
3488 /// Kind of list this is, in this case adsense#customChannels.
3445 core.String kind; 3489 core.String kind;
3446 /** 3490
3447 * Continuation token used to page through custom channels. To retrieve the 3491 /// Continuation token used to page through custom channels. To retrieve the
3448 * next page of results, set the next request's "pageToken" value to this. 3492 /// next page of results, set the next request's "pageToken" value to this.
3449 */
3450 core.String nextPageToken; 3493 core.String nextPageToken;
3451 3494
3452 CustomChannels(); 3495 CustomChannels();
3453 3496
3454 CustomChannels.fromJson(core.Map _json) { 3497 CustomChannels.fromJson(core.Map _json) {
3455 if (_json.containsKey("etag")) { 3498 if (_json.containsKey("etag")) {
3456 etag = _json["etag"]; 3499 etag = _json["etag"];
3457 } 3500 }
3458 if (_json.containsKey("items")) { 3501 if (_json.containsKey("items")) {
3459 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t oList(); 3502 items = _json["items"]
3503 .map((value) => new CustomChannel.fromJson(value))
3504 .toList();
3460 } 3505 }
3461 if (_json.containsKey("kind")) { 3506 if (_json.containsKey("kind")) {
3462 kind = _json["kind"]; 3507 kind = _json["kind"];
3463 } 3508 }
3464 if (_json.containsKey("nextPageToken")) { 3509 if (_json.containsKey("nextPageToken")) {
3465 nextPageToken = _json["nextPageToken"]; 3510 nextPageToken = _json["nextPageToken"];
3466 } 3511 }
3467 } 3512 }
3468 3513
3469 core.Map<core.String, core.Object> toJson() { 3514 core.Map<core.String, core.Object> toJson() {
3470 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3515 final core.Map<core.String, core.Object> _json =
3516 new core.Map<core.String, core.Object>();
3471 if (etag != null) { 3517 if (etag != null) {
3472 _json["etag"] = etag; 3518 _json["etag"] = etag;
3473 } 3519 }
3474 if (items != null) { 3520 if (items != null) {
3475 _json["items"] = items.map((value) => (value).toJson()).toList(); 3521 _json["items"] = items.map((value) => (value).toJson()).toList();
3476 } 3522 }
3477 if (kind != null) { 3523 if (kind != null) {
3478 _json["kind"] = kind; 3524 _json["kind"] = kind;
3479 } 3525 }
3480 if (nextPageToken != null) { 3526 if (nextPageToken != null) {
3481 _json["nextPageToken"] = nextPageToken; 3527 _json["nextPageToken"] = nextPageToken;
3482 } 3528 }
3483 return _json; 3529 return _json;
3484 } 3530 }
3485 } 3531 }
3486 3532
3487 class Metadata { 3533 class Metadata {
3488 core.List<ReportingMetadataEntry> items; 3534 core.List<ReportingMetadataEntry> items;
3489 /** Kind of list this is, in this case adsense#metadata. */ 3535
3536 /// Kind of list this is, in this case adsense#metadata.
3490 core.String kind; 3537 core.String kind;
3491 3538
3492 Metadata(); 3539 Metadata();
3493 3540
3494 Metadata.fromJson(core.Map _json) { 3541 Metadata.fromJson(core.Map _json) {
3495 if (_json.containsKey("items")) { 3542 if (_json.containsKey("items")) {
3496 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson( value)).toList(); 3543 items = _json["items"]
3544 .map((value) => new ReportingMetadataEntry.fromJson(value))
3545 .toList();
3497 } 3546 }
3498 if (_json.containsKey("kind")) { 3547 if (_json.containsKey("kind")) {
3499 kind = _json["kind"]; 3548 kind = _json["kind"];
3500 } 3549 }
3501 } 3550 }
3502 3551
3503 core.Map<core.String, core.Object> toJson() { 3552 core.Map<core.String, core.Object> toJson() {
3504 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3553 final core.Map<core.String, core.Object> _json =
3554 new core.Map<core.String, core.Object>();
3505 if (items != null) { 3555 if (items != null) {
3506 _json["items"] = items.map((value) => (value).toJson()).toList(); 3556 _json["items"] = items.map((value) => (value).toJson()).toList();
3507 } 3557 }
3508 if (kind != null) { 3558 if (kind != null) {
3509 _json["kind"] = kind; 3559 _json["kind"] = kind;
3510 } 3560 }
3511 return _json; 3561 return _json;
3512 } 3562 }
3513 } 3563 }
3514 3564
3515 class Payment { 3565 class Payment {
3516 /** Unique identifier of this Payment. */ 3566 /// Unique identifier of this Payment.
3517 core.String id; 3567 core.String id;
3518 /** Kind of resource this is, in this case adsense#payment. */ 3568
3569 /// Kind of resource this is, in this case adsense#payment.
3519 core.String kind; 3570 core.String kind;
3520 /** The amount to be paid. */ 3571
3572 /// The amount to be paid.
3521 core.String paymentAmount; 3573 core.String paymentAmount;
3522 /** The currency code for the amount to be paid. */ 3574
3575 /// The currency code for the amount to be paid.
3523 core.String paymentAmountCurrencyCode; 3576 core.String paymentAmountCurrencyCode;
3524 /** 3577
3525 * The date this payment was/will be credited to the user, or none if the 3578 /// The date this payment was/will be credited to the user, or none if the
3526 * payment threshold has not been met. 3579 /// payment threshold has not been met.
3527 */
3528 core.String paymentDate; 3580 core.String paymentDate;
3529 3581
3530 Payment(); 3582 Payment();
3531 3583
3532 Payment.fromJson(core.Map _json) { 3584 Payment.fromJson(core.Map _json) {
3533 if (_json.containsKey("id")) { 3585 if (_json.containsKey("id")) {
3534 id = _json["id"]; 3586 id = _json["id"];
3535 } 3587 }
3536 if (_json.containsKey("kind")) { 3588 if (_json.containsKey("kind")) {
3537 kind = _json["kind"]; 3589 kind = _json["kind"];
3538 } 3590 }
3539 if (_json.containsKey("paymentAmount")) { 3591 if (_json.containsKey("paymentAmount")) {
3540 paymentAmount = _json["paymentAmount"]; 3592 paymentAmount = _json["paymentAmount"];
3541 } 3593 }
3542 if (_json.containsKey("paymentAmountCurrencyCode")) { 3594 if (_json.containsKey("paymentAmountCurrencyCode")) {
3543 paymentAmountCurrencyCode = _json["paymentAmountCurrencyCode"]; 3595 paymentAmountCurrencyCode = _json["paymentAmountCurrencyCode"];
3544 } 3596 }
3545 if (_json.containsKey("paymentDate")) { 3597 if (_json.containsKey("paymentDate")) {
3546 paymentDate = _json["paymentDate"]; 3598 paymentDate = _json["paymentDate"];
3547 } 3599 }
3548 } 3600 }
3549 3601
3550 core.Map<core.String, core.Object> toJson() { 3602 core.Map<core.String, core.Object> toJson() {
3551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3603 final core.Map<core.String, core.Object> _json =
3604 new core.Map<core.String, core.Object>();
3552 if (id != null) { 3605 if (id != null) {
3553 _json["id"] = id; 3606 _json["id"] = id;
3554 } 3607 }
3555 if (kind != null) { 3608 if (kind != null) {
3556 _json["kind"] = kind; 3609 _json["kind"] = kind;
3557 } 3610 }
3558 if (paymentAmount != null) { 3611 if (paymentAmount != null) {
3559 _json["paymentAmount"] = paymentAmount; 3612 _json["paymentAmount"] = paymentAmount;
3560 } 3613 }
3561 if (paymentAmountCurrencyCode != null) { 3614 if (paymentAmountCurrencyCode != null) {
3562 _json["paymentAmountCurrencyCode"] = paymentAmountCurrencyCode; 3615 _json["paymentAmountCurrencyCode"] = paymentAmountCurrencyCode;
3563 } 3616 }
3564 if (paymentDate != null) { 3617 if (paymentDate != null) {
3565 _json["paymentDate"] = paymentDate; 3618 _json["paymentDate"] = paymentDate;
3566 } 3619 }
3567 return _json; 3620 return _json;
3568 } 3621 }
3569 } 3622 }
3570 3623
3571 class Payments { 3624 class Payments {
3572 /** 3625 /// The list of Payments for the account. One or both of a) the account's
3573 * The list of Payments for the account. One or both of a) the account's most 3626 /// most recent payment; and b) the account's upcoming payment.
3574 * recent payment; and b) the account's upcoming payment.
3575 */
3576 core.List<Payment> items; 3627 core.List<Payment> items;
3577 /** Kind of list this is, in this case adsense#payments. */ 3628
3629 /// Kind of list this is, in this case adsense#payments.
3578 core.String kind; 3630 core.String kind;
3579 3631
3580 Payments(); 3632 Payments();
3581 3633
3582 Payments.fromJson(core.Map _json) { 3634 Payments.fromJson(core.Map _json) {
3583 if (_json.containsKey("items")) { 3635 if (_json.containsKey("items")) {
3584 items = _json["items"].map((value) => new Payment.fromJson(value)).toList( ); 3636 items =
3637 _json["items"].map((value) => new Payment.fromJson(value)).toList();
3585 } 3638 }
3586 if (_json.containsKey("kind")) { 3639 if (_json.containsKey("kind")) {
3587 kind = _json["kind"]; 3640 kind = _json["kind"];
3588 } 3641 }
3589 } 3642 }
3590 3643
3591 core.Map<core.String, core.Object> toJson() { 3644 core.Map<core.String, core.Object> toJson() {
3592 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3645 final core.Map<core.String, core.Object> _json =
3646 new core.Map<core.String, core.Object>();
3593 if (items != null) { 3647 if (items != null) {
3594 _json["items"] = items.map((value) => (value).toJson()).toList(); 3648 _json["items"] = items.map((value) => (value).toJson()).toList();
3595 } 3649 }
3596 if (kind != null) { 3650 if (kind != null) {
3597 _json["kind"] = kind; 3651 _json["kind"] = kind;
3598 } 3652 }
3599 return _json; 3653 return _json;
3600 } 3654 }
3601 } 3655 }
3602 3656
3603 class ReportingMetadataEntry { 3657 class ReportingMetadataEntry {
3604 /** 3658 /// For metrics this is a list of dimension IDs which the metric is
3605 * For metrics this is a list of dimension IDs which the metric is compatible 3659 /// compatible with, for dimensions it is a list of compatibility groups the
3606 * with, for dimensions it is a list of compatibility groups the dimension 3660 /// dimension belongs to.
3607 * belongs to.
3608 */
3609 core.List<core.String> compatibleDimensions; 3661 core.List<core.String> compatibleDimensions;
3610 /** 3662
3611 * The names of the metrics the dimension or metric this reporting metadata 3663 /// The names of the metrics the dimension or metric this reporting metadata
3612 * entry describes is compatible with. 3664 /// entry describes is compatible with.
3613 */
3614 core.List<core.String> compatibleMetrics; 3665 core.List<core.String> compatibleMetrics;
3615 /** 3666
3616 * Unique identifier of this reporting metadata entry, corresponding to the 3667 /// Unique identifier of this reporting metadata entry, corresponding to the
3617 * name of the appropriate dimension or metric. 3668 /// name of the appropriate dimension or metric.
3618 */
3619 core.String id; 3669 core.String id;
3620 /** Kind of resource this is, in this case adsense#reportingMetadataEntry. */ 3670
3671 /// Kind of resource this is, in this case adsense#reportingMetadataEntry.
3621 core.String kind; 3672 core.String kind;
3622 /** 3673
3623 * The names of the dimensions which the dimension or metric this reporting 3674 /// The names of the dimensions which the dimension or metric this reporting
3624 * metadata entry describes requires to also be present in order for the 3675 /// metadata entry describes requires to also be present in order for the
3625 * report to be valid. Omitting these will not cause an error or warning, but 3676 /// report to be valid. Omitting these will not cause an error or warning,
3626 * may result in data which cannot be correctly interpreted. 3677 /// but may result in data which cannot be correctly interpreted.
3627 */
3628 core.List<core.String> requiredDimensions; 3678 core.List<core.String> requiredDimensions;
3629 /** 3679
3630 * The names of the metrics which the dimension or metric this reporting 3680 /// The names of the metrics which the dimension or metric this reporting
3631 * metadata entry describes requires to also be present in order for the 3681 /// metadata entry describes requires to also be present in order for the
3632 * report to be valid. Omitting these will not cause an error or warning, but 3682 /// report to be valid. Omitting these will not cause an error or warning,
3633 * may result in data which cannot be correctly interpreted. 3683 /// but may result in data which cannot be correctly interpreted.
3634 */
3635 core.List<core.String> requiredMetrics; 3684 core.List<core.String> requiredMetrics;
3636 /** 3685
3637 * The codes of the projects supported by the dimension or metric this 3686 /// The codes of the projects supported by the dimension or metric this
3638 * reporting metadata entry describes. 3687 /// reporting metadata entry describes.
3639 */
3640 core.List<core.String> supportedProducts; 3688 core.List<core.String> supportedProducts;
3641 3689
3642 ReportingMetadataEntry(); 3690 ReportingMetadataEntry();
3643 3691
3644 ReportingMetadataEntry.fromJson(core.Map _json) { 3692 ReportingMetadataEntry.fromJson(core.Map _json) {
3645 if (_json.containsKey("compatibleDimensions")) { 3693 if (_json.containsKey("compatibleDimensions")) {
3646 compatibleDimensions = _json["compatibleDimensions"]; 3694 compatibleDimensions = _json["compatibleDimensions"];
3647 } 3695 }
3648 if (_json.containsKey("compatibleMetrics")) { 3696 if (_json.containsKey("compatibleMetrics")) {
3649 compatibleMetrics = _json["compatibleMetrics"]; 3697 compatibleMetrics = _json["compatibleMetrics"];
3650 } 3698 }
3651 if (_json.containsKey("id")) { 3699 if (_json.containsKey("id")) {
3652 id = _json["id"]; 3700 id = _json["id"];
3653 } 3701 }
3654 if (_json.containsKey("kind")) { 3702 if (_json.containsKey("kind")) {
3655 kind = _json["kind"]; 3703 kind = _json["kind"];
3656 } 3704 }
3657 if (_json.containsKey("requiredDimensions")) { 3705 if (_json.containsKey("requiredDimensions")) {
3658 requiredDimensions = _json["requiredDimensions"]; 3706 requiredDimensions = _json["requiredDimensions"];
3659 } 3707 }
3660 if (_json.containsKey("requiredMetrics")) { 3708 if (_json.containsKey("requiredMetrics")) {
3661 requiredMetrics = _json["requiredMetrics"]; 3709 requiredMetrics = _json["requiredMetrics"];
3662 } 3710 }
3663 if (_json.containsKey("supportedProducts")) { 3711 if (_json.containsKey("supportedProducts")) {
3664 supportedProducts = _json["supportedProducts"]; 3712 supportedProducts = _json["supportedProducts"];
3665 } 3713 }
3666 } 3714 }
3667 3715
3668 core.Map<core.String, core.Object> toJson() { 3716 core.Map<core.String, core.Object> toJson() {
3669 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3717 final core.Map<core.String, core.Object> _json =
3718 new core.Map<core.String, core.Object>();
3670 if (compatibleDimensions != null) { 3719 if (compatibleDimensions != null) {
3671 _json["compatibleDimensions"] = compatibleDimensions; 3720 _json["compatibleDimensions"] = compatibleDimensions;
3672 } 3721 }
3673 if (compatibleMetrics != null) { 3722 if (compatibleMetrics != null) {
3674 _json["compatibleMetrics"] = compatibleMetrics; 3723 _json["compatibleMetrics"] = compatibleMetrics;
3675 } 3724 }
3676 if (id != null) { 3725 if (id != null) {
3677 _json["id"] = id; 3726 _json["id"] = id;
3678 } 3727 }
3679 if (kind != null) { 3728 if (kind != null) {
3680 _json["kind"] = kind; 3729 _json["kind"] = kind;
3681 } 3730 }
3682 if (requiredDimensions != null) { 3731 if (requiredDimensions != null) {
3683 _json["requiredDimensions"] = requiredDimensions; 3732 _json["requiredDimensions"] = requiredDimensions;
3684 } 3733 }
3685 if (requiredMetrics != null) { 3734 if (requiredMetrics != null) {
3686 _json["requiredMetrics"] = requiredMetrics; 3735 _json["requiredMetrics"] = requiredMetrics;
3687 } 3736 }
3688 if (supportedProducts != null) { 3737 if (supportedProducts != null) {
3689 _json["supportedProducts"] = supportedProducts; 3738 _json["supportedProducts"] = supportedProducts;
3690 } 3739 }
3691 return _json; 3740 return _json;
3692 } 3741 }
3693 } 3742 }
3694 3743
3695 class SavedAdStyle { 3744 class SavedAdStyle {
3696 /** The AdStyle itself. */ 3745 /// The AdStyle itself.
3697 AdStyle adStyle; 3746 AdStyle adStyle;
3698 /** 3747
3699 * Unique identifier of this saved ad style. This should be considered an 3748 /// Unique identifier of this saved ad style. This should be considered an
3700 * opaque identifier; it is not safe to rely on it being in any particular 3749 /// opaque identifier; it is not safe to rely on it being in any particular
3701 * format. 3750 /// format.
3702 */
3703 core.String id; 3751 core.String id;
3704 /** Kind of resource this is, in this case adsense#savedAdStyle. */ 3752
3753 /// Kind of resource this is, in this case adsense#savedAdStyle.
3705 core.String kind; 3754 core.String kind;
3706 /** The user selected name of this SavedAdStyle. */ 3755
3756 /// The user selected name of this SavedAdStyle.
3707 core.String name; 3757 core.String name;
3708 3758
3709 SavedAdStyle(); 3759 SavedAdStyle();
3710 3760
3711 SavedAdStyle.fromJson(core.Map _json) { 3761 SavedAdStyle.fromJson(core.Map _json) {
3712 if (_json.containsKey("adStyle")) { 3762 if (_json.containsKey("adStyle")) {
3713 adStyle = new AdStyle.fromJson(_json["adStyle"]); 3763 adStyle = new AdStyle.fromJson(_json["adStyle"]);
3714 } 3764 }
3715 if (_json.containsKey("id")) { 3765 if (_json.containsKey("id")) {
3716 id = _json["id"]; 3766 id = _json["id"];
3717 } 3767 }
3718 if (_json.containsKey("kind")) { 3768 if (_json.containsKey("kind")) {
3719 kind = _json["kind"]; 3769 kind = _json["kind"];
3720 } 3770 }
3721 if (_json.containsKey("name")) { 3771 if (_json.containsKey("name")) {
3722 name = _json["name"]; 3772 name = _json["name"];
3723 } 3773 }
3724 } 3774 }
3725 3775
3726 core.Map<core.String, core.Object> toJson() { 3776 core.Map<core.String, core.Object> toJson() {
3727 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3777 final core.Map<core.String, core.Object> _json =
3778 new core.Map<core.String, core.Object>();
3728 if (adStyle != null) { 3779 if (adStyle != null) {
3729 _json["adStyle"] = (adStyle).toJson(); 3780 _json["adStyle"] = (adStyle).toJson();
3730 } 3781 }
3731 if (id != null) { 3782 if (id != null) {
3732 _json["id"] = id; 3783 _json["id"] = id;
3733 } 3784 }
3734 if (kind != null) { 3785 if (kind != null) {
3735 _json["kind"] = kind; 3786 _json["kind"] = kind;
3736 } 3787 }
3737 if (name != null) { 3788 if (name != null) {
3738 _json["name"] = name; 3789 _json["name"] = name;
3739 } 3790 }
3740 return _json; 3791 return _json;
3741 } 3792 }
3742 } 3793 }
3743 3794
3744 class SavedAdStyles { 3795 class SavedAdStyles {
3745 /** ETag of this response for caching purposes. */ 3796 /// ETag of this response for caching purposes.
3746 core.String etag; 3797 core.String etag;
3747 /** The saved ad styles returned in this list response. */ 3798
3799 /// The saved ad styles returned in this list response.
3748 core.List<SavedAdStyle> items; 3800 core.List<SavedAdStyle> items;
3749 /** Kind of list this is, in this case adsense#savedAdStyles. */ 3801
3802 /// Kind of list this is, in this case adsense#savedAdStyles.
3750 core.String kind; 3803 core.String kind;
3751 /** 3804
3752 * Continuation token used to page through ad units. To retrieve the next page 3805 /// Continuation token used to page through ad units. To retrieve the next
3753 * of results, set the next request's "pageToken" value to this. 3806 /// page of results, set the next request's "pageToken" value to this.
3754 */
3755 core.String nextPageToken; 3807 core.String nextPageToken;
3756 3808
3757 SavedAdStyles(); 3809 SavedAdStyles();
3758 3810
3759 SavedAdStyles.fromJson(core.Map _json) { 3811 SavedAdStyles.fromJson(core.Map _json) {
3760 if (_json.containsKey("etag")) { 3812 if (_json.containsKey("etag")) {
3761 etag = _json["etag"]; 3813 etag = _json["etag"];
3762 } 3814 }
3763 if (_json.containsKey("items")) { 3815 if (_json.containsKey("items")) {
3764 items = _json["items"].map((value) => new SavedAdStyle.fromJson(value)).to List(); 3816 items = _json["items"]
3817 .map((value) => new SavedAdStyle.fromJson(value))
3818 .toList();
3765 } 3819 }
3766 if (_json.containsKey("kind")) { 3820 if (_json.containsKey("kind")) {
3767 kind = _json["kind"]; 3821 kind = _json["kind"];
3768 } 3822 }
3769 if (_json.containsKey("nextPageToken")) { 3823 if (_json.containsKey("nextPageToken")) {
3770 nextPageToken = _json["nextPageToken"]; 3824 nextPageToken = _json["nextPageToken"];
3771 } 3825 }
3772 } 3826 }
3773 3827
3774 core.Map<core.String, core.Object> toJson() { 3828 core.Map<core.String, core.Object> toJson() {
3775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3829 final core.Map<core.String, core.Object> _json =
3830 new core.Map<core.String, core.Object>();
3776 if (etag != null) { 3831 if (etag != null) {
3777 _json["etag"] = etag; 3832 _json["etag"] = etag;
3778 } 3833 }
3779 if (items != null) { 3834 if (items != null) {
3780 _json["items"] = items.map((value) => (value).toJson()).toList(); 3835 _json["items"] = items.map((value) => (value).toJson()).toList();
3781 } 3836 }
3782 if (kind != null) { 3837 if (kind != null) {
3783 _json["kind"] = kind; 3838 _json["kind"] = kind;
3784 } 3839 }
3785 if (nextPageToken != null) { 3840 if (nextPageToken != null) {
3786 _json["nextPageToken"] = nextPageToken; 3841 _json["nextPageToken"] = nextPageToken;
3787 } 3842 }
3788 return _json; 3843 return _json;
3789 } 3844 }
3790 } 3845 }
3791 3846
3792 class SavedReport { 3847 class SavedReport {
3793 /** Unique identifier of this saved report. */ 3848 /// Unique identifier of this saved report.
3794 core.String id; 3849 core.String id;
3795 /** Kind of resource this is, in this case adsense#savedReport. */ 3850
3851 /// Kind of resource this is, in this case adsense#savedReport.
3796 core.String kind; 3852 core.String kind;
3797 /** This saved report's name. */ 3853
3854 /// This saved report's name.
3798 core.String name; 3855 core.String name;
3799 3856
3800 SavedReport(); 3857 SavedReport();
3801 3858
3802 SavedReport.fromJson(core.Map _json) { 3859 SavedReport.fromJson(core.Map _json) {
3803 if (_json.containsKey("id")) { 3860 if (_json.containsKey("id")) {
3804 id = _json["id"]; 3861 id = _json["id"];
3805 } 3862 }
3806 if (_json.containsKey("kind")) { 3863 if (_json.containsKey("kind")) {
3807 kind = _json["kind"]; 3864 kind = _json["kind"];
3808 } 3865 }
3809 if (_json.containsKey("name")) { 3866 if (_json.containsKey("name")) {
3810 name = _json["name"]; 3867 name = _json["name"];
3811 } 3868 }
3812 } 3869 }
3813 3870
3814 core.Map<core.String, core.Object> toJson() { 3871 core.Map<core.String, core.Object> toJson() {
3815 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3872 final core.Map<core.String, core.Object> _json =
3873 new core.Map<core.String, core.Object>();
3816 if (id != null) { 3874 if (id != null) {
3817 _json["id"] = id; 3875 _json["id"] = id;
3818 } 3876 }
3819 if (kind != null) { 3877 if (kind != null) {
3820 _json["kind"] = kind; 3878 _json["kind"] = kind;
3821 } 3879 }
3822 if (name != null) { 3880 if (name != null) {
3823 _json["name"] = name; 3881 _json["name"] = name;
3824 } 3882 }
3825 return _json; 3883 return _json;
3826 } 3884 }
3827 } 3885 }
3828 3886
3829 class SavedReports { 3887 class SavedReports {
3830 /** ETag of this response for caching purposes. */ 3888 /// ETag of this response for caching purposes.
3831 core.String etag; 3889 core.String etag;
3832 /** The saved reports returned in this list response. */ 3890
3891 /// The saved reports returned in this list response.
3833 core.List<SavedReport> items; 3892 core.List<SavedReport> items;
3834 /** Kind of list this is, in this case adsense#savedReports. */ 3893
3894 /// Kind of list this is, in this case adsense#savedReports.
3835 core.String kind; 3895 core.String kind;
3836 /** 3896
3837 * Continuation token used to page through saved reports. To retrieve the next 3897 /// Continuation token used to page through saved reports. To retrieve the
3838 * page of results, set the next request's "pageToken" value to this. 3898 /// next page of results, set the next request's "pageToken" value to this.
3839 */
3840 core.String nextPageToken; 3899 core.String nextPageToken;
3841 3900
3842 SavedReports(); 3901 SavedReports();
3843 3902
3844 SavedReports.fromJson(core.Map _json) { 3903 SavedReports.fromJson(core.Map _json) {
3845 if (_json.containsKey("etag")) { 3904 if (_json.containsKey("etag")) {
3846 etag = _json["etag"]; 3905 etag = _json["etag"];
3847 } 3906 }
3848 if (_json.containsKey("items")) { 3907 if (_json.containsKey("items")) {
3849 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL ist(); 3908 items = _json["items"]
3909 .map((value) => new SavedReport.fromJson(value))
3910 .toList();
3850 } 3911 }
3851 if (_json.containsKey("kind")) { 3912 if (_json.containsKey("kind")) {
3852 kind = _json["kind"]; 3913 kind = _json["kind"];
3853 } 3914 }
3854 if (_json.containsKey("nextPageToken")) { 3915 if (_json.containsKey("nextPageToken")) {
3855 nextPageToken = _json["nextPageToken"]; 3916 nextPageToken = _json["nextPageToken"];
3856 } 3917 }
3857 } 3918 }
3858 3919
3859 core.Map<core.String, core.Object> toJson() { 3920 core.Map<core.String, core.Object> toJson() {
3860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3921 final core.Map<core.String, core.Object> _json =
3922 new core.Map<core.String, core.Object>();
3861 if (etag != null) { 3923 if (etag != null) {
3862 _json["etag"] = etag; 3924 _json["etag"] = etag;
3863 } 3925 }
3864 if (items != null) { 3926 if (items != null) {
3865 _json["items"] = items.map((value) => (value).toJson()).toList(); 3927 _json["items"] = items.map((value) => (value).toJson()).toList();
3866 } 3928 }
3867 if (kind != null) { 3929 if (kind != null) {
3868 _json["kind"] = kind; 3930 _json["kind"] = kind;
3869 } 3931 }
3870 if (nextPageToken != null) { 3932 if (nextPageToken != null) {
3871 _json["nextPageToken"] = nextPageToken; 3933 _json["nextPageToken"] = nextPageToken;
3872 } 3934 }
3873 return _json; 3935 return _json;
3874 } 3936 }
3875 } 3937 }
3876 3938
3877 class UrlChannel { 3939 class UrlChannel {
3878 /** 3940 /// Unique identifier of this URL channel. This should be considered an
3879 * Unique identifier of this URL channel. This should be considered an opaque 3941 /// opaque identifier; it is not safe to rely on it being in any particular
3880 * identifier; it is not safe to rely on it being in any particular format. 3942 /// format.
3881 */
3882 core.String id; 3943 core.String id;
3883 /** Kind of resource this is, in this case adsense#urlChannel. */ 3944
3945 /// Kind of resource this is, in this case adsense#urlChannel.
3884 core.String kind; 3946 core.String kind;
3885 /** 3947
3886 * URL Pattern of this URL channel. Does not include "http://" or "https://". 3948 /// URL Pattern of this URL channel. Does not include "http://" or
3887 * Example: www.example.com/home 3949 /// "https://". Example: www.example.com/home
3888 */
3889 core.String urlPattern; 3950 core.String urlPattern;
3890 3951
3891 UrlChannel(); 3952 UrlChannel();
3892 3953
3893 UrlChannel.fromJson(core.Map _json) { 3954 UrlChannel.fromJson(core.Map _json) {
3894 if (_json.containsKey("id")) { 3955 if (_json.containsKey("id")) {
3895 id = _json["id"]; 3956 id = _json["id"];
3896 } 3957 }
3897 if (_json.containsKey("kind")) { 3958 if (_json.containsKey("kind")) {
3898 kind = _json["kind"]; 3959 kind = _json["kind"];
3899 } 3960 }
3900 if (_json.containsKey("urlPattern")) { 3961 if (_json.containsKey("urlPattern")) {
3901 urlPattern = _json["urlPattern"]; 3962 urlPattern = _json["urlPattern"];
3902 } 3963 }
3903 } 3964 }
3904 3965
3905 core.Map<core.String, core.Object> toJson() { 3966 core.Map<core.String, core.Object> toJson() {
3906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3967 final core.Map<core.String, core.Object> _json =
3968 new core.Map<core.String, core.Object>();
3907 if (id != null) { 3969 if (id != null) {
3908 _json["id"] = id; 3970 _json["id"] = id;
3909 } 3971 }
3910 if (kind != null) { 3972 if (kind != null) {
3911 _json["kind"] = kind; 3973 _json["kind"] = kind;
3912 } 3974 }
3913 if (urlPattern != null) { 3975 if (urlPattern != null) {
3914 _json["urlPattern"] = urlPattern; 3976 _json["urlPattern"] = urlPattern;
3915 } 3977 }
3916 return _json; 3978 return _json;
3917 } 3979 }
3918 } 3980 }
3919 3981
3920 class UrlChannels { 3982 class UrlChannels {
3921 /** ETag of this response for caching purposes. */ 3983 /// ETag of this response for caching purposes.
3922 core.String etag; 3984 core.String etag;
3923 /** The URL channels returned in this list response. */ 3985
3986 /// The URL channels returned in this list response.
3924 core.List<UrlChannel> items; 3987 core.List<UrlChannel> items;
3925 /** Kind of list this is, in this case adsense#urlChannels. */ 3988
3989 /// Kind of list this is, in this case adsense#urlChannels.
3926 core.String kind; 3990 core.String kind;
3927 /** 3991
3928 * Continuation token used to page through URL channels. To retrieve the next 3992 /// Continuation token used to page through URL channels. To retrieve the
3929 * page of results, set the next request's "pageToken" value to this. 3993 /// next page of results, set the next request's "pageToken" value to this.
3930 */
3931 core.String nextPageToken; 3994 core.String nextPageToken;
3932 3995
3933 UrlChannels(); 3996 UrlChannels();
3934 3997
3935 UrlChannels.fromJson(core.Map _json) { 3998 UrlChannels.fromJson(core.Map _json) {
3936 if (_json.containsKey("etag")) { 3999 if (_json.containsKey("etag")) {
3937 etag = _json["etag"]; 4000 etag = _json["etag"];
3938 } 4001 }
3939 if (_json.containsKey("items")) { 4002 if (_json.containsKey("items")) {
3940 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi st(); 4003 items = _json["items"]
4004 .map((value) => new UrlChannel.fromJson(value))
4005 .toList();
3941 } 4006 }
3942 if (_json.containsKey("kind")) { 4007 if (_json.containsKey("kind")) {
3943 kind = _json["kind"]; 4008 kind = _json["kind"];
3944 } 4009 }
3945 if (_json.containsKey("nextPageToken")) { 4010 if (_json.containsKey("nextPageToken")) {
3946 nextPageToken = _json["nextPageToken"]; 4011 nextPageToken = _json["nextPageToken"];
3947 } 4012 }
3948 } 4013 }
3949 4014
3950 core.Map<core.String, core.Object> toJson() { 4015 core.Map<core.String, core.Object> toJson() {
3951 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 4016 final core.Map<core.String, core.Object> _json =
4017 new core.Map<core.String, core.Object>();
3952 if (etag != null) { 4018 if (etag != null) {
3953 _json["etag"] = etag; 4019 _json["etag"] = etag;
3954 } 4020 }
3955 if (items != null) { 4021 if (items != null) {
3956 _json["items"] = items.map((value) => (value).toJson()).toList(); 4022 _json["items"] = items.map((value) => (value).toJson()).toList();
3957 } 4023 }
3958 if (kind != null) { 4024 if (kind != null) {
3959 _json["kind"] = kind; 4025 _json["kind"] = kind;
3960 } 4026 }
3961 if (nextPageToken != null) { 4027 if (nextPageToken != null) {
3962 _json["nextPageToken"] = nextPageToken; 4028 _json["nextPageToken"] = nextPageToken;
3963 } 4029 }
3964 return _json; 4030 return _json;
3965 } 4031 }
3966 } 4032 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/admin/reports_v1.dart ('k') | generated/googleapis/lib/adsensehost/v4_1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698