| OLD | NEW |
| 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.adexchangeseller.v2_0; | 3 library googleapis.adexchangeseller.v2_0; |
| 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 adexchangeseller/v2.0'; | 23 const core.String USER_AGENT = 'dart-api-client adexchangeseller/v2.0'; |
| 18 | 24 |
| 19 /** | 25 /// Accesses the inventory of Ad Exchange seller users and generates reports. |
| 20 * Accesses the inventory of Ad Exchange seller users and generates reports. | |
| 21 */ | |
| 22 class AdexchangesellerApi { | 26 class AdexchangesellerApi { |
| 23 /** View and manage your Ad Exchange data */ | 27 /// View and manage your Ad Exchange data |
| 24 static const AdexchangeSellerScope = "https://www.googleapis.com/auth/adexchan
ge.seller"; | 28 static const AdexchangeSellerScope = |
| 29 "https://www.googleapis.com/auth/adexchange.seller"; |
| 25 | 30 |
| 26 /** View your Ad Exchange data */ | 31 /// View your Ad Exchange data |
| 27 static const AdexchangeSellerReadonlyScope = "https://www.googleapis.com/auth/
adexchange.seller.readonly"; | 32 static const AdexchangeSellerReadonlyScope = |
| 28 | 33 "https://www.googleapis.com/auth/adexchange.seller.readonly"; |
| 29 | 34 |
| 30 final commons.ApiRequester _requester; | 35 final commons.ApiRequester _requester; |
| 31 | 36 |
| 32 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 37 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 33 | 38 |
| 34 AdexchangesellerApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "adexchangeseller/v2.0/"}) : | 39 AdexchangesellerApi(http.Client client, |
| 35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 40 {core.String rootUrl: "https://www.googleapis.com/", |
| 41 core.String servicePath: "adexchangeseller/v2.0/"}) |
| 42 : _requester = |
| 43 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 36 } | 44 } |
| 37 | 45 |
| 38 | |
| 39 class AccountsResourceApi { | 46 class AccountsResourceApi { |
| 40 final commons.ApiRequester _requester; | 47 final commons.ApiRequester _requester; |
| 41 | 48 |
| 42 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi
(_requester); | 49 AccountsAdclientsResourceApi get adclients => |
| 43 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request
er); | 50 new AccountsAdclientsResourceApi(_requester); |
| 44 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan
nelsResourceApi(_requester); | 51 AccountsAlertsResourceApi get alerts => |
| 45 AccountsMetadataResourceApi get metadata => new AccountsMetadataResourceApi(_r
equester); | 52 new AccountsAlertsResourceApi(_requester); |
| 46 AccountsPreferreddealsResourceApi get preferreddeals => new AccountsPreferredd
ealsResourceApi(_requester); | 53 AccountsCustomchannelsResourceApi get customchannels => |
| 47 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ
ester); | 54 new AccountsCustomchannelsResourceApi(_requester); |
| 48 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou
rceApi(_requester); | 55 AccountsMetadataResourceApi get metadata => |
| 56 new AccountsMetadataResourceApi(_requester); |
| 57 AccountsPreferreddealsResourceApi get preferreddeals => |
| 58 new AccountsPreferreddealsResourceApi(_requester); |
| 59 AccountsReportsResourceApi get reports => |
| 60 new AccountsReportsResourceApi(_requester); |
| 61 AccountsUrlchannelsResourceApi get urlchannels => |
| 62 new AccountsUrlchannelsResourceApi(_requester); |
| 49 | 63 |
| 50 AccountsResourceApi(commons.ApiRequester client) : | 64 AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
| 51 _requester = client; | |
| 52 | 65 |
| 53 /** | 66 /// Get information about the selected Ad Exchange account. |
| 54 * Get information about the selected Ad Exchange account. | 67 /// |
| 55 * | 68 /// Request parameters: |
| 56 * Request parameters: | 69 /// |
| 57 * | 70 /// [accountId] - Account to get information about. Tip: 'myaccount' is a |
| 58 * [accountId] - Account to get information about. Tip: 'myaccount' is a valid | 71 /// valid ID. |
| 59 * ID. | 72 /// |
| 60 * | 73 /// Completes with a [Account]. |
| 61 * Completes with a [Account]. | 74 /// |
| 62 * | 75 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 63 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 76 /// an error. |
| 64 * error. | 77 /// |
| 65 * | 78 /// If the used [http.Client] completes with an error when making a REST |
| 66 * If the used [http.Client] completes with an error when making a REST call, | 79 /// call, this method will complete with the same error. |
| 67 * this method will complete with the same error. | |
| 68 */ | |
| 69 async.Future<Account> get(core.String accountId) { | 80 async.Future<Account> get(core.String accountId) { |
| 70 var _url = null; | 81 var _url = null; |
| 71 var _queryParams = new core.Map(); | 82 var _queryParams = new core.Map(); |
| 72 var _uploadMedia = null; | 83 var _uploadMedia = null; |
| 73 var _uploadOptions = null; | 84 var _uploadOptions = null; |
| 74 var _downloadOptions = commons.DownloadOptions.Metadata; | 85 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 75 var _body = null; | 86 var _body = null; |
| 76 | 87 |
| 77 if (accountId == null) { | 88 if (accountId == null) { |
| 78 throw new core.ArgumentError("Parameter accountId is required."); | 89 throw new core.ArgumentError("Parameter accountId is required."); |
| 79 } | 90 } |
| 80 | 91 |
| 81 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId'); | 92 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId'); |
| 82 | 93 |
| 83 var _response = _requester.request(_url, | 94 var _response = _requester.request(_url, "GET", |
| 84 "GET", | 95 body: _body, |
| 85 body: _body, | 96 queryParams: _queryParams, |
| 86 queryParams: _queryParams, | 97 uploadOptions: _uploadOptions, |
| 87 uploadOptions: _uploadOptions, | 98 uploadMedia: _uploadMedia, |
| 88 uploadMedia: _uploadMedia, | 99 downloadOptions: _downloadOptions); |
| 89 downloadOptions: _downloadOptions); | |
| 90 return _response.then((data) => new Account.fromJson(data)); | 100 return _response.then((data) => new Account.fromJson(data)); |
| 91 } | 101 } |
| 92 | 102 |
| 93 /** | 103 /// List all accounts available to this Ad Exchange account. |
| 94 * List all accounts available to this Ad Exchange account. | 104 /// |
| 95 * | 105 /// Request parameters: |
| 96 * Request parameters: | 106 /// |
| 97 * | 107 /// [maxResults] - The maximum number of accounts to include in the response, |
| 98 * [maxResults] - The maximum number of accounts to include in the response, | 108 /// used for paging. |
| 99 * used for paging. | 109 /// Value must be between "0" and "10000". |
| 100 * Value must be between "0" and "10000". | 110 /// |
| 101 * | 111 /// [pageToken] - A continuation token, used to page through accounts. To |
| 102 * [pageToken] - A continuation token, used to page through accounts. To | 112 /// retrieve the next page, set this parameter to the value of |
| 103 * retrieve the next page, set this parameter to the value of "nextPageToken" | 113 /// "nextPageToken" from the previous response. |
| 104 * from the previous response. | 114 /// |
| 105 * | 115 /// Completes with a [Accounts]. |
| 106 * Completes with a [Accounts]. | 116 /// |
| 107 * | 117 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 118 /// an error. |
| 109 * error. | 119 /// |
| 110 * | 120 /// If the used [http.Client] completes with an error when making a REST |
| 111 * If the used [http.Client] completes with an error when making a REST call, | 121 /// call, this method will complete with the same error. |
| 112 * this method will complete with the same error. | |
| 113 */ | |
| 114 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { | 122 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { |
| 115 var _url = null; | 123 var _url = null; |
| 116 var _queryParams = new core.Map(); | 124 var _queryParams = new core.Map(); |
| 117 var _uploadMedia = null; | 125 var _uploadMedia = null; |
| 118 var _uploadOptions = null; | 126 var _uploadOptions = null; |
| 119 var _downloadOptions = commons.DownloadOptions.Metadata; | 127 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 120 var _body = null; | 128 var _body = null; |
| 121 | 129 |
| 122 if (maxResults != null) { | 130 if (maxResults != null) { |
| 123 _queryParams["maxResults"] = ["${maxResults}"]; | 131 _queryParams["maxResults"] = ["${maxResults}"]; |
| 124 } | 132 } |
| 125 if (pageToken != null) { | 133 if (pageToken != null) { |
| 126 _queryParams["pageToken"] = [pageToken]; | 134 _queryParams["pageToken"] = [pageToken]; |
| 127 } | 135 } |
| 128 | 136 |
| 129 _url = 'accounts'; | 137 _url = 'accounts'; |
| 130 | 138 |
| 131 var _response = _requester.request(_url, | 139 var _response = _requester.request(_url, "GET", |
| 132 "GET", | 140 body: _body, |
| 133 body: _body, | 141 queryParams: _queryParams, |
| 134 queryParams: _queryParams, | 142 uploadOptions: _uploadOptions, |
| 135 uploadOptions: _uploadOptions, | 143 uploadMedia: _uploadMedia, |
| 136 uploadMedia: _uploadMedia, | 144 downloadOptions: _downloadOptions); |
| 137 downloadOptions: _downloadOptions); | |
| 138 return _response.then((data) => new Accounts.fromJson(data)); | 145 return _response.then((data) => new Accounts.fromJson(data)); |
| 139 } | 146 } |
| 140 | |
| 141 } | 147 } |
| 142 | 148 |
| 143 | |
| 144 class AccountsAdclientsResourceApi { | 149 class AccountsAdclientsResourceApi { |
| 145 final commons.ApiRequester _requester; | 150 final commons.ApiRequester _requester; |
| 146 | 151 |
| 147 AccountsAdclientsResourceApi(commons.ApiRequester client) : | 152 AccountsAdclientsResourceApi(commons.ApiRequester client) |
| 148 _requester = client; | 153 : _requester = client; |
| 149 | 154 |
| 150 /** | 155 /// List all ad clients in this Ad Exchange account. |
| 151 * List all ad clients in this Ad Exchange account. | 156 /// |
| 152 * | 157 /// Request parameters: |
| 153 * Request parameters: | 158 /// |
| 154 * | 159 /// [accountId] - Account to which the ad client belongs. |
| 155 * [accountId] - Account to which the ad client belongs. | 160 /// |
| 156 * | 161 /// [maxResults] - The maximum number of ad clients to include in the |
| 157 * [maxResults] - The maximum number of ad clients to include in the response, | 162 /// response, used for paging. |
| 158 * used for paging. | 163 /// Value must be between "0" and "10000". |
| 159 * Value must be between "0" and "10000". | 164 /// |
| 160 * | 165 /// [pageToken] - A continuation token, used to page through ad clients. To |
| 161 * [pageToken] - A continuation token, used to page through ad clients. To | 166 /// retrieve the next page, set this parameter to the value of |
| 162 * retrieve the next page, set this parameter to the value of "nextPageToken" | 167 /// "nextPageToken" from the previous response. |
| 163 * from the previous response. | 168 /// |
| 164 * | 169 /// Completes with a [AdClients]. |
| 165 * Completes with a [AdClients]. | 170 /// |
| 166 * | 171 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 167 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 172 /// an error. |
| 168 * error. | 173 /// |
| 169 * | 174 /// If the used [http.Client] completes with an error when making a REST |
| 170 * If the used [http.Client] completes with an error when making a REST call, | 175 /// call, this method will complete with the same error. |
| 171 * this method will complete with the same error. | 176 async.Future<AdClients> list(core.String accountId, |
| 172 */ | 177 {core.int maxResults, core.String pageToken}) { |
| 173 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core
.String pageToken}) { | |
| 174 var _url = null; | 178 var _url = null; |
| 175 var _queryParams = new core.Map(); | 179 var _queryParams = new core.Map(); |
| 176 var _uploadMedia = null; | 180 var _uploadMedia = null; |
| 177 var _uploadOptions = null; | 181 var _uploadOptions = null; |
| 178 var _downloadOptions = commons.DownloadOptions.Metadata; | 182 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 179 var _body = null; | 183 var _body = null; |
| 180 | 184 |
| 181 if (accountId == null) { | 185 if (accountId == null) { |
| 182 throw new core.ArgumentError("Parameter accountId is required."); | 186 throw new core.ArgumentError("Parameter accountId is required."); |
| 183 } | 187 } |
| 184 if (maxResults != null) { | 188 if (maxResults != null) { |
| 185 _queryParams["maxResults"] = ["${maxResults}"]; | 189 _queryParams["maxResults"] = ["${maxResults}"]; |
| 186 } | 190 } |
| 187 if (pageToken != null) { | 191 if (pageToken != null) { |
| 188 _queryParams["pageToken"] = [pageToken]; | 192 _queryParams["pageToken"] = [pageToken]; |
| 189 } | 193 } |
| 190 | 194 |
| 191 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts'; | 195 _url = 'accounts/' + |
| 196 commons.Escaper.ecapeVariable('$accountId') + |
| 197 '/adclients'; |
| 192 | 198 |
| 193 var _response = _requester.request(_url, | 199 var _response = _requester.request(_url, "GET", |
| 194 "GET", | 200 body: _body, |
| 195 body: _body, | 201 queryParams: _queryParams, |
| 196 queryParams: _queryParams, | 202 uploadOptions: _uploadOptions, |
| 197 uploadOptions: _uploadOptions, | 203 uploadMedia: _uploadMedia, |
| 198 uploadMedia: _uploadMedia, | 204 downloadOptions: _downloadOptions); |
| 199 downloadOptions: _downloadOptions); | |
| 200 return _response.then((data) => new AdClients.fromJson(data)); | 205 return _response.then((data) => new AdClients.fromJson(data)); |
| 201 } | 206 } |
| 202 | |
| 203 } | 207 } |
| 204 | 208 |
| 205 | |
| 206 class AccountsAlertsResourceApi { | 209 class AccountsAlertsResourceApi { |
| 207 final commons.ApiRequester _requester; | 210 final commons.ApiRequester _requester; |
| 208 | 211 |
| 209 AccountsAlertsResourceApi(commons.ApiRequester client) : | 212 AccountsAlertsResourceApi(commons.ApiRequester client) : _requester = client; |
| 210 _requester = client; | |
| 211 | 213 |
| 212 /** | 214 /// List the alerts for this Ad Exchange account. |
| 213 * List the alerts for this Ad Exchange account. | 215 /// |
| 214 * | 216 /// Request parameters: |
| 215 * Request parameters: | 217 /// |
| 216 * | 218 /// [accountId] - Account owning the alerts. |
| 217 * [accountId] - Account owning the alerts. | 219 /// |
| 218 * | 220 /// [locale] - The locale to use for translating alert messages. The account |
| 219 * [locale] - The locale to use for translating alert messages. The account | 221 /// locale will be used if this is not supplied. The AdSense default |
| 220 * locale will be used if this is not supplied. The AdSense default (English) | 222 /// (English) will be used if the supplied locale is invalid or unsupported. |
| 221 * will be used if the supplied locale is invalid or unsupported. | 223 /// |
| 222 * | 224 /// Completes with a [Alerts]. |
| 223 * Completes with a [Alerts]. | 225 /// |
| 224 * | 226 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 227 /// an error. |
| 226 * error. | 228 /// |
| 227 * | 229 /// If the used [http.Client] completes with an error when making a REST |
| 228 * If the used [http.Client] completes with an error when making a REST call, | 230 /// call, this method will complete with the same error. |
| 229 * this method will complete with the same error. | |
| 230 */ | |
| 231 async.Future<Alerts> list(core.String accountId, {core.String locale}) { | 231 async.Future<Alerts> list(core.String accountId, {core.String locale}) { |
| 232 var _url = null; | 232 var _url = null; |
| 233 var _queryParams = new core.Map(); | 233 var _queryParams = new core.Map(); |
| 234 var _uploadMedia = null; | 234 var _uploadMedia = null; |
| 235 var _uploadOptions = null; | 235 var _uploadOptions = null; |
| 236 var _downloadOptions = commons.DownloadOptions.Metadata; | 236 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 237 var _body = null; | 237 var _body = null; |
| 238 | 238 |
| 239 if (accountId == null) { | 239 if (accountId == null) { |
| 240 throw new core.ArgumentError("Parameter accountId is required."); | 240 throw new core.ArgumentError("Parameter accountId is required."); |
| 241 } | 241 } |
| 242 if (locale != null) { | 242 if (locale != null) { |
| 243 _queryParams["locale"] = [locale]; | 243 _queryParams["locale"] = [locale]; |
| 244 } | 244 } |
| 245 | 245 |
| 246 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts'
; | 246 _url = |
| 247 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts'; |
| 247 | 248 |
| 248 var _response = _requester.request(_url, | 249 var _response = _requester.request(_url, "GET", |
| 249 "GET", | 250 body: _body, |
| 250 body: _body, | 251 queryParams: _queryParams, |
| 251 queryParams: _queryParams, | 252 uploadOptions: _uploadOptions, |
| 252 uploadOptions: _uploadOptions, | 253 uploadMedia: _uploadMedia, |
| 253 uploadMedia: _uploadMedia, | 254 downloadOptions: _downloadOptions); |
| 254 downloadOptions: _downloadOptions); | |
| 255 return _response.then((data) => new Alerts.fromJson(data)); | 255 return _response.then((data) => new Alerts.fromJson(data)); |
| 256 } | 256 } |
| 257 | |
| 258 } | 257 } |
| 259 | 258 |
| 260 | |
| 261 class AccountsCustomchannelsResourceApi { | 259 class AccountsCustomchannelsResourceApi { |
| 262 final commons.ApiRequester _requester; | 260 final commons.ApiRequester _requester; |
| 263 | 261 |
| 264 AccountsCustomchannelsResourceApi(commons.ApiRequester client) : | 262 AccountsCustomchannelsResourceApi(commons.ApiRequester client) |
| 265 _requester = client; | 263 : _requester = client; |
| 266 | 264 |
| 267 /** | 265 /// Get the specified custom channel from the specified ad client. |
| 268 * Get the specified custom channel from the specified ad client. | 266 /// |
| 269 * | 267 /// Request parameters: |
| 270 * Request parameters: | 268 /// |
| 271 * | 269 /// [accountId] - Account to which the ad client belongs. |
| 272 * [accountId] - Account to which the ad client belongs. | 270 /// |
| 273 * | 271 /// [adClientId] - Ad client which contains the custom channel. |
| 274 * [adClientId] - Ad client which contains the custom channel. | 272 /// |
| 275 * | 273 /// [customChannelId] - Custom channel to retrieve. |
| 276 * [customChannelId] - Custom channel to retrieve. | 274 /// |
| 277 * | 275 /// Completes with a [CustomChannel]. |
| 278 * Completes with a [CustomChannel]. | 276 /// |
| 279 * | 277 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 278 /// an error. |
| 281 * error. | 279 /// |
| 282 * | 280 /// If the used [http.Client] completes with an error when making a REST |
| 283 * If the used [http.Client] completes with an error when making a REST call, | 281 /// call, this method will complete with the same error. |
| 284 * this method will complete with the same error. | 282 async.Future<CustomChannel> get(core.String accountId, core.String adClientId, |
| 285 */ | 283 core.String customChannelId) { |
| 286 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
core.String customChannelId) { | |
| 287 var _url = null; | 284 var _url = null; |
| 288 var _queryParams = new core.Map(); | 285 var _queryParams = new core.Map(); |
| 289 var _uploadMedia = null; | 286 var _uploadMedia = null; |
| 290 var _uploadOptions = null; | 287 var _uploadOptions = null; |
| 291 var _downloadOptions = commons.DownloadOptions.Metadata; | 288 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 292 var _body = null; | 289 var _body = null; |
| 293 | 290 |
| 294 if (accountId == null) { | 291 if (accountId == null) { |
| 295 throw new core.ArgumentError("Parameter accountId is required."); | 292 throw new core.ArgumentError("Parameter accountId is required."); |
| 296 } | 293 } |
| 297 if (adClientId == null) { | 294 if (adClientId == null) { |
| 298 throw new core.ArgumentError("Parameter adClientId is required."); | 295 throw new core.ArgumentError("Parameter adClientId is required."); |
| 299 } | 296 } |
| 300 if (customChannelId == null) { | 297 if (customChannelId == null) { |
| 301 throw new core.ArgumentError("Parameter customChannelId is required."); | 298 throw new core.ArgumentError("Parameter customChannelId is required."); |
| 302 } | 299 } |
| 303 | 300 |
| 304 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo
ns.Escaper.ecapeVariable('$customChannelId'); | 301 _url = 'accounts/' + |
| 302 commons.Escaper.ecapeVariable('$accountId') + |
| 303 '/adclients/' + |
| 304 commons.Escaper.ecapeVariable('$adClientId') + |
| 305 '/customchannels/' + |
| 306 commons.Escaper.ecapeVariable('$customChannelId'); |
| 305 | 307 |
| 306 var _response = _requester.request(_url, | 308 var _response = _requester.request(_url, "GET", |
| 307 "GET", | 309 body: _body, |
| 308 body: _body, | 310 queryParams: _queryParams, |
| 309 queryParams: _queryParams, | 311 uploadOptions: _uploadOptions, |
| 310 uploadOptions: _uploadOptions, | 312 uploadMedia: _uploadMedia, |
| 311 uploadMedia: _uploadMedia, | 313 downloadOptions: _downloadOptions); |
| 312 downloadOptions: _downloadOptions); | |
| 313 return _response.then((data) => new CustomChannel.fromJson(data)); | 314 return _response.then((data) => new CustomChannel.fromJson(data)); |
| 314 } | 315 } |
| 315 | 316 |
| 316 /** | 317 /// List all custom channels in the specified ad client for this Ad Exchange |
| 317 * List all custom channels in the specified ad client for this Ad Exchange | 318 /// account. |
| 318 * account. | 319 /// |
| 319 * | 320 /// Request parameters: |
| 320 * Request parameters: | 321 /// |
| 321 * | 322 /// [accountId] - Account to which the ad client belongs. |
| 322 * [accountId] - Account to which the ad client belongs. | 323 /// |
| 323 * | 324 /// [adClientId] - Ad client for which to list custom channels. |
| 324 * [adClientId] - Ad client for which to list custom channels. | 325 /// |
| 325 * | 326 /// [maxResults] - The maximum number of custom channels to include in the |
| 326 * [maxResults] - The maximum number of custom channels to include in the | 327 /// response, used for paging. |
| 327 * response, used for paging. | 328 /// Value must be between "0" and "10000". |
| 328 * Value must be between "0" and "10000". | 329 /// |
| 329 * | 330 /// [pageToken] - A continuation token, used to page through custom channels. |
| 330 * [pageToken] - A continuation token, used to page through custom channels. | 331 /// To retrieve the next page, set this parameter to the value of |
| 331 * To retrieve the next page, set this parameter to the value of | 332 /// "nextPageToken" from the previous response. |
| 332 * "nextPageToken" from the previous response. | 333 /// |
| 333 * | 334 /// Completes with a [CustomChannels]. |
| 334 * Completes with a [CustomChannels]. | 335 /// |
| 335 * | 336 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 336 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 337 /// an error. |
| 337 * error. | 338 /// |
| 338 * | 339 /// If the used [http.Client] completes with an error when making a REST |
| 339 * If the used [http.Client] completes with an error when making a REST call, | 340 /// call, this method will complete with the same error. |
| 340 * this method will complete with the same error. | 341 async.Future<CustomChannels> list( |
| 341 */ | 342 core.String accountId, core.String adClientId, |
| 342 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, {core.int maxResults, core.String pageToken}) { | 343 {core.int maxResults, core.String pageToken}) { |
| 343 var _url = null; | 344 var _url = null; |
| 344 var _queryParams = new core.Map(); | 345 var _queryParams = new core.Map(); |
| 345 var _uploadMedia = null; | 346 var _uploadMedia = null; |
| 346 var _uploadOptions = null; | 347 var _uploadOptions = null; |
| 347 var _downloadOptions = commons.DownloadOptions.Metadata; | 348 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 348 var _body = null; | 349 var _body = null; |
| 349 | 350 |
| 350 if (accountId == null) { | 351 if (accountId == null) { |
| 351 throw new core.ArgumentError("Parameter accountId is required."); | 352 throw new core.ArgumentError("Parameter accountId is required."); |
| 352 } | 353 } |
| 353 if (adClientId == null) { | 354 if (adClientId == null) { |
| 354 throw new core.ArgumentError("Parameter adClientId is required."); | 355 throw new core.ArgumentError("Parameter adClientId is required."); |
| 355 } | 356 } |
| 356 if (maxResults != null) { | 357 if (maxResults != null) { |
| 357 _queryParams["maxResults"] = ["${maxResults}"]; | 358 _queryParams["maxResults"] = ["${maxResults}"]; |
| 358 } | 359 } |
| 359 if (pageToken != null) { | 360 if (pageToken != null) { |
| 360 _queryParams["pageToken"] = [pageToken]; | 361 _queryParams["pageToken"] = [pageToken]; |
| 361 } | 362 } |
| 362 | 363 |
| 363 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels'; | 364 _url = 'accounts/' + |
| 365 commons.Escaper.ecapeVariable('$accountId') + |
| 366 '/adclients/' + |
| 367 commons.Escaper.ecapeVariable('$adClientId') + |
| 368 '/customchannels'; |
| 364 | 369 |
| 365 var _response = _requester.request(_url, | 370 var _response = _requester.request(_url, "GET", |
| 366 "GET", | 371 body: _body, |
| 367 body: _body, | 372 queryParams: _queryParams, |
| 368 queryParams: _queryParams, | 373 uploadOptions: _uploadOptions, |
| 369 uploadOptions: _uploadOptions, | 374 uploadMedia: _uploadMedia, |
| 370 uploadMedia: _uploadMedia, | 375 downloadOptions: _downloadOptions); |
| 371 downloadOptions: _downloadOptions); | |
| 372 return _response.then((data) => new CustomChannels.fromJson(data)); | 376 return _response.then((data) => new CustomChannels.fromJson(data)); |
| 373 } | 377 } |
| 374 | |
| 375 } | 378 } |
| 376 | 379 |
| 377 | |
| 378 class AccountsMetadataResourceApi { | 380 class AccountsMetadataResourceApi { |
| 379 final commons.ApiRequester _requester; | 381 final commons.ApiRequester _requester; |
| 380 | 382 |
| 381 AccountsMetadataDimensionsResourceApi get dimensions => new AccountsMetadataDi
mensionsResourceApi(_requester); | 383 AccountsMetadataDimensionsResourceApi get dimensions => |
| 382 AccountsMetadataMetricsResourceApi get metrics => new AccountsMetadataMetricsR
esourceApi(_requester); | 384 new AccountsMetadataDimensionsResourceApi(_requester); |
| 385 AccountsMetadataMetricsResourceApi get metrics => |
| 386 new AccountsMetadataMetricsResourceApi(_requester); |
| 383 | 387 |
| 384 AccountsMetadataResourceApi(commons.ApiRequester client) : | 388 AccountsMetadataResourceApi(commons.ApiRequester client) |
| 385 _requester = client; | 389 : _requester = client; |
| 386 } | 390 } |
| 387 | 391 |
| 388 | |
| 389 class AccountsMetadataDimensionsResourceApi { | 392 class AccountsMetadataDimensionsResourceApi { |
| 390 final commons.ApiRequester _requester; | 393 final commons.ApiRequester _requester; |
| 391 | 394 |
| 392 AccountsMetadataDimensionsResourceApi(commons.ApiRequester client) : | 395 AccountsMetadataDimensionsResourceApi(commons.ApiRequester client) |
| 393 _requester = client; | 396 : _requester = client; |
| 394 | 397 |
| 395 /** | 398 /// List the metadata for the dimensions available to this AdExchange |
| 396 * List the metadata for the dimensions available to this AdExchange account. | 399 /// account. |
| 397 * | 400 /// |
| 398 * Request parameters: | 401 /// Request parameters: |
| 399 * | 402 /// |
| 400 * [accountId] - Account with visibility to the dimensions. | 403 /// [accountId] - Account with visibility to the dimensions. |
| 401 * | 404 /// |
| 402 * Completes with a [Metadata]. | 405 /// Completes with a [Metadata]. |
| 403 * | 406 /// |
| 404 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 407 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 405 * error. | 408 /// an error. |
| 406 * | 409 /// |
| 407 * If the used [http.Client] completes with an error when making a REST call, | 410 /// If the used [http.Client] completes with an error when making a REST |
| 408 * this method will complete with the same error. | 411 /// call, this method will complete with the same error. |
| 409 */ | |
| 410 async.Future<Metadata> list(core.String accountId) { | 412 async.Future<Metadata> list(core.String accountId) { |
| 411 var _url = null; | 413 var _url = null; |
| 412 var _queryParams = new core.Map(); | 414 var _queryParams = new core.Map(); |
| 413 var _uploadMedia = null; | 415 var _uploadMedia = null; |
| 414 var _uploadOptions = null; | 416 var _uploadOptions = null; |
| 415 var _downloadOptions = commons.DownloadOptions.Metadata; | 417 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 416 var _body = null; | 418 var _body = null; |
| 417 | 419 |
| 418 if (accountId == null) { | 420 if (accountId == null) { |
| 419 throw new core.ArgumentError("Parameter accountId is required."); | 421 throw new core.ArgumentError("Parameter accountId is required."); |
| 420 } | 422 } |
| 421 | 423 |
| 422 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/metadat
a/dimensions'; | 424 _url = 'accounts/' + |
| 425 commons.Escaper.ecapeVariable('$accountId') + |
| 426 '/metadata/dimensions'; |
| 423 | 427 |
| 424 var _response = _requester.request(_url, | 428 var _response = _requester.request(_url, "GET", |
| 425 "GET", | 429 body: _body, |
| 426 body: _body, | 430 queryParams: _queryParams, |
| 427 queryParams: _queryParams, | 431 uploadOptions: _uploadOptions, |
| 428 uploadOptions: _uploadOptions, | 432 uploadMedia: _uploadMedia, |
| 429 uploadMedia: _uploadMedia, | 433 downloadOptions: _downloadOptions); |
| 430 downloadOptions: _downloadOptions); | |
| 431 return _response.then((data) => new Metadata.fromJson(data)); | 434 return _response.then((data) => new Metadata.fromJson(data)); |
| 432 } | 435 } |
| 433 | |
| 434 } | 436 } |
| 435 | 437 |
| 436 | |
| 437 class AccountsMetadataMetricsResourceApi { | 438 class AccountsMetadataMetricsResourceApi { |
| 438 final commons.ApiRequester _requester; | 439 final commons.ApiRequester _requester; |
| 439 | 440 |
| 440 AccountsMetadataMetricsResourceApi(commons.ApiRequester client) : | 441 AccountsMetadataMetricsResourceApi(commons.ApiRequester client) |
| 441 _requester = client; | 442 : _requester = client; |
| 442 | 443 |
| 443 /** | 444 /// List the metadata for the metrics available to this AdExchange account. |
| 444 * List the metadata for the metrics available to this AdExchange account. | 445 /// |
| 445 * | 446 /// Request parameters: |
| 446 * Request parameters: | 447 /// |
| 447 * | 448 /// [accountId] - Account with visibility to the metrics. |
| 448 * [accountId] - Account with visibility to the metrics. | 449 /// |
| 449 * | 450 /// Completes with a [Metadata]. |
| 450 * Completes with a [Metadata]. | 451 /// |
| 451 * | 452 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 452 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 453 /// an error. |
| 453 * error. | 454 /// |
| 454 * | 455 /// If the used [http.Client] completes with an error when making a REST |
| 455 * If the used [http.Client] completes with an error when making a REST call, | 456 /// call, this method will complete with the same error. |
| 456 * this method will complete with the same error. | |
| 457 */ | |
| 458 async.Future<Metadata> list(core.String accountId) { | 457 async.Future<Metadata> list(core.String accountId) { |
| 459 var _url = null; | 458 var _url = null; |
| 460 var _queryParams = new core.Map(); | 459 var _queryParams = new core.Map(); |
| 461 var _uploadMedia = null; | 460 var _uploadMedia = null; |
| 462 var _uploadOptions = null; | 461 var _uploadOptions = null; |
| 463 var _downloadOptions = commons.DownloadOptions.Metadata; | 462 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 464 var _body = null; | 463 var _body = null; |
| 465 | 464 |
| 466 if (accountId == null) { | 465 if (accountId == null) { |
| 467 throw new core.ArgumentError("Parameter accountId is required."); | 466 throw new core.ArgumentError("Parameter accountId is required."); |
| 468 } | 467 } |
| 469 | 468 |
| 470 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/metadat
a/metrics'; | 469 _url = 'accounts/' + |
| 470 commons.Escaper.ecapeVariable('$accountId') + |
| 471 '/metadata/metrics'; |
| 471 | 472 |
| 472 var _response = _requester.request(_url, | 473 var _response = _requester.request(_url, "GET", |
| 473 "GET", | 474 body: _body, |
| 474 body: _body, | 475 queryParams: _queryParams, |
| 475 queryParams: _queryParams, | 476 uploadOptions: _uploadOptions, |
| 476 uploadOptions: _uploadOptions, | 477 uploadMedia: _uploadMedia, |
| 477 uploadMedia: _uploadMedia, | 478 downloadOptions: _downloadOptions); |
| 478 downloadOptions: _downloadOptions); | |
| 479 return _response.then((data) => new Metadata.fromJson(data)); | 479 return _response.then((data) => new Metadata.fromJson(data)); |
| 480 } | 480 } |
| 481 | |
| 482 } | 481 } |
| 483 | 482 |
| 484 | |
| 485 class AccountsPreferreddealsResourceApi { | 483 class AccountsPreferreddealsResourceApi { |
| 486 final commons.ApiRequester _requester; | 484 final commons.ApiRequester _requester; |
| 487 | 485 |
| 488 AccountsPreferreddealsResourceApi(commons.ApiRequester client) : | 486 AccountsPreferreddealsResourceApi(commons.ApiRequester client) |
| 489 _requester = client; | 487 : _requester = client; |
| 490 | 488 |
| 491 /** | 489 /// Get information about the selected Ad Exchange Preferred Deal. |
| 492 * Get information about the selected Ad Exchange Preferred Deal. | 490 /// |
| 493 * | 491 /// Request parameters: |
| 494 * Request parameters: | 492 /// |
| 495 * | 493 /// [accountId] - Account owning the deal. |
| 496 * [accountId] - Account owning the deal. | 494 /// |
| 497 * | 495 /// [dealId] - Preferred deal to get information about. |
| 498 * [dealId] - Preferred deal to get information about. | 496 /// |
| 499 * | 497 /// Completes with a [PreferredDeal]. |
| 500 * Completes with a [PreferredDeal]. | 498 /// |
| 501 * | 499 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 502 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 500 /// an error. |
| 503 * error. | 501 /// |
| 504 * | 502 /// If the used [http.Client] completes with an error when making a REST |
| 505 * If the used [http.Client] completes with an error when making a REST call, | 503 /// call, this method will complete with the same error. |
| 506 * this method will complete with the same error. | |
| 507 */ | |
| 508 async.Future<PreferredDeal> get(core.String accountId, core.String dealId) { | 504 async.Future<PreferredDeal> get(core.String accountId, core.String dealId) { |
| 509 var _url = null; | 505 var _url = null; |
| 510 var _queryParams = new core.Map(); | 506 var _queryParams = new core.Map(); |
| 511 var _uploadMedia = null; | 507 var _uploadMedia = null; |
| 512 var _uploadOptions = null; | 508 var _uploadOptions = null; |
| 513 var _downloadOptions = commons.DownloadOptions.Metadata; | 509 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 514 var _body = null; | 510 var _body = null; |
| 515 | 511 |
| 516 if (accountId == null) { | 512 if (accountId == null) { |
| 517 throw new core.ArgumentError("Parameter accountId is required."); | 513 throw new core.ArgumentError("Parameter accountId is required."); |
| 518 } | 514 } |
| 519 if (dealId == null) { | 515 if (dealId == null) { |
| 520 throw new core.ArgumentError("Parameter dealId is required."); | 516 throw new core.ArgumentError("Parameter dealId is required."); |
| 521 } | 517 } |
| 522 | 518 |
| 523 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/preferr
eddeals/' + commons.Escaper.ecapeVariable('$dealId'); | 519 _url = 'accounts/' + |
| 520 commons.Escaper.ecapeVariable('$accountId') + |
| 521 '/preferreddeals/' + |
| 522 commons.Escaper.ecapeVariable('$dealId'); |
| 524 | 523 |
| 525 var _response = _requester.request(_url, | 524 var _response = _requester.request(_url, "GET", |
| 526 "GET", | 525 body: _body, |
| 527 body: _body, | 526 queryParams: _queryParams, |
| 528 queryParams: _queryParams, | 527 uploadOptions: _uploadOptions, |
| 529 uploadOptions: _uploadOptions, | 528 uploadMedia: _uploadMedia, |
| 530 uploadMedia: _uploadMedia, | 529 downloadOptions: _downloadOptions); |
| 531 downloadOptions: _downloadOptions); | |
| 532 return _response.then((data) => new PreferredDeal.fromJson(data)); | 530 return _response.then((data) => new PreferredDeal.fromJson(data)); |
| 533 } | 531 } |
| 534 | 532 |
| 535 /** | 533 /// List the preferred deals for this Ad Exchange account. |
| 536 * List the preferred deals for this Ad Exchange account. | 534 /// |
| 537 * | 535 /// Request parameters: |
| 538 * Request parameters: | 536 /// |
| 539 * | 537 /// [accountId] - Account owning the deals. |
| 540 * [accountId] - Account owning the deals. | 538 /// |
| 541 * | 539 /// Completes with a [PreferredDeals]. |
| 542 * Completes with a [PreferredDeals]. | 540 /// |
| 543 * | 541 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 544 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 542 /// an error. |
| 545 * error. | 543 /// |
| 546 * | 544 /// If the used [http.Client] completes with an error when making a REST |
| 547 * If the used [http.Client] completes with an error when making a REST call, | 545 /// call, this method will complete with the same error. |
| 548 * this method will complete with the same error. | |
| 549 */ | |
| 550 async.Future<PreferredDeals> list(core.String accountId) { | 546 async.Future<PreferredDeals> list(core.String accountId) { |
| 551 var _url = null; | 547 var _url = null; |
| 552 var _queryParams = new core.Map(); | 548 var _queryParams = new core.Map(); |
| 553 var _uploadMedia = null; | 549 var _uploadMedia = null; |
| 554 var _uploadOptions = null; | 550 var _uploadOptions = null; |
| 555 var _downloadOptions = commons.DownloadOptions.Metadata; | 551 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 556 var _body = null; | 552 var _body = null; |
| 557 | 553 |
| 558 if (accountId == null) { | 554 if (accountId == null) { |
| 559 throw new core.ArgumentError("Parameter accountId is required."); | 555 throw new core.ArgumentError("Parameter accountId is required."); |
| 560 } | 556 } |
| 561 | 557 |
| 562 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/preferr
eddeals'; | 558 _url = 'accounts/' + |
| 559 commons.Escaper.ecapeVariable('$accountId') + |
| 560 '/preferreddeals'; |
| 563 | 561 |
| 564 var _response = _requester.request(_url, | 562 var _response = _requester.request(_url, "GET", |
| 565 "GET", | 563 body: _body, |
| 566 body: _body, | 564 queryParams: _queryParams, |
| 567 queryParams: _queryParams, | 565 uploadOptions: _uploadOptions, |
| 568 uploadOptions: _uploadOptions, | 566 uploadMedia: _uploadMedia, |
| 569 uploadMedia: _uploadMedia, | 567 downloadOptions: _downloadOptions); |
| 570 downloadOptions: _downloadOptions); | |
| 571 return _response.then((data) => new PreferredDeals.fromJson(data)); | 568 return _response.then((data) => new PreferredDeals.fromJson(data)); |
| 572 } | 569 } |
| 573 | |
| 574 } | 570 } |
| 575 | 571 |
| 576 | |
| 577 class AccountsReportsResourceApi { | 572 class AccountsReportsResourceApi { |
| 578 final commons.ApiRequester _requester; | 573 final commons.ApiRequester _requester; |
| 579 | 574 |
| 580 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA
pi(_requester); | 575 AccountsReportsSavedResourceApi get saved => |
| 576 new AccountsReportsSavedResourceApi(_requester); |
| 581 | 577 |
| 582 AccountsReportsResourceApi(commons.ApiRequester client) : | 578 AccountsReportsResourceApi(commons.ApiRequester client) : _requester = client; |
| 583 _requester = client; | |
| 584 | 579 |
| 585 /** | 580 /// Generate an Ad Exchange report based on the report request sent in the |
| 586 * Generate an Ad Exchange report based on the report request sent in the | 581 /// query parameters. Returns the result as JSON; to retrieve output in CSV |
| 587 * query parameters. Returns the result as JSON; to retrieve output in CSV | 582 /// format specify "alt=csv" as a query parameter. |
| 588 * format specify "alt=csv" as a query parameter. | 583 /// |
| 589 * | 584 /// Request parameters: |
| 590 * Request parameters: | 585 /// |
| 591 * | 586 /// [accountId] - Account which owns the generated report. |
| 592 * [accountId] - Account which owns the generated report. | 587 /// |
| 593 * | 588 /// [startDate] - Start of the date range to report on in "YYYY-MM-DD" |
| 594 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, | 589 /// format, inclusive. |
| 595 * inclusive. | 590 /// Value must have pattern |
| 596 * Value must have pattern | 591 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}
?)". |
| 597 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?
)". | 592 /// |
| 598 * | 593 /// [endDate] - End of the date range to report on in "YYYY-MM-DD" format, |
| 599 * [endDate] - End of the date range to report on in "YYYY-MM-DD" format, | 594 /// inclusive. |
| 600 * inclusive. | 595 /// Value must have pattern |
| 601 * Value must have pattern | 596 /// "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}
?)". |
| 602 * "\d{4}-\d{2}-\d{2}|(today|startOfMonth|startOfYear)(([\-\+]\d+[dwmy]){0,3}?
)". | 597 /// |
| 603 * | 598 /// [dimension] - Dimensions to base the report on. |
| 604 * [dimension] - Dimensions to base the report on. | 599 /// Value must have pattern "[a-zA-Z_]+". |
| 605 * Value must have pattern "[a-zA-Z_]+". | 600 /// |
| 606 * | 601 /// [filter] - Filters to be run on the report. |
| 607 * [filter] - Filters to be run on the report. | 602 /// Value must have pattern "[a-zA-Z_]+(==|=@).+". |
| 608 * Value must have pattern "[a-zA-Z_]+(==|=@).+". | 603 /// |
| 609 * | 604 /// [locale] - Optional locale to use for translating report output to a |
| 610 * [locale] - Optional locale to use for translating report output to a local | 605 /// local language. Defaults to "en_US" if not specified. |
| 611 * language. Defaults to "en_US" if not specified. | 606 /// Value must have pattern "[a-zA-Z_]+". |
| 612 * Value must have pattern "[a-zA-Z_]+". | 607 /// |
| 613 * | 608 /// [maxResults] - The maximum number of rows of report data to return. |
| 614 * [maxResults] - The maximum number of rows of report data to return. | 609 /// Value must be between "0" and "50000". |
| 615 * Value must be between "0" and "50000". | 610 /// |
| 616 * | 611 /// [metric] - Numeric columns to include in the report. |
| 617 * [metric] - Numeric columns to include in the report. | 612 /// Value must have pattern "[a-zA-Z_]+". |
| 618 * Value must have pattern "[a-zA-Z_]+". | 613 /// |
| 619 * | 614 /// [sort] - The name of a dimension or metric to sort the resulting report |
| 620 * [sort] - The name of a dimension or metric to sort the resulting report on, | 615 /// on, optionally prefixed with "+" to sort ascending or "-" to sort |
| 621 * optionally prefixed with "+" to sort ascending or "-" to sort descending. | 616 /// descending. If no prefix is specified, the column is sorted ascending. |
| 622 * If no prefix is specified, the column is sorted ascending. | 617 /// Value must have pattern "(\+|-)?[a-zA-Z_]+". |
| 623 * Value must have pattern "(\+|-)?[a-zA-Z_]+". | 618 /// |
| 624 * | 619 /// [startIndex] - Index of the first row of report data to return. |
| 625 * [startIndex] - Index of the first row of report data to return. | 620 /// Value must be between "0" and "5000". |
| 626 * Value must be between "0" and "5000". | 621 /// |
| 627 * | 622 /// [downloadOptions] - Options for downloading. A download can be either a |
| 628 * [downloadOptions] - Options for downloading. A download can be either a | 623 /// Metadata (default) or Media download. Partial Media downloads are |
| 629 * Metadata (default) or Media download. Partial Media downloads are possible | 624 /// possible as well. |
| 630 * as well. | 625 /// |
| 631 * | 626 /// Completes with a |
| 632 * Completes with a | 627 /// |
| 633 * | 628 /// - [Report] for Metadata downloads (see [downloadOptions]). |
| 634 * - [Report] for Metadata downloads (see [downloadOptions]). | 629 /// |
| 635 * | 630 /// - [commons.Media] for Media downloads (see [downloadOptions]). |
| 636 * - [commons.Media] for Media downloads (see [downloadOptions]). | 631 /// |
| 637 * | 632 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 638 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 633 /// an error. |
| 639 * error. | 634 /// |
| 640 * | 635 /// If the used [http.Client] completes with an error when making a REST |
| 641 * If the used [http.Client] completes with an error when making a REST call, | 636 /// call, this method will complete with the same error. |
| 642 * this method will complete with the same error. | 637 async.Future generate( |
| 643 */ | 638 core.String accountId, core.String startDate, core.String endDate, |
| 644 async.Future generate(core.String accountId, core.String startDate, core.Strin
g endDate, {core.List<core.String> dimension, core.List<core.String> filter, cor
e.String locale, core.int maxResults, core.List<core.String> metric, core.List<c
ore.String> sort, core.int startIndex, commons.DownloadOptions downloadOptions:
commons.DownloadOptions.Metadata}) { | 639 {core.List<core.String> dimension, |
| 640 core.List<core.String> filter, |
| 641 core.String locale, |
| 642 core.int maxResults, |
| 643 core.List<core.String> metric, |
| 644 core.List<core.String> sort, |
| 645 core.int startIndex, |
| 646 commons.DownloadOptions downloadOptions: |
| 647 commons.DownloadOptions.Metadata}) { |
| 645 var _url = null; | 648 var _url = null; |
| 646 var _queryParams = new core.Map(); | 649 var _queryParams = new core.Map(); |
| 647 var _uploadMedia = null; | 650 var _uploadMedia = null; |
| 648 var _uploadOptions = null; | 651 var _uploadOptions = null; |
| 649 var _downloadOptions = commons.DownloadOptions.Metadata; | 652 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 650 var _body = null; | 653 var _body = null; |
| 651 | 654 |
| 652 if (accountId == null) { | 655 if (accountId == null) { |
| 653 throw new core.ArgumentError("Parameter accountId is required."); | 656 throw new core.ArgumentError("Parameter accountId is required."); |
| 654 } | 657 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 677 } | 680 } |
| 678 if (sort != null) { | 681 if (sort != null) { |
| 679 _queryParams["sort"] = sort; | 682 _queryParams["sort"] = sort; |
| 680 } | 683 } |
| 681 if (startIndex != null) { | 684 if (startIndex != null) { |
| 682 _queryParams["startIndex"] = ["${startIndex}"]; | 685 _queryParams["startIndex"] = ["${startIndex}"]; |
| 683 } | 686 } |
| 684 | 687 |
| 685 _downloadOptions = downloadOptions; | 688 _downloadOptions = downloadOptions; |
| 686 | 689 |
| 687 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
'; | 690 _url = |
| 691 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports'; |
| 688 | 692 |
| 689 var _response = _requester.request(_url, | 693 var _response = _requester.request(_url, "GET", |
| 690 "GET", | 694 body: _body, |
| 691 body: _body, | 695 queryParams: _queryParams, |
| 692 queryParams: _queryParams, | 696 uploadOptions: _uploadOptions, |
| 693 uploadOptions: _uploadOptions, | 697 uploadMedia: _uploadMedia, |
| 694 uploadMedia: _uploadMedia, | 698 downloadOptions: _downloadOptions); |
| 695 downloadOptions: _downloadOptions); | |
| 696 if (_downloadOptions == null || | 699 if (_downloadOptions == null || |
| 697 _downloadOptions == commons.DownloadOptions.Metadata) { | 700 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 698 return _response.then((data) => new Report.fromJson(data)); | 701 return _response.then((data) => new Report.fromJson(data)); |
| 699 } else { | 702 } else { |
| 700 return _response; | 703 return _response; |
| 701 } | 704 } |
| 702 } | 705 } |
| 703 | |
| 704 } | 706 } |
| 705 | 707 |
| 706 | |
| 707 class AccountsReportsSavedResourceApi { | 708 class AccountsReportsSavedResourceApi { |
| 708 final commons.ApiRequester _requester; | 709 final commons.ApiRequester _requester; |
| 709 | 710 |
| 710 AccountsReportsSavedResourceApi(commons.ApiRequester client) : | 711 AccountsReportsSavedResourceApi(commons.ApiRequester client) |
| 711 _requester = client; | 712 : _requester = client; |
| 712 | 713 |
| 713 /** | 714 /// Generate an Ad Exchange report based on the saved report ID sent in the |
| 714 * Generate an Ad Exchange report based on the saved report ID sent in the | 715 /// query parameters. |
| 715 * query parameters. | 716 /// |
| 716 * | 717 /// Request parameters: |
| 717 * Request parameters: | 718 /// |
| 718 * | 719 /// [accountId] - Account owning the saved report. |
| 719 * [accountId] - Account owning the saved report. | 720 /// |
| 720 * | 721 /// [savedReportId] - The saved report to retrieve. |
| 721 * [savedReportId] - The saved report to retrieve. | 722 /// |
| 722 * | 723 /// [locale] - Optional locale to use for translating report output to a |
| 723 * [locale] - Optional locale to use for translating report output to a local | 724 /// local language. Defaults to "en_US" if not specified. |
| 724 * language. Defaults to "en_US" if not specified. | 725 /// Value must have pattern "[a-zA-Z_]+". |
| 725 * Value must have pattern "[a-zA-Z_]+". | 726 /// |
| 726 * | 727 /// [maxResults] - The maximum number of rows of report data to return. |
| 727 * [maxResults] - The maximum number of rows of report data to return. | 728 /// Value must be between "0" and "50000". |
| 728 * Value must be between "0" and "50000". | 729 /// |
| 729 * | 730 /// [startIndex] - Index of the first row of report data to return. |
| 730 * [startIndex] - Index of the first row of report data to return. | 731 /// Value must be between "0" and "5000". |
| 731 * Value must be between "0" and "5000". | 732 /// |
| 732 * | 733 /// Completes with a [Report]. |
| 733 * Completes with a [Report]. | 734 /// |
| 734 * | 735 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 735 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 736 /// an error. |
| 736 * error. | 737 /// |
| 737 * | 738 /// If the used [http.Client] completes with an error when making a REST |
| 738 * If the used [http.Client] completes with an error when making a REST call, | 739 /// call, this method will complete with the same error. |
| 739 * this method will complete with the same error. | 740 async.Future<Report> generate( |
| 740 */ | 741 core.String accountId, core.String savedReportId, |
| 741 async.Future<Report> generate(core.String accountId, core.String savedReportId
, {core.String locale, core.int maxResults, core.int startIndex}) { | 742 {core.String locale, core.int maxResults, core.int startIndex}) { |
| 742 var _url = null; | 743 var _url = null; |
| 743 var _queryParams = new core.Map(); | 744 var _queryParams = new core.Map(); |
| 744 var _uploadMedia = null; | 745 var _uploadMedia = null; |
| 745 var _uploadOptions = null; | 746 var _uploadOptions = null; |
| 746 var _downloadOptions = commons.DownloadOptions.Metadata; | 747 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 747 var _body = null; | 748 var _body = null; |
| 748 | 749 |
| 749 if (accountId == null) { | 750 if (accountId == null) { |
| 750 throw new core.ArgumentError("Parameter accountId is required."); | 751 throw new core.ArgumentError("Parameter accountId is required."); |
| 751 } | 752 } |
| 752 if (savedReportId == null) { | 753 if (savedReportId == null) { |
| 753 throw new core.ArgumentError("Parameter savedReportId is required."); | 754 throw new core.ArgumentError("Parameter savedReportId is required."); |
| 754 } | 755 } |
| 755 if (locale != null) { | 756 if (locale != null) { |
| 756 _queryParams["locale"] = [locale]; | 757 _queryParams["locale"] = [locale]; |
| 757 } | 758 } |
| 758 if (maxResults != null) { | 759 if (maxResults != null) { |
| 759 _queryParams["maxResults"] = ["${maxResults}"]; | 760 _queryParams["maxResults"] = ["${maxResults}"]; |
| 760 } | 761 } |
| 761 if (startIndex != null) { | 762 if (startIndex != null) { |
| 762 _queryParams["startIndex"] = ["${startIndex}"]; | 763 _queryParams["startIndex"] = ["${startIndex}"]; |
| 763 } | 764 } |
| 764 | 765 |
| 765 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/' + commons.Escaper.ecapeVariable('$savedReportId'); | 766 _url = 'accounts/' + |
| 767 commons.Escaper.ecapeVariable('$accountId') + |
| 768 '/reports/' + |
| 769 commons.Escaper.ecapeVariable('$savedReportId'); |
| 766 | 770 |
| 767 var _response = _requester.request(_url, | 771 var _response = _requester.request(_url, "GET", |
| 768 "GET", | 772 body: _body, |
| 769 body: _body, | 773 queryParams: _queryParams, |
| 770 queryParams: _queryParams, | 774 uploadOptions: _uploadOptions, |
| 771 uploadOptions: _uploadOptions, | 775 uploadMedia: _uploadMedia, |
| 772 uploadMedia: _uploadMedia, | 776 downloadOptions: _downloadOptions); |
| 773 downloadOptions: _downloadOptions); | |
| 774 return _response.then((data) => new Report.fromJson(data)); | 777 return _response.then((data) => new Report.fromJson(data)); |
| 775 } | 778 } |
| 776 | 779 |
| 777 /** | 780 /// List all saved reports in this Ad Exchange account. |
| 778 * List all saved reports in this Ad Exchange account. | 781 /// |
| 779 * | 782 /// Request parameters: |
| 780 * Request parameters: | 783 /// |
| 781 * | 784 /// [accountId] - Account owning the saved reports. |
| 782 * [accountId] - Account owning the saved reports. | 785 /// |
| 783 * | 786 /// [maxResults] - The maximum number of saved reports to include in the |
| 784 * [maxResults] - The maximum number of saved reports to include in the | 787 /// response, used for paging. |
| 785 * response, used for paging. | 788 /// Value must be between "0" and "100". |
| 786 * Value must be between "0" and "100". | 789 /// |
| 787 * | 790 /// [pageToken] - A continuation token, used to page through saved reports. |
| 788 * [pageToken] - A continuation token, used to page through saved reports. To | 791 /// To retrieve the next page, set this parameter to the value of |
| 789 * retrieve the next page, set this parameter to the value of "nextPageToken" | 792 /// "nextPageToken" from the previous response. |
| 790 * from the previous response. | 793 /// |
| 791 * | 794 /// Completes with a [SavedReports]. |
| 792 * Completes with a [SavedReports]. | 795 /// |
| 793 * | 796 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 794 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 797 /// an error. |
| 795 * error. | 798 /// |
| 796 * | 799 /// If the used [http.Client] completes with an error when making a REST |
| 797 * If the used [http.Client] completes with an error when making a REST call, | 800 /// call, this method will complete with the same error. |
| 798 * this method will complete with the same error. | 801 async.Future<SavedReports> list(core.String accountId, |
| 799 */ | 802 {core.int maxResults, core.String pageToken}) { |
| 800 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c
ore.String pageToken}) { | |
| 801 var _url = null; | 803 var _url = null; |
| 802 var _queryParams = new core.Map(); | 804 var _queryParams = new core.Map(); |
| 803 var _uploadMedia = null; | 805 var _uploadMedia = null; |
| 804 var _uploadOptions = null; | 806 var _uploadOptions = null; |
| 805 var _downloadOptions = commons.DownloadOptions.Metadata; | 807 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 806 var _body = null; | 808 var _body = null; |
| 807 | 809 |
| 808 if (accountId == null) { | 810 if (accountId == null) { |
| 809 throw new core.ArgumentError("Parameter accountId is required."); | 811 throw new core.ArgumentError("Parameter accountId is required."); |
| 810 } | 812 } |
| 811 if (maxResults != null) { | 813 if (maxResults != null) { |
| 812 _queryParams["maxResults"] = ["${maxResults}"]; | 814 _queryParams["maxResults"] = ["${maxResults}"]; |
| 813 } | 815 } |
| 814 if (pageToken != null) { | 816 if (pageToken != null) { |
| 815 _queryParams["pageToken"] = [pageToken]; | 817 _queryParams["pageToken"] = [pageToken]; |
| 816 } | 818 } |
| 817 | 819 |
| 818 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/saved'; | 820 _url = 'accounts/' + |
| 821 commons.Escaper.ecapeVariable('$accountId') + |
| 822 '/reports/saved'; |
| 819 | 823 |
| 820 var _response = _requester.request(_url, | 824 var _response = _requester.request(_url, "GET", |
| 821 "GET", | 825 body: _body, |
| 822 body: _body, | 826 queryParams: _queryParams, |
| 823 queryParams: _queryParams, | 827 uploadOptions: _uploadOptions, |
| 824 uploadOptions: _uploadOptions, | 828 uploadMedia: _uploadMedia, |
| 825 uploadMedia: _uploadMedia, | 829 downloadOptions: _downloadOptions); |
| 826 downloadOptions: _downloadOptions); | |
| 827 return _response.then((data) => new SavedReports.fromJson(data)); | 830 return _response.then((data) => new SavedReports.fromJson(data)); |
| 828 } | 831 } |
| 829 | |
| 830 } | 832 } |
| 831 | 833 |
| 832 | |
| 833 class AccountsUrlchannelsResourceApi { | 834 class AccountsUrlchannelsResourceApi { |
| 834 final commons.ApiRequester _requester; | 835 final commons.ApiRequester _requester; |
| 835 | 836 |
| 836 AccountsUrlchannelsResourceApi(commons.ApiRequester client) : | 837 AccountsUrlchannelsResourceApi(commons.ApiRequester client) |
| 837 _requester = client; | 838 : _requester = client; |
| 838 | 839 |
| 839 /** | 840 /// List all URL channels in the specified ad client for this Ad Exchange |
| 840 * List all URL channels in the specified ad client for this Ad Exchange | 841 /// account. |
| 841 * account. | 842 /// |
| 842 * | 843 /// Request parameters: |
| 843 * Request parameters: | 844 /// |
| 844 * | 845 /// [accountId] - Account to which the ad client belongs. |
| 845 * [accountId] - Account to which the ad client belongs. | 846 /// |
| 846 * | 847 /// [adClientId] - Ad client for which to list URL channels. |
| 847 * [adClientId] - Ad client for which to list URL channels. | 848 /// |
| 848 * | 849 /// [maxResults] - The maximum number of URL channels to include in the |
| 849 * [maxResults] - The maximum number of URL channels to include in the | 850 /// response, used for paging. |
| 850 * response, used for paging. | 851 /// Value must be between "0" and "10000". |
| 851 * Value must be between "0" and "10000". | 852 /// |
| 852 * | 853 /// [pageToken] - A continuation token, used to page through URL channels. To |
| 853 * [pageToken] - A continuation token, used to page through URL channels. To | 854 /// retrieve the next page, set this parameter to the value of |
| 854 * retrieve the next page, set this parameter to the value of "nextPageToken" | 855 /// "nextPageToken" from the previous response. |
| 855 * from the previous response. | 856 /// |
| 856 * | 857 /// Completes with a [UrlChannels]. |
| 857 * Completes with a [UrlChannels]. | 858 /// |
| 858 * | 859 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 860 /// an error. |
| 860 * error. | 861 /// |
| 861 * | 862 /// If the used [http.Client] completes with an error when making a REST |
| 862 * If the used [http.Client] completes with an error when making a REST call, | 863 /// call, this method will complete with the same error. |
| 863 * this method will complete with the same error. | 864 async.Future<UrlChannels> list(core.String accountId, core.String adClientId, |
| 864 */ | 865 {core.int maxResults, core.String pageToken}) { |
| 865 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
{core.int maxResults, core.String pageToken}) { | |
| 866 var _url = null; | 866 var _url = null; |
| 867 var _queryParams = new core.Map(); | 867 var _queryParams = new core.Map(); |
| 868 var _uploadMedia = null; | 868 var _uploadMedia = null; |
| 869 var _uploadOptions = null; | 869 var _uploadOptions = null; |
| 870 var _downloadOptions = commons.DownloadOptions.Metadata; | 870 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 871 var _body = null; | 871 var _body = null; |
| 872 | 872 |
| 873 if (accountId == null) { | 873 if (accountId == null) { |
| 874 throw new core.ArgumentError("Parameter accountId is required."); | 874 throw new core.ArgumentError("Parameter accountId is required."); |
| 875 } | 875 } |
| 876 if (adClientId == null) { | 876 if (adClientId == null) { |
| 877 throw new core.ArgumentError("Parameter adClientId is required."); | 877 throw new core.ArgumentError("Parameter adClientId is required."); |
| 878 } | 878 } |
| 879 if (maxResults != null) { | 879 if (maxResults != null) { |
| 880 _queryParams["maxResults"] = ["${maxResults}"]; | 880 _queryParams["maxResults"] = ["${maxResults}"]; |
| 881 } | 881 } |
| 882 if (pageToken != null) { | 882 if (pageToken != null) { |
| 883 _queryParams["pageToken"] = [pageToken]; | 883 _queryParams["pageToken"] = [pageToken]; |
| 884 } | 884 } |
| 885 | 885 |
| 886 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; | 886 _url = 'accounts/' + |
| 887 commons.Escaper.ecapeVariable('$accountId') + |
| 888 '/adclients/' + |
| 889 commons.Escaper.ecapeVariable('$adClientId') + |
| 890 '/urlchannels'; |
| 887 | 891 |
| 888 var _response = _requester.request(_url, | 892 var _response = _requester.request(_url, "GET", |
| 889 "GET", | 893 body: _body, |
| 890 body: _body, | 894 queryParams: _queryParams, |
| 891 queryParams: _queryParams, | 895 uploadOptions: _uploadOptions, |
| 892 uploadOptions: _uploadOptions, | 896 uploadMedia: _uploadMedia, |
| 893 uploadMedia: _uploadMedia, | 897 downloadOptions: _downloadOptions); |
| 894 downloadOptions: _downloadOptions); | |
| 895 return _response.then((data) => new UrlChannels.fromJson(data)); | 898 return _response.then((data) => new UrlChannels.fromJson(data)); |
| 896 } | 899 } |
| 897 | |
| 898 } | 900 } |
| 899 | 901 |
| 902 class Account { |
| 903 /// Unique identifier of this account. |
| 904 core.String id; |
| 900 | 905 |
| 906 /// Kind of resource this is, in this case adexchangeseller#account. |
| 907 core.String kind; |
| 901 | 908 |
| 902 class Account { | 909 /// Name of this account. |
| 903 /** Unique identifier of this account. */ | |
| 904 core.String id; | |
| 905 /** Kind of resource this is, in this case adexchangeseller#account. */ | |
| 906 core.String kind; | |
| 907 /** Name of this account. */ | |
| 908 core.String name; | 910 core.String name; |
| 909 | 911 |
| 910 Account(); | 912 Account(); |
| 911 | 913 |
| 912 Account.fromJson(core.Map _json) { | 914 Account.fromJson(core.Map _json) { |
| 913 if (_json.containsKey("id")) { | 915 if (_json.containsKey("id")) { |
| 914 id = _json["id"]; | 916 id = _json["id"]; |
| 915 } | 917 } |
| 916 if (_json.containsKey("kind")) { | 918 if (_json.containsKey("kind")) { |
| 917 kind = _json["kind"]; | 919 kind = _json["kind"]; |
| 918 } | 920 } |
| 919 if (_json.containsKey("name")) { | 921 if (_json.containsKey("name")) { |
| 920 name = _json["name"]; | 922 name = _json["name"]; |
| 921 } | 923 } |
| 922 } | 924 } |
| 923 | 925 |
| 924 core.Map<core.String, core.Object> toJson() { | 926 core.Map<core.String, core.Object> toJson() { |
| 925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 927 final core.Map<core.String, core.Object> _json = |
| 928 new core.Map<core.String, core.Object>(); |
| 926 if (id != null) { | 929 if (id != null) { |
| 927 _json["id"] = id; | 930 _json["id"] = id; |
| 928 } | 931 } |
| 929 if (kind != null) { | 932 if (kind != null) { |
| 930 _json["kind"] = kind; | 933 _json["kind"] = kind; |
| 931 } | 934 } |
| 932 if (name != null) { | 935 if (name != null) { |
| 933 _json["name"] = name; | 936 _json["name"] = name; |
| 934 } | 937 } |
| 935 return _json; | 938 return _json; |
| 936 } | 939 } |
| 937 } | 940 } |
| 938 | 941 |
| 939 class Accounts { | 942 class Accounts { |
| 940 /** ETag of this response for caching purposes. */ | 943 /// ETag of this response for caching purposes. |
| 941 core.String etag; | 944 core.String etag; |
| 942 /** The accounts returned in this list response. */ | 945 |
| 946 /// The accounts returned in this list response. |
| 943 core.List<Account> items; | 947 core.List<Account> items; |
| 944 /** Kind of list this is, in this case adexchangeseller#accounts. */ | 948 |
| 949 /// Kind of list this is, in this case adexchangeseller#accounts. |
| 945 core.String kind; | 950 core.String kind; |
| 946 /** | 951 |
| 947 * Continuation token used to page through accounts. To retrieve the next page | 952 /// Continuation token used to page through accounts. To retrieve the next |
| 948 * of results, set the next request's "pageToken" value to this. | 953 /// page of results, set the next request's "pageToken" value to this. |
| 949 */ | |
| 950 core.String nextPageToken; | 954 core.String nextPageToken; |
| 951 | 955 |
| 952 Accounts(); | 956 Accounts(); |
| 953 | 957 |
| 954 Accounts.fromJson(core.Map _json) { | 958 Accounts.fromJson(core.Map _json) { |
| 955 if (_json.containsKey("etag")) { | 959 if (_json.containsKey("etag")) { |
| 956 etag = _json["etag"]; | 960 etag = _json["etag"]; |
| 957 } | 961 } |
| 958 if (_json.containsKey("items")) { | 962 if (_json.containsKey("items")) { |
| 959 items = _json["items"].map((value) => new Account.fromJson(value)).toList(
); | 963 items = |
| 964 _json["items"].map((value) => new Account.fromJson(value)).toList(); |
| 960 } | 965 } |
| 961 if (_json.containsKey("kind")) { | 966 if (_json.containsKey("kind")) { |
| 962 kind = _json["kind"]; | 967 kind = _json["kind"]; |
| 963 } | 968 } |
| 964 if (_json.containsKey("nextPageToken")) { | 969 if (_json.containsKey("nextPageToken")) { |
| 965 nextPageToken = _json["nextPageToken"]; | 970 nextPageToken = _json["nextPageToken"]; |
| 966 } | 971 } |
| 967 } | 972 } |
| 968 | 973 |
| 969 core.Map<core.String, core.Object> toJson() { | 974 core.Map<core.String, core.Object> toJson() { |
| 970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 975 final core.Map<core.String, core.Object> _json = |
| 976 new core.Map<core.String, core.Object>(); |
| 971 if (etag != null) { | 977 if (etag != null) { |
| 972 _json["etag"] = etag; | 978 _json["etag"] = etag; |
| 973 } | 979 } |
| 974 if (items != null) { | 980 if (items != null) { |
| 975 _json["items"] = items.map((value) => (value).toJson()).toList(); | 981 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 976 } | 982 } |
| 977 if (kind != null) { | 983 if (kind != null) { |
| 978 _json["kind"] = kind; | 984 _json["kind"] = kind; |
| 979 } | 985 } |
| 980 if (nextPageToken != null) { | 986 if (nextPageToken != null) { |
| 981 _json["nextPageToken"] = nextPageToken; | 987 _json["nextPageToken"] = nextPageToken; |
| 982 } | 988 } |
| 983 return _json; | 989 return _json; |
| 984 } | 990 } |
| 985 } | 991 } |
| 986 | 992 |
| 987 class AdClient { | 993 class AdClient { |
| 988 /** Whether this ad client is opted in to ARC. */ | 994 /// Whether this ad client is opted in to ARC. |
| 989 core.bool arcOptIn; | 995 core.bool arcOptIn; |
| 990 /** Unique identifier of this ad client. */ | 996 |
| 997 /// Unique identifier of this ad client. |
| 991 core.String id; | 998 core.String id; |
| 992 /** Kind of resource this is, in this case adexchangeseller#adClient. */ | 999 |
| 1000 /// Kind of resource this is, in this case adexchangeseller#adClient. |
| 993 core.String kind; | 1001 core.String kind; |
| 994 /** | 1002 |
| 995 * This ad client's product code, which corresponds to the PRODUCT_CODE report | 1003 /// This ad client's product code, which corresponds to the PRODUCT_CODE |
| 996 * dimension. | 1004 /// report dimension. |
| 997 */ | |
| 998 core.String productCode; | 1005 core.String productCode; |
| 999 /** Whether this ad client supports being reported on. */ | 1006 |
| 1007 /// Whether this ad client supports being reported on. |
| 1000 core.bool supportsReporting; | 1008 core.bool supportsReporting; |
| 1001 | 1009 |
| 1002 AdClient(); | 1010 AdClient(); |
| 1003 | 1011 |
| 1004 AdClient.fromJson(core.Map _json) { | 1012 AdClient.fromJson(core.Map _json) { |
| 1005 if (_json.containsKey("arcOptIn")) { | 1013 if (_json.containsKey("arcOptIn")) { |
| 1006 arcOptIn = _json["arcOptIn"]; | 1014 arcOptIn = _json["arcOptIn"]; |
| 1007 } | 1015 } |
| 1008 if (_json.containsKey("id")) { | 1016 if (_json.containsKey("id")) { |
| 1009 id = _json["id"]; | 1017 id = _json["id"]; |
| 1010 } | 1018 } |
| 1011 if (_json.containsKey("kind")) { | 1019 if (_json.containsKey("kind")) { |
| 1012 kind = _json["kind"]; | 1020 kind = _json["kind"]; |
| 1013 } | 1021 } |
| 1014 if (_json.containsKey("productCode")) { | 1022 if (_json.containsKey("productCode")) { |
| 1015 productCode = _json["productCode"]; | 1023 productCode = _json["productCode"]; |
| 1016 } | 1024 } |
| 1017 if (_json.containsKey("supportsReporting")) { | 1025 if (_json.containsKey("supportsReporting")) { |
| 1018 supportsReporting = _json["supportsReporting"]; | 1026 supportsReporting = _json["supportsReporting"]; |
| 1019 } | 1027 } |
| 1020 } | 1028 } |
| 1021 | 1029 |
| 1022 core.Map<core.String, core.Object> toJson() { | 1030 core.Map<core.String, core.Object> toJson() { |
| 1023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1031 final core.Map<core.String, core.Object> _json = |
| 1032 new core.Map<core.String, core.Object>(); |
| 1024 if (arcOptIn != null) { | 1033 if (arcOptIn != null) { |
| 1025 _json["arcOptIn"] = arcOptIn; | 1034 _json["arcOptIn"] = arcOptIn; |
| 1026 } | 1035 } |
| 1027 if (id != null) { | 1036 if (id != null) { |
| 1028 _json["id"] = id; | 1037 _json["id"] = id; |
| 1029 } | 1038 } |
| 1030 if (kind != null) { | 1039 if (kind != null) { |
| 1031 _json["kind"] = kind; | 1040 _json["kind"] = kind; |
| 1032 } | 1041 } |
| 1033 if (productCode != null) { | 1042 if (productCode != null) { |
| 1034 _json["productCode"] = productCode; | 1043 _json["productCode"] = productCode; |
| 1035 } | 1044 } |
| 1036 if (supportsReporting != null) { | 1045 if (supportsReporting != null) { |
| 1037 _json["supportsReporting"] = supportsReporting; | 1046 _json["supportsReporting"] = supportsReporting; |
| 1038 } | 1047 } |
| 1039 return _json; | 1048 return _json; |
| 1040 } | 1049 } |
| 1041 } | 1050 } |
| 1042 | 1051 |
| 1043 class AdClients { | 1052 class AdClients { |
| 1044 /** ETag of this response for caching purposes. */ | 1053 /// ETag of this response for caching purposes. |
| 1045 core.String etag; | 1054 core.String etag; |
| 1046 /** The ad clients returned in this list response. */ | 1055 |
| 1056 /// The ad clients returned in this list response. |
| 1047 core.List<AdClient> items; | 1057 core.List<AdClient> items; |
| 1048 /** Kind of list this is, in this case adexchangeseller#adClients. */ | 1058 |
| 1059 /// Kind of list this is, in this case adexchangeseller#adClients. |
| 1049 core.String kind; | 1060 core.String kind; |
| 1050 /** | 1061 |
| 1051 * Continuation token used to page through ad clients. To retrieve the next | 1062 /// Continuation token used to page through ad clients. To retrieve the next |
| 1052 * page of results, set the next request's "pageToken" value to this. | 1063 /// page of results, set the next request's "pageToken" value to this. |
| 1053 */ | |
| 1054 core.String nextPageToken; | 1064 core.String nextPageToken; |
| 1055 | 1065 |
| 1056 AdClients(); | 1066 AdClients(); |
| 1057 | 1067 |
| 1058 AdClients.fromJson(core.Map _json) { | 1068 AdClients.fromJson(core.Map _json) { |
| 1059 if (_json.containsKey("etag")) { | 1069 if (_json.containsKey("etag")) { |
| 1060 etag = _json["etag"]; | 1070 etag = _json["etag"]; |
| 1061 } | 1071 } |
| 1062 if (_json.containsKey("items")) { | 1072 if (_json.containsKey("items")) { |
| 1063 items = _json["items"].map((value) => new AdClient.fromJson(value)).toList
(); | 1073 items = |
| 1074 _json["items"].map((value) => new AdClient.fromJson(value)).toList(); |
| 1064 } | 1075 } |
| 1065 if (_json.containsKey("kind")) { | 1076 if (_json.containsKey("kind")) { |
| 1066 kind = _json["kind"]; | 1077 kind = _json["kind"]; |
| 1067 } | 1078 } |
| 1068 if (_json.containsKey("nextPageToken")) { | 1079 if (_json.containsKey("nextPageToken")) { |
| 1069 nextPageToken = _json["nextPageToken"]; | 1080 nextPageToken = _json["nextPageToken"]; |
| 1070 } | 1081 } |
| 1071 } | 1082 } |
| 1072 | 1083 |
| 1073 core.Map<core.String, core.Object> toJson() { | 1084 core.Map<core.String, core.Object> toJson() { |
| 1074 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1085 final core.Map<core.String, core.Object> _json = |
| 1086 new core.Map<core.String, core.Object>(); |
| 1075 if (etag != null) { | 1087 if (etag != null) { |
| 1076 _json["etag"] = etag; | 1088 _json["etag"] = etag; |
| 1077 } | 1089 } |
| 1078 if (items != null) { | 1090 if (items != null) { |
| 1079 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1091 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1080 } | 1092 } |
| 1081 if (kind != null) { | 1093 if (kind != null) { |
| 1082 _json["kind"] = kind; | 1094 _json["kind"] = kind; |
| 1083 } | 1095 } |
| 1084 if (nextPageToken != null) { | 1096 if (nextPageToken != null) { |
| 1085 _json["nextPageToken"] = nextPageToken; | 1097 _json["nextPageToken"] = nextPageToken; |
| 1086 } | 1098 } |
| 1087 return _json; | 1099 return _json; |
| 1088 } | 1100 } |
| 1089 } | 1101 } |
| 1090 | 1102 |
| 1091 class Alert { | 1103 class Alert { |
| 1092 /** | 1104 /// Unique identifier of this alert. This should be considered an opaque |
| 1093 * Unique identifier of this alert. This should be considered an opaque | 1105 /// identifier; it is not safe to rely on it being in any particular format. |
| 1094 * identifier; it is not safe to rely on it being in any particular format. | |
| 1095 */ | |
| 1096 core.String id; | 1106 core.String id; |
| 1097 /** Kind of resource this is, in this case adexchangeseller#alert. */ | 1107 |
| 1108 /// Kind of resource this is, in this case adexchangeseller#alert. |
| 1098 core.String kind; | 1109 core.String kind; |
| 1099 /** The localized alert message. */ | 1110 |
| 1111 /// The localized alert message. |
| 1100 core.String message; | 1112 core.String message; |
| 1101 /** Severity of this alert. Possible values: INFO, WARNING, SEVERE. */ | 1113 |
| 1114 /// Severity of this alert. Possible values: INFO, WARNING, SEVERE. |
| 1102 core.String severity; | 1115 core.String severity; |
| 1103 /** | 1116 |
| 1104 * Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, | 1117 /// Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, |
| 1105 * ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, | 1118 /// ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, |
| 1106 * GRAYLISTED_PUBLISHER, API_HOLD. | 1119 /// GRAYLISTED_PUBLISHER, API_HOLD. |
| 1107 */ | |
| 1108 core.String type; | 1120 core.String type; |
| 1109 | 1121 |
| 1110 Alert(); | 1122 Alert(); |
| 1111 | 1123 |
| 1112 Alert.fromJson(core.Map _json) { | 1124 Alert.fromJson(core.Map _json) { |
| 1113 if (_json.containsKey("id")) { | 1125 if (_json.containsKey("id")) { |
| 1114 id = _json["id"]; | 1126 id = _json["id"]; |
| 1115 } | 1127 } |
| 1116 if (_json.containsKey("kind")) { | 1128 if (_json.containsKey("kind")) { |
| 1117 kind = _json["kind"]; | 1129 kind = _json["kind"]; |
| 1118 } | 1130 } |
| 1119 if (_json.containsKey("message")) { | 1131 if (_json.containsKey("message")) { |
| 1120 message = _json["message"]; | 1132 message = _json["message"]; |
| 1121 } | 1133 } |
| 1122 if (_json.containsKey("severity")) { | 1134 if (_json.containsKey("severity")) { |
| 1123 severity = _json["severity"]; | 1135 severity = _json["severity"]; |
| 1124 } | 1136 } |
| 1125 if (_json.containsKey("type")) { | 1137 if (_json.containsKey("type")) { |
| 1126 type = _json["type"]; | 1138 type = _json["type"]; |
| 1127 } | 1139 } |
| 1128 } | 1140 } |
| 1129 | 1141 |
| 1130 core.Map<core.String, core.Object> toJson() { | 1142 core.Map<core.String, core.Object> toJson() { |
| 1131 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1143 final core.Map<core.String, core.Object> _json = |
| 1144 new core.Map<core.String, core.Object>(); |
| 1132 if (id != null) { | 1145 if (id != null) { |
| 1133 _json["id"] = id; | 1146 _json["id"] = id; |
| 1134 } | 1147 } |
| 1135 if (kind != null) { | 1148 if (kind != null) { |
| 1136 _json["kind"] = kind; | 1149 _json["kind"] = kind; |
| 1137 } | 1150 } |
| 1138 if (message != null) { | 1151 if (message != null) { |
| 1139 _json["message"] = message; | 1152 _json["message"] = message; |
| 1140 } | 1153 } |
| 1141 if (severity != null) { | 1154 if (severity != null) { |
| 1142 _json["severity"] = severity; | 1155 _json["severity"] = severity; |
| 1143 } | 1156 } |
| 1144 if (type != null) { | 1157 if (type != null) { |
| 1145 _json["type"] = type; | 1158 _json["type"] = type; |
| 1146 } | 1159 } |
| 1147 return _json; | 1160 return _json; |
| 1148 } | 1161 } |
| 1149 } | 1162 } |
| 1150 | 1163 |
| 1151 class Alerts { | 1164 class Alerts { |
| 1152 /** The alerts returned in this list response. */ | 1165 /// The alerts returned in this list response. |
| 1153 core.List<Alert> items; | 1166 core.List<Alert> items; |
| 1154 /** Kind of list this is, in this case adexchangeseller#alerts. */ | 1167 |
| 1168 /// Kind of list this is, in this case adexchangeseller#alerts. |
| 1155 core.String kind; | 1169 core.String kind; |
| 1156 | 1170 |
| 1157 Alerts(); | 1171 Alerts(); |
| 1158 | 1172 |
| 1159 Alerts.fromJson(core.Map _json) { | 1173 Alerts.fromJson(core.Map _json) { |
| 1160 if (_json.containsKey("items")) { | 1174 if (_json.containsKey("items")) { |
| 1161 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); | 1175 items = _json["items"].map((value) => new Alert.fromJson(value)).toList(); |
| 1162 } | 1176 } |
| 1163 if (_json.containsKey("kind")) { | 1177 if (_json.containsKey("kind")) { |
| 1164 kind = _json["kind"]; | 1178 kind = _json["kind"]; |
| 1165 } | 1179 } |
| 1166 } | 1180 } |
| 1167 | 1181 |
| 1168 core.Map<core.String, core.Object> toJson() { | 1182 core.Map<core.String, core.Object> toJson() { |
| 1169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1183 final core.Map<core.String, core.Object> _json = |
| 1184 new core.Map<core.String, core.Object>(); |
| 1170 if (items != null) { | 1185 if (items != null) { |
| 1171 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1186 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1172 } | 1187 } |
| 1173 if (kind != null) { | 1188 if (kind != null) { |
| 1174 _json["kind"] = kind; | 1189 _json["kind"] = kind; |
| 1175 } | 1190 } |
| 1176 return _json; | 1191 return _json; |
| 1177 } | 1192 } |
| 1178 } | 1193 } |
| 1179 | 1194 |
| 1180 /** The targeting information of this custom channel, if activated. */ | 1195 /// The targeting information of this custom channel, if activated. |
| 1181 class CustomChannelTargetingInfo { | 1196 class CustomChannelTargetingInfo { |
| 1182 /** The name used to describe this channel externally. */ | 1197 /// The name used to describe this channel externally. |
| 1183 core.String adsAppearOn; | 1198 core.String adsAppearOn; |
| 1184 /** The external description of the channel. */ | 1199 |
| 1200 /// The external description of the channel. |
| 1185 core.String description; | 1201 core.String description; |
| 1186 /** | 1202 |
| 1187 * The locations in which ads appear. (Only valid for content and mobile | 1203 /// The locations in which ads appear. (Only valid for content and mobile |
| 1188 * content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, | 1204 /// content ads). Acceptable values for content ads are: TOP_LEFT, |
| 1189 * TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, | 1205 /// TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, |
| 1190 * BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for | 1206 /// BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable |
| 1191 * mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. | 1207 /// values for mobile content ads are: TOP, MIDDLE, BOTTOM, |
| 1192 */ | 1208 /// MULTIPLE_LOCATIONS. |
| 1193 core.String location; | 1209 core.String location; |
| 1194 /** The language of the sites ads will be displayed on. */ | 1210 |
| 1211 /// The language of the sites ads will be displayed on. |
| 1195 core.String siteLanguage; | 1212 core.String siteLanguage; |
| 1196 | 1213 |
| 1197 CustomChannelTargetingInfo(); | 1214 CustomChannelTargetingInfo(); |
| 1198 | 1215 |
| 1199 CustomChannelTargetingInfo.fromJson(core.Map _json) { | 1216 CustomChannelTargetingInfo.fromJson(core.Map _json) { |
| 1200 if (_json.containsKey("adsAppearOn")) { | 1217 if (_json.containsKey("adsAppearOn")) { |
| 1201 adsAppearOn = _json["adsAppearOn"]; | 1218 adsAppearOn = _json["adsAppearOn"]; |
| 1202 } | 1219 } |
| 1203 if (_json.containsKey("description")) { | 1220 if (_json.containsKey("description")) { |
| 1204 description = _json["description"]; | 1221 description = _json["description"]; |
| 1205 } | 1222 } |
| 1206 if (_json.containsKey("location")) { | 1223 if (_json.containsKey("location")) { |
| 1207 location = _json["location"]; | 1224 location = _json["location"]; |
| 1208 } | 1225 } |
| 1209 if (_json.containsKey("siteLanguage")) { | 1226 if (_json.containsKey("siteLanguage")) { |
| 1210 siteLanguage = _json["siteLanguage"]; | 1227 siteLanguage = _json["siteLanguage"]; |
| 1211 } | 1228 } |
| 1212 } | 1229 } |
| 1213 | 1230 |
| 1214 core.Map<core.String, core.Object> toJson() { | 1231 core.Map<core.String, core.Object> toJson() { |
| 1215 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1232 final core.Map<core.String, core.Object> _json = |
| 1233 new core.Map<core.String, core.Object>(); |
| 1216 if (adsAppearOn != null) { | 1234 if (adsAppearOn != null) { |
| 1217 _json["adsAppearOn"] = adsAppearOn; | 1235 _json["adsAppearOn"] = adsAppearOn; |
| 1218 } | 1236 } |
| 1219 if (description != null) { | 1237 if (description != null) { |
| 1220 _json["description"] = description; | 1238 _json["description"] = description; |
| 1221 } | 1239 } |
| 1222 if (location != null) { | 1240 if (location != null) { |
| 1223 _json["location"] = location; | 1241 _json["location"] = location; |
| 1224 } | 1242 } |
| 1225 if (siteLanguage != null) { | 1243 if (siteLanguage != null) { |
| 1226 _json["siteLanguage"] = siteLanguage; | 1244 _json["siteLanguage"] = siteLanguage; |
| 1227 } | 1245 } |
| 1228 return _json; | 1246 return _json; |
| 1229 } | 1247 } |
| 1230 } | 1248 } |
| 1231 | 1249 |
| 1232 class CustomChannel { | 1250 class CustomChannel { |
| 1233 /** Code of this custom channel, not necessarily unique across ad clients. */ | 1251 /// Code of this custom channel, not necessarily unique across ad clients. |
| 1234 core.String code; | 1252 core.String code; |
| 1235 /** | 1253 |
| 1236 * Unique identifier of this custom channel. This should be considered an | 1254 /// Unique identifier of this custom channel. This should be considered an |
| 1237 * opaque identifier; it is not safe to rely on it being in any particular | 1255 /// opaque identifier; it is not safe to rely on it being in any particular |
| 1238 * format. | 1256 /// format. |
| 1239 */ | |
| 1240 core.String id; | 1257 core.String id; |
| 1241 /** Kind of resource this is, in this case adexchangeseller#customChannel. */ | 1258 |
| 1259 /// Kind of resource this is, in this case adexchangeseller#customChannel. |
| 1242 core.String kind; | 1260 core.String kind; |
| 1243 /** Name of this custom channel. */ | 1261 |
| 1262 /// Name of this custom channel. |
| 1244 core.String name; | 1263 core.String name; |
| 1245 /** The targeting information of this custom channel, if activated. */ | 1264 |
| 1265 /// The targeting information of this custom channel, if activated. |
| 1246 CustomChannelTargetingInfo targetingInfo; | 1266 CustomChannelTargetingInfo targetingInfo; |
| 1247 | 1267 |
| 1248 CustomChannel(); | 1268 CustomChannel(); |
| 1249 | 1269 |
| 1250 CustomChannel.fromJson(core.Map _json) { | 1270 CustomChannel.fromJson(core.Map _json) { |
| 1251 if (_json.containsKey("code")) { | 1271 if (_json.containsKey("code")) { |
| 1252 code = _json["code"]; | 1272 code = _json["code"]; |
| 1253 } | 1273 } |
| 1254 if (_json.containsKey("id")) { | 1274 if (_json.containsKey("id")) { |
| 1255 id = _json["id"]; | 1275 id = _json["id"]; |
| 1256 } | 1276 } |
| 1257 if (_json.containsKey("kind")) { | 1277 if (_json.containsKey("kind")) { |
| 1258 kind = _json["kind"]; | 1278 kind = _json["kind"]; |
| 1259 } | 1279 } |
| 1260 if (_json.containsKey("name")) { | 1280 if (_json.containsKey("name")) { |
| 1261 name = _json["name"]; | 1281 name = _json["name"]; |
| 1262 } | 1282 } |
| 1263 if (_json.containsKey("targetingInfo")) { | 1283 if (_json.containsKey("targetingInfo")) { |
| 1264 targetingInfo = new CustomChannelTargetingInfo.fromJson(_json["targetingIn
fo"]); | 1284 targetingInfo = |
| 1285 new CustomChannelTargetingInfo.fromJson(_json["targetingInfo"]); |
| 1265 } | 1286 } |
| 1266 } | 1287 } |
| 1267 | 1288 |
| 1268 core.Map<core.String, core.Object> toJson() { | 1289 core.Map<core.String, core.Object> toJson() { |
| 1269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1290 final core.Map<core.String, core.Object> _json = |
| 1291 new core.Map<core.String, core.Object>(); |
| 1270 if (code != null) { | 1292 if (code != null) { |
| 1271 _json["code"] = code; | 1293 _json["code"] = code; |
| 1272 } | 1294 } |
| 1273 if (id != null) { | 1295 if (id != null) { |
| 1274 _json["id"] = id; | 1296 _json["id"] = id; |
| 1275 } | 1297 } |
| 1276 if (kind != null) { | 1298 if (kind != null) { |
| 1277 _json["kind"] = kind; | 1299 _json["kind"] = kind; |
| 1278 } | 1300 } |
| 1279 if (name != null) { | 1301 if (name != null) { |
| 1280 _json["name"] = name; | 1302 _json["name"] = name; |
| 1281 } | 1303 } |
| 1282 if (targetingInfo != null) { | 1304 if (targetingInfo != null) { |
| 1283 _json["targetingInfo"] = (targetingInfo).toJson(); | 1305 _json["targetingInfo"] = (targetingInfo).toJson(); |
| 1284 } | 1306 } |
| 1285 return _json; | 1307 return _json; |
| 1286 } | 1308 } |
| 1287 } | 1309 } |
| 1288 | 1310 |
| 1289 class CustomChannels { | 1311 class CustomChannels { |
| 1290 /** ETag of this response for caching purposes. */ | 1312 /// ETag of this response for caching purposes. |
| 1291 core.String etag; | 1313 core.String etag; |
| 1292 /** The custom channels returned in this list response. */ | 1314 |
| 1315 /// The custom channels returned in this list response. |
| 1293 core.List<CustomChannel> items; | 1316 core.List<CustomChannel> items; |
| 1294 /** Kind of list this is, in this case adexchangeseller#customChannels. */ | 1317 |
| 1318 /// Kind of list this is, in this case adexchangeseller#customChannels. |
| 1295 core.String kind; | 1319 core.String kind; |
| 1296 /** | 1320 |
| 1297 * Continuation token used to page through custom channels. To retrieve the | 1321 /// Continuation token used to page through custom channels. To retrieve the |
| 1298 * next page of results, set the next request's "pageToken" value to this. | 1322 /// next page of results, set the next request's "pageToken" value to this. |
| 1299 */ | |
| 1300 core.String nextPageToken; | 1323 core.String nextPageToken; |
| 1301 | 1324 |
| 1302 CustomChannels(); | 1325 CustomChannels(); |
| 1303 | 1326 |
| 1304 CustomChannels.fromJson(core.Map _json) { | 1327 CustomChannels.fromJson(core.Map _json) { |
| 1305 if (_json.containsKey("etag")) { | 1328 if (_json.containsKey("etag")) { |
| 1306 etag = _json["etag"]; | 1329 etag = _json["etag"]; |
| 1307 } | 1330 } |
| 1308 if (_json.containsKey("items")) { | 1331 if (_json.containsKey("items")) { |
| 1309 items = _json["items"].map((value) => new CustomChannel.fromJson(value)).t
oList(); | 1332 items = _json["items"] |
| 1333 .map((value) => new CustomChannel.fromJson(value)) |
| 1334 .toList(); |
| 1310 } | 1335 } |
| 1311 if (_json.containsKey("kind")) { | 1336 if (_json.containsKey("kind")) { |
| 1312 kind = _json["kind"]; | 1337 kind = _json["kind"]; |
| 1313 } | 1338 } |
| 1314 if (_json.containsKey("nextPageToken")) { | 1339 if (_json.containsKey("nextPageToken")) { |
| 1315 nextPageToken = _json["nextPageToken"]; | 1340 nextPageToken = _json["nextPageToken"]; |
| 1316 } | 1341 } |
| 1317 } | 1342 } |
| 1318 | 1343 |
| 1319 core.Map<core.String, core.Object> toJson() { | 1344 core.Map<core.String, core.Object> toJson() { |
| 1320 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1345 final core.Map<core.String, core.Object> _json = |
| 1346 new core.Map<core.String, core.Object>(); |
| 1321 if (etag != null) { | 1347 if (etag != null) { |
| 1322 _json["etag"] = etag; | 1348 _json["etag"] = etag; |
| 1323 } | 1349 } |
| 1324 if (items != null) { | 1350 if (items != null) { |
| 1325 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1351 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1326 } | 1352 } |
| 1327 if (kind != null) { | 1353 if (kind != null) { |
| 1328 _json["kind"] = kind; | 1354 _json["kind"] = kind; |
| 1329 } | 1355 } |
| 1330 if (nextPageToken != null) { | 1356 if (nextPageToken != null) { |
| 1331 _json["nextPageToken"] = nextPageToken; | 1357 _json["nextPageToken"] = nextPageToken; |
| 1332 } | 1358 } |
| 1333 return _json; | 1359 return _json; |
| 1334 } | 1360 } |
| 1335 } | 1361 } |
| 1336 | 1362 |
| 1337 class Metadata { | 1363 class Metadata { |
| 1338 core.List<ReportingMetadataEntry> items; | 1364 core.List<ReportingMetadataEntry> items; |
| 1339 /** Kind of list this is, in this case adexchangeseller#metadata. */ | 1365 |
| 1366 /// Kind of list this is, in this case adexchangeseller#metadata. |
| 1340 core.String kind; | 1367 core.String kind; |
| 1341 | 1368 |
| 1342 Metadata(); | 1369 Metadata(); |
| 1343 | 1370 |
| 1344 Metadata.fromJson(core.Map _json) { | 1371 Metadata.fromJson(core.Map _json) { |
| 1345 if (_json.containsKey("items")) { | 1372 if (_json.containsKey("items")) { |
| 1346 items = _json["items"].map((value) => new ReportingMetadataEntry.fromJson(
value)).toList(); | 1373 items = _json["items"] |
| 1374 .map((value) => new ReportingMetadataEntry.fromJson(value)) |
| 1375 .toList(); |
| 1347 } | 1376 } |
| 1348 if (_json.containsKey("kind")) { | 1377 if (_json.containsKey("kind")) { |
| 1349 kind = _json["kind"]; | 1378 kind = _json["kind"]; |
| 1350 } | 1379 } |
| 1351 } | 1380 } |
| 1352 | 1381 |
| 1353 core.Map<core.String, core.Object> toJson() { | 1382 core.Map<core.String, core.Object> toJson() { |
| 1354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1383 final core.Map<core.String, core.Object> _json = |
| 1384 new core.Map<core.String, core.Object>(); |
| 1355 if (items != null) { | 1385 if (items != null) { |
| 1356 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1386 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1357 } | 1387 } |
| 1358 if (kind != null) { | 1388 if (kind != null) { |
| 1359 _json["kind"] = kind; | 1389 _json["kind"] = kind; |
| 1360 } | 1390 } |
| 1361 return _json; | 1391 return _json; |
| 1362 } | 1392 } |
| 1363 } | 1393 } |
| 1364 | 1394 |
| 1365 class PreferredDeal { | 1395 class PreferredDeal { |
| 1366 /** The name of the advertiser this deal is for. */ | 1396 /// The name of the advertiser this deal is for. |
| 1367 core.String advertiserName; | 1397 core.String advertiserName; |
| 1368 /** The name of the buyer network this deal is for. */ | 1398 |
| 1399 /// The name of the buyer network this deal is for. |
| 1369 core.String buyerNetworkName; | 1400 core.String buyerNetworkName; |
| 1370 /** | 1401 |
| 1371 * The currency code that applies to the fixed_cpm value. If not set then | 1402 /// The currency code that applies to the fixed_cpm value. If not set then |
| 1372 * assumed to be USD. | 1403 /// assumed to be USD. |
| 1373 */ | |
| 1374 core.String currencyCode; | 1404 core.String currencyCode; |
| 1375 /** | 1405 |
| 1376 * Time when this deal stops being active in seconds since the epoch (GMT). If | 1406 /// Time when this deal stops being active in seconds since the epoch (GMT). |
| 1377 * not set then this deal is valid until manually disabled by the publisher. | 1407 /// If not set then this deal is valid until manually disabled by the |
| 1378 */ | 1408 /// publisher. |
| 1379 core.String endTime; | 1409 core.String endTime; |
| 1380 /** | 1410 |
| 1381 * The fixed price for this preferred deal. In cpm micros of currency | 1411 /// The fixed price for this preferred deal. In cpm micros of currency |
| 1382 * according to currencyCode. If set, then this preferred deal is eligible for | 1412 /// according to currencyCode. If set, then this preferred deal is eligible |
| 1383 * the fixed price tier of buying (highest priority, pay exactly the | 1413 /// for the fixed price tier of buying (highest priority, pay exactly the |
| 1384 * configured fixed price). | 1414 /// configured fixed price). |
| 1385 */ | |
| 1386 core.String fixedCpm; | 1415 core.String fixedCpm; |
| 1387 /** Unique identifier of this preferred deal. */ | 1416 |
| 1417 /// Unique identifier of this preferred deal. |
| 1388 core.String id; | 1418 core.String id; |
| 1389 /** Kind of resource this is, in this case adexchangeseller#preferredDeal. */ | 1419 |
| 1420 /// Kind of resource this is, in this case adexchangeseller#preferredDeal. |
| 1390 core.String kind; | 1421 core.String kind; |
| 1391 /** | 1422 |
| 1392 * Time when this deal becomes active in seconds since the epoch (GMT). If not | 1423 /// Time when this deal becomes active in seconds since the epoch (GMT). If |
| 1393 * set then this deal is active immediately upon creation. | 1424 /// not set then this deal is active immediately upon creation. |
| 1394 */ | |
| 1395 core.String startTime; | 1425 core.String startTime; |
| 1396 | 1426 |
| 1397 PreferredDeal(); | 1427 PreferredDeal(); |
| 1398 | 1428 |
| 1399 PreferredDeal.fromJson(core.Map _json) { | 1429 PreferredDeal.fromJson(core.Map _json) { |
| 1400 if (_json.containsKey("advertiserName")) { | 1430 if (_json.containsKey("advertiserName")) { |
| 1401 advertiserName = _json["advertiserName"]; | 1431 advertiserName = _json["advertiserName"]; |
| 1402 } | 1432 } |
| 1403 if (_json.containsKey("buyerNetworkName")) { | 1433 if (_json.containsKey("buyerNetworkName")) { |
| 1404 buyerNetworkName = _json["buyerNetworkName"]; | 1434 buyerNetworkName = _json["buyerNetworkName"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1417 } | 1447 } |
| 1418 if (_json.containsKey("kind")) { | 1448 if (_json.containsKey("kind")) { |
| 1419 kind = _json["kind"]; | 1449 kind = _json["kind"]; |
| 1420 } | 1450 } |
| 1421 if (_json.containsKey("startTime")) { | 1451 if (_json.containsKey("startTime")) { |
| 1422 startTime = _json["startTime"]; | 1452 startTime = _json["startTime"]; |
| 1423 } | 1453 } |
| 1424 } | 1454 } |
| 1425 | 1455 |
| 1426 core.Map<core.String, core.Object> toJson() { | 1456 core.Map<core.String, core.Object> toJson() { |
| 1427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1457 final core.Map<core.String, core.Object> _json = |
| 1458 new core.Map<core.String, core.Object>(); |
| 1428 if (advertiserName != null) { | 1459 if (advertiserName != null) { |
| 1429 _json["advertiserName"] = advertiserName; | 1460 _json["advertiserName"] = advertiserName; |
| 1430 } | 1461 } |
| 1431 if (buyerNetworkName != null) { | 1462 if (buyerNetworkName != null) { |
| 1432 _json["buyerNetworkName"] = buyerNetworkName; | 1463 _json["buyerNetworkName"] = buyerNetworkName; |
| 1433 } | 1464 } |
| 1434 if (currencyCode != null) { | 1465 if (currencyCode != null) { |
| 1435 _json["currencyCode"] = currencyCode; | 1466 _json["currencyCode"] = currencyCode; |
| 1436 } | 1467 } |
| 1437 if (endTime != null) { | 1468 if (endTime != null) { |
| 1438 _json["endTime"] = endTime; | 1469 _json["endTime"] = endTime; |
| 1439 } | 1470 } |
| 1440 if (fixedCpm != null) { | 1471 if (fixedCpm != null) { |
| 1441 _json["fixedCpm"] = fixedCpm; | 1472 _json["fixedCpm"] = fixedCpm; |
| 1442 } | 1473 } |
| 1443 if (id != null) { | 1474 if (id != null) { |
| 1444 _json["id"] = id; | 1475 _json["id"] = id; |
| 1445 } | 1476 } |
| 1446 if (kind != null) { | 1477 if (kind != null) { |
| 1447 _json["kind"] = kind; | 1478 _json["kind"] = kind; |
| 1448 } | 1479 } |
| 1449 if (startTime != null) { | 1480 if (startTime != null) { |
| 1450 _json["startTime"] = startTime; | 1481 _json["startTime"] = startTime; |
| 1451 } | 1482 } |
| 1452 return _json; | 1483 return _json; |
| 1453 } | 1484 } |
| 1454 } | 1485 } |
| 1455 | 1486 |
| 1456 class PreferredDeals { | 1487 class PreferredDeals { |
| 1457 /** The preferred deals returned in this list response. */ | 1488 /// The preferred deals returned in this list response. |
| 1458 core.List<PreferredDeal> items; | 1489 core.List<PreferredDeal> items; |
| 1459 /** Kind of list this is, in this case adexchangeseller#preferredDeals. */ | 1490 |
| 1491 /// Kind of list this is, in this case adexchangeseller#preferredDeals. |
| 1460 core.String kind; | 1492 core.String kind; |
| 1461 | 1493 |
| 1462 PreferredDeals(); | 1494 PreferredDeals(); |
| 1463 | 1495 |
| 1464 PreferredDeals.fromJson(core.Map _json) { | 1496 PreferredDeals.fromJson(core.Map _json) { |
| 1465 if (_json.containsKey("items")) { | 1497 if (_json.containsKey("items")) { |
| 1466 items = _json["items"].map((value) => new PreferredDeal.fromJson(value)).t
oList(); | 1498 items = _json["items"] |
| 1499 .map((value) => new PreferredDeal.fromJson(value)) |
| 1500 .toList(); |
| 1467 } | 1501 } |
| 1468 if (_json.containsKey("kind")) { | 1502 if (_json.containsKey("kind")) { |
| 1469 kind = _json["kind"]; | 1503 kind = _json["kind"]; |
| 1470 } | 1504 } |
| 1471 } | 1505 } |
| 1472 | 1506 |
| 1473 core.Map<core.String, core.Object> toJson() { | 1507 core.Map<core.String, core.Object> toJson() { |
| 1474 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1508 final core.Map<core.String, core.Object> _json = |
| 1509 new core.Map<core.String, core.Object>(); |
| 1475 if (items != null) { | 1510 if (items != null) { |
| 1476 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1511 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1477 } | 1512 } |
| 1478 if (kind != null) { | 1513 if (kind != null) { |
| 1479 _json["kind"] = kind; | 1514 _json["kind"] = kind; |
| 1480 } | 1515 } |
| 1481 return _json; | 1516 return _json; |
| 1482 } | 1517 } |
| 1483 } | 1518 } |
| 1484 | 1519 |
| 1485 class ReportHeaders { | 1520 class ReportHeaders { |
| 1486 /** | 1521 /// The currency of this column. Only present if the header type is |
| 1487 * The currency of this column. Only present if the header type is | 1522 /// METRIC_CURRENCY. |
| 1488 * METRIC_CURRENCY. | |
| 1489 */ | |
| 1490 core.String currency; | 1523 core.String currency; |
| 1491 /** The name of the header. */ | 1524 |
| 1525 /// The name of the header. |
| 1492 core.String name; | 1526 core.String name; |
| 1493 /** | 1527 |
| 1494 * The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or | 1528 /// The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or |
| 1495 * METRIC_CURRENCY. | 1529 /// METRIC_CURRENCY. |
| 1496 */ | |
| 1497 core.String type; | 1530 core.String type; |
| 1498 | 1531 |
| 1499 ReportHeaders(); | 1532 ReportHeaders(); |
| 1500 | 1533 |
| 1501 ReportHeaders.fromJson(core.Map _json) { | 1534 ReportHeaders.fromJson(core.Map _json) { |
| 1502 if (_json.containsKey("currency")) { | 1535 if (_json.containsKey("currency")) { |
| 1503 currency = _json["currency"]; | 1536 currency = _json["currency"]; |
| 1504 } | 1537 } |
| 1505 if (_json.containsKey("name")) { | 1538 if (_json.containsKey("name")) { |
| 1506 name = _json["name"]; | 1539 name = _json["name"]; |
| 1507 } | 1540 } |
| 1508 if (_json.containsKey("type")) { | 1541 if (_json.containsKey("type")) { |
| 1509 type = _json["type"]; | 1542 type = _json["type"]; |
| 1510 } | 1543 } |
| 1511 } | 1544 } |
| 1512 | 1545 |
| 1513 core.Map<core.String, core.Object> toJson() { | 1546 core.Map<core.String, core.Object> toJson() { |
| 1514 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1547 final core.Map<core.String, core.Object> _json = |
| 1548 new core.Map<core.String, core.Object>(); |
| 1515 if (currency != null) { | 1549 if (currency != null) { |
| 1516 _json["currency"] = currency; | 1550 _json["currency"] = currency; |
| 1517 } | 1551 } |
| 1518 if (name != null) { | 1552 if (name != null) { |
| 1519 _json["name"] = name; | 1553 _json["name"] = name; |
| 1520 } | 1554 } |
| 1521 if (type != null) { | 1555 if (type != null) { |
| 1522 _json["type"] = type; | 1556 _json["type"] = type; |
| 1523 } | 1557 } |
| 1524 return _json; | 1558 return _json; |
| 1525 } | 1559 } |
| 1526 } | 1560 } |
| 1527 | 1561 |
| 1528 class Report { | 1562 class Report { |
| 1529 /** | 1563 /// The averages of the report. This is the same length as any other row in |
| 1530 * The averages of the report. This is the same length as any other row in the | 1564 /// the report; cells corresponding to dimension columns are empty. |
| 1531 * report; cells corresponding to dimension columns are empty. | |
| 1532 */ | |
| 1533 core.List<core.String> averages; | 1565 core.List<core.String> averages; |
| 1534 /** | 1566 |
| 1535 * The header information of the columns requested in the report. This is a | 1567 /// The header information of the columns requested in the report. This is a |
| 1536 * list of headers; one for each dimension in the request, followed by one for | 1568 /// list of headers; one for each dimension in the request, followed by one |
| 1537 * each metric in the request. | 1569 /// for each metric in the request. |
| 1538 */ | |
| 1539 core.List<ReportHeaders> headers; | 1570 core.List<ReportHeaders> headers; |
| 1540 /** Kind this is, in this case adexchangeseller#report. */ | 1571 |
| 1572 /// Kind this is, in this case adexchangeseller#report. |
| 1541 core.String kind; | 1573 core.String kind; |
| 1542 /** | 1574 |
| 1543 * The output rows of the report. Each row is a list of cells; one for each | 1575 /// The output rows of the report. Each row is a list of cells; one for each |
| 1544 * dimension in the request, followed by one for each metric in the request. | 1576 /// dimension in the request, followed by one for each metric in the request. |
| 1545 * The dimension cells contain strings, and the metric cells contain numbers. | 1577 /// The dimension cells contain strings, and the metric cells contain |
| 1546 */ | 1578 /// numbers. |
| 1547 core.List<core.List<core.String>> rows; | 1579 core.List<core.List<core.String>> rows; |
| 1548 /** | 1580 |
| 1549 * The total number of rows matched by the report request. Fewer rows may be | 1581 /// The total number of rows matched by the report request. Fewer rows may be |
| 1550 * returned in the response due to being limited by the row count requested or | 1582 /// returned in the response due to being limited by the row count requested |
| 1551 * the report row limit. | 1583 /// or the report row limit. |
| 1552 */ | |
| 1553 core.String totalMatchedRows; | 1584 core.String totalMatchedRows; |
| 1554 /** | 1585 |
| 1555 * The totals of the report. This is the same length as any other row in the | 1586 /// The totals of the report. This is the same length as any other row in the |
| 1556 * report; cells corresponding to dimension columns are empty. | 1587 /// report; cells corresponding to dimension columns are empty. |
| 1557 */ | |
| 1558 core.List<core.String> totals; | 1588 core.List<core.String> totals; |
| 1559 /** Any warnings associated with generation of the report. */ | 1589 |
| 1590 /// Any warnings associated with generation of the report. |
| 1560 core.List<core.String> warnings; | 1591 core.List<core.String> warnings; |
| 1561 | 1592 |
| 1562 Report(); | 1593 Report(); |
| 1563 | 1594 |
| 1564 Report.fromJson(core.Map _json) { | 1595 Report.fromJson(core.Map _json) { |
| 1565 if (_json.containsKey("averages")) { | 1596 if (_json.containsKey("averages")) { |
| 1566 averages = _json["averages"]; | 1597 averages = _json["averages"]; |
| 1567 } | 1598 } |
| 1568 if (_json.containsKey("headers")) { | 1599 if (_json.containsKey("headers")) { |
| 1569 headers = _json["headers"].map((value) => new ReportHeaders.fromJson(value
)).toList(); | 1600 headers = _json["headers"] |
| 1601 .map((value) => new ReportHeaders.fromJson(value)) |
| 1602 .toList(); |
| 1570 } | 1603 } |
| 1571 if (_json.containsKey("kind")) { | 1604 if (_json.containsKey("kind")) { |
| 1572 kind = _json["kind"]; | 1605 kind = _json["kind"]; |
| 1573 } | 1606 } |
| 1574 if (_json.containsKey("rows")) { | 1607 if (_json.containsKey("rows")) { |
| 1575 rows = _json["rows"]; | 1608 rows = _json["rows"]; |
| 1576 } | 1609 } |
| 1577 if (_json.containsKey("totalMatchedRows")) { | 1610 if (_json.containsKey("totalMatchedRows")) { |
| 1578 totalMatchedRows = _json["totalMatchedRows"]; | 1611 totalMatchedRows = _json["totalMatchedRows"]; |
| 1579 } | 1612 } |
| 1580 if (_json.containsKey("totals")) { | 1613 if (_json.containsKey("totals")) { |
| 1581 totals = _json["totals"]; | 1614 totals = _json["totals"]; |
| 1582 } | 1615 } |
| 1583 if (_json.containsKey("warnings")) { | 1616 if (_json.containsKey("warnings")) { |
| 1584 warnings = _json["warnings"]; | 1617 warnings = _json["warnings"]; |
| 1585 } | 1618 } |
| 1586 } | 1619 } |
| 1587 | 1620 |
| 1588 core.Map<core.String, core.Object> toJson() { | 1621 core.Map<core.String, core.Object> toJson() { |
| 1589 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1622 final core.Map<core.String, core.Object> _json = |
| 1623 new core.Map<core.String, core.Object>(); |
| 1590 if (averages != null) { | 1624 if (averages != null) { |
| 1591 _json["averages"] = averages; | 1625 _json["averages"] = averages; |
| 1592 } | 1626 } |
| 1593 if (headers != null) { | 1627 if (headers != null) { |
| 1594 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | 1628 _json["headers"] = headers.map((value) => (value).toJson()).toList(); |
| 1595 } | 1629 } |
| 1596 if (kind != null) { | 1630 if (kind != null) { |
| 1597 _json["kind"] = kind; | 1631 _json["kind"] = kind; |
| 1598 } | 1632 } |
| 1599 if (rows != null) { | 1633 if (rows != null) { |
| 1600 _json["rows"] = rows; | 1634 _json["rows"] = rows; |
| 1601 } | 1635 } |
| 1602 if (totalMatchedRows != null) { | 1636 if (totalMatchedRows != null) { |
| 1603 _json["totalMatchedRows"] = totalMatchedRows; | 1637 _json["totalMatchedRows"] = totalMatchedRows; |
| 1604 } | 1638 } |
| 1605 if (totals != null) { | 1639 if (totals != null) { |
| 1606 _json["totals"] = totals; | 1640 _json["totals"] = totals; |
| 1607 } | 1641 } |
| 1608 if (warnings != null) { | 1642 if (warnings != null) { |
| 1609 _json["warnings"] = warnings; | 1643 _json["warnings"] = warnings; |
| 1610 } | 1644 } |
| 1611 return _json; | 1645 return _json; |
| 1612 } | 1646 } |
| 1613 } | 1647 } |
| 1614 | 1648 |
| 1615 class ReportingMetadataEntry { | 1649 class ReportingMetadataEntry { |
| 1616 /** | 1650 /// For metrics this is a list of dimension IDs which the metric is |
| 1617 * For metrics this is a list of dimension IDs which the metric is compatible | 1651 /// compatible with, for dimensions it is a list of compatibility groups the |
| 1618 * with, for dimensions it is a list of compatibility groups the dimension | 1652 /// dimension belongs to. |
| 1619 * belongs to. | |
| 1620 */ | |
| 1621 core.List<core.String> compatibleDimensions; | 1653 core.List<core.String> compatibleDimensions; |
| 1622 /** | 1654 |
| 1623 * The names of the metrics the dimension or metric this reporting metadata | 1655 /// The names of the metrics the dimension or metric this reporting metadata |
| 1624 * entry describes is compatible with. | 1656 /// entry describes is compatible with. |
| 1625 */ | |
| 1626 core.List<core.String> compatibleMetrics; | 1657 core.List<core.String> compatibleMetrics; |
| 1627 /** | 1658 |
| 1628 * Unique identifier of this reporting metadata entry, corresponding to the | 1659 /// Unique identifier of this reporting metadata entry, corresponding to the |
| 1629 * name of the appropriate dimension or metric. | 1660 /// name of the appropriate dimension or metric. |
| 1630 */ | |
| 1631 core.String id; | 1661 core.String id; |
| 1632 /** | 1662 |
| 1633 * Kind of resource this is, in this case | 1663 /// Kind of resource this is, in this case |
| 1634 * adexchangeseller#reportingMetadataEntry. | 1664 /// adexchangeseller#reportingMetadataEntry. |
| 1635 */ | |
| 1636 core.String kind; | 1665 core.String kind; |
| 1637 /** | 1666 |
| 1638 * The names of the dimensions which the dimension or metric this reporting | 1667 /// The names of the dimensions which the dimension or metric this reporting |
| 1639 * metadata entry describes requires to also be present in order for the | 1668 /// metadata entry describes requires to also be present in order for the |
| 1640 * report to be valid. Omitting these will not cause an error or warning, but | 1669 /// report to be valid. Omitting these will not cause an error or warning, |
| 1641 * may result in data which cannot be correctly interpreted. | 1670 /// but may result in data which cannot be correctly interpreted. |
| 1642 */ | |
| 1643 core.List<core.String> requiredDimensions; | 1671 core.List<core.String> requiredDimensions; |
| 1644 /** | 1672 |
| 1645 * The names of the metrics which the dimension or metric this reporting | 1673 /// The names of the metrics which the dimension or metric this reporting |
| 1646 * metadata entry describes requires to also be present in order for the | 1674 /// metadata entry describes requires to also be present in order for the |
| 1647 * report to be valid. Omitting these will not cause an error or warning, but | 1675 /// report to be valid. Omitting these will not cause an error or warning, |
| 1648 * may result in data which cannot be correctly interpreted. | 1676 /// but may result in data which cannot be correctly interpreted. |
| 1649 */ | |
| 1650 core.List<core.String> requiredMetrics; | 1677 core.List<core.String> requiredMetrics; |
| 1651 /** | 1678 |
| 1652 * The codes of the projects supported by the dimension or metric this | 1679 /// The codes of the projects supported by the dimension or metric this |
| 1653 * reporting metadata entry describes. | 1680 /// reporting metadata entry describes. |
| 1654 */ | |
| 1655 core.List<core.String> supportedProducts; | 1681 core.List<core.String> supportedProducts; |
| 1656 | 1682 |
| 1657 ReportingMetadataEntry(); | 1683 ReportingMetadataEntry(); |
| 1658 | 1684 |
| 1659 ReportingMetadataEntry.fromJson(core.Map _json) { | 1685 ReportingMetadataEntry.fromJson(core.Map _json) { |
| 1660 if (_json.containsKey("compatibleDimensions")) { | 1686 if (_json.containsKey("compatibleDimensions")) { |
| 1661 compatibleDimensions = _json["compatibleDimensions"]; | 1687 compatibleDimensions = _json["compatibleDimensions"]; |
| 1662 } | 1688 } |
| 1663 if (_json.containsKey("compatibleMetrics")) { | 1689 if (_json.containsKey("compatibleMetrics")) { |
| 1664 compatibleMetrics = _json["compatibleMetrics"]; | 1690 compatibleMetrics = _json["compatibleMetrics"]; |
| 1665 } | 1691 } |
| 1666 if (_json.containsKey("id")) { | 1692 if (_json.containsKey("id")) { |
| 1667 id = _json["id"]; | 1693 id = _json["id"]; |
| 1668 } | 1694 } |
| 1669 if (_json.containsKey("kind")) { | 1695 if (_json.containsKey("kind")) { |
| 1670 kind = _json["kind"]; | 1696 kind = _json["kind"]; |
| 1671 } | 1697 } |
| 1672 if (_json.containsKey("requiredDimensions")) { | 1698 if (_json.containsKey("requiredDimensions")) { |
| 1673 requiredDimensions = _json["requiredDimensions"]; | 1699 requiredDimensions = _json["requiredDimensions"]; |
| 1674 } | 1700 } |
| 1675 if (_json.containsKey("requiredMetrics")) { | 1701 if (_json.containsKey("requiredMetrics")) { |
| 1676 requiredMetrics = _json["requiredMetrics"]; | 1702 requiredMetrics = _json["requiredMetrics"]; |
| 1677 } | 1703 } |
| 1678 if (_json.containsKey("supportedProducts")) { | 1704 if (_json.containsKey("supportedProducts")) { |
| 1679 supportedProducts = _json["supportedProducts"]; | 1705 supportedProducts = _json["supportedProducts"]; |
| 1680 } | 1706 } |
| 1681 } | 1707 } |
| 1682 | 1708 |
| 1683 core.Map<core.String, core.Object> toJson() { | 1709 core.Map<core.String, core.Object> toJson() { |
| 1684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1710 final core.Map<core.String, core.Object> _json = |
| 1711 new core.Map<core.String, core.Object>(); |
| 1685 if (compatibleDimensions != null) { | 1712 if (compatibleDimensions != null) { |
| 1686 _json["compatibleDimensions"] = compatibleDimensions; | 1713 _json["compatibleDimensions"] = compatibleDimensions; |
| 1687 } | 1714 } |
| 1688 if (compatibleMetrics != null) { | 1715 if (compatibleMetrics != null) { |
| 1689 _json["compatibleMetrics"] = compatibleMetrics; | 1716 _json["compatibleMetrics"] = compatibleMetrics; |
| 1690 } | 1717 } |
| 1691 if (id != null) { | 1718 if (id != null) { |
| 1692 _json["id"] = id; | 1719 _json["id"] = id; |
| 1693 } | 1720 } |
| 1694 if (kind != null) { | 1721 if (kind != null) { |
| 1695 _json["kind"] = kind; | 1722 _json["kind"] = kind; |
| 1696 } | 1723 } |
| 1697 if (requiredDimensions != null) { | 1724 if (requiredDimensions != null) { |
| 1698 _json["requiredDimensions"] = requiredDimensions; | 1725 _json["requiredDimensions"] = requiredDimensions; |
| 1699 } | 1726 } |
| 1700 if (requiredMetrics != null) { | 1727 if (requiredMetrics != null) { |
| 1701 _json["requiredMetrics"] = requiredMetrics; | 1728 _json["requiredMetrics"] = requiredMetrics; |
| 1702 } | 1729 } |
| 1703 if (supportedProducts != null) { | 1730 if (supportedProducts != null) { |
| 1704 _json["supportedProducts"] = supportedProducts; | 1731 _json["supportedProducts"] = supportedProducts; |
| 1705 } | 1732 } |
| 1706 return _json; | 1733 return _json; |
| 1707 } | 1734 } |
| 1708 } | 1735 } |
| 1709 | 1736 |
| 1710 class SavedReport { | 1737 class SavedReport { |
| 1711 /** Unique identifier of this saved report. */ | 1738 /// Unique identifier of this saved report. |
| 1712 core.String id; | 1739 core.String id; |
| 1713 /** Kind of resource this is, in this case adexchangeseller#savedReport. */ | 1740 |
| 1741 /// Kind of resource this is, in this case adexchangeseller#savedReport. |
| 1714 core.String kind; | 1742 core.String kind; |
| 1715 /** This saved report's name. */ | 1743 |
| 1744 /// This saved report's name. |
| 1716 core.String name; | 1745 core.String name; |
| 1717 | 1746 |
| 1718 SavedReport(); | 1747 SavedReport(); |
| 1719 | 1748 |
| 1720 SavedReport.fromJson(core.Map _json) { | 1749 SavedReport.fromJson(core.Map _json) { |
| 1721 if (_json.containsKey("id")) { | 1750 if (_json.containsKey("id")) { |
| 1722 id = _json["id"]; | 1751 id = _json["id"]; |
| 1723 } | 1752 } |
| 1724 if (_json.containsKey("kind")) { | 1753 if (_json.containsKey("kind")) { |
| 1725 kind = _json["kind"]; | 1754 kind = _json["kind"]; |
| 1726 } | 1755 } |
| 1727 if (_json.containsKey("name")) { | 1756 if (_json.containsKey("name")) { |
| 1728 name = _json["name"]; | 1757 name = _json["name"]; |
| 1729 } | 1758 } |
| 1730 } | 1759 } |
| 1731 | 1760 |
| 1732 core.Map<core.String, core.Object> toJson() { | 1761 core.Map<core.String, core.Object> toJson() { |
| 1733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1762 final core.Map<core.String, core.Object> _json = |
| 1763 new core.Map<core.String, core.Object>(); |
| 1734 if (id != null) { | 1764 if (id != null) { |
| 1735 _json["id"] = id; | 1765 _json["id"] = id; |
| 1736 } | 1766 } |
| 1737 if (kind != null) { | 1767 if (kind != null) { |
| 1738 _json["kind"] = kind; | 1768 _json["kind"] = kind; |
| 1739 } | 1769 } |
| 1740 if (name != null) { | 1770 if (name != null) { |
| 1741 _json["name"] = name; | 1771 _json["name"] = name; |
| 1742 } | 1772 } |
| 1743 return _json; | 1773 return _json; |
| 1744 } | 1774 } |
| 1745 } | 1775 } |
| 1746 | 1776 |
| 1747 class SavedReports { | 1777 class SavedReports { |
| 1748 /** ETag of this response for caching purposes. */ | 1778 /// ETag of this response for caching purposes. |
| 1749 core.String etag; | 1779 core.String etag; |
| 1750 /** The saved reports returned in this list response. */ | 1780 |
| 1781 /// The saved reports returned in this list response. |
| 1751 core.List<SavedReport> items; | 1782 core.List<SavedReport> items; |
| 1752 /** Kind of list this is, in this case adexchangeseller#savedReports. */ | 1783 |
| 1784 /// Kind of list this is, in this case adexchangeseller#savedReports. |
| 1753 core.String kind; | 1785 core.String kind; |
| 1754 /** | 1786 |
| 1755 * Continuation token used to page through saved reports. To retrieve the next | 1787 /// Continuation token used to page through saved reports. To retrieve the |
| 1756 * page of results, set the next request's "pageToken" value to this. | 1788 /// next page of results, set the next request's "pageToken" value to this. |
| 1757 */ | |
| 1758 core.String nextPageToken; | 1789 core.String nextPageToken; |
| 1759 | 1790 |
| 1760 SavedReports(); | 1791 SavedReports(); |
| 1761 | 1792 |
| 1762 SavedReports.fromJson(core.Map _json) { | 1793 SavedReports.fromJson(core.Map _json) { |
| 1763 if (_json.containsKey("etag")) { | 1794 if (_json.containsKey("etag")) { |
| 1764 etag = _json["etag"]; | 1795 etag = _json["etag"]; |
| 1765 } | 1796 } |
| 1766 if (_json.containsKey("items")) { | 1797 if (_json.containsKey("items")) { |
| 1767 items = _json["items"].map((value) => new SavedReport.fromJson(value)).toL
ist(); | 1798 items = _json["items"] |
| 1799 .map((value) => new SavedReport.fromJson(value)) |
| 1800 .toList(); |
| 1768 } | 1801 } |
| 1769 if (_json.containsKey("kind")) { | 1802 if (_json.containsKey("kind")) { |
| 1770 kind = _json["kind"]; | 1803 kind = _json["kind"]; |
| 1771 } | 1804 } |
| 1772 if (_json.containsKey("nextPageToken")) { | 1805 if (_json.containsKey("nextPageToken")) { |
| 1773 nextPageToken = _json["nextPageToken"]; | 1806 nextPageToken = _json["nextPageToken"]; |
| 1774 } | 1807 } |
| 1775 } | 1808 } |
| 1776 | 1809 |
| 1777 core.Map<core.String, core.Object> toJson() { | 1810 core.Map<core.String, core.Object> toJson() { |
| 1778 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1811 final core.Map<core.String, core.Object> _json = |
| 1812 new core.Map<core.String, core.Object>(); |
| 1779 if (etag != null) { | 1813 if (etag != null) { |
| 1780 _json["etag"] = etag; | 1814 _json["etag"] = etag; |
| 1781 } | 1815 } |
| 1782 if (items != null) { | 1816 if (items != null) { |
| 1783 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1817 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1784 } | 1818 } |
| 1785 if (kind != null) { | 1819 if (kind != null) { |
| 1786 _json["kind"] = kind; | 1820 _json["kind"] = kind; |
| 1787 } | 1821 } |
| 1788 if (nextPageToken != null) { | 1822 if (nextPageToken != null) { |
| 1789 _json["nextPageToken"] = nextPageToken; | 1823 _json["nextPageToken"] = nextPageToken; |
| 1790 } | 1824 } |
| 1791 return _json; | 1825 return _json; |
| 1792 } | 1826 } |
| 1793 } | 1827 } |
| 1794 | 1828 |
| 1795 class UrlChannel { | 1829 class UrlChannel { |
| 1796 /** | 1830 /// Unique identifier of this URL channel. This should be considered an |
| 1797 * Unique identifier of this URL channel. This should be considered an opaque | 1831 /// opaque identifier; it is not safe to rely on it being in any particular |
| 1798 * identifier; it is not safe to rely on it being in any particular format. | 1832 /// format. |
| 1799 */ | |
| 1800 core.String id; | 1833 core.String id; |
| 1801 /** Kind of resource this is, in this case adexchangeseller#urlChannel. */ | 1834 |
| 1835 /// Kind of resource this is, in this case adexchangeseller#urlChannel. |
| 1802 core.String kind; | 1836 core.String kind; |
| 1803 /** | 1837 |
| 1804 * URL Pattern of this URL channel. Does not include "http://" or "https://". | 1838 /// URL Pattern of this URL channel. Does not include "http://" or |
| 1805 * Example: www.example.com/home | 1839 /// "https://". Example: www.example.com/home |
| 1806 */ | |
| 1807 core.String urlPattern; | 1840 core.String urlPattern; |
| 1808 | 1841 |
| 1809 UrlChannel(); | 1842 UrlChannel(); |
| 1810 | 1843 |
| 1811 UrlChannel.fromJson(core.Map _json) { | 1844 UrlChannel.fromJson(core.Map _json) { |
| 1812 if (_json.containsKey("id")) { | 1845 if (_json.containsKey("id")) { |
| 1813 id = _json["id"]; | 1846 id = _json["id"]; |
| 1814 } | 1847 } |
| 1815 if (_json.containsKey("kind")) { | 1848 if (_json.containsKey("kind")) { |
| 1816 kind = _json["kind"]; | 1849 kind = _json["kind"]; |
| 1817 } | 1850 } |
| 1818 if (_json.containsKey("urlPattern")) { | 1851 if (_json.containsKey("urlPattern")) { |
| 1819 urlPattern = _json["urlPattern"]; | 1852 urlPattern = _json["urlPattern"]; |
| 1820 } | 1853 } |
| 1821 } | 1854 } |
| 1822 | 1855 |
| 1823 core.Map<core.String, core.Object> toJson() { | 1856 core.Map<core.String, core.Object> toJson() { |
| 1824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1857 final core.Map<core.String, core.Object> _json = |
| 1858 new core.Map<core.String, core.Object>(); |
| 1825 if (id != null) { | 1859 if (id != null) { |
| 1826 _json["id"] = id; | 1860 _json["id"] = id; |
| 1827 } | 1861 } |
| 1828 if (kind != null) { | 1862 if (kind != null) { |
| 1829 _json["kind"] = kind; | 1863 _json["kind"] = kind; |
| 1830 } | 1864 } |
| 1831 if (urlPattern != null) { | 1865 if (urlPattern != null) { |
| 1832 _json["urlPattern"] = urlPattern; | 1866 _json["urlPattern"] = urlPattern; |
| 1833 } | 1867 } |
| 1834 return _json; | 1868 return _json; |
| 1835 } | 1869 } |
| 1836 } | 1870 } |
| 1837 | 1871 |
| 1838 class UrlChannels { | 1872 class UrlChannels { |
| 1839 /** ETag of this response for caching purposes. */ | 1873 /// ETag of this response for caching purposes. |
| 1840 core.String etag; | 1874 core.String etag; |
| 1841 /** The URL channels returned in this list response. */ | 1875 |
| 1876 /// The URL channels returned in this list response. |
| 1842 core.List<UrlChannel> items; | 1877 core.List<UrlChannel> items; |
| 1843 /** Kind of list this is, in this case adexchangeseller#urlChannels. */ | 1878 |
| 1879 /// Kind of list this is, in this case adexchangeseller#urlChannels. |
| 1844 core.String kind; | 1880 core.String kind; |
| 1845 /** | 1881 |
| 1846 * Continuation token used to page through URL channels. To retrieve the next | 1882 /// Continuation token used to page through URL channels. To retrieve the |
| 1847 * page of results, set the next request's "pageToken" value to this. | 1883 /// next page of results, set the next request's "pageToken" value to this. |
| 1848 */ | |
| 1849 core.String nextPageToken; | 1884 core.String nextPageToken; |
| 1850 | 1885 |
| 1851 UrlChannels(); | 1886 UrlChannels(); |
| 1852 | 1887 |
| 1853 UrlChannels.fromJson(core.Map _json) { | 1888 UrlChannels.fromJson(core.Map _json) { |
| 1854 if (_json.containsKey("etag")) { | 1889 if (_json.containsKey("etag")) { |
| 1855 etag = _json["etag"]; | 1890 etag = _json["etag"]; |
| 1856 } | 1891 } |
| 1857 if (_json.containsKey("items")) { | 1892 if (_json.containsKey("items")) { |
| 1858 items = _json["items"].map((value) => new UrlChannel.fromJson(value)).toLi
st(); | 1893 items = _json["items"] |
| 1894 .map((value) => new UrlChannel.fromJson(value)) |
| 1895 .toList(); |
| 1859 } | 1896 } |
| 1860 if (_json.containsKey("kind")) { | 1897 if (_json.containsKey("kind")) { |
| 1861 kind = _json["kind"]; | 1898 kind = _json["kind"]; |
| 1862 } | 1899 } |
| 1863 if (_json.containsKey("nextPageToken")) { | 1900 if (_json.containsKey("nextPageToken")) { |
| 1864 nextPageToken = _json["nextPageToken"]; | 1901 nextPageToken = _json["nextPageToken"]; |
| 1865 } | 1902 } |
| 1866 } | 1903 } |
| 1867 | 1904 |
| 1868 core.Map<core.String, core.Object> toJson() { | 1905 core.Map<core.String, core.Object> toJson() { |
| 1869 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1906 final core.Map<core.String, core.Object> _json = |
| 1907 new core.Map<core.String, core.Object>(); |
| 1870 if (etag != null) { | 1908 if (etag != null) { |
| 1871 _json["etag"] = etag; | 1909 _json["etag"] = etag; |
| 1872 } | 1910 } |
| 1873 if (items != null) { | 1911 if (items != null) { |
| 1874 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1912 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1875 } | 1913 } |
| 1876 if (kind != null) { | 1914 if (kind != null) { |
| 1877 _json["kind"] = kind; | 1915 _json["kind"] = kind; |
| 1878 } | 1916 } |
| 1879 if (nextPageToken != null) { | 1917 if (nextPageToken != null) { |
| 1880 _json["nextPageToken"] = nextPageToken; | 1918 _json["nextPageToken"] = nextPageToken; |
| 1881 } | 1919 } |
| 1882 return _json; | 1920 return _json; |
| 1883 } | 1921 } |
| 1884 } | 1922 } |
| OLD | NEW |