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