| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis.adsense.v1_4; | 3 library googleapis.adsense.v1_4; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 17 ByteRange; |
| 18 |
| 19 const core.String USER_AGENT = 'dart-api-client adsense/v1.4'; |
| 15 | 20 |
| 16 /** | 21 /** |
| 17 * Gives AdSense publishers access to their inventory and the ability to | 22 * Gives AdSense publishers access to their inventory and the ability to |
| 18 * generate reports | 23 * generate reports |
| 19 */ | 24 */ |
| 20 class AdsenseApi { | 25 class AdsenseApi { |
| 21 /** View and manage your AdSense data */ | 26 /** View and manage your AdSense data */ |
| 22 static const AdsenseScope = "https://www.googleapis.com/auth/adsense"; | 27 static const AdsenseScope = "https://www.googleapis.com/auth/adsense"; |
| 23 | 28 |
| 24 /** View your AdSense data */ | 29 /** View your AdSense data */ |
| 25 static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.r
eadonly"; | 30 static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.r
eadonly"; |
| 26 | 31 |
| 27 | 32 |
| 28 final common_internal.ApiRequester _requester; | 33 final commons.ApiRequester _requester; |
| 29 | 34 |
| 30 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 35 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 31 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester); | 36 AdclientsResourceApi get adclients => new AdclientsResourceApi(_requester); |
| 32 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester); | 37 AdunitsResourceApi get adunits => new AdunitsResourceApi(_requester); |
| 33 AlertsResourceApi get alerts => new AlertsResourceApi(_requester); | 38 AlertsResourceApi get alerts => new AlertsResourceApi(_requester); |
| 34 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi(
_requester); | 39 CustomchannelsResourceApi get customchannels => new CustomchannelsResourceApi(
_requester); |
| 35 MetadataResourceApi get metadata => new MetadataResourceApi(_requester); | 40 MetadataResourceApi get metadata => new MetadataResourceApi(_requester); |
| 36 PaymentsResourceApi get payments => new PaymentsResourceApi(_requester); | 41 PaymentsResourceApi get payments => new PaymentsResourceApi(_requester); |
| 37 ReportsResourceApi get reports => new ReportsResourceApi(_requester); | 42 ReportsResourceApi get reports => new ReportsResourceApi(_requester); |
| 38 SavedadstylesResourceApi get savedadstyles => new SavedadstylesResourceApi(_re
quester); | 43 SavedadstylesResourceApi get savedadstyles => new SavedadstylesResourceApi(_re
quester); |
| 39 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste
r); | 44 UrlchannelsResourceApi get urlchannels => new UrlchannelsResourceApi(_requeste
r); |
| 40 | 45 |
| 41 AdsenseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "adsense/v1.4/"}) : | 46 AdsenseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "adsense/v1.4/"}) : |
| 42 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 47 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 43 } | 48 } |
| 44 | 49 |
| 45 | 50 |
| 46 /** Not documented yet. */ | |
| 47 class AccountsResourceApi { | 51 class AccountsResourceApi { |
| 48 final common_internal.ApiRequester _requester; | 52 final commons.ApiRequester _requester; |
| 49 | 53 |
| 50 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi
(_requester); | 54 AccountsAdclientsResourceApi get adclients => new AccountsAdclientsResourceApi
(_requester); |
| 51 AccountsAdunitsResourceApi get adunits => new AccountsAdunitsResourceApi(_requ
ester); | 55 AccountsAdunitsResourceApi get adunits => new AccountsAdunitsResourceApi(_requ
ester); |
| 52 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request
er); | 56 AccountsAlertsResourceApi get alerts => new AccountsAlertsResourceApi(_request
er); |
| 53 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan
nelsResourceApi(_requester); | 57 AccountsCustomchannelsResourceApi get customchannels => new AccountsCustomchan
nelsResourceApi(_requester); |
| 54 AccountsPaymentsResourceApi get payments => new AccountsPaymentsResourceApi(_r
equester); | 58 AccountsPaymentsResourceApi get payments => new AccountsPaymentsResourceApi(_r
equester); |
| 55 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ
ester); | 59 AccountsReportsResourceApi get reports => new AccountsReportsResourceApi(_requ
ester); |
| 56 AccountsSavedadstylesResourceApi get savedadstyles => new AccountsSavedadstyle
sResourceApi(_requester); | 60 AccountsSavedadstylesResourceApi get savedadstyles => new AccountsSavedadstyle
sResourceApi(_requester); |
| 57 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou
rceApi(_requester); | 61 AccountsUrlchannelsResourceApi get urlchannels => new AccountsUrlchannelsResou
rceApi(_requester); |
| 58 | 62 |
| 59 AccountsResourceApi(common_internal.ApiRequester client) : | 63 AccountsResourceApi(commons.ApiRequester client) : |
| 60 _requester = client; | 64 _requester = client; |
| 61 | 65 |
| 62 /** | 66 /** |
| 63 * Get information about the selected AdSense account. | 67 * Get information about the selected AdSense account. |
| 64 * | 68 * |
| 65 * Request parameters: | 69 * Request parameters: |
| 66 * | 70 * |
| 67 * [accountId] - Account to get information about. | 71 * [accountId] - Account to get information about. |
| 68 * | 72 * |
| 69 * [tree] - Whether the tree of sub accounts should be returned. | 73 * [tree] - Whether the tree of sub accounts should be returned. |
| 70 * | 74 * |
| 71 * Completes with a [Account]. | 75 * Completes with a [Account]. |
| 72 * | 76 * |
| 73 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 77 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 74 * error. | 78 * error. |
| 75 * | 79 * |
| 76 * If the used [http.Client] completes with an error when making a REST call, | 80 * If the used [http.Client] completes with an error when making a REST call, |
| 77 * this method will complete with the same error. | 81 * this method will complete with the same error. |
| 78 */ | 82 */ |
| 79 async.Future<Account> get(core.String accountId, {core.bool tree}) { | 83 async.Future<Account> get(core.String accountId, {core.bool tree}) { |
| 80 var _url = null; | 84 var _url = null; |
| 81 var _queryParams = new core.Map(); | 85 var _queryParams = new core.Map(); |
| 82 var _uploadMedia = null; | 86 var _uploadMedia = null; |
| 83 var _uploadOptions = null; | 87 var _uploadOptions = null; |
| 84 var _downloadOptions = common.DownloadOptions.Metadata; | 88 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 85 var _body = null; | 89 var _body = null; |
| 86 | 90 |
| 87 if (accountId == null) { | 91 if (accountId == null) { |
| 88 throw new core.ArgumentError("Parameter accountId is required."); | 92 throw new core.ArgumentError("Parameter accountId is required."); |
| 89 } | 93 } |
| 90 if (tree != null) { | 94 if (tree != null) { |
| 91 _queryParams["tree"] = ["${tree}"]; | 95 _queryParams["tree"] = ["${tree}"]; |
| 92 } | 96 } |
| 93 | 97 |
| 94 | 98 |
| 95 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId'); | 99 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId'); |
| 96 | 100 |
| 97 var _response = _requester.request(_url, | 101 var _response = _requester.request(_url, |
| 98 "GET", | 102 "GET", |
| 99 body: _body, | 103 body: _body, |
| 100 queryParams: _queryParams, | 104 queryParams: _queryParams, |
| 101 uploadOptions: _uploadOptions, | 105 uploadOptions: _uploadOptions, |
| 102 uploadMedia: _uploadMedia, | 106 uploadMedia: _uploadMedia, |
| 103 downloadOptions: _downloadOptions); | 107 downloadOptions: _downloadOptions); |
| 104 return _response.then((data) => new Account.fromJson(data)); | 108 return _response.then((data) => new Account.fromJson(data)); |
| 105 } | 109 } |
| 106 | 110 |
| 107 /** | 111 /** |
| 108 * List all accounts available to this AdSense account. | 112 * List all accounts available to this AdSense account. |
| 109 * | 113 * |
| 110 * Request parameters: | 114 * Request parameters: |
| 111 * | 115 * |
| 112 * [maxResults] - The maximum number of accounts to include in the response, | 116 * [maxResults] - The maximum number of accounts to include in the response, |
| 113 * used for paging. | 117 * used for paging. |
| 114 * Value must be between "0" and "10000". | 118 * Value must be between "0" and "10000". |
| 115 * | 119 * |
| 116 * [pageToken] - A continuation token, used to page through accounts. To | 120 * [pageToken] - A continuation token, used to page through accounts. To |
| 117 * retrieve the next page, set this parameter to the value of "nextPageToken" | 121 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 118 * from the previous response. | 122 * from the previous response. |
| 119 * | 123 * |
| 120 * Completes with a [Accounts]. | 124 * Completes with a [Accounts]. |
| 121 * | 125 * |
| 122 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 126 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 123 * error. | 127 * error. |
| 124 * | 128 * |
| 125 * If the used [http.Client] completes with an error when making a REST call, | 129 * If the used [http.Client] completes with an error when making a REST call, |
| 126 * this method will complete with the same error. | 130 * this method will complete with the same error. |
| 127 */ | 131 */ |
| 128 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { | 132 async.Future<Accounts> list({core.int maxResults, core.String pageToken}) { |
| 129 var _url = null; | 133 var _url = null; |
| 130 var _queryParams = new core.Map(); | 134 var _queryParams = new core.Map(); |
| 131 var _uploadMedia = null; | 135 var _uploadMedia = null; |
| 132 var _uploadOptions = null; | 136 var _uploadOptions = null; |
| 133 var _downloadOptions = common.DownloadOptions.Metadata; | 137 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 134 var _body = null; | 138 var _body = null; |
| 135 | 139 |
| 136 if (maxResults != null) { | 140 if (maxResults != null) { |
| 137 _queryParams["maxResults"] = ["${maxResults}"]; | 141 _queryParams["maxResults"] = ["${maxResults}"]; |
| 138 } | 142 } |
| 139 if (pageToken != null) { | 143 if (pageToken != null) { |
| 140 _queryParams["pageToken"] = [pageToken]; | 144 _queryParams["pageToken"] = [pageToken]; |
| 141 } | 145 } |
| 142 | 146 |
| 143 | 147 |
| 144 _url = 'accounts'; | 148 _url = 'accounts'; |
| 145 | 149 |
| 146 var _response = _requester.request(_url, | 150 var _response = _requester.request(_url, |
| 147 "GET", | 151 "GET", |
| 148 body: _body, | 152 body: _body, |
| 149 queryParams: _queryParams, | 153 queryParams: _queryParams, |
| 150 uploadOptions: _uploadOptions, | 154 uploadOptions: _uploadOptions, |
| 151 uploadMedia: _uploadMedia, | 155 uploadMedia: _uploadMedia, |
| 152 downloadOptions: _downloadOptions); | 156 downloadOptions: _downloadOptions); |
| 153 return _response.then((data) => new Accounts.fromJson(data)); | 157 return _response.then((data) => new Accounts.fromJson(data)); |
| 154 } | 158 } |
| 155 | 159 |
| 156 } | 160 } |
| 157 | 161 |
| 158 | 162 |
| 159 /** Not documented yet. */ | |
| 160 class AccountsAdclientsResourceApi { | 163 class AccountsAdclientsResourceApi { |
| 161 final common_internal.ApiRequester _requester; | 164 final commons.ApiRequester _requester; |
| 162 | 165 |
| 163 AccountsAdclientsResourceApi(common_internal.ApiRequester client) : | 166 AccountsAdclientsResourceApi(commons.ApiRequester client) : |
| 164 _requester = client; | 167 _requester = client; |
| 165 | 168 |
| 166 /** | 169 /** |
| 167 * List all ad clients in the specified account. | 170 * List all ad clients in the specified account. |
| 168 * | 171 * |
| 169 * Request parameters: | 172 * Request parameters: |
| 170 * | 173 * |
| 171 * [accountId] - Account for which to list ad clients. | 174 * [accountId] - Account for which to list ad clients. |
| 172 * | 175 * |
| 173 * [maxResults] - The maximum number of ad clients to include in the response, | 176 * [maxResults] - The maximum number of ad clients to include in the response, |
| 174 * used for paging. | 177 * used for paging. |
| 175 * Value must be between "0" and "10000". | 178 * Value must be between "0" and "10000". |
| 176 * | 179 * |
| 177 * [pageToken] - A continuation token, used to page through ad clients. To | 180 * [pageToken] - A continuation token, used to page through ad clients. To |
| 178 * retrieve the next page, set this parameter to the value of "nextPageToken" | 181 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 179 * from the previous response. | 182 * from the previous response. |
| 180 * | 183 * |
| 181 * Completes with a [AdClients]. | 184 * Completes with a [AdClients]. |
| 182 * | 185 * |
| 183 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 184 * error. | 187 * error. |
| 185 * | 188 * |
| 186 * If the used [http.Client] completes with an error when making a REST call, | 189 * If the used [http.Client] completes with an error when making a REST call, |
| 187 * this method will complete with the same error. | 190 * this method will complete with the same error. |
| 188 */ | 191 */ |
| 189 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core
.String pageToken}) { | 192 async.Future<AdClients> list(core.String accountId, {core.int maxResults, core
.String pageToken}) { |
| 190 var _url = null; | 193 var _url = null; |
| 191 var _queryParams = new core.Map(); | 194 var _queryParams = new core.Map(); |
| 192 var _uploadMedia = null; | 195 var _uploadMedia = null; |
| 193 var _uploadOptions = null; | 196 var _uploadOptions = null; |
| 194 var _downloadOptions = common.DownloadOptions.Metadata; | 197 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 195 var _body = null; | 198 var _body = null; |
| 196 | 199 |
| 197 if (accountId == null) { | 200 if (accountId == null) { |
| 198 throw new core.ArgumentError("Parameter accountId is required."); | 201 throw new core.ArgumentError("Parameter accountId is required."); |
| 199 } | 202 } |
| 200 if (maxResults != null) { | 203 if (maxResults != null) { |
| 201 _queryParams["maxResults"] = ["${maxResults}"]; | 204 _queryParams["maxResults"] = ["${maxResults}"]; |
| 202 } | 205 } |
| 203 if (pageToken != null) { | 206 if (pageToken != null) { |
| 204 _queryParams["pageToken"] = [pageToken]; | 207 _queryParams["pageToken"] = [pageToken]; |
| 205 } | 208 } |
| 206 | 209 |
| 207 | 210 |
| 208 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients'; | 211 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts'; |
| 209 | 212 |
| 210 var _response = _requester.request(_url, | 213 var _response = _requester.request(_url, |
| 211 "GET", | 214 "GET", |
| 212 body: _body, | 215 body: _body, |
| 213 queryParams: _queryParams, | 216 queryParams: _queryParams, |
| 214 uploadOptions: _uploadOptions, | 217 uploadOptions: _uploadOptions, |
| 215 uploadMedia: _uploadMedia, | 218 uploadMedia: _uploadMedia, |
| 216 downloadOptions: _downloadOptions); | 219 downloadOptions: _downloadOptions); |
| 217 return _response.then((data) => new AdClients.fromJson(data)); | 220 return _response.then((data) => new AdClients.fromJson(data)); |
| 218 } | 221 } |
| 219 | 222 |
| 220 } | 223 } |
| 221 | 224 |
| 222 | 225 |
| 223 /** Not documented yet. */ | |
| 224 class AccountsAdunitsResourceApi { | 226 class AccountsAdunitsResourceApi { |
| 225 final common_internal.ApiRequester _requester; | 227 final commons.ApiRequester _requester; |
| 226 | 228 |
| 227 AccountsAdunitsCustomchannelsResourceApi get customchannels => new AccountsAdu
nitsCustomchannelsResourceApi(_requester); | 229 AccountsAdunitsCustomchannelsResourceApi get customchannels => new AccountsAdu
nitsCustomchannelsResourceApi(_requester); |
| 228 | 230 |
| 229 AccountsAdunitsResourceApi(common_internal.ApiRequester client) : | 231 AccountsAdunitsResourceApi(commons.ApiRequester client) : |
| 230 _requester = client; | 232 _requester = client; |
| 231 | 233 |
| 232 /** | 234 /** |
| 233 * Gets the specified ad unit in the specified ad client for the specified | 235 * Gets the specified ad unit in the specified ad client for the specified |
| 234 * account. | 236 * account. |
| 235 * | 237 * |
| 236 * Request parameters: | 238 * Request parameters: |
| 237 * | 239 * |
| 238 * [accountId] - Account to which the ad client belongs. | 240 * [accountId] - Account to which the ad client belongs. |
| 239 * | 241 * |
| 240 * [adClientId] - Ad client for which to get the ad unit. | 242 * [adClientId] - Ad client for which to get the ad unit. |
| 241 * | 243 * |
| 242 * [adUnitId] - Ad unit to retrieve. | 244 * [adUnitId] - Ad unit to retrieve. |
| 243 * | 245 * |
| 244 * Completes with a [AdUnit]. | 246 * Completes with a [AdUnit]. |
| 245 * | 247 * |
| 246 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 248 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 247 * error. | 249 * error. |
| 248 * | 250 * |
| 249 * If the used [http.Client] completes with an error when making a REST call, | 251 * If the used [http.Client] completes with an error when making a REST call, |
| 250 * this method will complete with the same error. | 252 * this method will complete with the same error. |
| 251 */ | 253 */ |
| 252 async.Future<AdUnit> get(core.String accountId, core.String adClientId, core.S
tring adUnitId) { | 254 async.Future<AdUnit> get(core.String accountId, core.String adClientId, core.S
tring adUnitId) { |
| 253 var _url = null; | 255 var _url = null; |
| 254 var _queryParams = new core.Map(); | 256 var _queryParams = new core.Map(); |
| 255 var _uploadMedia = null; | 257 var _uploadMedia = null; |
| 256 var _uploadOptions = null; | 258 var _uploadOptions = null; |
| 257 var _downloadOptions = common.DownloadOptions.Metadata; | 259 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 258 var _body = null; | 260 var _body = null; |
| 259 | 261 |
| 260 if (accountId == null) { | 262 if (accountId == null) { |
| 261 throw new core.ArgumentError("Parameter accountId is required."); | 263 throw new core.ArgumentError("Parameter accountId is required."); |
| 262 } | 264 } |
| 263 if (adClientId == null) { | 265 if (adClientId == null) { |
| 264 throw new core.ArgumentError("Parameter adClientId is required."); | 266 throw new core.ArgumentError("Parameter adClientId is required."); |
| 265 } | 267 } |
| 266 if (adUnitId == null) { | 268 if (adUnitId == null) { |
| 267 throw new core.ArgumentError("Parameter adUnitId is required."); | 269 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 268 } | 270 } |
| 269 | 271 |
| 270 | 272 |
| 271 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/
' + common_internal.Escaper.ecapeVariable('$adUnitId'); | 273 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca
per.ecapeVariable('$adUnitId'); |
| 272 | 274 |
| 273 var _response = _requester.request(_url, | 275 var _response = _requester.request(_url, |
| 274 "GET", | 276 "GET", |
| 275 body: _body, | 277 body: _body, |
| 276 queryParams: _queryParams, | 278 queryParams: _queryParams, |
| 277 uploadOptions: _uploadOptions, | 279 uploadOptions: _uploadOptions, |
| 278 uploadMedia: _uploadMedia, | 280 uploadMedia: _uploadMedia, |
| 279 downloadOptions: _downloadOptions); | 281 downloadOptions: _downloadOptions); |
| 280 return _response.then((data) => new AdUnit.fromJson(data)); | 282 return _response.then((data) => new AdUnit.fromJson(data)); |
| 281 } | 283 } |
| 282 | 284 |
| 283 /** | 285 /** |
| 284 * Get ad code for the specified ad unit. | 286 * Get ad code for the specified ad unit. |
| 285 * | 287 * |
| 286 * Request parameters: | 288 * Request parameters: |
| 287 * | 289 * |
| 288 * [accountId] - Account which contains the ad client. | 290 * [accountId] - Account which contains the ad client. |
| 289 * | 291 * |
| 290 * [adClientId] - Ad client with contains the ad unit. | 292 * [adClientId] - Ad client with contains the ad unit. |
| 291 * | 293 * |
| 292 * [adUnitId] - Ad unit to get the code for. | 294 * [adUnitId] - Ad unit to get the code for. |
| 293 * | 295 * |
| 294 * Completes with a [AdCode]. | 296 * Completes with a [AdCode]. |
| 295 * | 297 * |
| 296 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 298 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 297 * error. | 299 * error. |
| 298 * | 300 * |
| 299 * If the used [http.Client] completes with an error when making a REST call, | 301 * If the used [http.Client] completes with an error when making a REST call, |
| 300 * this method will complete with the same error. | 302 * this method will complete with the same error. |
| 301 */ | 303 */ |
| 302 async.Future<AdCode> getAdCode(core.String accountId, core.String adClientId,
core.String adUnitId) { | 304 async.Future<AdCode> getAdCode(core.String accountId, core.String adClientId,
core.String adUnitId) { |
| 303 var _url = null; | 305 var _url = null; |
| 304 var _queryParams = new core.Map(); | 306 var _queryParams = new core.Map(); |
| 305 var _uploadMedia = null; | 307 var _uploadMedia = null; |
| 306 var _uploadOptions = null; | 308 var _uploadOptions = null; |
| 307 var _downloadOptions = common.DownloadOptions.Metadata; | 309 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 308 var _body = null; | 310 var _body = null; |
| 309 | 311 |
| 310 if (accountId == null) { | 312 if (accountId == null) { |
| 311 throw new core.ArgumentError("Parameter accountId is required."); | 313 throw new core.ArgumentError("Parameter accountId is required."); |
| 312 } | 314 } |
| 313 if (adClientId == null) { | 315 if (adClientId == null) { |
| 314 throw new core.ArgumentError("Parameter adClientId is required."); | 316 throw new core.ArgumentError("Parameter adClientId is required."); |
| 315 } | 317 } |
| 316 if (adUnitId == null) { | 318 if (adUnitId == null) { |
| 317 throw new core.ArgumentError("Parameter adUnitId is required."); | 319 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 318 } | 320 } |
| 319 | 321 |
| 320 | 322 |
| 321 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/
' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/adcode'; | 323 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca
per.ecapeVariable('$adUnitId') + '/adcode'; |
| 322 | 324 |
| 323 var _response = _requester.request(_url, | 325 var _response = _requester.request(_url, |
| 324 "GET", | 326 "GET", |
| 325 body: _body, | 327 body: _body, |
| 326 queryParams: _queryParams, | 328 queryParams: _queryParams, |
| 327 uploadOptions: _uploadOptions, | 329 uploadOptions: _uploadOptions, |
| 328 uploadMedia: _uploadMedia, | 330 uploadMedia: _uploadMedia, |
| 329 downloadOptions: _downloadOptions); | 331 downloadOptions: _downloadOptions); |
| 330 return _response.then((data) => new AdCode.fromJson(data)); | 332 return _response.then((data) => new AdCode.fromJson(data)); |
| 331 } | 333 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 344 * [maxResults] - The maximum number of ad units to include in the response, | 346 * [maxResults] - The maximum number of ad units to include in the response, |
| 345 * used for paging. | 347 * used for paging. |
| 346 * Value must be between "0" and "10000". | 348 * Value must be between "0" and "10000". |
| 347 * | 349 * |
| 348 * [pageToken] - A continuation token, used to page through ad units. To | 350 * [pageToken] - A continuation token, used to page through ad units. To |
| 349 * retrieve the next page, set this parameter to the value of "nextPageToken" | 351 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 350 * from the previous response. | 352 * from the previous response. |
| 351 * | 353 * |
| 352 * Completes with a [AdUnits]. | 354 * Completes with a [AdUnits]. |
| 353 * | 355 * |
| 354 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 356 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 355 * error. | 357 * error. |
| 356 * | 358 * |
| 357 * If the used [http.Client] completes with an error when making a REST call, | 359 * If the used [http.Client] completes with an error when making a REST call, |
| 358 * this method will complete with the same error. | 360 * this method will complete with the same error. |
| 359 */ | 361 */ |
| 360 async.Future<AdUnits> list(core.String accountId, core.String adClientId, {cor
e.bool includeInactive, core.int maxResults, core.String pageToken}) { | 362 async.Future<AdUnits> list(core.String accountId, core.String adClientId, {cor
e.bool includeInactive, core.int maxResults, core.String pageToken}) { |
| 361 var _url = null; | 363 var _url = null; |
| 362 var _queryParams = new core.Map(); | 364 var _queryParams = new core.Map(); |
| 363 var _uploadMedia = null; | 365 var _uploadMedia = null; |
| 364 var _uploadOptions = null; | 366 var _uploadOptions = null; |
| 365 var _downloadOptions = common.DownloadOptions.Metadata; | 367 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 366 var _body = null; | 368 var _body = null; |
| 367 | 369 |
| 368 if (accountId == null) { | 370 if (accountId == null) { |
| 369 throw new core.ArgumentError("Parameter accountId is required."); | 371 throw new core.ArgumentError("Parameter accountId is required."); |
| 370 } | 372 } |
| 371 if (adClientId == null) { | 373 if (adClientId == null) { |
| 372 throw new core.ArgumentError("Parameter adClientId is required."); | 374 throw new core.ArgumentError("Parameter adClientId is required."); |
| 373 } | 375 } |
| 374 if (includeInactive != null) { | 376 if (includeInactive != null) { |
| 375 _queryParams["includeInactive"] = ["${includeInactive}"]; | 377 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 376 } | 378 } |
| 377 if (maxResults != null) { | 379 if (maxResults != null) { |
| 378 _queryParams["maxResults"] = ["${maxResults}"]; | 380 _queryParams["maxResults"] = ["${maxResults}"]; |
| 379 } | 381 } |
| 380 if (pageToken != null) { | 382 if (pageToken != null) { |
| 381 _queryParams["pageToken"] = [pageToken]; | 383 _queryParams["pageToken"] = [pageToken]; |
| 382 } | 384 } |
| 383 | 385 |
| 384 | 386 |
| 385 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits'
; | 387 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits'; |
| 386 | 388 |
| 387 var _response = _requester.request(_url, | 389 var _response = _requester.request(_url, |
| 388 "GET", | 390 "GET", |
| 389 body: _body, | 391 body: _body, |
| 390 queryParams: _queryParams, | 392 queryParams: _queryParams, |
| 391 uploadOptions: _uploadOptions, | 393 uploadOptions: _uploadOptions, |
| 392 uploadMedia: _uploadMedia, | 394 uploadMedia: _uploadMedia, |
| 393 downloadOptions: _downloadOptions); | 395 downloadOptions: _downloadOptions); |
| 394 return _response.then((data) => new AdUnits.fromJson(data)); | 396 return _response.then((data) => new AdUnits.fromJson(data)); |
| 395 } | 397 } |
| 396 | 398 |
| 397 } | 399 } |
| 398 | 400 |
| 399 | 401 |
| 400 /** Not documented yet. */ | |
| 401 class AccountsAdunitsCustomchannelsResourceApi { | 402 class AccountsAdunitsCustomchannelsResourceApi { |
| 402 final common_internal.ApiRequester _requester; | 403 final commons.ApiRequester _requester; |
| 403 | 404 |
| 404 AccountsAdunitsCustomchannelsResourceApi(common_internal.ApiRequester client)
: | 405 AccountsAdunitsCustomchannelsResourceApi(commons.ApiRequester client) : |
| 405 _requester = client; | 406 _requester = client; |
| 406 | 407 |
| 407 /** | 408 /** |
| 408 * List all custom channels which the specified ad unit belongs to. | 409 * List all custom channels which the specified ad unit belongs to. |
| 409 * | 410 * |
| 410 * Request parameters: | 411 * Request parameters: |
| 411 * | 412 * |
| 412 * [accountId] - Account to which the ad client belongs. | 413 * [accountId] - Account to which the ad client belongs. |
| 413 * | 414 * |
| 414 * [adClientId] - Ad client which contains the ad unit. | 415 * [adClientId] - Ad client which contains the ad unit. |
| 415 * | 416 * |
| 416 * [adUnitId] - Ad unit for which to list custom channels. | 417 * [adUnitId] - Ad unit for which to list custom channels. |
| 417 * | 418 * |
| 418 * [maxResults] - The maximum number of custom channels to include in the | 419 * [maxResults] - The maximum number of custom channels to include in the |
| 419 * response, used for paging. | 420 * response, used for paging. |
| 420 * Value must be between "0" and "10000". | 421 * Value must be between "0" and "10000". |
| 421 * | 422 * |
| 422 * [pageToken] - A continuation token, used to page through custom channels. | 423 * [pageToken] - A continuation token, used to page through custom channels. |
| 423 * To retrieve the next page, set this parameter to the value of | 424 * To retrieve the next page, set this parameter to the value of |
| 424 * "nextPageToken" from the previous response. | 425 * "nextPageToken" from the previous response. |
| 425 * | 426 * |
| 426 * Completes with a [CustomChannels]. | 427 * Completes with a [CustomChannels]. |
| 427 * | 428 * |
| 428 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 429 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 429 * error. | 430 * error. |
| 430 * | 431 * |
| 431 * If the used [http.Client] completes with an error when making a REST call, | 432 * If the used [http.Client] completes with an error when making a REST call, |
| 432 * this method will complete with the same error. | 433 * this method will complete with the same error. |
| 433 */ | 434 */ |
| 434 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, core.String adUnitId, {core.int maxResults, core.String pageToken}) { | 435 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, core.String adUnitId, {core.int maxResults, core.String pageToken}) { |
| 435 var _url = null; | 436 var _url = null; |
| 436 var _queryParams = new core.Map(); | 437 var _queryParams = new core.Map(); |
| 437 var _uploadMedia = null; | 438 var _uploadMedia = null; |
| 438 var _uploadOptions = null; | 439 var _uploadOptions = null; |
| 439 var _downloadOptions = common.DownloadOptions.Metadata; | 440 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 440 var _body = null; | 441 var _body = null; |
| 441 | 442 |
| 442 if (accountId == null) { | 443 if (accountId == null) { |
| 443 throw new core.ArgumentError("Parameter accountId is required."); | 444 throw new core.ArgumentError("Parameter accountId is required."); |
| 444 } | 445 } |
| 445 if (adClientId == null) { | 446 if (adClientId == null) { |
| 446 throw new core.ArgumentError("Parameter adClientId is required."); | 447 throw new core.ArgumentError("Parameter adClientId is required."); |
| 447 } | 448 } |
| 448 if (adUnitId == null) { | 449 if (adUnitId == null) { |
| 449 throw new core.ArgumentError("Parameter adUnitId is required."); | 450 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 450 } | 451 } |
| 451 if (maxResults != null) { | 452 if (maxResults != null) { |
| 452 _queryParams["maxResults"] = ["${maxResults}"]; | 453 _queryParams["maxResults"] = ["${maxResults}"]; |
| 453 } | 454 } |
| 454 if (pageToken != null) { | 455 if (pageToken != null) { |
| 455 _queryParams["pageToken"] = [pageToken]; | 456 _queryParams["pageToken"] = [pageToken]; |
| 456 } | 457 } |
| 457 | 458 |
| 458 | 459 |
| 459 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/adunits/
' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/customchannels'; | 460 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/adunits/' + commons.Esca
per.ecapeVariable('$adUnitId') + '/customchannels'; |
| 460 | 461 |
| 461 var _response = _requester.request(_url, | 462 var _response = _requester.request(_url, |
| 462 "GET", | 463 "GET", |
| 463 body: _body, | 464 body: _body, |
| 464 queryParams: _queryParams, | 465 queryParams: _queryParams, |
| 465 uploadOptions: _uploadOptions, | 466 uploadOptions: _uploadOptions, |
| 466 uploadMedia: _uploadMedia, | 467 uploadMedia: _uploadMedia, |
| 467 downloadOptions: _downloadOptions); | 468 downloadOptions: _downloadOptions); |
| 468 return _response.then((data) => new CustomChannels.fromJson(data)); | 469 return _response.then((data) => new CustomChannels.fromJson(data)); |
| 469 } | 470 } |
| 470 | 471 |
| 471 } | 472 } |
| 472 | 473 |
| 473 | 474 |
| 474 /** Not documented yet. */ | |
| 475 class AccountsAlertsResourceApi { | 475 class AccountsAlertsResourceApi { |
| 476 final common_internal.ApiRequester _requester; | 476 final commons.ApiRequester _requester; |
| 477 | 477 |
| 478 AccountsAlertsResourceApi(common_internal.ApiRequester client) : | 478 AccountsAlertsResourceApi(commons.ApiRequester client) : |
| 479 _requester = client; | 479 _requester = client; |
| 480 | 480 |
| 481 /** | 481 /** |
| 482 * Dismiss (delete) the specified alert from the specified publisher AdSense | 482 * Dismiss (delete) the specified alert from the specified publisher AdSense |
| 483 * account. | 483 * account. |
| 484 * | 484 * |
| 485 * Request parameters: | 485 * Request parameters: |
| 486 * | 486 * |
| 487 * [accountId] - Account which contains the ad unit. | 487 * [accountId] - Account which contains the ad unit. |
| 488 * | 488 * |
| 489 * [alertId] - Alert to delete. | 489 * [alertId] - Alert to delete. |
| 490 * | 490 * |
| 491 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 491 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 492 * error. | 492 * error. |
| 493 * | 493 * |
| 494 * If the used [http.Client] completes with an error when making a REST call, | 494 * If the used [http.Client] completes with an error when making a REST call, |
| 495 * this method will complete with the same error. | 495 * this method will complete with the same error. |
| 496 */ | 496 */ |
| 497 async.Future delete(core.String accountId, core.String alertId) { | 497 async.Future delete(core.String accountId, core.String alertId) { |
| 498 var _url = null; | 498 var _url = null; |
| 499 var _queryParams = new core.Map(); | 499 var _queryParams = new core.Map(); |
| 500 var _uploadMedia = null; | 500 var _uploadMedia = null; |
| 501 var _uploadOptions = null; | 501 var _uploadOptions = null; |
| 502 var _downloadOptions = common.DownloadOptions.Metadata; | 502 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 503 var _body = null; | 503 var _body = null; |
| 504 | 504 |
| 505 if (accountId == null) { | 505 if (accountId == null) { |
| 506 throw new core.ArgumentError("Parameter accountId is required."); | 506 throw new core.ArgumentError("Parameter accountId is required."); |
| 507 } | 507 } |
| 508 if (alertId == null) { | 508 if (alertId == null) { |
| 509 throw new core.ArgumentError("Parameter alertId is required."); | 509 throw new core.ArgumentError("Parameter alertId is required."); |
| 510 } | 510 } |
| 511 | 511 |
| 512 _downloadOptions = null; | 512 _downloadOptions = null; |
| 513 | 513 |
| 514 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/alerts/' + common_internal.Escaper.ecapeVariable('$alertId'); | 514 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts/
' + commons.Escaper.ecapeVariable('$alertId'); |
| 515 | 515 |
| 516 var _response = _requester.request(_url, | 516 var _response = _requester.request(_url, |
| 517 "DELETE", | 517 "DELETE", |
| 518 body: _body, | 518 body: _body, |
| 519 queryParams: _queryParams, | 519 queryParams: _queryParams, |
| 520 uploadOptions: _uploadOptions, | 520 uploadOptions: _uploadOptions, |
| 521 uploadMedia: _uploadMedia, | 521 uploadMedia: _uploadMedia, |
| 522 downloadOptions: _downloadOptions); | 522 downloadOptions: _downloadOptions); |
| 523 return _response.then((data) => null); | 523 return _response.then((data) => null); |
| 524 } | 524 } |
| 525 | 525 |
| 526 /** | 526 /** |
| 527 * List the alerts for the specified AdSense account. | 527 * List the alerts for the specified AdSense account. |
| 528 * | 528 * |
| 529 * Request parameters: | 529 * Request parameters: |
| 530 * | 530 * |
| 531 * [accountId] - Account for which to retrieve the alerts. | 531 * [accountId] - Account for which to retrieve the alerts. |
| 532 * | 532 * |
| 533 * [locale] - The locale to use for translating alert messages. The account | 533 * [locale] - The locale to use for translating alert messages. The account |
| 534 * locale will be used if this is not supplied. The AdSense default (English) | 534 * locale will be used if this is not supplied. The AdSense default (English) |
| 535 * will be used if the supplied locale is invalid or unsupported. | 535 * will be used if the supplied locale is invalid or unsupported. |
| 536 * | 536 * |
| 537 * Completes with a [Alerts]. | 537 * Completes with a [Alerts]. |
| 538 * | 538 * |
| 539 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 539 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 540 * error. | 540 * error. |
| 541 * | 541 * |
| 542 * If the used [http.Client] completes with an error when making a REST call, | 542 * If the used [http.Client] completes with an error when making a REST call, |
| 543 * this method will complete with the same error. | 543 * this method will complete with the same error. |
| 544 */ | 544 */ |
| 545 async.Future<Alerts> list(core.String accountId, {core.String locale}) { | 545 async.Future<Alerts> list(core.String accountId, {core.String locale}) { |
| 546 var _url = null; | 546 var _url = null; |
| 547 var _queryParams = new core.Map(); | 547 var _queryParams = new core.Map(); |
| 548 var _uploadMedia = null; | 548 var _uploadMedia = null; |
| 549 var _uploadOptions = null; | 549 var _uploadOptions = null; |
| 550 var _downloadOptions = common.DownloadOptions.Metadata; | 550 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 551 var _body = null; | 551 var _body = null; |
| 552 | 552 |
| 553 if (accountId == null) { | 553 if (accountId == null) { |
| 554 throw new core.ArgumentError("Parameter accountId is required."); | 554 throw new core.ArgumentError("Parameter accountId is required."); |
| 555 } | 555 } |
| 556 if (locale != null) { | 556 if (locale != null) { |
| 557 _queryParams["locale"] = [locale]; | 557 _queryParams["locale"] = [locale]; |
| 558 } | 558 } |
| 559 | 559 |
| 560 | 560 |
| 561 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/alerts'; | 561 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/alerts'
; |
| 562 | 562 |
| 563 var _response = _requester.request(_url, | 563 var _response = _requester.request(_url, |
| 564 "GET", | 564 "GET", |
| 565 body: _body, | 565 body: _body, |
| 566 queryParams: _queryParams, | 566 queryParams: _queryParams, |
| 567 uploadOptions: _uploadOptions, | 567 uploadOptions: _uploadOptions, |
| 568 uploadMedia: _uploadMedia, | 568 uploadMedia: _uploadMedia, |
| 569 downloadOptions: _downloadOptions); | 569 downloadOptions: _downloadOptions); |
| 570 return _response.then((data) => new Alerts.fromJson(data)); | 570 return _response.then((data) => new Alerts.fromJson(data)); |
| 571 } | 571 } |
| 572 | 572 |
| 573 } | 573 } |
| 574 | 574 |
| 575 | 575 |
| 576 /** Not documented yet. */ | |
| 577 class AccountsCustomchannelsResourceApi { | 576 class AccountsCustomchannelsResourceApi { |
| 578 final common_internal.ApiRequester _requester; | 577 final commons.ApiRequester _requester; |
| 579 | 578 |
| 580 AccountsCustomchannelsAdunitsResourceApi get adunits => new AccountsCustomchan
nelsAdunitsResourceApi(_requester); | 579 AccountsCustomchannelsAdunitsResourceApi get adunits => new AccountsCustomchan
nelsAdunitsResourceApi(_requester); |
| 581 | 580 |
| 582 AccountsCustomchannelsResourceApi(common_internal.ApiRequester client) : | 581 AccountsCustomchannelsResourceApi(commons.ApiRequester client) : |
| 583 _requester = client; | 582 _requester = client; |
| 584 | 583 |
| 585 /** | 584 /** |
| 586 * Get the specified custom channel from the specified ad client for the | 585 * Get the specified custom channel from the specified ad client for the |
| 587 * specified account. | 586 * specified account. |
| 588 * | 587 * |
| 589 * Request parameters: | 588 * Request parameters: |
| 590 * | 589 * |
| 591 * [accountId] - Account to which the ad client belongs. | 590 * [accountId] - Account to which the ad client belongs. |
| 592 * | 591 * |
| 593 * [adClientId] - Ad client which contains the custom channel. | 592 * [adClientId] - Ad client which contains the custom channel. |
| 594 * | 593 * |
| 595 * [customChannelId] - Custom channel to retrieve. | 594 * [customChannelId] - Custom channel to retrieve. |
| 596 * | 595 * |
| 597 * Completes with a [CustomChannel]. | 596 * Completes with a [CustomChannel]. |
| 598 * | 597 * |
| 599 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 600 * error. | 599 * error. |
| 601 * | 600 * |
| 602 * If the used [http.Client] completes with an error when making a REST call, | 601 * If the used [http.Client] completes with an error when making a REST call, |
| 603 * this method will complete with the same error. | 602 * this method will complete with the same error. |
| 604 */ | 603 */ |
| 605 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
core.String customChannelId) { | 604 async.Future<CustomChannel> get(core.String accountId, core.String adClientId,
core.String customChannelId) { |
| 606 var _url = null; | 605 var _url = null; |
| 607 var _queryParams = new core.Map(); | 606 var _queryParams = new core.Map(); |
| 608 var _uploadMedia = null; | 607 var _uploadMedia = null; |
| 609 var _uploadOptions = null; | 608 var _uploadOptions = null; |
| 610 var _downloadOptions = common.DownloadOptions.Metadata; | 609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 611 var _body = null; | 610 var _body = null; |
| 612 | 611 |
| 613 if (accountId == null) { | 612 if (accountId == null) { |
| 614 throw new core.ArgumentError("Parameter accountId is required."); | 613 throw new core.ArgumentError("Parameter accountId is required."); |
| 615 } | 614 } |
| 616 if (adClientId == null) { | 615 if (adClientId == null) { |
| 617 throw new core.ArgumentError("Parameter adClientId is required."); | 616 throw new core.ArgumentError("Parameter adClientId is required."); |
| 618 } | 617 } |
| 619 if (customChannelId == null) { | 618 if (customChannelId == null) { |
| 620 throw new core.ArgumentError("Parameter customChannelId is required."); | 619 throw new core.ArgumentError("Parameter customChannelId is required."); |
| 621 } | 620 } |
| 622 | 621 |
| 623 | 622 |
| 624 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch
annels/' + common_internal.Escaper.ecapeVariable('$customChannelId'); | 623 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo
ns.Escaper.ecapeVariable('$customChannelId'); |
| 625 | 624 |
| 626 var _response = _requester.request(_url, | 625 var _response = _requester.request(_url, |
| 627 "GET", | 626 "GET", |
| 628 body: _body, | 627 body: _body, |
| 629 queryParams: _queryParams, | 628 queryParams: _queryParams, |
| 630 uploadOptions: _uploadOptions, | 629 uploadOptions: _uploadOptions, |
| 631 uploadMedia: _uploadMedia, | 630 uploadMedia: _uploadMedia, |
| 632 downloadOptions: _downloadOptions); | 631 downloadOptions: _downloadOptions); |
| 633 return _response.then((data) => new CustomChannel.fromJson(data)); | 632 return _response.then((data) => new CustomChannel.fromJson(data)); |
| 634 } | 633 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 646 * [maxResults] - The maximum number of custom channels to include in the | 645 * [maxResults] - The maximum number of custom channels to include in the |
| 647 * response, used for paging. | 646 * response, used for paging. |
| 648 * Value must be between "0" and "10000". | 647 * Value must be between "0" and "10000". |
| 649 * | 648 * |
| 650 * [pageToken] - A continuation token, used to page through custom channels. | 649 * [pageToken] - A continuation token, used to page through custom channels. |
| 651 * To retrieve the next page, set this parameter to the value of | 650 * To retrieve the next page, set this parameter to the value of |
| 652 * "nextPageToken" from the previous response. | 651 * "nextPageToken" from the previous response. |
| 653 * | 652 * |
| 654 * Completes with a [CustomChannels]. | 653 * Completes with a [CustomChannels]. |
| 655 * | 654 * |
| 656 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 655 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 657 * error. | 656 * error. |
| 658 * | 657 * |
| 659 * If the used [http.Client] completes with an error when making a REST call, | 658 * If the used [http.Client] completes with an error when making a REST call, |
| 660 * this method will complete with the same error. | 659 * this method will complete with the same error. |
| 661 */ | 660 */ |
| 662 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, {core.int maxResults, core.String pageToken}) { | 661 async.Future<CustomChannels> list(core.String accountId, core.String adClientI
d, {core.int maxResults, core.String pageToken}) { |
| 663 var _url = null; | 662 var _url = null; |
| 664 var _queryParams = new core.Map(); | 663 var _queryParams = new core.Map(); |
| 665 var _uploadMedia = null; | 664 var _uploadMedia = null; |
| 666 var _uploadOptions = null; | 665 var _uploadOptions = null; |
| 667 var _downloadOptions = common.DownloadOptions.Metadata; | 666 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 668 var _body = null; | 667 var _body = null; |
| 669 | 668 |
| 670 if (accountId == null) { | 669 if (accountId == null) { |
| 671 throw new core.ArgumentError("Parameter accountId is required."); | 670 throw new core.ArgumentError("Parameter accountId is required."); |
| 672 } | 671 } |
| 673 if (adClientId == null) { | 672 if (adClientId == null) { |
| 674 throw new core.ArgumentError("Parameter adClientId is required."); | 673 throw new core.ArgumentError("Parameter adClientId is required."); |
| 675 } | 674 } |
| 676 if (maxResults != null) { | 675 if (maxResults != null) { |
| 677 _queryParams["maxResults"] = ["${maxResults}"]; | 676 _queryParams["maxResults"] = ["${maxResults}"]; |
| 678 } | 677 } |
| 679 if (pageToken != null) { | 678 if (pageToken != null) { |
| 680 _queryParams["pageToken"] = [pageToken]; | 679 _queryParams["pageToken"] = [pageToken]; |
| 681 } | 680 } |
| 682 | 681 |
| 683 | 682 |
| 684 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch
annels'; | 683 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels'; |
| 685 | 684 |
| 686 var _response = _requester.request(_url, | 685 var _response = _requester.request(_url, |
| 687 "GET", | 686 "GET", |
| 688 body: _body, | 687 body: _body, |
| 689 queryParams: _queryParams, | 688 queryParams: _queryParams, |
| 690 uploadOptions: _uploadOptions, | 689 uploadOptions: _uploadOptions, |
| 691 uploadMedia: _uploadMedia, | 690 uploadMedia: _uploadMedia, |
| 692 downloadOptions: _downloadOptions); | 691 downloadOptions: _downloadOptions); |
| 693 return _response.then((data) => new CustomChannels.fromJson(data)); | 692 return _response.then((data) => new CustomChannels.fromJson(data)); |
| 694 } | 693 } |
| 695 | 694 |
| 696 } | 695 } |
| 697 | 696 |
| 698 | 697 |
| 699 /** Not documented yet. */ | |
| 700 class AccountsCustomchannelsAdunitsResourceApi { | 698 class AccountsCustomchannelsAdunitsResourceApi { |
| 701 final common_internal.ApiRequester _requester; | 699 final commons.ApiRequester _requester; |
| 702 | 700 |
| 703 AccountsCustomchannelsAdunitsResourceApi(common_internal.ApiRequester client)
: | 701 AccountsCustomchannelsAdunitsResourceApi(commons.ApiRequester client) : |
| 704 _requester = client; | 702 _requester = client; |
| 705 | 703 |
| 706 /** | 704 /** |
| 707 * List all ad units in the specified custom channel. | 705 * List all ad units in the specified custom channel. |
| 708 * | 706 * |
| 709 * Request parameters: | 707 * Request parameters: |
| 710 * | 708 * |
| 711 * [accountId] - Account to which the ad client belongs. | 709 * [accountId] - Account to which the ad client belongs. |
| 712 * | 710 * |
| 713 * [adClientId] - Ad client which contains the custom channel. | 711 * [adClientId] - Ad client which contains the custom channel. |
| 714 * | 712 * |
| 715 * [customChannelId] - Custom channel for which to list ad units. | 713 * [customChannelId] - Custom channel for which to list ad units. |
| 716 * | 714 * |
| 717 * [includeInactive] - Whether to include inactive ad units. Default: true. | 715 * [includeInactive] - Whether to include inactive ad units. Default: true. |
| 718 * | 716 * |
| 719 * [maxResults] - The maximum number of ad units to include in the response, | 717 * [maxResults] - The maximum number of ad units to include in the response, |
| 720 * used for paging. | 718 * used for paging. |
| 721 * Value must be between "0" and "10000". | 719 * Value must be between "0" and "10000". |
| 722 * | 720 * |
| 723 * [pageToken] - A continuation token, used to page through ad units. To | 721 * [pageToken] - A continuation token, used to page through ad units. To |
| 724 * retrieve the next page, set this parameter to the value of "nextPageToken" | 722 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 725 * from the previous response. | 723 * from the previous response. |
| 726 * | 724 * |
| 727 * Completes with a [AdUnits]. | 725 * Completes with a [AdUnits]. |
| 728 * | 726 * |
| 729 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 727 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 730 * error. | 728 * error. |
| 731 * | 729 * |
| 732 * If the used [http.Client] completes with an error when making a REST call, | 730 * If the used [http.Client] completes with an error when making a REST call, |
| 733 * this method will complete with the same error. | 731 * this method will complete with the same error. |
| 734 */ | 732 */ |
| 735 async.Future<AdUnits> list(core.String accountId, core.String adClientId, core
.String customChannelId, {core.bool includeInactive, core.int maxResults, core.S
tring pageToken}) { | 733 async.Future<AdUnits> list(core.String accountId, core.String adClientId, core
.String customChannelId, {core.bool includeInactive, core.int maxResults, core.S
tring pageToken}) { |
| 736 var _url = null; | 734 var _url = null; |
| 737 var _queryParams = new core.Map(); | 735 var _queryParams = new core.Map(); |
| 738 var _uploadMedia = null; | 736 var _uploadMedia = null; |
| 739 var _uploadOptions = null; | 737 var _uploadOptions = null; |
| 740 var _downloadOptions = common.DownloadOptions.Metadata; | 738 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 741 var _body = null; | 739 var _body = null; |
| 742 | 740 |
| 743 if (accountId == null) { | 741 if (accountId == null) { |
| 744 throw new core.ArgumentError("Parameter accountId is required."); | 742 throw new core.ArgumentError("Parameter accountId is required."); |
| 745 } | 743 } |
| 746 if (adClientId == null) { | 744 if (adClientId == null) { |
| 747 throw new core.ArgumentError("Parameter adClientId is required."); | 745 throw new core.ArgumentError("Parameter adClientId is required."); |
| 748 } | 746 } |
| 749 if (customChannelId == null) { | 747 if (customChannelId == null) { |
| 750 throw new core.ArgumentError("Parameter customChannelId is required."); | 748 throw new core.ArgumentError("Parameter customChannelId is required."); |
| 751 } | 749 } |
| 752 if (includeInactive != null) { | 750 if (includeInactive != null) { |
| 753 _queryParams["includeInactive"] = ["${includeInactive}"]; | 751 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 754 } | 752 } |
| 755 if (maxResults != null) { | 753 if (maxResults != null) { |
| 756 _queryParams["maxResults"] = ["${maxResults}"]; | 754 _queryParams["maxResults"] = ["${maxResults}"]; |
| 757 } | 755 } |
| 758 if (pageToken != null) { | 756 if (pageToken != null) { |
| 759 _queryParams["pageToken"] = [pageToken]; | 757 _queryParams["pageToken"] = [pageToken]; |
| 760 } | 758 } |
| 761 | 759 |
| 762 | 760 |
| 763 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/customch
annels/' + common_internal.Escaper.ecapeVariable('$customChannelId') + '/adunits
'; | 761 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/customchannels/' + commo
ns.Escaper.ecapeVariable('$customChannelId') + '/adunits'; |
| 764 | 762 |
| 765 var _response = _requester.request(_url, | 763 var _response = _requester.request(_url, |
| 766 "GET", | 764 "GET", |
| 767 body: _body, | 765 body: _body, |
| 768 queryParams: _queryParams, | 766 queryParams: _queryParams, |
| 769 uploadOptions: _uploadOptions, | 767 uploadOptions: _uploadOptions, |
| 770 uploadMedia: _uploadMedia, | 768 uploadMedia: _uploadMedia, |
| 771 downloadOptions: _downloadOptions); | 769 downloadOptions: _downloadOptions); |
| 772 return _response.then((data) => new AdUnits.fromJson(data)); | 770 return _response.then((data) => new AdUnits.fromJson(data)); |
| 773 } | 771 } |
| 774 | 772 |
| 775 } | 773 } |
| 776 | 774 |
| 777 | 775 |
| 778 /** Not documented yet. */ | |
| 779 class AccountsPaymentsResourceApi { | 776 class AccountsPaymentsResourceApi { |
| 780 final common_internal.ApiRequester _requester; | 777 final commons.ApiRequester _requester; |
| 781 | 778 |
| 782 AccountsPaymentsResourceApi(common_internal.ApiRequester client) : | 779 AccountsPaymentsResourceApi(commons.ApiRequester client) : |
| 783 _requester = client; | 780 _requester = client; |
| 784 | 781 |
| 785 /** | 782 /** |
| 786 * List the payments for the specified AdSense account. | 783 * List the payments for the specified AdSense account. |
| 787 * | 784 * |
| 788 * Request parameters: | 785 * Request parameters: |
| 789 * | 786 * |
| 790 * [accountId] - Account for which to retrieve the payments. | 787 * [accountId] - Account for which to retrieve the payments. |
| 791 * | 788 * |
| 792 * Completes with a [Payments]. | 789 * Completes with a [Payments]. |
| 793 * | 790 * |
| 794 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 791 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 795 * error. | 792 * error. |
| 796 * | 793 * |
| 797 * If the used [http.Client] completes with an error when making a REST call, | 794 * If the used [http.Client] completes with an error when making a REST call, |
| 798 * this method will complete with the same error. | 795 * this method will complete with the same error. |
| 799 */ | 796 */ |
| 800 async.Future<Payments> list(core.String accountId) { | 797 async.Future<Payments> list(core.String accountId) { |
| 801 var _url = null; | 798 var _url = null; |
| 802 var _queryParams = new core.Map(); | 799 var _queryParams = new core.Map(); |
| 803 var _uploadMedia = null; | 800 var _uploadMedia = null; |
| 804 var _uploadOptions = null; | 801 var _uploadOptions = null; |
| 805 var _downloadOptions = common.DownloadOptions.Metadata; | 802 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 806 var _body = null; | 803 var _body = null; |
| 807 | 804 |
| 808 if (accountId == null) { | 805 if (accountId == null) { |
| 809 throw new core.ArgumentError("Parameter accountId is required."); | 806 throw new core.ArgumentError("Parameter accountId is required."); |
| 810 } | 807 } |
| 811 | 808 |
| 812 | 809 |
| 813 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/payments'; | 810 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/payment
s'; |
| 814 | 811 |
| 815 var _response = _requester.request(_url, | 812 var _response = _requester.request(_url, |
| 816 "GET", | 813 "GET", |
| 817 body: _body, | 814 body: _body, |
| 818 queryParams: _queryParams, | 815 queryParams: _queryParams, |
| 819 uploadOptions: _uploadOptions, | 816 uploadOptions: _uploadOptions, |
| 820 uploadMedia: _uploadMedia, | 817 uploadMedia: _uploadMedia, |
| 821 downloadOptions: _downloadOptions); | 818 downloadOptions: _downloadOptions); |
| 822 return _response.then((data) => new Payments.fromJson(data)); | 819 return _response.then((data) => new Payments.fromJson(data)); |
| 823 } | 820 } |
| 824 | 821 |
| 825 } | 822 } |
| 826 | 823 |
| 827 | 824 |
| 828 /** Not documented yet. */ | |
| 829 class AccountsReportsResourceApi { | 825 class AccountsReportsResourceApi { |
| 830 final common_internal.ApiRequester _requester; | 826 final commons.ApiRequester _requester; |
| 831 | 827 |
| 832 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA
pi(_requester); | 828 AccountsReportsSavedResourceApi get saved => new AccountsReportsSavedResourceA
pi(_requester); |
| 833 | 829 |
| 834 AccountsReportsResourceApi(common_internal.ApiRequester client) : | 830 AccountsReportsResourceApi(commons.ApiRequester client) : |
| 835 _requester = client; | 831 _requester = client; |
| 836 | 832 |
| 837 /** | 833 /** |
| 838 * Generate an AdSense report based on the report request sent in the query | 834 * Generate an AdSense report based on the report request sent in the query |
| 839 * parameters. Returns the result as JSON; to retrieve output in CSV format | 835 * parameters. Returns the result as JSON; to retrieve output in CSV format |
| 840 * specify "alt=csv" as a query parameter. | 836 * specify "alt=csv" as a query parameter. |
| 841 * | 837 * |
| 842 * Request parameters: | 838 * Request parameters: |
| 843 * | 839 * |
| 844 * [accountId] - Account upon which to report. | 840 * [accountId] - Account upon which to report. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 * | 883 * |
| 888 * [downloadOptions] - Options for downloading. A download can be either a | 884 * [downloadOptions] - Options for downloading. A download can be either a |
| 889 * Metadata (default) or Media download. Partial Media downloads are possible | 885 * Metadata (default) or Media download. Partial Media downloads are possible |
| 890 * as well. | 886 * as well. |
| 891 * | 887 * |
| 892 * Completes with a | 888 * Completes with a |
| 893 * | 889 * |
| 894 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see | 890 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see |
| 895 * [downloadOptions]). | 891 * [downloadOptions]). |
| 896 * | 892 * |
| 897 * - [common.Media] for Media downloads (see [downloadOptions]). | 893 * - [commons.Media] for Media downloads (see [downloadOptions]). |
| 898 * | 894 * |
| 899 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 895 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 900 * error. | 896 * error. |
| 901 * | 897 * |
| 902 * If the used [http.Client] completes with an error when making a REST call, | 898 * If the used [http.Client] completes with an error when making a REST call, |
| 903 * this method will complete with the same error. | 899 * this method will complete with the same error. |
| 904 */ | 900 */ |
| 905 async.Future generate(core.String accountId, core.String startDate, core.Strin
g endDate, {core.String currency, core.List<core.String> dimension, core.List<co
re.String> filter, core.String locale, core.int maxResults, core.List<core.Strin
g> metric, core.List<core.String> sort, core.int startIndex, core.bool useTimezo
neReporting, common.DownloadOptions downloadOptions: common.DownloadOptions.Meta
data}) { | 901 async.Future generate(core.String accountId, core.String startDate, core.Strin
g endDate, {core.String currency, core.List<core.String> dimension, core.List<co
re.String> filter, core.String locale, core.int maxResults, core.List<core.Strin
g> metric, core.List<core.String> sort, core.int startIndex, core.bool useTimezo
neReporting, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Me
tadata}) { |
| 906 var _url = null; | 902 var _url = null; |
| 907 var _queryParams = new core.Map(); | 903 var _queryParams = new core.Map(); |
| 908 var _uploadMedia = null; | 904 var _uploadMedia = null; |
| 909 var _uploadOptions = null; | 905 var _uploadOptions = null; |
| 910 var _downloadOptions = common.DownloadOptions.Metadata; | 906 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 911 var _body = null; | 907 var _body = null; |
| 912 | 908 |
| 913 if (accountId == null) { | 909 if (accountId == null) { |
| 914 throw new core.ArgumentError("Parameter accountId is required."); | 910 throw new core.ArgumentError("Parameter accountId is required."); |
| 915 } | 911 } |
| 916 if (startDate == null) { | 912 if (startDate == null) { |
| 917 throw new core.ArgumentError("Parameter startDate is required."); | 913 throw new core.ArgumentError("Parameter startDate is required."); |
| 918 } | 914 } |
| 919 _queryParams["startDate"] = [startDate]; | 915 _queryParams["startDate"] = [startDate]; |
| 920 if (endDate == null) { | 916 if (endDate == null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 944 } | 940 } |
| 945 if (startIndex != null) { | 941 if (startIndex != null) { |
| 946 _queryParams["startIndex"] = ["${startIndex}"]; | 942 _queryParams["startIndex"] = ["${startIndex}"]; |
| 947 } | 943 } |
| 948 if (useTimezoneReporting != null) { | 944 if (useTimezoneReporting != null) { |
| 949 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"]; | 945 _queryParams["useTimezoneReporting"] = ["${useTimezoneReporting}"]; |
| 950 } | 946 } |
| 951 | 947 |
| 952 _downloadOptions = downloadOptions; | 948 _downloadOptions = downloadOptions; |
| 953 | 949 |
| 954 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports'; | 950 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
'; |
| 955 | 951 |
| 956 var _response = _requester.request(_url, | 952 var _response = _requester.request(_url, |
| 957 "GET", | 953 "GET", |
| 958 body: _body, | 954 body: _body, |
| 959 queryParams: _queryParams, | 955 queryParams: _queryParams, |
| 960 uploadOptions: _uploadOptions, | 956 uploadOptions: _uploadOptions, |
| 961 uploadMedia: _uploadMedia, | 957 uploadMedia: _uploadMedia, |
| 962 downloadOptions: _downloadOptions); | 958 downloadOptions: _downloadOptions); |
| 963 if (_downloadOptions == null || | 959 if (_downloadOptions == null || |
| 964 _downloadOptions == common.DownloadOptions.Metadata) { | 960 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 965 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso
n(data)); | 961 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso
n(data)); |
| 966 } else { | 962 } else { |
| 967 return _response; | 963 return _response; |
| 968 } | 964 } |
| 969 } | 965 } |
| 970 | 966 |
| 971 } | 967 } |
| 972 | 968 |
| 973 | 969 |
| 974 /** Not documented yet. */ | |
| 975 class AccountsReportsSavedResourceApi { | 970 class AccountsReportsSavedResourceApi { |
| 976 final common_internal.ApiRequester _requester; | 971 final commons.ApiRequester _requester; |
| 977 | 972 |
| 978 AccountsReportsSavedResourceApi(common_internal.ApiRequester client) : | 973 AccountsReportsSavedResourceApi(commons.ApiRequester client) : |
| 979 _requester = client; | 974 _requester = client; |
| 980 | 975 |
| 981 /** | 976 /** |
| 982 * Generate an AdSense report based on the saved report ID sent in the query | 977 * Generate an AdSense report based on the saved report ID sent in the query |
| 983 * parameters. | 978 * parameters. |
| 984 * | 979 * |
| 985 * Request parameters: | 980 * Request parameters: |
| 986 * | 981 * |
| 987 * [accountId] - Account to which the saved reports belong. | 982 * [accountId] - Account to which the saved reports belong. |
| 988 * | 983 * |
| 989 * [savedReportId] - The saved report to retrieve. | 984 * [savedReportId] - The saved report to retrieve. |
| 990 * | 985 * |
| 991 * [locale] - Optional locale to use for translating report output to a local | 986 * [locale] - Optional locale to use for translating report output to a local |
| 992 * language. Defaults to "en_US" if not specified. | 987 * language. Defaults to "en_US" if not specified. |
| 993 * Value must have pattern "[a-zA-Z_]+". | 988 * Value must have pattern "[a-zA-Z_]+". |
| 994 * | 989 * |
| 995 * [maxResults] - The maximum number of rows of report data to return. | 990 * [maxResults] - The maximum number of rows of report data to return. |
| 996 * Value must be between "0" and "50000". | 991 * Value must be between "0" and "50000". |
| 997 * | 992 * |
| 998 * [startIndex] - Index of the first row of report data to return. | 993 * [startIndex] - Index of the first row of report data to return. |
| 999 * Value must be between "0" and "5000". | 994 * Value must be between "0" and "5000". |
| 1000 * | 995 * |
| 1001 * Completes with a [AdsenseReportsGenerateResponse]. | 996 * Completes with a [AdsenseReportsGenerateResponse]. |
| 1002 * | 997 * |
| 1003 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 998 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1004 * error. | 999 * error. |
| 1005 * | 1000 * |
| 1006 * If the used [http.Client] completes with an error when making a REST call, | 1001 * If the used [http.Client] completes with an error when making a REST call, |
| 1007 * this method will complete with the same error. | 1002 * this method will complete with the same error. |
| 1008 */ | 1003 */ |
| 1009 async.Future<AdsenseReportsGenerateResponse> generate(core.String accountId, c
ore.String savedReportId, {core.String locale, core.int maxResults, core.int sta
rtIndex}) { | 1004 async.Future<AdsenseReportsGenerateResponse> generate(core.String accountId, c
ore.String savedReportId, {core.String locale, core.int maxResults, core.int sta
rtIndex}) { |
| 1010 var _url = null; | 1005 var _url = null; |
| 1011 var _queryParams = new core.Map(); | 1006 var _queryParams = new core.Map(); |
| 1012 var _uploadMedia = null; | 1007 var _uploadMedia = null; |
| 1013 var _uploadOptions = null; | 1008 var _uploadOptions = null; |
| 1014 var _downloadOptions = common.DownloadOptions.Metadata; | 1009 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1015 var _body = null; | 1010 var _body = null; |
| 1016 | 1011 |
| 1017 if (accountId == null) { | 1012 if (accountId == null) { |
| 1018 throw new core.ArgumentError("Parameter accountId is required."); | 1013 throw new core.ArgumentError("Parameter accountId is required."); |
| 1019 } | 1014 } |
| 1020 if (savedReportId == null) { | 1015 if (savedReportId == null) { |
| 1021 throw new core.ArgumentError("Parameter savedReportId is required."); | 1016 throw new core.ArgumentError("Parameter savedReportId is required."); |
| 1022 } | 1017 } |
| 1023 if (locale != null) { | 1018 if (locale != null) { |
| 1024 _queryParams["locale"] = [locale]; | 1019 _queryParams["locale"] = [locale]; |
| 1025 } | 1020 } |
| 1026 if (maxResults != null) { | 1021 if (maxResults != null) { |
| 1027 _queryParams["maxResults"] = ["${maxResults}"]; | 1022 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1028 } | 1023 } |
| 1029 if (startIndex != null) { | 1024 if (startIndex != null) { |
| 1030 _queryParams["startIndex"] = ["${startIndex}"]; | 1025 _queryParams["startIndex"] = ["${startIndex}"]; |
| 1031 } | 1026 } |
| 1032 | 1027 |
| 1033 | 1028 |
| 1034 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports/' + common_internal.Escaper.ecapeVariable('$savedReportId'); | 1029 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/' + commons.Escaper.ecapeVariable('$savedReportId'); |
| 1035 | 1030 |
| 1036 var _response = _requester.request(_url, | 1031 var _response = _requester.request(_url, |
| 1037 "GET", | 1032 "GET", |
| 1038 body: _body, | 1033 body: _body, |
| 1039 queryParams: _queryParams, | 1034 queryParams: _queryParams, |
| 1040 uploadOptions: _uploadOptions, | 1035 uploadOptions: _uploadOptions, |
| 1041 uploadMedia: _uploadMedia, | 1036 uploadMedia: _uploadMedia, |
| 1042 downloadOptions: _downloadOptions); | 1037 downloadOptions: _downloadOptions); |
| 1043 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(
data)); | 1038 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(
data)); |
| 1044 } | 1039 } |
| 1045 | 1040 |
| 1046 /** | 1041 /** |
| 1047 * List all saved reports in the specified AdSense account. | 1042 * List all saved reports in the specified AdSense account. |
| 1048 * | 1043 * |
| 1049 * Request parameters: | 1044 * Request parameters: |
| 1050 * | 1045 * |
| 1051 * [accountId] - Account to which the saved reports belong. | 1046 * [accountId] - Account to which the saved reports belong. |
| 1052 * | 1047 * |
| 1053 * [maxResults] - The maximum number of saved reports to include in the | 1048 * [maxResults] - The maximum number of saved reports to include in the |
| 1054 * response, used for paging. | 1049 * response, used for paging. |
| 1055 * Value must be between "0" and "100". | 1050 * Value must be between "0" and "100". |
| 1056 * | 1051 * |
| 1057 * [pageToken] - A continuation token, used to page through saved reports. To | 1052 * [pageToken] - A continuation token, used to page through saved reports. To |
| 1058 * retrieve the next page, set this parameter to the value of "nextPageToken" | 1053 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 1059 * from the previous response. | 1054 * from the previous response. |
| 1060 * | 1055 * |
| 1061 * Completes with a [SavedReports]. | 1056 * Completes with a [SavedReports]. |
| 1062 * | 1057 * |
| 1063 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1058 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1064 * error. | 1059 * error. |
| 1065 * | 1060 * |
| 1066 * If the used [http.Client] completes with an error when making a REST call, | 1061 * If the used [http.Client] completes with an error when making a REST call, |
| 1067 * this method will complete with the same error. | 1062 * this method will complete with the same error. |
| 1068 */ | 1063 */ |
| 1069 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c
ore.String pageToken}) { | 1064 async.Future<SavedReports> list(core.String accountId, {core.int maxResults, c
ore.String pageToken}) { |
| 1070 var _url = null; | 1065 var _url = null; |
| 1071 var _queryParams = new core.Map(); | 1066 var _queryParams = new core.Map(); |
| 1072 var _uploadMedia = null; | 1067 var _uploadMedia = null; |
| 1073 var _uploadOptions = null; | 1068 var _uploadOptions = null; |
| 1074 var _downloadOptions = common.DownloadOptions.Metadata; | 1069 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1075 var _body = null; | 1070 var _body = null; |
| 1076 | 1071 |
| 1077 if (accountId == null) { | 1072 if (accountId == null) { |
| 1078 throw new core.ArgumentError("Parameter accountId is required."); | 1073 throw new core.ArgumentError("Parameter accountId is required."); |
| 1079 } | 1074 } |
| 1080 if (maxResults != null) { | 1075 if (maxResults != null) { |
| 1081 _queryParams["maxResults"] = ["${maxResults}"]; | 1076 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1082 } | 1077 } |
| 1083 if (pageToken != null) { | 1078 if (pageToken != null) { |
| 1084 _queryParams["pageToken"] = [pageToken]; | 1079 _queryParams["pageToken"] = [pageToken]; |
| 1085 } | 1080 } |
| 1086 | 1081 |
| 1087 | 1082 |
| 1088 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/reports/saved'; | 1083 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/reports
/saved'; |
| 1089 | 1084 |
| 1090 var _response = _requester.request(_url, | 1085 var _response = _requester.request(_url, |
| 1091 "GET", | 1086 "GET", |
| 1092 body: _body, | 1087 body: _body, |
| 1093 queryParams: _queryParams, | 1088 queryParams: _queryParams, |
| 1094 uploadOptions: _uploadOptions, | 1089 uploadOptions: _uploadOptions, |
| 1095 uploadMedia: _uploadMedia, | 1090 uploadMedia: _uploadMedia, |
| 1096 downloadOptions: _downloadOptions); | 1091 downloadOptions: _downloadOptions); |
| 1097 return _response.then((data) => new SavedReports.fromJson(data)); | 1092 return _response.then((data) => new SavedReports.fromJson(data)); |
| 1098 } | 1093 } |
| 1099 | 1094 |
| 1100 } | 1095 } |
| 1101 | 1096 |
| 1102 | 1097 |
| 1103 /** Not documented yet. */ | |
| 1104 class AccountsSavedadstylesResourceApi { | 1098 class AccountsSavedadstylesResourceApi { |
| 1105 final common_internal.ApiRequester _requester; | 1099 final commons.ApiRequester _requester; |
| 1106 | 1100 |
| 1107 AccountsSavedadstylesResourceApi(common_internal.ApiRequester client) : | 1101 AccountsSavedadstylesResourceApi(commons.ApiRequester client) : |
| 1108 _requester = client; | 1102 _requester = client; |
| 1109 | 1103 |
| 1110 /** | 1104 /** |
| 1111 * List a specific saved ad style for the specified account. | 1105 * List a specific saved ad style for the specified account. |
| 1112 * | 1106 * |
| 1113 * Request parameters: | 1107 * Request parameters: |
| 1114 * | 1108 * |
| 1115 * [accountId] - Account for which to get the saved ad style. | 1109 * [accountId] - Account for which to get the saved ad style. |
| 1116 * | 1110 * |
| 1117 * [savedAdStyleId] - Saved ad style to retrieve. | 1111 * [savedAdStyleId] - Saved ad style to retrieve. |
| 1118 * | 1112 * |
| 1119 * Completes with a [SavedAdStyle]. | 1113 * Completes with a [SavedAdStyle]. |
| 1120 * | 1114 * |
| 1121 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1115 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1122 * error. | 1116 * error. |
| 1123 * | 1117 * |
| 1124 * If the used [http.Client] completes with an error when making a REST call, | 1118 * If the used [http.Client] completes with an error when making a REST call, |
| 1125 * this method will complete with the same error. | 1119 * this method will complete with the same error. |
| 1126 */ | 1120 */ |
| 1127 async.Future<SavedAdStyle> get(core.String accountId, core.String savedAdStyle
Id) { | 1121 async.Future<SavedAdStyle> get(core.String accountId, core.String savedAdStyle
Id) { |
| 1128 var _url = null; | 1122 var _url = null; |
| 1129 var _queryParams = new core.Map(); | 1123 var _queryParams = new core.Map(); |
| 1130 var _uploadMedia = null; | 1124 var _uploadMedia = null; |
| 1131 var _uploadOptions = null; | 1125 var _uploadOptions = null; |
| 1132 var _downloadOptions = common.DownloadOptions.Metadata; | 1126 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1133 var _body = null; | 1127 var _body = null; |
| 1134 | 1128 |
| 1135 if (accountId == null) { | 1129 if (accountId == null) { |
| 1136 throw new core.ArgumentError("Parameter accountId is required."); | 1130 throw new core.ArgumentError("Parameter accountId is required."); |
| 1137 } | 1131 } |
| 1138 if (savedAdStyleId == null) { | 1132 if (savedAdStyleId == null) { |
| 1139 throw new core.ArgumentError("Parameter savedAdStyleId is required."); | 1133 throw new core.ArgumentError("Parameter savedAdStyleId is required."); |
| 1140 } | 1134 } |
| 1141 | 1135 |
| 1142 | 1136 |
| 1143 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/savedadstyles/' + common_internal.Escaper.ecapeVariable('$savedAdStyleId'); | 1137 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedad
styles/' + commons.Escaper.ecapeVariable('$savedAdStyleId'); |
| 1144 | 1138 |
| 1145 var _response = _requester.request(_url, | 1139 var _response = _requester.request(_url, |
| 1146 "GET", | 1140 "GET", |
| 1147 body: _body, | 1141 body: _body, |
| 1148 queryParams: _queryParams, | 1142 queryParams: _queryParams, |
| 1149 uploadOptions: _uploadOptions, | 1143 uploadOptions: _uploadOptions, |
| 1150 uploadMedia: _uploadMedia, | 1144 uploadMedia: _uploadMedia, |
| 1151 downloadOptions: _downloadOptions); | 1145 downloadOptions: _downloadOptions); |
| 1152 return _response.then((data) => new SavedAdStyle.fromJson(data)); | 1146 return _response.then((data) => new SavedAdStyle.fromJson(data)); |
| 1153 } | 1147 } |
| 1154 | 1148 |
| 1155 /** | 1149 /** |
| 1156 * List all saved ad styles in the specified account. | 1150 * List all saved ad styles in the specified account. |
| 1157 * | 1151 * |
| 1158 * Request parameters: | 1152 * Request parameters: |
| 1159 * | 1153 * |
| 1160 * [accountId] - Account for which to list saved ad styles. | 1154 * [accountId] - Account for which to list saved ad styles. |
| 1161 * | 1155 * |
| 1162 * [maxResults] - The maximum number of saved ad styles to include in the | 1156 * [maxResults] - The maximum number of saved ad styles to include in the |
| 1163 * response, used for paging. | 1157 * response, used for paging. |
| 1164 * Value must be between "0" and "10000". | 1158 * Value must be between "0" and "10000". |
| 1165 * | 1159 * |
| 1166 * [pageToken] - A continuation token, used to page through saved ad styles. | 1160 * [pageToken] - A continuation token, used to page through saved ad styles. |
| 1167 * To retrieve the next page, set this parameter to the value of | 1161 * To retrieve the next page, set this parameter to the value of |
| 1168 * "nextPageToken" from the previous response. | 1162 * "nextPageToken" from the previous response. |
| 1169 * | 1163 * |
| 1170 * Completes with a [SavedAdStyles]. | 1164 * Completes with a [SavedAdStyles]. |
| 1171 * | 1165 * |
| 1172 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1166 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1173 * error. | 1167 * error. |
| 1174 * | 1168 * |
| 1175 * If the used [http.Client] completes with an error when making a REST call, | 1169 * If the used [http.Client] completes with an error when making a REST call, |
| 1176 * this method will complete with the same error. | 1170 * this method will complete with the same error. |
| 1177 */ | 1171 */ |
| 1178 async.Future<SavedAdStyles> list(core.String accountId, {core.int maxResults,
core.String pageToken}) { | 1172 async.Future<SavedAdStyles> list(core.String accountId, {core.int maxResults,
core.String pageToken}) { |
| 1179 var _url = null; | 1173 var _url = null; |
| 1180 var _queryParams = new core.Map(); | 1174 var _queryParams = new core.Map(); |
| 1181 var _uploadMedia = null; | 1175 var _uploadMedia = null; |
| 1182 var _uploadOptions = null; | 1176 var _uploadOptions = null; |
| 1183 var _downloadOptions = common.DownloadOptions.Metadata; | 1177 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1184 var _body = null; | 1178 var _body = null; |
| 1185 | 1179 |
| 1186 if (accountId == null) { | 1180 if (accountId == null) { |
| 1187 throw new core.ArgumentError("Parameter accountId is required."); | 1181 throw new core.ArgumentError("Parameter accountId is required."); |
| 1188 } | 1182 } |
| 1189 if (maxResults != null) { | 1183 if (maxResults != null) { |
| 1190 _queryParams["maxResults"] = ["${maxResults}"]; | 1184 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1191 } | 1185 } |
| 1192 if (pageToken != null) { | 1186 if (pageToken != null) { |
| 1193 _queryParams["pageToken"] = [pageToken]; | 1187 _queryParams["pageToken"] = [pageToken]; |
| 1194 } | 1188 } |
| 1195 | 1189 |
| 1196 | 1190 |
| 1197 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/savedadstyles'; | 1191 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/savedad
styles'; |
| 1198 | 1192 |
| 1199 var _response = _requester.request(_url, | 1193 var _response = _requester.request(_url, |
| 1200 "GET", | 1194 "GET", |
| 1201 body: _body, | 1195 body: _body, |
| 1202 queryParams: _queryParams, | 1196 queryParams: _queryParams, |
| 1203 uploadOptions: _uploadOptions, | 1197 uploadOptions: _uploadOptions, |
| 1204 uploadMedia: _uploadMedia, | 1198 uploadMedia: _uploadMedia, |
| 1205 downloadOptions: _downloadOptions); | 1199 downloadOptions: _downloadOptions); |
| 1206 return _response.then((data) => new SavedAdStyles.fromJson(data)); | 1200 return _response.then((data) => new SavedAdStyles.fromJson(data)); |
| 1207 } | 1201 } |
| 1208 | 1202 |
| 1209 } | 1203 } |
| 1210 | 1204 |
| 1211 | 1205 |
| 1212 /** Not documented yet. */ | |
| 1213 class AccountsUrlchannelsResourceApi { | 1206 class AccountsUrlchannelsResourceApi { |
| 1214 final common_internal.ApiRequester _requester; | 1207 final commons.ApiRequester _requester; |
| 1215 | 1208 |
| 1216 AccountsUrlchannelsResourceApi(common_internal.ApiRequester client) : | 1209 AccountsUrlchannelsResourceApi(commons.ApiRequester client) : |
| 1217 _requester = client; | 1210 _requester = client; |
| 1218 | 1211 |
| 1219 /** | 1212 /** |
| 1220 * List all URL channels in the specified ad client for the specified account. | 1213 * List all URL channels in the specified ad client for the specified account. |
| 1221 * | 1214 * |
| 1222 * Request parameters: | 1215 * Request parameters: |
| 1223 * | 1216 * |
| 1224 * [accountId] - Account to which the ad client belongs. | 1217 * [accountId] - Account to which the ad client belongs. |
| 1225 * | 1218 * |
| 1226 * [adClientId] - Ad client for which to list URL channels. | 1219 * [adClientId] - Ad client for which to list URL channels. |
| 1227 * | 1220 * |
| 1228 * [maxResults] - The maximum number of URL channels to include in the | 1221 * [maxResults] - The maximum number of URL channels to include in the |
| 1229 * response, used for paging. | 1222 * response, used for paging. |
| 1230 * Value must be between "0" and "10000". | 1223 * Value must be between "0" and "10000". |
| 1231 * | 1224 * |
| 1232 * [pageToken] - A continuation token, used to page through URL channels. To | 1225 * [pageToken] - A continuation token, used to page through URL channels. To |
| 1233 * retrieve the next page, set this parameter to the value of "nextPageToken" | 1226 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 1234 * from the previous response. | 1227 * from the previous response. |
| 1235 * | 1228 * |
| 1236 * Completes with a [UrlChannels]. | 1229 * Completes with a [UrlChannels]. |
| 1237 * | 1230 * |
| 1238 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1231 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1239 * error. | 1232 * error. |
| 1240 * | 1233 * |
| 1241 * If the used [http.Client] completes with an error when making a REST call, | 1234 * If the used [http.Client] completes with an error when making a REST call, |
| 1242 * this method will complete with the same error. | 1235 * this method will complete with the same error. |
| 1243 */ | 1236 */ |
| 1244 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
{core.int maxResults, core.String pageToken}) { | 1237 async.Future<UrlChannels> list(core.String accountId, core.String adClientId,
{core.int maxResults, core.String pageToken}) { |
| 1245 var _url = null; | 1238 var _url = null; |
| 1246 var _queryParams = new core.Map(); | 1239 var _queryParams = new core.Map(); |
| 1247 var _uploadMedia = null; | 1240 var _uploadMedia = null; |
| 1248 var _uploadOptions = null; | 1241 var _uploadOptions = null; |
| 1249 var _downloadOptions = common.DownloadOptions.Metadata; | 1242 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1250 var _body = null; | 1243 var _body = null; |
| 1251 | 1244 |
| 1252 if (accountId == null) { | 1245 if (accountId == null) { |
| 1253 throw new core.ArgumentError("Parameter accountId is required."); | 1246 throw new core.ArgumentError("Parameter accountId is required."); |
| 1254 } | 1247 } |
| 1255 if (adClientId == null) { | 1248 if (adClientId == null) { |
| 1256 throw new core.ArgumentError("Parameter adClientId is required."); | 1249 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1257 } | 1250 } |
| 1258 if (maxResults != null) { | 1251 if (maxResults != null) { |
| 1259 _queryParams["maxResults"] = ["${maxResults}"]; | 1252 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1260 } | 1253 } |
| 1261 if (pageToken != null) { | 1254 if (pageToken != null) { |
| 1262 _queryParams["pageToken"] = [pageToken]; | 1255 _queryParams["pageToken"] = [pageToken]; |
| 1263 } | 1256 } |
| 1264 | 1257 |
| 1265 | 1258 |
| 1266 _url = 'accounts/' + common_internal.Escaper.ecapeVariable('$accountId') + '
/adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') + '/urlchann
els'; | 1259 _url = 'accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/adclien
ts/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlchannels'; |
| 1267 | 1260 |
| 1268 var _response = _requester.request(_url, | 1261 var _response = _requester.request(_url, |
| 1269 "GET", | 1262 "GET", |
| 1270 body: _body, | 1263 body: _body, |
| 1271 queryParams: _queryParams, | 1264 queryParams: _queryParams, |
| 1272 uploadOptions: _uploadOptions, | 1265 uploadOptions: _uploadOptions, |
| 1273 uploadMedia: _uploadMedia, | 1266 uploadMedia: _uploadMedia, |
| 1274 downloadOptions: _downloadOptions); | 1267 downloadOptions: _downloadOptions); |
| 1275 return _response.then((data) => new UrlChannels.fromJson(data)); | 1268 return _response.then((data) => new UrlChannels.fromJson(data)); |
| 1276 } | 1269 } |
| 1277 | 1270 |
| 1278 } | 1271 } |
| 1279 | 1272 |
| 1280 | 1273 |
| 1281 /** Not documented yet. */ | |
| 1282 class AdclientsResourceApi { | 1274 class AdclientsResourceApi { |
| 1283 final common_internal.ApiRequester _requester; | 1275 final commons.ApiRequester _requester; |
| 1284 | 1276 |
| 1285 AdclientsResourceApi(common_internal.ApiRequester client) : | 1277 AdclientsResourceApi(commons.ApiRequester client) : |
| 1286 _requester = client; | 1278 _requester = client; |
| 1287 | 1279 |
| 1288 /** | 1280 /** |
| 1289 * List all ad clients in this AdSense account. | 1281 * List all ad clients in this AdSense account. |
| 1290 * | 1282 * |
| 1291 * Request parameters: | 1283 * Request parameters: |
| 1292 * | 1284 * |
| 1293 * [maxResults] - The maximum number of ad clients to include in the response, | 1285 * [maxResults] - The maximum number of ad clients to include in the response, |
| 1294 * used for paging. | 1286 * used for paging. |
| 1295 * Value must be between "0" and "10000". | 1287 * Value must be between "0" and "10000". |
| 1296 * | 1288 * |
| 1297 * [pageToken] - A continuation token, used to page through ad clients. To | 1289 * [pageToken] - A continuation token, used to page through ad clients. To |
| 1298 * retrieve the next page, set this parameter to the value of "nextPageToken" | 1290 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 1299 * from the previous response. | 1291 * from the previous response. |
| 1300 * | 1292 * |
| 1301 * Completes with a [AdClients]. | 1293 * Completes with a [AdClients]. |
| 1302 * | 1294 * |
| 1303 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1295 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1304 * error. | 1296 * error. |
| 1305 * | 1297 * |
| 1306 * If the used [http.Client] completes with an error when making a REST call, | 1298 * If the used [http.Client] completes with an error when making a REST call, |
| 1307 * this method will complete with the same error. | 1299 * this method will complete with the same error. |
| 1308 */ | 1300 */ |
| 1309 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) { | 1301 async.Future<AdClients> list({core.int maxResults, core.String pageToken}) { |
| 1310 var _url = null; | 1302 var _url = null; |
| 1311 var _queryParams = new core.Map(); | 1303 var _queryParams = new core.Map(); |
| 1312 var _uploadMedia = null; | 1304 var _uploadMedia = null; |
| 1313 var _uploadOptions = null; | 1305 var _uploadOptions = null; |
| 1314 var _downloadOptions = common.DownloadOptions.Metadata; | 1306 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1315 var _body = null; | 1307 var _body = null; |
| 1316 | 1308 |
| 1317 if (maxResults != null) { | 1309 if (maxResults != null) { |
| 1318 _queryParams["maxResults"] = ["${maxResults}"]; | 1310 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1319 } | 1311 } |
| 1320 if (pageToken != null) { | 1312 if (pageToken != null) { |
| 1321 _queryParams["pageToken"] = [pageToken]; | 1313 _queryParams["pageToken"] = [pageToken]; |
| 1322 } | 1314 } |
| 1323 | 1315 |
| 1324 | 1316 |
| 1325 _url = 'adclients'; | 1317 _url = 'adclients'; |
| 1326 | 1318 |
| 1327 var _response = _requester.request(_url, | 1319 var _response = _requester.request(_url, |
| 1328 "GET", | 1320 "GET", |
| 1329 body: _body, | 1321 body: _body, |
| 1330 queryParams: _queryParams, | 1322 queryParams: _queryParams, |
| 1331 uploadOptions: _uploadOptions, | 1323 uploadOptions: _uploadOptions, |
| 1332 uploadMedia: _uploadMedia, | 1324 uploadMedia: _uploadMedia, |
| 1333 downloadOptions: _downloadOptions); | 1325 downloadOptions: _downloadOptions); |
| 1334 return _response.then((data) => new AdClients.fromJson(data)); | 1326 return _response.then((data) => new AdClients.fromJson(data)); |
| 1335 } | 1327 } |
| 1336 | 1328 |
| 1337 } | 1329 } |
| 1338 | 1330 |
| 1339 | 1331 |
| 1340 /** Not documented yet. */ | |
| 1341 class AdunitsResourceApi { | 1332 class AdunitsResourceApi { |
| 1342 final common_internal.ApiRequester _requester; | 1333 final commons.ApiRequester _requester; |
| 1343 | 1334 |
| 1344 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne
lsResourceApi(_requester); | 1335 AdunitsCustomchannelsResourceApi get customchannels => new AdunitsCustomchanne
lsResourceApi(_requester); |
| 1345 | 1336 |
| 1346 AdunitsResourceApi(common_internal.ApiRequester client) : | 1337 AdunitsResourceApi(commons.ApiRequester client) : |
| 1347 _requester = client; | 1338 _requester = client; |
| 1348 | 1339 |
| 1349 /** | 1340 /** |
| 1350 * Gets the specified ad unit in the specified ad client. | 1341 * Gets the specified ad unit in the specified ad client. |
| 1351 * | 1342 * |
| 1352 * Request parameters: | 1343 * Request parameters: |
| 1353 * | 1344 * |
| 1354 * [adClientId] - Ad client for which to get the ad unit. | 1345 * [adClientId] - Ad client for which to get the ad unit. |
| 1355 * | 1346 * |
| 1356 * [adUnitId] - Ad unit to retrieve. | 1347 * [adUnitId] - Ad unit to retrieve. |
| 1357 * | 1348 * |
| 1358 * Completes with a [AdUnit]. | 1349 * Completes with a [AdUnit]. |
| 1359 * | 1350 * |
| 1360 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1361 * error. | 1352 * error. |
| 1362 * | 1353 * |
| 1363 * If the used [http.Client] completes with an error when making a REST call, | 1354 * If the used [http.Client] completes with an error when making a REST call, |
| 1364 * this method will complete with the same error. | 1355 * this method will complete with the same error. |
| 1365 */ | 1356 */ |
| 1366 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) { | 1357 async.Future<AdUnit> get(core.String adClientId, core.String adUnitId) { |
| 1367 var _url = null; | 1358 var _url = null; |
| 1368 var _queryParams = new core.Map(); | 1359 var _queryParams = new core.Map(); |
| 1369 var _uploadMedia = null; | 1360 var _uploadMedia = null; |
| 1370 var _uploadOptions = null; | 1361 var _uploadOptions = null; |
| 1371 var _downloadOptions = common.DownloadOptions.Metadata; | 1362 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1372 var _body = null; | 1363 var _body = null; |
| 1373 | 1364 |
| 1374 if (adClientId == null) { | 1365 if (adClientId == null) { |
| 1375 throw new core.ArgumentError("Parameter adClientId is required."); | 1366 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1376 } | 1367 } |
| 1377 if (adUnitId == null) { | 1368 if (adUnitId == null) { |
| 1378 throw new core.ArgumentError("Parameter adUnitId is required."); | 1369 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 1379 } | 1370 } |
| 1380 | 1371 |
| 1381 | 1372 |
| 1382 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId'); | 1373 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni
ts/' + commons.Escaper.ecapeVariable('$adUnitId'); |
| 1383 | 1374 |
| 1384 var _response = _requester.request(_url, | 1375 var _response = _requester.request(_url, |
| 1385 "GET", | 1376 "GET", |
| 1386 body: _body, | 1377 body: _body, |
| 1387 queryParams: _queryParams, | 1378 queryParams: _queryParams, |
| 1388 uploadOptions: _uploadOptions, | 1379 uploadOptions: _uploadOptions, |
| 1389 uploadMedia: _uploadMedia, | 1380 uploadMedia: _uploadMedia, |
| 1390 downloadOptions: _downloadOptions); | 1381 downloadOptions: _downloadOptions); |
| 1391 return _response.then((data) => new AdUnit.fromJson(data)); | 1382 return _response.then((data) => new AdUnit.fromJson(data)); |
| 1392 } | 1383 } |
| 1393 | 1384 |
| 1394 /** | 1385 /** |
| 1395 * Get ad code for the specified ad unit. | 1386 * Get ad code for the specified ad unit. |
| 1396 * | 1387 * |
| 1397 * Request parameters: | 1388 * Request parameters: |
| 1398 * | 1389 * |
| 1399 * [adClientId] - Ad client with contains the ad unit. | 1390 * [adClientId] - Ad client with contains the ad unit. |
| 1400 * | 1391 * |
| 1401 * [adUnitId] - Ad unit to get the code for. | 1392 * [adUnitId] - Ad unit to get the code for. |
| 1402 * | 1393 * |
| 1403 * Completes with a [AdCode]. | 1394 * Completes with a [AdCode]. |
| 1404 * | 1395 * |
| 1405 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1406 * error. | 1397 * error. |
| 1407 * | 1398 * |
| 1408 * If the used [http.Client] completes with an error when making a REST call, | 1399 * If the used [http.Client] completes with an error when making a REST call, |
| 1409 * this method will complete with the same error. | 1400 * this method will complete with the same error. |
| 1410 */ | 1401 */ |
| 1411 async.Future<AdCode> getAdCode(core.String adClientId, core.String adUnitId) { | 1402 async.Future<AdCode> getAdCode(core.String adClientId, core.String adUnitId) { |
| 1412 var _url = null; | 1403 var _url = null; |
| 1413 var _queryParams = new core.Map(); | 1404 var _queryParams = new core.Map(); |
| 1414 var _uploadMedia = null; | 1405 var _uploadMedia = null; |
| 1415 var _uploadOptions = null; | 1406 var _uploadOptions = null; |
| 1416 var _downloadOptions = common.DownloadOptions.Metadata; | 1407 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1417 var _body = null; | 1408 var _body = null; |
| 1418 | 1409 |
| 1419 if (adClientId == null) { | 1410 if (adClientId == null) { |
| 1420 throw new core.ArgumentError("Parameter adClientId is required."); | 1411 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1421 } | 1412 } |
| 1422 if (adUnitId == null) { | 1413 if (adUnitId == null) { |
| 1423 throw new core.ArgumentError("Parameter adUnitId is required."); | 1414 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 1424 } | 1415 } |
| 1425 | 1416 |
| 1426 | 1417 |
| 1427 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/adcode'; | 1418 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni
ts/' + commons.Escaper.ecapeVariable('$adUnitId') + '/adcode'; |
| 1428 | 1419 |
| 1429 var _response = _requester.request(_url, | 1420 var _response = _requester.request(_url, |
| 1430 "GET", | 1421 "GET", |
| 1431 body: _body, | 1422 body: _body, |
| 1432 queryParams: _queryParams, | 1423 queryParams: _queryParams, |
| 1433 uploadOptions: _uploadOptions, | 1424 uploadOptions: _uploadOptions, |
| 1434 uploadMedia: _uploadMedia, | 1425 uploadMedia: _uploadMedia, |
| 1435 downloadOptions: _downloadOptions); | 1426 downloadOptions: _downloadOptions); |
| 1436 return _response.then((data) => new AdCode.fromJson(data)); | 1427 return _response.then((data) => new AdCode.fromJson(data)); |
| 1437 } | 1428 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1448 * [maxResults] - The maximum number of ad units to include in the response, | 1439 * [maxResults] - The maximum number of ad units to include in the response, |
| 1449 * used for paging. | 1440 * used for paging. |
| 1450 * Value must be between "0" and "10000". | 1441 * Value must be between "0" and "10000". |
| 1451 * | 1442 * |
| 1452 * [pageToken] - A continuation token, used to page through ad units. To | 1443 * [pageToken] - A continuation token, used to page through ad units. To |
| 1453 * retrieve the next page, set this parameter to the value of "nextPageToken" | 1444 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 1454 * from the previous response. | 1445 * from the previous response. |
| 1455 * | 1446 * |
| 1456 * Completes with a [AdUnits]. | 1447 * Completes with a [AdUnits]. |
| 1457 * | 1448 * |
| 1458 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1449 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1459 * error. | 1450 * error. |
| 1460 * | 1451 * |
| 1461 * If the used [http.Client] completes with an error when making a REST call, | 1452 * If the used [http.Client] completes with an error when making a REST call, |
| 1462 * this method will complete with the same error. | 1453 * this method will complete with the same error. |
| 1463 */ | 1454 */ |
| 1464 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive,
core.int maxResults, core.String pageToken}) { | 1455 async.Future<AdUnits> list(core.String adClientId, {core.bool includeInactive,
core.int maxResults, core.String pageToken}) { |
| 1465 var _url = null; | 1456 var _url = null; |
| 1466 var _queryParams = new core.Map(); | 1457 var _queryParams = new core.Map(); |
| 1467 var _uploadMedia = null; | 1458 var _uploadMedia = null; |
| 1468 var _uploadOptions = null; | 1459 var _uploadOptions = null; |
| 1469 var _downloadOptions = common.DownloadOptions.Metadata; | 1460 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1470 var _body = null; | 1461 var _body = null; |
| 1471 | 1462 |
| 1472 if (adClientId == null) { | 1463 if (adClientId == null) { |
| 1473 throw new core.ArgumentError("Parameter adClientId is required."); | 1464 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1474 } | 1465 } |
| 1475 if (includeInactive != null) { | 1466 if (includeInactive != null) { |
| 1476 _queryParams["includeInactive"] = ["${includeInactive}"]; | 1467 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 1477 } | 1468 } |
| 1478 if (maxResults != null) { | 1469 if (maxResults != null) { |
| 1479 _queryParams["maxResults"] = ["${maxResults}"]; | 1470 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1480 } | 1471 } |
| 1481 if (pageToken != null) { | 1472 if (pageToken != null) { |
| 1482 _queryParams["pageToken"] = [pageToken]; | 1473 _queryParams["pageToken"] = [pageToken]; |
| 1483 } | 1474 } |
| 1484 | 1475 |
| 1485 | 1476 |
| 1486 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/adunits'; | 1477 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni
ts'; |
| 1487 | 1478 |
| 1488 var _response = _requester.request(_url, | 1479 var _response = _requester.request(_url, |
| 1489 "GET", | 1480 "GET", |
| 1490 body: _body, | 1481 body: _body, |
| 1491 queryParams: _queryParams, | 1482 queryParams: _queryParams, |
| 1492 uploadOptions: _uploadOptions, | 1483 uploadOptions: _uploadOptions, |
| 1493 uploadMedia: _uploadMedia, | 1484 uploadMedia: _uploadMedia, |
| 1494 downloadOptions: _downloadOptions); | 1485 downloadOptions: _downloadOptions); |
| 1495 return _response.then((data) => new AdUnits.fromJson(data)); | 1486 return _response.then((data) => new AdUnits.fromJson(data)); |
| 1496 } | 1487 } |
| 1497 | 1488 |
| 1498 } | 1489 } |
| 1499 | 1490 |
| 1500 | 1491 |
| 1501 /** Not documented yet. */ | |
| 1502 class AdunitsCustomchannelsResourceApi { | 1492 class AdunitsCustomchannelsResourceApi { |
| 1503 final common_internal.ApiRequester _requester; | 1493 final commons.ApiRequester _requester; |
| 1504 | 1494 |
| 1505 AdunitsCustomchannelsResourceApi(common_internal.ApiRequester client) : | 1495 AdunitsCustomchannelsResourceApi(commons.ApiRequester client) : |
| 1506 _requester = client; | 1496 _requester = client; |
| 1507 | 1497 |
| 1508 /** | 1498 /** |
| 1509 * List all custom channels which the specified ad unit belongs to. | 1499 * List all custom channels which the specified ad unit belongs to. |
| 1510 * | 1500 * |
| 1511 * Request parameters: | 1501 * Request parameters: |
| 1512 * | 1502 * |
| 1513 * [adClientId] - Ad client which contains the ad unit. | 1503 * [adClientId] - Ad client which contains the ad unit. |
| 1514 * | 1504 * |
| 1515 * [adUnitId] - Ad unit for which to list custom channels. | 1505 * [adUnitId] - Ad unit for which to list custom channels. |
| 1516 * | 1506 * |
| 1517 * [maxResults] - The maximum number of custom channels to include in the | 1507 * [maxResults] - The maximum number of custom channels to include in the |
| 1518 * response, used for paging. | 1508 * response, used for paging. |
| 1519 * Value must be between "0" and "10000". | 1509 * Value must be between "0" and "10000". |
| 1520 * | 1510 * |
| 1521 * [pageToken] - A continuation token, used to page through custom channels. | 1511 * [pageToken] - A continuation token, used to page through custom channels. |
| 1522 * To retrieve the next page, set this parameter to the value of | 1512 * To retrieve the next page, set this parameter to the value of |
| 1523 * "nextPageToken" from the previous response. | 1513 * "nextPageToken" from the previous response. |
| 1524 * | 1514 * |
| 1525 * Completes with a [CustomChannels]. | 1515 * Completes with a [CustomChannels]. |
| 1526 * | 1516 * |
| 1527 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1517 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1528 * error. | 1518 * error. |
| 1529 * | 1519 * |
| 1530 * If the used [http.Client] completes with an error when making a REST call, | 1520 * If the used [http.Client] completes with an error when making a REST call, |
| 1531 * this method will complete with the same error. | 1521 * this method will complete with the same error. |
| 1532 */ | 1522 */ |
| 1533 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId
, {core.int maxResults, core.String pageToken}) { | 1523 async.Future<CustomChannels> list(core.String adClientId, core.String adUnitId
, {core.int maxResults, core.String pageToken}) { |
| 1534 var _url = null; | 1524 var _url = null; |
| 1535 var _queryParams = new core.Map(); | 1525 var _queryParams = new core.Map(); |
| 1536 var _uploadMedia = null; | 1526 var _uploadMedia = null; |
| 1537 var _uploadOptions = null; | 1527 var _uploadOptions = null; |
| 1538 var _downloadOptions = common.DownloadOptions.Metadata; | 1528 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1539 var _body = null; | 1529 var _body = null; |
| 1540 | 1530 |
| 1541 if (adClientId == null) { | 1531 if (adClientId == null) { |
| 1542 throw new core.ArgumentError("Parameter adClientId is required."); | 1532 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1543 } | 1533 } |
| 1544 if (adUnitId == null) { | 1534 if (adUnitId == null) { |
| 1545 throw new core.ArgumentError("Parameter adUnitId is required."); | 1535 throw new core.ArgumentError("Parameter adUnitId is required."); |
| 1546 } | 1536 } |
| 1547 if (maxResults != null) { | 1537 if (maxResults != null) { |
| 1548 _queryParams["maxResults"] = ["${maxResults}"]; | 1538 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1549 } | 1539 } |
| 1550 if (pageToken != null) { | 1540 if (pageToken != null) { |
| 1551 _queryParams["pageToken"] = [pageToken]; | 1541 _queryParams["pageToken"] = [pageToken]; |
| 1552 } | 1542 } |
| 1553 | 1543 |
| 1554 | 1544 |
| 1555 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/adunits/' + common_internal.Escaper.ecapeVariable('$adUnitId') + '/customchan
nels'; | 1545 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/aduni
ts/' + commons.Escaper.ecapeVariable('$adUnitId') + '/customchannels'; |
| 1556 | 1546 |
| 1557 var _response = _requester.request(_url, | 1547 var _response = _requester.request(_url, |
| 1558 "GET", | 1548 "GET", |
| 1559 body: _body, | 1549 body: _body, |
| 1560 queryParams: _queryParams, | 1550 queryParams: _queryParams, |
| 1561 uploadOptions: _uploadOptions, | 1551 uploadOptions: _uploadOptions, |
| 1562 uploadMedia: _uploadMedia, | 1552 uploadMedia: _uploadMedia, |
| 1563 downloadOptions: _downloadOptions); | 1553 downloadOptions: _downloadOptions); |
| 1564 return _response.then((data) => new CustomChannels.fromJson(data)); | 1554 return _response.then((data) => new CustomChannels.fromJson(data)); |
| 1565 } | 1555 } |
| 1566 | 1556 |
| 1567 } | 1557 } |
| 1568 | 1558 |
| 1569 | 1559 |
| 1570 /** Not documented yet. */ | |
| 1571 class AlertsResourceApi { | 1560 class AlertsResourceApi { |
| 1572 final common_internal.ApiRequester _requester; | 1561 final commons.ApiRequester _requester; |
| 1573 | 1562 |
| 1574 AlertsResourceApi(common_internal.ApiRequester client) : | 1563 AlertsResourceApi(commons.ApiRequester client) : |
| 1575 _requester = client; | 1564 _requester = client; |
| 1576 | 1565 |
| 1577 /** | 1566 /** |
| 1578 * Dismiss (delete) the specified alert from the publisher's AdSense account. | 1567 * Dismiss (delete) the specified alert from the publisher's AdSense account. |
| 1579 * | 1568 * |
| 1580 * Request parameters: | 1569 * Request parameters: |
| 1581 * | 1570 * |
| 1582 * [alertId] - Alert to delete. | 1571 * [alertId] - Alert to delete. |
| 1583 * | 1572 * |
| 1584 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1573 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1585 * error. | 1574 * error. |
| 1586 * | 1575 * |
| 1587 * If the used [http.Client] completes with an error when making a REST call, | 1576 * If the used [http.Client] completes with an error when making a REST call, |
| 1588 * this method will complete with the same error. | 1577 * this method will complete with the same error. |
| 1589 */ | 1578 */ |
| 1590 async.Future delete(core.String alertId) { | 1579 async.Future delete(core.String alertId) { |
| 1591 var _url = null; | 1580 var _url = null; |
| 1592 var _queryParams = new core.Map(); | 1581 var _queryParams = new core.Map(); |
| 1593 var _uploadMedia = null; | 1582 var _uploadMedia = null; |
| 1594 var _uploadOptions = null; | 1583 var _uploadOptions = null; |
| 1595 var _downloadOptions = common.DownloadOptions.Metadata; | 1584 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1596 var _body = null; | 1585 var _body = null; |
| 1597 | 1586 |
| 1598 if (alertId == null) { | 1587 if (alertId == null) { |
| 1599 throw new core.ArgumentError("Parameter alertId is required."); | 1588 throw new core.ArgumentError("Parameter alertId is required."); |
| 1600 } | 1589 } |
| 1601 | 1590 |
| 1602 _downloadOptions = null; | 1591 _downloadOptions = null; |
| 1603 | 1592 |
| 1604 _url = 'alerts/' + common_internal.Escaper.ecapeVariable('$alertId'); | 1593 _url = 'alerts/' + commons.Escaper.ecapeVariable('$alertId'); |
| 1605 | 1594 |
| 1606 var _response = _requester.request(_url, | 1595 var _response = _requester.request(_url, |
| 1607 "DELETE", | 1596 "DELETE", |
| 1608 body: _body, | 1597 body: _body, |
| 1609 queryParams: _queryParams, | 1598 queryParams: _queryParams, |
| 1610 uploadOptions: _uploadOptions, | 1599 uploadOptions: _uploadOptions, |
| 1611 uploadMedia: _uploadMedia, | 1600 uploadMedia: _uploadMedia, |
| 1612 downloadOptions: _downloadOptions); | 1601 downloadOptions: _downloadOptions); |
| 1613 return _response.then((data) => null); | 1602 return _response.then((data) => null); |
| 1614 } | 1603 } |
| 1615 | 1604 |
| 1616 /** | 1605 /** |
| 1617 * List the alerts for this AdSense account. | 1606 * List the alerts for this AdSense account. |
| 1618 * | 1607 * |
| 1619 * Request parameters: | 1608 * Request parameters: |
| 1620 * | 1609 * |
| 1621 * [locale] - The locale to use for translating alert messages. The account | 1610 * [locale] - The locale to use for translating alert messages. The account |
| 1622 * locale will be used if this is not supplied. The AdSense default (English) | 1611 * locale will be used if this is not supplied. The AdSense default (English) |
| 1623 * will be used if the supplied locale is invalid or unsupported. | 1612 * will be used if the supplied locale is invalid or unsupported. |
| 1624 * | 1613 * |
| 1625 * Completes with a [Alerts]. | 1614 * Completes with a [Alerts]. |
| 1626 * | 1615 * |
| 1627 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1616 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1628 * error. | 1617 * error. |
| 1629 * | 1618 * |
| 1630 * If the used [http.Client] completes with an error when making a REST call, | 1619 * If the used [http.Client] completes with an error when making a REST call, |
| 1631 * this method will complete with the same error. | 1620 * this method will complete with the same error. |
| 1632 */ | 1621 */ |
| 1633 async.Future<Alerts> list({core.String locale}) { | 1622 async.Future<Alerts> list({core.String locale}) { |
| 1634 var _url = null; | 1623 var _url = null; |
| 1635 var _queryParams = new core.Map(); | 1624 var _queryParams = new core.Map(); |
| 1636 var _uploadMedia = null; | 1625 var _uploadMedia = null; |
| 1637 var _uploadOptions = null; | 1626 var _uploadOptions = null; |
| 1638 var _downloadOptions = common.DownloadOptions.Metadata; | 1627 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1639 var _body = null; | 1628 var _body = null; |
| 1640 | 1629 |
| 1641 if (locale != null) { | 1630 if (locale != null) { |
| 1642 _queryParams["locale"] = [locale]; | 1631 _queryParams["locale"] = [locale]; |
| 1643 } | 1632 } |
| 1644 | 1633 |
| 1645 | 1634 |
| 1646 _url = 'alerts'; | 1635 _url = 'alerts'; |
| 1647 | 1636 |
| 1648 var _response = _requester.request(_url, | 1637 var _response = _requester.request(_url, |
| 1649 "GET", | 1638 "GET", |
| 1650 body: _body, | 1639 body: _body, |
| 1651 queryParams: _queryParams, | 1640 queryParams: _queryParams, |
| 1652 uploadOptions: _uploadOptions, | 1641 uploadOptions: _uploadOptions, |
| 1653 uploadMedia: _uploadMedia, | 1642 uploadMedia: _uploadMedia, |
| 1654 downloadOptions: _downloadOptions); | 1643 downloadOptions: _downloadOptions); |
| 1655 return _response.then((data) => new Alerts.fromJson(data)); | 1644 return _response.then((data) => new Alerts.fromJson(data)); |
| 1656 } | 1645 } |
| 1657 | 1646 |
| 1658 } | 1647 } |
| 1659 | 1648 |
| 1660 | 1649 |
| 1661 /** Not documented yet. */ | |
| 1662 class CustomchannelsResourceApi { | 1650 class CustomchannelsResourceApi { |
| 1663 final common_internal.ApiRequester _requester; | 1651 final commons.ApiRequester _requester; |
| 1664 | 1652 |
| 1665 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou
rceApi(_requester); | 1653 CustomchannelsAdunitsResourceApi get adunits => new CustomchannelsAdunitsResou
rceApi(_requester); |
| 1666 | 1654 |
| 1667 CustomchannelsResourceApi(common_internal.ApiRequester client) : | 1655 CustomchannelsResourceApi(commons.ApiRequester client) : |
| 1668 _requester = client; | 1656 _requester = client; |
| 1669 | 1657 |
| 1670 /** | 1658 /** |
| 1671 * Get the specified custom channel from the specified ad client. | 1659 * Get the specified custom channel from the specified ad client. |
| 1672 * | 1660 * |
| 1673 * Request parameters: | 1661 * Request parameters: |
| 1674 * | 1662 * |
| 1675 * [adClientId] - Ad client which contains the custom channel. | 1663 * [adClientId] - Ad client which contains the custom channel. |
| 1676 * | 1664 * |
| 1677 * [customChannelId] - Custom channel to retrieve. | 1665 * [customChannelId] - Custom channel to retrieve. |
| 1678 * | 1666 * |
| 1679 * Completes with a [CustomChannel]. | 1667 * Completes with a [CustomChannel]. |
| 1680 * | 1668 * |
| 1681 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1669 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1682 * error. | 1670 * error. |
| 1683 * | 1671 * |
| 1684 * If the used [http.Client] completes with an error when making a REST call, | 1672 * If the used [http.Client] completes with an error when making a REST call, |
| 1685 * this method will complete with the same error. | 1673 * this method will complete with the same error. |
| 1686 */ | 1674 */ |
| 1687 async.Future<CustomChannel> get(core.String adClientId, core.String customChan
nelId) { | 1675 async.Future<CustomChannel> get(core.String adClientId, core.String customChan
nelId) { |
| 1688 var _url = null; | 1676 var _url = null; |
| 1689 var _queryParams = new core.Map(); | 1677 var _queryParams = new core.Map(); |
| 1690 var _uploadMedia = null; | 1678 var _uploadMedia = null; |
| 1691 var _uploadOptions = null; | 1679 var _uploadOptions = null; |
| 1692 var _downloadOptions = common.DownloadOptions.Metadata; | 1680 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1693 var _body = null; | 1681 var _body = null; |
| 1694 | 1682 |
| 1695 if (adClientId == null) { | 1683 if (adClientId == null) { |
| 1696 throw new core.ArgumentError("Parameter adClientId is required."); | 1684 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1697 } | 1685 } |
| 1698 if (customChannelId == null) { | 1686 if (customChannelId == null) { |
| 1699 throw new core.ArgumentError("Parameter customChannelId is required."); | 1687 throw new core.ArgumentError("Parameter customChannelId is required."); |
| 1700 } | 1688 } |
| 1701 | 1689 |
| 1702 | 1690 |
| 1703 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId'); | 1691 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo
mchannels/' + commons.Escaper.ecapeVariable('$customChannelId'); |
| 1704 | 1692 |
| 1705 var _response = _requester.request(_url, | 1693 var _response = _requester.request(_url, |
| 1706 "GET", | 1694 "GET", |
| 1707 body: _body, | 1695 body: _body, |
| 1708 queryParams: _queryParams, | 1696 queryParams: _queryParams, |
| 1709 uploadOptions: _uploadOptions, | 1697 uploadOptions: _uploadOptions, |
| 1710 uploadMedia: _uploadMedia, | 1698 uploadMedia: _uploadMedia, |
| 1711 downloadOptions: _downloadOptions); | 1699 downloadOptions: _downloadOptions); |
| 1712 return _response.then((data) => new CustomChannel.fromJson(data)); | 1700 return _response.then((data) => new CustomChannel.fromJson(data)); |
| 1713 } | 1701 } |
| 1714 | 1702 |
| 1715 /** | 1703 /** |
| 1716 * List all custom channels in the specified ad client for this AdSense | 1704 * List all custom channels in the specified ad client for this AdSense |
| 1717 * account. | 1705 * account. |
| 1718 * | 1706 * |
| 1719 * Request parameters: | 1707 * Request parameters: |
| 1720 * | 1708 * |
| 1721 * [adClientId] - Ad client for which to list custom channels. | 1709 * [adClientId] - Ad client for which to list custom channels. |
| 1722 * | 1710 * |
| 1723 * [maxResults] - The maximum number of custom channels to include in the | 1711 * [maxResults] - The maximum number of custom channels to include in the |
| 1724 * response, used for paging. | 1712 * response, used for paging. |
| 1725 * Value must be between "0" and "10000". | 1713 * Value must be between "0" and "10000". |
| 1726 * | 1714 * |
| 1727 * [pageToken] - A continuation token, used to page through custom channels. | 1715 * [pageToken] - A continuation token, used to page through custom channels. |
| 1728 * To retrieve the next page, set this parameter to the value of | 1716 * To retrieve the next page, set this parameter to the value of |
| 1729 * "nextPageToken" from the previous response. | 1717 * "nextPageToken" from the previous response. |
| 1730 * | 1718 * |
| 1731 * Completes with a [CustomChannels]. | 1719 * Completes with a [CustomChannels]. |
| 1732 * | 1720 * |
| 1733 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1721 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1734 * error. | 1722 * error. |
| 1735 * | 1723 * |
| 1736 * If the used [http.Client] completes with an error when making a REST call, | 1724 * If the used [http.Client] completes with an error when making a REST call, |
| 1737 * this method will complete with the same error. | 1725 * this method will complete with the same error. |
| 1738 */ | 1726 */ |
| 1739 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults
, core.String pageToken}) { | 1727 async.Future<CustomChannels> list(core.String adClientId, {core.int maxResults
, core.String pageToken}) { |
| 1740 var _url = null; | 1728 var _url = null; |
| 1741 var _queryParams = new core.Map(); | 1729 var _queryParams = new core.Map(); |
| 1742 var _uploadMedia = null; | 1730 var _uploadMedia = null; |
| 1743 var _uploadOptions = null; | 1731 var _uploadOptions = null; |
| 1744 var _downloadOptions = common.DownloadOptions.Metadata; | 1732 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1745 var _body = null; | 1733 var _body = null; |
| 1746 | 1734 |
| 1747 if (adClientId == null) { | 1735 if (adClientId == null) { |
| 1748 throw new core.ArgumentError("Parameter adClientId is required."); | 1736 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1749 } | 1737 } |
| 1750 if (maxResults != null) { | 1738 if (maxResults != null) { |
| 1751 _queryParams["maxResults"] = ["${maxResults}"]; | 1739 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1752 } | 1740 } |
| 1753 if (pageToken != null) { | 1741 if (pageToken != null) { |
| 1754 _queryParams["pageToken"] = [pageToken]; | 1742 _queryParams["pageToken"] = [pageToken]; |
| 1755 } | 1743 } |
| 1756 | 1744 |
| 1757 | 1745 |
| 1758 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/customchannels'; | 1746 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo
mchannels'; |
| 1759 | 1747 |
| 1760 var _response = _requester.request(_url, | 1748 var _response = _requester.request(_url, |
| 1761 "GET", | 1749 "GET", |
| 1762 body: _body, | 1750 body: _body, |
| 1763 queryParams: _queryParams, | 1751 queryParams: _queryParams, |
| 1764 uploadOptions: _uploadOptions, | 1752 uploadOptions: _uploadOptions, |
| 1765 uploadMedia: _uploadMedia, | 1753 uploadMedia: _uploadMedia, |
| 1766 downloadOptions: _downloadOptions); | 1754 downloadOptions: _downloadOptions); |
| 1767 return _response.then((data) => new CustomChannels.fromJson(data)); | 1755 return _response.then((data) => new CustomChannels.fromJson(data)); |
| 1768 } | 1756 } |
| 1769 | 1757 |
| 1770 } | 1758 } |
| 1771 | 1759 |
| 1772 | 1760 |
| 1773 /** Not documented yet. */ | |
| 1774 class CustomchannelsAdunitsResourceApi { | 1761 class CustomchannelsAdunitsResourceApi { |
| 1775 final common_internal.ApiRequester _requester; | 1762 final commons.ApiRequester _requester; |
| 1776 | 1763 |
| 1777 CustomchannelsAdunitsResourceApi(common_internal.ApiRequester client) : | 1764 CustomchannelsAdunitsResourceApi(commons.ApiRequester client) : |
| 1778 _requester = client; | 1765 _requester = client; |
| 1779 | 1766 |
| 1780 /** | 1767 /** |
| 1781 * List all ad units in the specified custom channel. | 1768 * List all ad units in the specified custom channel. |
| 1782 * | 1769 * |
| 1783 * Request parameters: | 1770 * Request parameters: |
| 1784 * | 1771 * |
| 1785 * [adClientId] - Ad client which contains the custom channel. | 1772 * [adClientId] - Ad client which contains the custom channel. |
| 1786 * | 1773 * |
| 1787 * [customChannelId] - Custom channel for which to list ad units. | 1774 * [customChannelId] - Custom channel for which to list ad units. |
| 1788 * | 1775 * |
| 1789 * [includeInactive] - Whether to include inactive ad units. Default: true. | 1776 * [includeInactive] - Whether to include inactive ad units. Default: true. |
| 1790 * | 1777 * |
| 1791 * [maxResults] - The maximum number of ad units to include in the response, | 1778 * [maxResults] - The maximum number of ad units to include in the response, |
| 1792 * used for paging. | 1779 * used for paging. |
| 1793 * Value must be between "0" and "10000". | 1780 * Value must be between "0" and "10000". |
| 1794 * | 1781 * |
| 1795 * [pageToken] - A continuation token, used to page through ad units. To | 1782 * [pageToken] - A continuation token, used to page through ad units. To |
| 1796 * retrieve the next page, set this parameter to the value of "nextPageToken" | 1783 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 1797 * from the previous response. | 1784 * from the previous response. |
| 1798 * | 1785 * |
| 1799 * Completes with a [AdUnits]. | 1786 * Completes with a [AdUnits]. |
| 1800 * | 1787 * |
| 1801 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1788 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1802 * error. | 1789 * error. |
| 1803 * | 1790 * |
| 1804 * If the used [http.Client] completes with an error when making a REST call, | 1791 * If the used [http.Client] completes with an error when making a REST call, |
| 1805 * this method will complete with the same error. | 1792 * this method will complete with the same error. |
| 1806 */ | 1793 */ |
| 1807 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId
, {core.bool includeInactive, core.int maxResults, core.String pageToken}) { | 1794 async.Future<AdUnits> list(core.String adClientId, core.String customChannelId
, {core.bool includeInactive, core.int maxResults, core.String pageToken}) { |
| 1808 var _url = null; | 1795 var _url = null; |
| 1809 var _queryParams = new core.Map(); | 1796 var _queryParams = new core.Map(); |
| 1810 var _uploadMedia = null; | 1797 var _uploadMedia = null; |
| 1811 var _uploadOptions = null; | 1798 var _uploadOptions = null; |
| 1812 var _downloadOptions = common.DownloadOptions.Metadata; | 1799 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1813 var _body = null; | 1800 var _body = null; |
| 1814 | 1801 |
| 1815 if (adClientId == null) { | 1802 if (adClientId == null) { |
| 1816 throw new core.ArgumentError("Parameter adClientId is required."); | 1803 throw new core.ArgumentError("Parameter adClientId is required."); |
| 1817 } | 1804 } |
| 1818 if (customChannelId == null) { | 1805 if (customChannelId == null) { |
| 1819 throw new core.ArgumentError("Parameter customChannelId is required."); | 1806 throw new core.ArgumentError("Parameter customChannelId is required."); |
| 1820 } | 1807 } |
| 1821 if (includeInactive != null) { | 1808 if (includeInactive != null) { |
| 1822 _queryParams["includeInactive"] = ["${includeInactive}"]; | 1809 _queryParams["includeInactive"] = ["${includeInactive}"]; |
| 1823 } | 1810 } |
| 1824 if (maxResults != null) { | 1811 if (maxResults != null) { |
| 1825 _queryParams["maxResults"] = ["${maxResults}"]; | 1812 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1826 } | 1813 } |
| 1827 if (pageToken != null) { | 1814 if (pageToken != null) { |
| 1828 _queryParams["pageToken"] = [pageToken]; | 1815 _queryParams["pageToken"] = [pageToken]; |
| 1829 } | 1816 } |
| 1830 | 1817 |
| 1831 | 1818 |
| 1832 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/customchannels/' + common_internal.Escaper.ecapeVariable('$customChannelId')
+ '/adunits'; | 1819 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/custo
mchannels/' + commons.Escaper.ecapeVariable('$customChannelId') + '/adunits'; |
| 1833 | 1820 |
| 1834 var _response = _requester.request(_url, | 1821 var _response = _requester.request(_url, |
| 1835 "GET", | 1822 "GET", |
| 1836 body: _body, | 1823 body: _body, |
| 1837 queryParams: _queryParams, | 1824 queryParams: _queryParams, |
| 1838 uploadOptions: _uploadOptions, | 1825 uploadOptions: _uploadOptions, |
| 1839 uploadMedia: _uploadMedia, | 1826 uploadMedia: _uploadMedia, |
| 1840 downloadOptions: _downloadOptions); | 1827 downloadOptions: _downloadOptions); |
| 1841 return _response.then((data) => new AdUnits.fromJson(data)); | 1828 return _response.then((data) => new AdUnits.fromJson(data)); |
| 1842 } | 1829 } |
| 1843 | 1830 |
| 1844 } | 1831 } |
| 1845 | 1832 |
| 1846 | 1833 |
| 1847 /** Not documented yet. */ | |
| 1848 class MetadataResourceApi { | 1834 class MetadataResourceApi { |
| 1849 final common_internal.ApiRequester _requester; | 1835 final commons.ApiRequester _requester; |
| 1850 | 1836 |
| 1851 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource
Api(_requester); | 1837 MetadataDimensionsResourceApi get dimensions => new MetadataDimensionsResource
Api(_requester); |
| 1852 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ
ester); | 1838 MetadataMetricsResourceApi get metrics => new MetadataMetricsResourceApi(_requ
ester); |
| 1853 | 1839 |
| 1854 MetadataResourceApi(common_internal.ApiRequester client) : | 1840 MetadataResourceApi(commons.ApiRequester client) : |
| 1855 _requester = client; | 1841 _requester = client; |
| 1856 } | 1842 } |
| 1857 | 1843 |
| 1858 | 1844 |
| 1859 /** Not documented yet. */ | |
| 1860 class MetadataDimensionsResourceApi { | 1845 class MetadataDimensionsResourceApi { |
| 1861 final common_internal.ApiRequester _requester; | 1846 final commons.ApiRequester _requester; |
| 1862 | 1847 |
| 1863 MetadataDimensionsResourceApi(common_internal.ApiRequester client) : | 1848 MetadataDimensionsResourceApi(commons.ApiRequester client) : |
| 1864 _requester = client; | 1849 _requester = client; |
| 1865 | 1850 |
| 1866 /** | 1851 /** |
| 1867 * List the metadata for the dimensions available to this AdSense account. | 1852 * List the metadata for the dimensions available to this AdSense account. |
| 1868 * | 1853 * |
| 1869 * Request parameters: | 1854 * Request parameters: |
| 1870 * | 1855 * |
| 1871 * Completes with a [Metadata]. | 1856 * Completes with a [Metadata]. |
| 1872 * | 1857 * |
| 1873 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1858 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1874 * error. | 1859 * error. |
| 1875 * | 1860 * |
| 1876 * If the used [http.Client] completes with an error when making a REST call, | 1861 * If the used [http.Client] completes with an error when making a REST call, |
| 1877 * this method will complete with the same error. | 1862 * this method will complete with the same error. |
| 1878 */ | 1863 */ |
| 1879 async.Future<Metadata> list() { | 1864 async.Future<Metadata> list() { |
| 1880 var _url = null; | 1865 var _url = null; |
| 1881 var _queryParams = new core.Map(); | 1866 var _queryParams = new core.Map(); |
| 1882 var _uploadMedia = null; | 1867 var _uploadMedia = null; |
| 1883 var _uploadOptions = null; | 1868 var _uploadOptions = null; |
| 1884 var _downloadOptions = common.DownloadOptions.Metadata; | 1869 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1885 var _body = null; | 1870 var _body = null; |
| 1886 | 1871 |
| 1887 | 1872 |
| 1888 | 1873 |
| 1889 _url = 'metadata/dimensions'; | 1874 _url = 'metadata/dimensions'; |
| 1890 | 1875 |
| 1891 var _response = _requester.request(_url, | 1876 var _response = _requester.request(_url, |
| 1892 "GET", | 1877 "GET", |
| 1893 body: _body, | 1878 body: _body, |
| 1894 queryParams: _queryParams, | 1879 queryParams: _queryParams, |
| 1895 uploadOptions: _uploadOptions, | 1880 uploadOptions: _uploadOptions, |
| 1896 uploadMedia: _uploadMedia, | 1881 uploadMedia: _uploadMedia, |
| 1897 downloadOptions: _downloadOptions); | 1882 downloadOptions: _downloadOptions); |
| 1898 return _response.then((data) => new Metadata.fromJson(data)); | 1883 return _response.then((data) => new Metadata.fromJson(data)); |
| 1899 } | 1884 } |
| 1900 | 1885 |
| 1901 } | 1886 } |
| 1902 | 1887 |
| 1903 | 1888 |
| 1904 /** Not documented yet. */ | |
| 1905 class MetadataMetricsResourceApi { | 1889 class MetadataMetricsResourceApi { |
| 1906 final common_internal.ApiRequester _requester; | 1890 final commons.ApiRequester _requester; |
| 1907 | 1891 |
| 1908 MetadataMetricsResourceApi(common_internal.ApiRequester client) : | 1892 MetadataMetricsResourceApi(commons.ApiRequester client) : |
| 1909 _requester = client; | 1893 _requester = client; |
| 1910 | 1894 |
| 1911 /** | 1895 /** |
| 1912 * List the metadata for the metrics available to this AdSense account. | 1896 * List the metadata for the metrics available to this AdSense account. |
| 1913 * | 1897 * |
| 1914 * Request parameters: | 1898 * Request parameters: |
| 1915 * | 1899 * |
| 1916 * Completes with a [Metadata]. | 1900 * Completes with a [Metadata]. |
| 1917 * | 1901 * |
| 1918 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1902 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1919 * error. | 1903 * error. |
| 1920 * | 1904 * |
| 1921 * If the used [http.Client] completes with an error when making a REST call, | 1905 * If the used [http.Client] completes with an error when making a REST call, |
| 1922 * this method will complete with the same error. | 1906 * this method will complete with the same error. |
| 1923 */ | 1907 */ |
| 1924 async.Future<Metadata> list() { | 1908 async.Future<Metadata> list() { |
| 1925 var _url = null; | 1909 var _url = null; |
| 1926 var _queryParams = new core.Map(); | 1910 var _queryParams = new core.Map(); |
| 1927 var _uploadMedia = null; | 1911 var _uploadMedia = null; |
| 1928 var _uploadOptions = null; | 1912 var _uploadOptions = null; |
| 1929 var _downloadOptions = common.DownloadOptions.Metadata; | 1913 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1930 var _body = null; | 1914 var _body = null; |
| 1931 | 1915 |
| 1932 | 1916 |
| 1933 | 1917 |
| 1934 _url = 'metadata/metrics'; | 1918 _url = 'metadata/metrics'; |
| 1935 | 1919 |
| 1936 var _response = _requester.request(_url, | 1920 var _response = _requester.request(_url, |
| 1937 "GET", | 1921 "GET", |
| 1938 body: _body, | 1922 body: _body, |
| 1939 queryParams: _queryParams, | 1923 queryParams: _queryParams, |
| 1940 uploadOptions: _uploadOptions, | 1924 uploadOptions: _uploadOptions, |
| 1941 uploadMedia: _uploadMedia, | 1925 uploadMedia: _uploadMedia, |
| 1942 downloadOptions: _downloadOptions); | 1926 downloadOptions: _downloadOptions); |
| 1943 return _response.then((data) => new Metadata.fromJson(data)); | 1927 return _response.then((data) => new Metadata.fromJson(data)); |
| 1944 } | 1928 } |
| 1945 | 1929 |
| 1946 } | 1930 } |
| 1947 | 1931 |
| 1948 | 1932 |
| 1949 /** Not documented yet. */ | |
| 1950 class PaymentsResourceApi { | 1933 class PaymentsResourceApi { |
| 1951 final common_internal.ApiRequester _requester; | 1934 final commons.ApiRequester _requester; |
| 1952 | 1935 |
| 1953 PaymentsResourceApi(common_internal.ApiRequester client) : | 1936 PaymentsResourceApi(commons.ApiRequester client) : |
| 1954 _requester = client; | 1937 _requester = client; |
| 1955 | 1938 |
| 1956 /** | 1939 /** |
| 1957 * List the payments for this AdSense account. | 1940 * List the payments for this AdSense account. |
| 1958 * | 1941 * |
| 1959 * Request parameters: | 1942 * Request parameters: |
| 1960 * | 1943 * |
| 1961 * Completes with a [Payments]. | 1944 * Completes with a [Payments]. |
| 1962 * | 1945 * |
| 1963 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1946 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1964 * error. | 1947 * error. |
| 1965 * | 1948 * |
| 1966 * If the used [http.Client] completes with an error when making a REST call, | 1949 * If the used [http.Client] completes with an error when making a REST call, |
| 1967 * this method will complete with the same error. | 1950 * this method will complete with the same error. |
| 1968 */ | 1951 */ |
| 1969 async.Future<Payments> list() { | 1952 async.Future<Payments> list() { |
| 1970 var _url = null; | 1953 var _url = null; |
| 1971 var _queryParams = new core.Map(); | 1954 var _queryParams = new core.Map(); |
| 1972 var _uploadMedia = null; | 1955 var _uploadMedia = null; |
| 1973 var _uploadOptions = null; | 1956 var _uploadOptions = null; |
| 1974 var _downloadOptions = common.DownloadOptions.Metadata; | 1957 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1975 var _body = null; | 1958 var _body = null; |
| 1976 | 1959 |
| 1977 | 1960 |
| 1978 | 1961 |
| 1979 _url = 'payments'; | 1962 _url = 'payments'; |
| 1980 | 1963 |
| 1981 var _response = _requester.request(_url, | 1964 var _response = _requester.request(_url, |
| 1982 "GET", | 1965 "GET", |
| 1983 body: _body, | 1966 body: _body, |
| 1984 queryParams: _queryParams, | 1967 queryParams: _queryParams, |
| 1985 uploadOptions: _uploadOptions, | 1968 uploadOptions: _uploadOptions, |
| 1986 uploadMedia: _uploadMedia, | 1969 uploadMedia: _uploadMedia, |
| 1987 downloadOptions: _downloadOptions); | 1970 downloadOptions: _downloadOptions); |
| 1988 return _response.then((data) => new Payments.fromJson(data)); | 1971 return _response.then((data) => new Payments.fromJson(data)); |
| 1989 } | 1972 } |
| 1990 | 1973 |
| 1991 } | 1974 } |
| 1992 | 1975 |
| 1993 | 1976 |
| 1994 /** Not documented yet. */ | |
| 1995 class ReportsResourceApi { | 1977 class ReportsResourceApi { |
| 1996 final common_internal.ApiRequester _requester; | 1978 final commons.ApiRequester _requester; |
| 1997 | 1979 |
| 1998 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester); | 1980 ReportsSavedResourceApi get saved => new ReportsSavedResourceApi(_requester); |
| 1999 | 1981 |
| 2000 ReportsResourceApi(common_internal.ApiRequester client) : | 1982 ReportsResourceApi(commons.ApiRequester client) : |
| 2001 _requester = client; | 1983 _requester = client; |
| 2002 | 1984 |
| 2003 /** | 1985 /** |
| 2004 * Generate an AdSense report based on the report request sent in the query | 1986 * Generate an AdSense report based on the report request sent in the query |
| 2005 * parameters. Returns the result as JSON; to retrieve output in CSV format | 1987 * parameters. Returns the result as JSON; to retrieve output in CSV format |
| 2006 * specify "alt=csv" as a query parameter. | 1988 * specify "alt=csv" as a query parameter. |
| 2007 * | 1989 * |
| 2008 * Request parameters: | 1990 * Request parameters: |
| 2009 * | 1991 * |
| 2010 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, | 1992 * [startDate] - Start of the date range to report on in "YYYY-MM-DD" format, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2053 * | 2035 * |
| 2054 * [downloadOptions] - Options for downloading. A download can be either a | 2036 * [downloadOptions] - Options for downloading. A download can be either a |
| 2055 * Metadata (default) or Media download. Partial Media downloads are possible | 2037 * Metadata (default) or Media download. Partial Media downloads are possible |
| 2056 * as well. | 2038 * as well. |
| 2057 * | 2039 * |
| 2058 * Completes with a | 2040 * Completes with a |
| 2059 * | 2041 * |
| 2060 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see | 2042 * - [AdsenseReportsGenerateResponse] for Metadata downloads (see |
| 2061 * [downloadOptions]). | 2043 * [downloadOptions]). |
| 2062 * | 2044 * |
| 2063 * - [common.Media] for Media downloads (see [downloadOptions]). | 2045 * - [commons.Media] for Media downloads (see [downloadOptions]). |
| 2064 * | 2046 * |
| 2065 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2047 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2066 * error. | 2048 * error. |
| 2067 * | 2049 * |
| 2068 * If the used [http.Client] completes with an error when making a REST call, | 2050 * If the used [http.Client] completes with an error when making a REST call, |
| 2069 * this method will complete with the same error. | 2051 * this method will complete with the same error. |
| 2070 */ | 2052 */ |
| 2071 async.Future generate(core.String startDate, core.String endDate, {core.List<c
ore.String> accountId, core.String currency, core.List<core.String> dimension, c
ore.List<core.String> filter, core.String locale, core.int maxResults, core.List
<core.String> metric, core.List<core.String> sort, core.int startIndex, core.boo
l useTimezoneReporting, common.DownloadOptions downloadOptions: common.DownloadO
ptions.Metadata}) { | 2053 async.Future generate(core.String startDate, core.String endDate, {core.List<c
ore.String> accountId, core.String currency, core.List<core.String> dimension, c
ore.List<core.String> filter, core.String locale, core.int maxResults, core.List
<core.String> metric, core.List<core.String> sort, core.int startIndex, core.boo
l useTimezoneReporting, commons.DownloadOptions downloadOptions: commons.Downloa
dOptions.Metadata}) { |
| 2072 var _url = null; | 2054 var _url = null; |
| 2073 var _queryParams = new core.Map(); | 2055 var _queryParams = new core.Map(); |
| 2074 var _uploadMedia = null; | 2056 var _uploadMedia = null; |
| 2075 var _uploadOptions = null; | 2057 var _uploadOptions = null; |
| 2076 var _downloadOptions = common.DownloadOptions.Metadata; | 2058 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2077 var _body = null; | 2059 var _body = null; |
| 2078 | 2060 |
| 2079 if (startDate == null) { | 2061 if (startDate == null) { |
| 2080 throw new core.ArgumentError("Parameter startDate is required."); | 2062 throw new core.ArgumentError("Parameter startDate is required."); |
| 2081 } | 2063 } |
| 2082 _queryParams["startDate"] = [startDate]; | 2064 _queryParams["startDate"] = [startDate]; |
| 2083 if (endDate == null) { | 2065 if (endDate == null) { |
| 2084 throw new core.ArgumentError("Parameter endDate is required."); | 2066 throw new core.ArgumentError("Parameter endDate is required."); |
| 2085 } | 2067 } |
| 2086 _queryParams["endDate"] = [endDate]; | 2068 _queryParams["endDate"] = [endDate]; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2120 _url = 'reports'; | 2102 _url = 'reports'; |
| 2121 | 2103 |
| 2122 var _response = _requester.request(_url, | 2104 var _response = _requester.request(_url, |
| 2123 "GET", | 2105 "GET", |
| 2124 body: _body, | 2106 body: _body, |
| 2125 queryParams: _queryParams, | 2107 queryParams: _queryParams, |
| 2126 uploadOptions: _uploadOptions, | 2108 uploadOptions: _uploadOptions, |
| 2127 uploadMedia: _uploadMedia, | 2109 uploadMedia: _uploadMedia, |
| 2128 downloadOptions: _downloadOptions); | 2110 downloadOptions: _downloadOptions); |
| 2129 if (_downloadOptions == null || | 2111 if (_downloadOptions == null || |
| 2130 _downloadOptions == common.DownloadOptions.Metadata) { | 2112 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 2131 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso
n(data)); | 2113 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJso
n(data)); |
| 2132 } else { | 2114 } else { |
| 2133 return _response; | 2115 return _response; |
| 2134 } | 2116 } |
| 2135 } | 2117 } |
| 2136 | 2118 |
| 2137 } | 2119 } |
| 2138 | 2120 |
| 2139 | 2121 |
| 2140 /** Not documented yet. */ | |
| 2141 class ReportsSavedResourceApi { | 2122 class ReportsSavedResourceApi { |
| 2142 final common_internal.ApiRequester _requester; | 2123 final commons.ApiRequester _requester; |
| 2143 | 2124 |
| 2144 ReportsSavedResourceApi(common_internal.ApiRequester client) : | 2125 ReportsSavedResourceApi(commons.ApiRequester client) : |
| 2145 _requester = client; | 2126 _requester = client; |
| 2146 | 2127 |
| 2147 /** | 2128 /** |
| 2148 * Generate an AdSense report based on the saved report ID sent in the query | 2129 * Generate an AdSense report based on the saved report ID sent in the query |
| 2149 * parameters. | 2130 * parameters. |
| 2150 * | 2131 * |
| 2151 * Request parameters: | 2132 * Request parameters: |
| 2152 * | 2133 * |
| 2153 * [savedReportId] - The saved report to retrieve. | 2134 * [savedReportId] - The saved report to retrieve. |
| 2154 * | 2135 * |
| 2155 * [locale] - Optional locale to use for translating report output to a local | 2136 * [locale] - Optional locale to use for translating report output to a local |
| 2156 * language. Defaults to "en_US" if not specified. | 2137 * language. Defaults to "en_US" if not specified. |
| 2157 * Value must have pattern "[a-zA-Z_]+". | 2138 * Value must have pattern "[a-zA-Z_]+". |
| 2158 * | 2139 * |
| 2159 * [maxResults] - The maximum number of rows of report data to return. | 2140 * [maxResults] - The maximum number of rows of report data to return. |
| 2160 * Value must be between "0" and "50000". | 2141 * Value must be between "0" and "50000". |
| 2161 * | 2142 * |
| 2162 * [startIndex] - Index of the first row of report data to return. | 2143 * [startIndex] - Index of the first row of report data to return. |
| 2163 * Value must be between "0" and "5000". | 2144 * Value must be between "0" and "5000". |
| 2164 * | 2145 * |
| 2165 * Completes with a [AdsenseReportsGenerateResponse]. | 2146 * Completes with a [AdsenseReportsGenerateResponse]. |
| 2166 * | 2147 * |
| 2167 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2168 * error. | 2149 * error. |
| 2169 * | 2150 * |
| 2170 * If the used [http.Client] completes with an error when making a REST call, | 2151 * If the used [http.Client] completes with an error when making a REST call, |
| 2171 * this method will complete with the same error. | 2152 * this method will complete with the same error. |
| 2172 */ | 2153 */ |
| 2173 async.Future<AdsenseReportsGenerateResponse> generate(core.String savedReportI
d, {core.String locale, core.int maxResults, core.int startIndex}) { | 2154 async.Future<AdsenseReportsGenerateResponse> generate(core.String savedReportI
d, {core.String locale, core.int maxResults, core.int startIndex}) { |
| 2174 var _url = null; | 2155 var _url = null; |
| 2175 var _queryParams = new core.Map(); | 2156 var _queryParams = new core.Map(); |
| 2176 var _uploadMedia = null; | 2157 var _uploadMedia = null; |
| 2177 var _uploadOptions = null; | 2158 var _uploadOptions = null; |
| 2178 var _downloadOptions = common.DownloadOptions.Metadata; | 2159 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2179 var _body = null; | 2160 var _body = null; |
| 2180 | 2161 |
| 2181 if (savedReportId == null) { | 2162 if (savedReportId == null) { |
| 2182 throw new core.ArgumentError("Parameter savedReportId is required."); | 2163 throw new core.ArgumentError("Parameter savedReportId is required."); |
| 2183 } | 2164 } |
| 2184 if (locale != null) { | 2165 if (locale != null) { |
| 2185 _queryParams["locale"] = [locale]; | 2166 _queryParams["locale"] = [locale]; |
| 2186 } | 2167 } |
| 2187 if (maxResults != null) { | 2168 if (maxResults != null) { |
| 2188 _queryParams["maxResults"] = ["${maxResults}"]; | 2169 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2189 } | 2170 } |
| 2190 if (startIndex != null) { | 2171 if (startIndex != null) { |
| 2191 _queryParams["startIndex"] = ["${startIndex}"]; | 2172 _queryParams["startIndex"] = ["${startIndex}"]; |
| 2192 } | 2173 } |
| 2193 | 2174 |
| 2194 | 2175 |
| 2195 _url = 'reports/' + common_internal.Escaper.ecapeVariable('$savedReportId'); | 2176 _url = 'reports/' + commons.Escaper.ecapeVariable('$savedReportId'); |
| 2196 | 2177 |
| 2197 var _response = _requester.request(_url, | 2178 var _response = _requester.request(_url, |
| 2198 "GET", | 2179 "GET", |
| 2199 body: _body, | 2180 body: _body, |
| 2200 queryParams: _queryParams, | 2181 queryParams: _queryParams, |
| 2201 uploadOptions: _uploadOptions, | 2182 uploadOptions: _uploadOptions, |
| 2202 uploadMedia: _uploadMedia, | 2183 uploadMedia: _uploadMedia, |
| 2203 downloadOptions: _downloadOptions); | 2184 downloadOptions: _downloadOptions); |
| 2204 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(
data)); | 2185 return _response.then((data) => new AdsenseReportsGenerateResponse.fromJson(
data)); |
| 2205 } | 2186 } |
| 2206 | 2187 |
| 2207 /** | 2188 /** |
| 2208 * List all saved reports in this AdSense account. | 2189 * List all saved reports in this AdSense account. |
| 2209 * | 2190 * |
| 2210 * Request parameters: | 2191 * Request parameters: |
| 2211 * | 2192 * |
| 2212 * [maxResults] - The maximum number of saved reports to include in the | 2193 * [maxResults] - The maximum number of saved reports to include in the |
| 2213 * response, used for paging. | 2194 * response, used for paging. |
| 2214 * Value must be between "0" and "100". | 2195 * Value must be between "0" and "100". |
| 2215 * | 2196 * |
| 2216 * [pageToken] - A continuation token, used to page through saved reports. To | 2197 * [pageToken] - A continuation token, used to page through saved reports. To |
| 2217 * retrieve the next page, set this parameter to the value of "nextPageToken" | 2198 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 2218 * from the previous response. | 2199 * from the previous response. |
| 2219 * | 2200 * |
| 2220 * Completes with a [SavedReports]. | 2201 * Completes with a [SavedReports]. |
| 2221 * | 2202 * |
| 2222 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2203 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2223 * error. | 2204 * error. |
| 2224 * | 2205 * |
| 2225 * If the used [http.Client] completes with an error when making a REST call, | 2206 * If the used [http.Client] completes with an error when making a REST call, |
| 2226 * this method will complete with the same error. | 2207 * this method will complete with the same error. |
| 2227 */ | 2208 */ |
| 2228 async.Future<SavedReports> list({core.int maxResults, core.String pageToken})
{ | 2209 async.Future<SavedReports> list({core.int maxResults, core.String pageToken})
{ |
| 2229 var _url = null; | 2210 var _url = null; |
| 2230 var _queryParams = new core.Map(); | 2211 var _queryParams = new core.Map(); |
| 2231 var _uploadMedia = null; | 2212 var _uploadMedia = null; |
| 2232 var _uploadOptions = null; | 2213 var _uploadOptions = null; |
| 2233 var _downloadOptions = common.DownloadOptions.Metadata; | 2214 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2234 var _body = null; | 2215 var _body = null; |
| 2235 | 2216 |
| 2236 if (maxResults != null) { | 2217 if (maxResults != null) { |
| 2237 _queryParams["maxResults"] = ["${maxResults}"]; | 2218 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2238 } | 2219 } |
| 2239 if (pageToken != null) { | 2220 if (pageToken != null) { |
| 2240 _queryParams["pageToken"] = [pageToken]; | 2221 _queryParams["pageToken"] = [pageToken]; |
| 2241 } | 2222 } |
| 2242 | 2223 |
| 2243 | 2224 |
| 2244 _url = 'reports/saved'; | 2225 _url = 'reports/saved'; |
| 2245 | 2226 |
| 2246 var _response = _requester.request(_url, | 2227 var _response = _requester.request(_url, |
| 2247 "GET", | 2228 "GET", |
| 2248 body: _body, | 2229 body: _body, |
| 2249 queryParams: _queryParams, | 2230 queryParams: _queryParams, |
| 2250 uploadOptions: _uploadOptions, | 2231 uploadOptions: _uploadOptions, |
| 2251 uploadMedia: _uploadMedia, | 2232 uploadMedia: _uploadMedia, |
| 2252 downloadOptions: _downloadOptions); | 2233 downloadOptions: _downloadOptions); |
| 2253 return _response.then((data) => new SavedReports.fromJson(data)); | 2234 return _response.then((data) => new SavedReports.fromJson(data)); |
| 2254 } | 2235 } |
| 2255 | 2236 |
| 2256 } | 2237 } |
| 2257 | 2238 |
| 2258 | 2239 |
| 2259 /** Not documented yet. */ | |
| 2260 class SavedadstylesResourceApi { | 2240 class SavedadstylesResourceApi { |
| 2261 final common_internal.ApiRequester _requester; | 2241 final commons.ApiRequester _requester; |
| 2262 | 2242 |
| 2263 SavedadstylesResourceApi(common_internal.ApiRequester client) : | 2243 SavedadstylesResourceApi(commons.ApiRequester client) : |
| 2264 _requester = client; | 2244 _requester = client; |
| 2265 | 2245 |
| 2266 /** | 2246 /** |
| 2267 * Get a specific saved ad style from the user's account. | 2247 * Get a specific saved ad style from the user's account. |
| 2268 * | 2248 * |
| 2269 * Request parameters: | 2249 * Request parameters: |
| 2270 * | 2250 * |
| 2271 * [savedAdStyleId] - Saved ad style to retrieve. | 2251 * [savedAdStyleId] - Saved ad style to retrieve. |
| 2272 * | 2252 * |
| 2273 * Completes with a [SavedAdStyle]. | 2253 * Completes with a [SavedAdStyle]. |
| 2274 * | 2254 * |
| 2275 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2276 * error. | 2256 * error. |
| 2277 * | 2257 * |
| 2278 * If the used [http.Client] completes with an error when making a REST call, | 2258 * If the used [http.Client] completes with an error when making a REST call, |
| 2279 * this method will complete with the same error. | 2259 * this method will complete with the same error. |
| 2280 */ | 2260 */ |
| 2281 async.Future<SavedAdStyle> get(core.String savedAdStyleId) { | 2261 async.Future<SavedAdStyle> get(core.String savedAdStyleId) { |
| 2282 var _url = null; | 2262 var _url = null; |
| 2283 var _queryParams = new core.Map(); | 2263 var _queryParams = new core.Map(); |
| 2284 var _uploadMedia = null; | 2264 var _uploadMedia = null; |
| 2285 var _uploadOptions = null; | 2265 var _uploadOptions = null; |
| 2286 var _downloadOptions = common.DownloadOptions.Metadata; | 2266 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2287 var _body = null; | 2267 var _body = null; |
| 2288 | 2268 |
| 2289 if (savedAdStyleId == null) { | 2269 if (savedAdStyleId == null) { |
| 2290 throw new core.ArgumentError("Parameter savedAdStyleId is required."); | 2270 throw new core.ArgumentError("Parameter savedAdStyleId is required."); |
| 2291 } | 2271 } |
| 2292 | 2272 |
| 2293 | 2273 |
| 2294 _url = 'savedadstyles/' + common_internal.Escaper.ecapeVariable('$savedAdSty
leId'); | 2274 _url = 'savedadstyles/' + commons.Escaper.ecapeVariable('$savedAdStyleId'); |
| 2295 | 2275 |
| 2296 var _response = _requester.request(_url, | 2276 var _response = _requester.request(_url, |
| 2297 "GET", | 2277 "GET", |
| 2298 body: _body, | 2278 body: _body, |
| 2299 queryParams: _queryParams, | 2279 queryParams: _queryParams, |
| 2300 uploadOptions: _uploadOptions, | 2280 uploadOptions: _uploadOptions, |
| 2301 uploadMedia: _uploadMedia, | 2281 uploadMedia: _uploadMedia, |
| 2302 downloadOptions: _downloadOptions); | 2282 downloadOptions: _downloadOptions); |
| 2303 return _response.then((data) => new SavedAdStyle.fromJson(data)); | 2283 return _response.then((data) => new SavedAdStyle.fromJson(data)); |
| 2304 } | 2284 } |
| 2305 | 2285 |
| 2306 /** | 2286 /** |
| 2307 * List all saved ad styles in the user's account. | 2287 * List all saved ad styles in the user's account. |
| 2308 * | 2288 * |
| 2309 * Request parameters: | 2289 * Request parameters: |
| 2310 * | 2290 * |
| 2311 * [maxResults] - The maximum number of saved ad styles to include in the | 2291 * [maxResults] - The maximum number of saved ad styles to include in the |
| 2312 * response, used for paging. | 2292 * response, used for paging. |
| 2313 * Value must be between "0" and "10000". | 2293 * Value must be between "0" and "10000". |
| 2314 * | 2294 * |
| 2315 * [pageToken] - A continuation token, used to page through saved ad styles. | 2295 * [pageToken] - A continuation token, used to page through saved ad styles. |
| 2316 * To retrieve the next page, set this parameter to the value of | 2296 * To retrieve the next page, set this parameter to the value of |
| 2317 * "nextPageToken" from the previous response. | 2297 * "nextPageToken" from the previous response. |
| 2318 * | 2298 * |
| 2319 * Completes with a [SavedAdStyles]. | 2299 * Completes with a [SavedAdStyles]. |
| 2320 * | 2300 * |
| 2321 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2301 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2322 * error. | 2302 * error. |
| 2323 * | 2303 * |
| 2324 * If the used [http.Client] completes with an error when making a REST call, | 2304 * If the used [http.Client] completes with an error when making a REST call, |
| 2325 * this method will complete with the same error. | 2305 * this method will complete with the same error. |
| 2326 */ | 2306 */ |
| 2327 async.Future<SavedAdStyles> list({core.int maxResults, core.String pageToken})
{ | 2307 async.Future<SavedAdStyles> list({core.int maxResults, core.String pageToken})
{ |
| 2328 var _url = null; | 2308 var _url = null; |
| 2329 var _queryParams = new core.Map(); | 2309 var _queryParams = new core.Map(); |
| 2330 var _uploadMedia = null; | 2310 var _uploadMedia = null; |
| 2331 var _uploadOptions = null; | 2311 var _uploadOptions = null; |
| 2332 var _downloadOptions = common.DownloadOptions.Metadata; | 2312 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2333 var _body = null; | 2313 var _body = null; |
| 2334 | 2314 |
| 2335 if (maxResults != null) { | 2315 if (maxResults != null) { |
| 2336 _queryParams["maxResults"] = ["${maxResults}"]; | 2316 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2337 } | 2317 } |
| 2338 if (pageToken != null) { | 2318 if (pageToken != null) { |
| 2339 _queryParams["pageToken"] = [pageToken]; | 2319 _queryParams["pageToken"] = [pageToken]; |
| 2340 } | 2320 } |
| 2341 | 2321 |
| 2342 | 2322 |
| 2343 _url = 'savedadstyles'; | 2323 _url = 'savedadstyles'; |
| 2344 | 2324 |
| 2345 var _response = _requester.request(_url, | 2325 var _response = _requester.request(_url, |
| 2346 "GET", | 2326 "GET", |
| 2347 body: _body, | 2327 body: _body, |
| 2348 queryParams: _queryParams, | 2328 queryParams: _queryParams, |
| 2349 uploadOptions: _uploadOptions, | 2329 uploadOptions: _uploadOptions, |
| 2350 uploadMedia: _uploadMedia, | 2330 uploadMedia: _uploadMedia, |
| 2351 downloadOptions: _downloadOptions); | 2331 downloadOptions: _downloadOptions); |
| 2352 return _response.then((data) => new SavedAdStyles.fromJson(data)); | 2332 return _response.then((data) => new SavedAdStyles.fromJson(data)); |
| 2353 } | 2333 } |
| 2354 | 2334 |
| 2355 } | 2335 } |
| 2356 | 2336 |
| 2357 | 2337 |
| 2358 /** Not documented yet. */ | |
| 2359 class UrlchannelsResourceApi { | 2338 class UrlchannelsResourceApi { |
| 2360 final common_internal.ApiRequester _requester; | 2339 final commons.ApiRequester _requester; |
| 2361 | 2340 |
| 2362 UrlchannelsResourceApi(common_internal.ApiRequester client) : | 2341 UrlchannelsResourceApi(commons.ApiRequester client) : |
| 2363 _requester = client; | 2342 _requester = client; |
| 2364 | 2343 |
| 2365 /** | 2344 /** |
| 2366 * List all URL channels in the specified ad client for this AdSense account. | 2345 * List all URL channels in the specified ad client for this AdSense account. |
| 2367 * | 2346 * |
| 2368 * Request parameters: | 2347 * Request parameters: |
| 2369 * | 2348 * |
| 2370 * [adClientId] - Ad client for which to list URL channels. | 2349 * [adClientId] - Ad client for which to list URL channels. |
| 2371 * | 2350 * |
| 2372 * [maxResults] - The maximum number of URL channels to include in the | 2351 * [maxResults] - The maximum number of URL channels to include in the |
| 2373 * response, used for paging. | 2352 * response, used for paging. |
| 2374 * Value must be between "0" and "10000". | 2353 * Value must be between "0" and "10000". |
| 2375 * | 2354 * |
| 2376 * [pageToken] - A continuation token, used to page through URL channels. To | 2355 * [pageToken] - A continuation token, used to page through URL channels. To |
| 2377 * retrieve the next page, set this parameter to the value of "nextPageToken" | 2356 * retrieve the next page, set this parameter to the value of "nextPageToken" |
| 2378 * from the previous response. | 2357 * from the previous response. |
| 2379 * | 2358 * |
| 2380 * Completes with a [UrlChannels]. | 2359 * Completes with a [UrlChannels]. |
| 2381 * | 2360 * |
| 2382 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2361 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2383 * error. | 2362 * error. |
| 2384 * | 2363 * |
| 2385 * If the used [http.Client] completes with an error when making a REST call, | 2364 * If the used [http.Client] completes with an error when making a REST call, |
| 2386 * this method will complete with the same error. | 2365 * this method will complete with the same error. |
| 2387 */ | 2366 */ |
| 2388 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c
ore.String pageToken}) { | 2367 async.Future<UrlChannels> list(core.String adClientId, {core.int maxResults, c
ore.String pageToken}) { |
| 2389 var _url = null; | 2368 var _url = null; |
| 2390 var _queryParams = new core.Map(); | 2369 var _queryParams = new core.Map(); |
| 2391 var _uploadMedia = null; | 2370 var _uploadMedia = null; |
| 2392 var _uploadOptions = null; | 2371 var _uploadOptions = null; |
| 2393 var _downloadOptions = common.DownloadOptions.Metadata; | 2372 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2394 var _body = null; | 2373 var _body = null; |
| 2395 | 2374 |
| 2396 if (adClientId == null) { | 2375 if (adClientId == null) { |
| 2397 throw new core.ArgumentError("Parameter adClientId is required."); | 2376 throw new core.ArgumentError("Parameter adClientId is required."); |
| 2398 } | 2377 } |
| 2399 if (maxResults != null) { | 2378 if (maxResults != null) { |
| 2400 _queryParams["maxResults"] = ["${maxResults}"]; | 2379 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2401 } | 2380 } |
| 2402 if (pageToken != null) { | 2381 if (pageToken != null) { |
| 2403 _queryParams["pageToken"] = [pageToken]; | 2382 _queryParams["pageToken"] = [pageToken]; |
| 2404 } | 2383 } |
| 2405 | 2384 |
| 2406 | 2385 |
| 2407 _url = 'adclients/' + common_internal.Escaper.ecapeVariable('$adClientId') +
'/urlchannels'; | 2386 _url = 'adclients/' + commons.Escaper.ecapeVariable('$adClientId') + '/urlch
annels'; |
| 2408 | 2387 |
| 2409 var _response = _requester.request(_url, | 2388 var _response = _requester.request(_url, |
| 2410 "GET", | 2389 "GET", |
| 2411 body: _body, | 2390 body: _body, |
| 2412 queryParams: _queryParams, | 2391 queryParams: _queryParams, |
| 2413 uploadOptions: _uploadOptions, | 2392 uploadOptions: _uploadOptions, |
| 2414 uploadMedia: _uploadMedia, | 2393 uploadMedia: _uploadMedia, |
| 2415 downloadOptions: _downloadOptions); | 2394 downloadOptions: _downloadOptions); |
| 2416 return _response.then((data) => new UrlChannels.fromJson(data)); | 2395 return _response.then((data) => new UrlChannels.fromJson(data)); |
| 2417 } | 2396 } |
| 2418 | 2397 |
| 2419 } | 2398 } |
| 2420 | 2399 |
| 2421 | 2400 |
| 2422 | 2401 |
| 2423 /** Not documented yet. */ | |
| 2424 class Account { | 2402 class Account { |
| 2425 /** Unique identifier of this account. */ | 2403 /** Unique identifier of this account. */ |
| 2426 core.String id; | 2404 core.String id; |
| 2427 | 2405 |
| 2428 /** Kind of resource this is, in this case adsense#account. */ | 2406 /** Kind of resource this is, in this case adsense#account. */ |
| 2429 core.String kind; | 2407 core.String kind; |
| 2430 | 2408 |
| 2431 /** Name of this account. */ | 2409 /** Name of this account. */ |
| 2432 core.String name; | 2410 core.String name; |
| 2433 | 2411 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2482 _json["subAccounts"] = subAccounts.map((value) => (value).toJson()).toList
(); | 2460 _json["subAccounts"] = subAccounts.map((value) => (value).toJson()).toList
(); |
| 2483 } | 2461 } |
| 2484 if (timezone != null) { | 2462 if (timezone != null) { |
| 2485 _json["timezone"] = timezone; | 2463 _json["timezone"] = timezone; |
| 2486 } | 2464 } |
| 2487 return _json; | 2465 return _json; |
| 2488 } | 2466 } |
| 2489 } | 2467 } |
| 2490 | 2468 |
| 2491 | 2469 |
| 2492 /** Not documented yet. */ | |
| 2493 class Accounts { | 2470 class Accounts { |
| 2494 /** ETag of this response for caching purposes. */ | 2471 /** ETag of this response for caching purposes. */ |
| 2495 core.String etag; | 2472 core.String etag; |
| 2496 | 2473 |
| 2497 /** The accounts returned in this list response. */ | 2474 /** The accounts returned in this list response. */ |
| 2498 core.List<Account> items; | 2475 core.List<Account> items; |
| 2499 | 2476 |
| 2500 /** Kind of list this is, in this case adsense#accounts. */ | 2477 /** Kind of list this is, in this case adsense#accounts. */ |
| 2501 core.String kind; | 2478 core.String kind; |
| 2502 | 2479 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2536 _json["kind"] = kind; | 2513 _json["kind"] = kind; |
| 2537 } | 2514 } |
| 2538 if (nextPageToken != null) { | 2515 if (nextPageToken != null) { |
| 2539 _json["nextPageToken"] = nextPageToken; | 2516 _json["nextPageToken"] = nextPageToken; |
| 2540 } | 2517 } |
| 2541 return _json; | 2518 return _json; |
| 2542 } | 2519 } |
| 2543 } | 2520 } |
| 2544 | 2521 |
| 2545 | 2522 |
| 2546 /** Not documented yet. */ | |
| 2547 class AdClient { | 2523 class AdClient { |
| 2548 /** Whether this ad client is opted in to ARC. */ | 2524 /** Whether this ad client is opted in to ARC. */ |
| 2549 core.bool arcOptIn; | 2525 core.bool arcOptIn; |
| 2550 | 2526 |
| 2551 /** | 2527 /** |
| 2552 * ARC review mode this ad client is in. Empty if the client is not opted in | 2528 * ARC review mode this ad client is in. Empty if the client is not opted in |
| 2553 * to ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW. | 2529 * to ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW. |
| 2554 */ | 2530 */ |
| 2555 core.String arcReviewMode; | 2531 core.String arcReviewMode; |
| 2556 | 2532 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2611 _json["productCode"] = productCode; | 2587 _json["productCode"] = productCode; |
| 2612 } | 2588 } |
| 2613 if (supportsReporting != null) { | 2589 if (supportsReporting != null) { |
| 2614 _json["supportsReporting"] = supportsReporting; | 2590 _json["supportsReporting"] = supportsReporting; |
| 2615 } | 2591 } |
| 2616 return _json; | 2592 return _json; |
| 2617 } | 2593 } |
| 2618 } | 2594 } |
| 2619 | 2595 |
| 2620 | 2596 |
| 2621 /** Not documented yet. */ | |
| 2622 class AdClients { | 2597 class AdClients { |
| 2623 /** ETag of this response for caching purposes. */ | 2598 /** ETag of this response for caching purposes. */ |
| 2624 core.String etag; | 2599 core.String etag; |
| 2625 | 2600 |
| 2626 /** The ad clients returned in this list response. */ | 2601 /** The ad clients returned in this list response. */ |
| 2627 core.List<AdClient> items; | 2602 core.List<AdClient> items; |
| 2628 | 2603 |
| 2629 /** Kind of list this is, in this case adsense#adClients. */ | 2604 /** Kind of list this is, in this case adsense#adClients. */ |
| 2630 core.String kind; | 2605 core.String kind; |
| 2631 | 2606 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2665 _json["kind"] = kind; | 2640 _json["kind"] = kind; |
| 2666 } | 2641 } |
| 2667 if (nextPageToken != null) { | 2642 if (nextPageToken != null) { |
| 2668 _json["nextPageToken"] = nextPageToken; | 2643 _json["nextPageToken"] = nextPageToken; |
| 2669 } | 2644 } |
| 2670 return _json; | 2645 return _json; |
| 2671 } | 2646 } |
| 2672 } | 2647 } |
| 2673 | 2648 |
| 2674 | 2649 |
| 2675 /** Not documented yet. */ | |
| 2676 class AdCode { | 2650 class AdCode { |
| 2677 /** The ad code snippet. */ | 2651 /** The ad code snippet. */ |
| 2678 core.String adCode; | 2652 core.String adCode; |
| 2679 | 2653 |
| 2680 /** Kind this is, in this case adsense#adCode. */ | 2654 /** Kind this is, in this case adsense#adCode. */ |
| 2681 core.String kind; | 2655 core.String kind; |
| 2682 | 2656 |
| 2683 | 2657 |
| 2684 AdCode(); | 2658 AdCode(); |
| 2685 | 2659 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2795 _json["family"] = family; | 2769 _json["family"] = family; |
| 2796 } | 2770 } |
| 2797 if (size != null) { | 2771 if (size != null) { |
| 2798 _json["size"] = size; | 2772 _json["size"] = size; |
| 2799 } | 2773 } |
| 2800 return _json; | 2774 return _json; |
| 2801 } | 2775 } |
| 2802 } | 2776 } |
| 2803 | 2777 |
| 2804 | 2778 |
| 2805 /** Not documented yet. */ | |
| 2806 class AdStyle { | 2779 class AdStyle { |
| 2807 /** | 2780 /** |
| 2808 * The colors which are included in the style. These are represented as six | 2781 * The colors which are included in the style. These are represented as six |
| 2809 * hexadecimal characters, similar to HTML color codes, but without the | 2782 * hexadecimal characters, similar to HTML color codes, but without the |
| 2810 * leading hash. | 2783 * leading hash. |
| 2811 */ | 2784 */ |
| 2812 AdStyleColors colors; | 2785 AdStyleColors colors; |
| 2813 | 2786 |
| 2814 /** The style of the corners in the ad. */ | 2787 /** The style of the corners in the ad. */ |
| 2815 core.String corners; | 2788 core.String corners; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3041 _json["size"] = size; | 3014 _json["size"] = size; |
| 3042 } | 3015 } |
| 3043 if (type != null) { | 3016 if (type != null) { |
| 3044 _json["type"] = type; | 3017 _json["type"] = type; |
| 3045 } | 3018 } |
| 3046 return _json; | 3019 return _json; |
| 3047 } | 3020 } |
| 3048 } | 3021 } |
| 3049 | 3022 |
| 3050 | 3023 |
| 3051 /** Not documented yet. */ | |
| 3052 class AdUnit { | 3024 class AdUnit { |
| 3053 /** | 3025 /** |
| 3054 * Identity code of this ad unit, not necessarily unique across ad clients. | 3026 * Identity code of this ad unit, not necessarily unique across ad clients. |
| 3055 */ | 3027 */ |
| 3056 core.String code; | 3028 core.String code; |
| 3057 | 3029 |
| 3058 /** | 3030 /** |
| 3059 * Settings specific to content ads (AFC) and highend mobile content ads | 3031 * Settings specific to content ads (AFC) and highend mobile content ads |
| 3060 * (AFMC). | 3032 * (AFMC). |
| 3061 */ | 3033 */ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3164 _json["savedStyleId"] = savedStyleId; | 3136 _json["savedStyleId"] = savedStyleId; |
| 3165 } | 3137 } |
| 3166 if (status != null) { | 3138 if (status != null) { |
| 3167 _json["status"] = status; | 3139 _json["status"] = status; |
| 3168 } | 3140 } |
| 3169 return _json; | 3141 return _json; |
| 3170 } | 3142 } |
| 3171 } | 3143 } |
| 3172 | 3144 |
| 3173 | 3145 |
| 3174 /** Not documented yet. */ | |
| 3175 class AdUnits { | 3146 class AdUnits { |
| 3176 /** ETag of this response for caching purposes. */ | 3147 /** ETag of this response for caching purposes. */ |
| 3177 core.String etag; | 3148 core.String etag; |
| 3178 | 3149 |
| 3179 /** The ad units returned in this list response. */ | 3150 /** The ad units returned in this list response. */ |
| 3180 core.List<AdUnit> items; | 3151 core.List<AdUnit> items; |
| 3181 | 3152 |
| 3182 /** Kind of list this is, in this case adsense#adUnits. */ | 3153 /** Kind of list this is, in this case adsense#adUnits. */ |
| 3183 core.String kind; | 3154 core.String kind; |
| 3184 | 3155 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3218 _json["kind"] = kind; | 3189 _json["kind"] = kind; |
| 3219 } | 3190 } |
| 3220 if (nextPageToken != null) { | 3191 if (nextPageToken != null) { |
| 3221 _json["nextPageToken"] = nextPageToken; | 3192 _json["nextPageToken"] = nextPageToken; |
| 3222 } | 3193 } |
| 3223 return _json; | 3194 return _json; |
| 3224 } | 3195 } |
| 3225 } | 3196 } |
| 3226 | 3197 |
| 3227 | 3198 |
| 3228 /** Not documented yet. */ | |
| 3229 class AdsenseReportsGenerateResponseHeaders { | 3199 class AdsenseReportsGenerateResponseHeaders { |
| 3230 /** | 3200 /** |
| 3231 * The currency of this column. Only present if the header type is | 3201 * The currency of this column. Only present if the header type is |
| 3232 * METRIC_CURRENCY. | 3202 * METRIC_CURRENCY. |
| 3233 */ | 3203 */ |
| 3234 core.String currency; | 3204 core.String currency; |
| 3235 | 3205 |
| 3236 /** The name of the header. */ | 3206 /** The name of the header. */ |
| 3237 core.String name; | 3207 core.String name; |
| 3238 | 3208 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3266 _json["name"] = name; | 3236 _json["name"] = name; |
| 3267 } | 3237 } |
| 3268 if (type != null) { | 3238 if (type != null) { |
| 3269 _json["type"] = type; | 3239 _json["type"] = type; |
| 3270 } | 3240 } |
| 3271 return _json; | 3241 return _json; |
| 3272 } | 3242 } |
| 3273 } | 3243 } |
| 3274 | 3244 |
| 3275 | 3245 |
| 3276 /** Not documented yet. */ | |
| 3277 class AdsenseReportsGenerateResponse { | 3246 class AdsenseReportsGenerateResponse { |
| 3278 /** | 3247 /** |
| 3279 * The averages of the report. This is the same length as any other row in the | 3248 * The averages of the report. This is the same length as any other row in the |
| 3280 * report; cells corresponding to dimension columns are empty. | 3249 * report; cells corresponding to dimension columns are empty. |
| 3281 */ | 3250 */ |
| 3282 core.List<core.String> averages; | 3251 core.List<core.String> averages; |
| 3283 | 3252 |
| 3284 /** The requested end date in yyyy-mm-dd format. */ | 3253 /** The requested end date in yyyy-mm-dd format. */ |
| 3285 core.String endDate; | 3254 core.String endDate; |
| 3286 | 3255 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3380 _json["totals"] = totals; | 3349 _json["totals"] = totals; |
| 3381 } | 3350 } |
| 3382 if (warnings != null) { | 3351 if (warnings != null) { |
| 3383 _json["warnings"] = warnings; | 3352 _json["warnings"] = warnings; |
| 3384 } | 3353 } |
| 3385 return _json; | 3354 return _json; |
| 3386 } | 3355 } |
| 3387 } | 3356 } |
| 3388 | 3357 |
| 3389 | 3358 |
| 3390 /** Not documented yet. */ | |
| 3391 class Alert { | 3359 class Alert { |
| 3392 /** | 3360 /** |
| 3393 * Unique identifier of this alert. This should be considered an opaque | 3361 * Unique identifier of this alert. This should be considered an opaque |
| 3394 * identifier; it is not safe to rely on it being in any particular format. | 3362 * identifier; it is not safe to rely on it being in any particular format. |
| 3395 */ | 3363 */ |
| 3396 core.String id; | 3364 core.String id; |
| 3397 | 3365 |
| 3398 /** Whether this alert can be dismissed. */ | 3366 /** Whether this alert can be dismissed. */ |
| 3399 core.bool isDismissible; | 3367 core.bool isDismissible; |
| 3400 | 3368 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3456 _json["severity"] = severity; | 3424 _json["severity"] = severity; |
| 3457 } | 3425 } |
| 3458 if (type != null) { | 3426 if (type != null) { |
| 3459 _json["type"] = type; | 3427 _json["type"] = type; |
| 3460 } | 3428 } |
| 3461 return _json; | 3429 return _json; |
| 3462 } | 3430 } |
| 3463 } | 3431 } |
| 3464 | 3432 |
| 3465 | 3433 |
| 3466 /** Not documented yet. */ | |
| 3467 class Alerts { | 3434 class Alerts { |
| 3468 /** The alerts returned in this list response. */ | 3435 /** The alerts returned in this list response. */ |
| 3469 core.List<Alert> items; | 3436 core.List<Alert> items; |
| 3470 | 3437 |
| 3471 /** Kind of list this is, in this case adsense#alerts. */ | 3438 /** Kind of list this is, in this case adsense#alerts. */ |
| 3472 core.String kind; | 3439 core.String kind; |
| 3473 | 3440 |
| 3474 | 3441 |
| 3475 Alerts(); | 3442 Alerts(); |
| 3476 | 3443 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3546 _json["location"] = location; | 3513 _json["location"] = location; |
| 3547 } | 3514 } |
| 3548 if (siteLanguage != null) { | 3515 if (siteLanguage != null) { |
| 3549 _json["siteLanguage"] = siteLanguage; | 3516 _json["siteLanguage"] = siteLanguage; |
| 3550 } | 3517 } |
| 3551 return _json; | 3518 return _json; |
| 3552 } | 3519 } |
| 3553 } | 3520 } |
| 3554 | 3521 |
| 3555 | 3522 |
| 3556 /** Not documented yet. */ | |
| 3557 class CustomChannel { | 3523 class CustomChannel { |
| 3558 /** Code of this custom channel, not necessarily unique across ad clients. */ | 3524 /** Code of this custom channel, not necessarily unique across ad clients. */ |
| 3559 core.String code; | 3525 core.String code; |
| 3560 | 3526 |
| 3561 /** | 3527 /** |
| 3562 * Unique identifier of this custom channel. This should be considered an | 3528 * Unique identifier of this custom channel. This should be considered an |
| 3563 * opaque identifier; it is not safe to rely on it being in any particular | 3529 * opaque identifier; it is not safe to rely on it being in any particular |
| 3564 * format. | 3530 * format. |
| 3565 */ | 3531 */ |
| 3566 core.String id; | 3532 core.String id; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3610 _json["name"] = name; | 3576 _json["name"] = name; |
| 3611 } | 3577 } |
| 3612 if (targetingInfo != null) { | 3578 if (targetingInfo != null) { |
| 3613 _json["targetingInfo"] = (targetingInfo).toJson(); | 3579 _json["targetingInfo"] = (targetingInfo).toJson(); |
| 3614 } | 3580 } |
| 3615 return _json; | 3581 return _json; |
| 3616 } | 3582 } |
| 3617 } | 3583 } |
| 3618 | 3584 |
| 3619 | 3585 |
| 3620 /** Not documented yet. */ | |
| 3621 class CustomChannels { | 3586 class CustomChannels { |
| 3622 /** ETag of this response for caching purposes. */ | 3587 /** ETag of this response for caching purposes. */ |
| 3623 core.String etag; | 3588 core.String etag; |
| 3624 | 3589 |
| 3625 /** The custom channels returned in this list response. */ | 3590 /** The custom channels returned in this list response. */ |
| 3626 core.List<CustomChannel> items; | 3591 core.List<CustomChannel> items; |
| 3627 | 3592 |
| 3628 /** Kind of list this is, in this case adsense#customChannels. */ | 3593 /** Kind of list this is, in this case adsense#customChannels. */ |
| 3629 core.String kind; | 3594 core.String kind; |
| 3630 | 3595 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3664 _json["kind"] = kind; | 3629 _json["kind"] = kind; |
| 3665 } | 3630 } |
| 3666 if (nextPageToken != null) { | 3631 if (nextPageToken != null) { |
| 3667 _json["nextPageToken"] = nextPageToken; | 3632 _json["nextPageToken"] = nextPageToken; |
| 3668 } | 3633 } |
| 3669 return _json; | 3634 return _json; |
| 3670 } | 3635 } |
| 3671 } | 3636 } |
| 3672 | 3637 |
| 3673 | 3638 |
| 3674 /** Not documented yet. */ | |
| 3675 class Metadata { | 3639 class Metadata { |
| 3676 /** Not documented yet. */ | |
| 3677 core.List<ReportingMetadataEntry> items; | 3640 core.List<ReportingMetadataEntry> items; |
| 3678 | 3641 |
| 3679 /** Kind of list this is, in this case adsense#metadata. */ | 3642 /** Kind of list this is, in this case adsense#metadata. */ |
| 3680 core.String kind; | 3643 core.String kind; |
| 3681 | 3644 |
| 3682 | 3645 |
| 3683 Metadata(); | 3646 Metadata(); |
| 3684 | 3647 |
| 3685 Metadata.fromJson(core.Map _json) { | 3648 Metadata.fromJson(core.Map _json) { |
| 3686 if (_json.containsKey("items")) { | 3649 if (_json.containsKey("items")) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3697 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3660 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3698 } | 3661 } |
| 3699 if (kind != null) { | 3662 if (kind != null) { |
| 3700 _json["kind"] = kind; | 3663 _json["kind"] = kind; |
| 3701 } | 3664 } |
| 3702 return _json; | 3665 return _json; |
| 3703 } | 3666 } |
| 3704 } | 3667 } |
| 3705 | 3668 |
| 3706 | 3669 |
| 3707 /** Not documented yet. */ | |
| 3708 class Payment { | 3670 class Payment { |
| 3709 /** Unique identifier of this Payment. */ | 3671 /** Unique identifier of this Payment. */ |
| 3710 core.String id; | 3672 core.String id; |
| 3711 | 3673 |
| 3712 /** Kind of resource this is, in this case adsense#payment. */ | 3674 /** Kind of resource this is, in this case adsense#payment. */ |
| 3713 core.String kind; | 3675 core.String kind; |
| 3714 | 3676 |
| 3715 /** The amount to be paid. */ | 3677 /** The amount to be paid. */ |
| 3716 core.String paymentAmount; | 3678 core.String paymentAmount; |
| 3717 | 3679 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3760 _json["paymentAmountCurrencyCode"] = paymentAmountCurrencyCode; | 3722 _json["paymentAmountCurrencyCode"] = paymentAmountCurrencyCode; |
| 3761 } | 3723 } |
| 3762 if (paymentDate != null) { | 3724 if (paymentDate != null) { |
| 3763 _json["paymentDate"] = paymentDate; | 3725 _json["paymentDate"] = paymentDate; |
| 3764 } | 3726 } |
| 3765 return _json; | 3727 return _json; |
| 3766 } | 3728 } |
| 3767 } | 3729 } |
| 3768 | 3730 |
| 3769 | 3731 |
| 3770 /** Not documented yet. */ | |
| 3771 class Payments { | 3732 class Payments { |
| 3772 /** | 3733 /** |
| 3773 * The list of Payments for the account. One or both of a) the account's most | 3734 * The list of Payments for the account. One or both of a) the account's most |
| 3774 * recent payment; and b) the account's upcoming payment. | 3735 * recent payment; and b) the account's upcoming payment. |
| 3775 */ | 3736 */ |
| 3776 core.List<Payment> items; | 3737 core.List<Payment> items; |
| 3777 | 3738 |
| 3778 /** Kind of list this is, in this case adsense#payments. */ | 3739 /** Kind of list this is, in this case adsense#payments. */ |
| 3779 core.String kind; | 3740 core.String kind; |
| 3780 | 3741 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3796 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3757 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3797 } | 3758 } |
| 3798 if (kind != null) { | 3759 if (kind != null) { |
| 3799 _json["kind"] = kind; | 3760 _json["kind"] = kind; |
| 3800 } | 3761 } |
| 3801 return _json; | 3762 return _json; |
| 3802 } | 3763 } |
| 3803 } | 3764 } |
| 3804 | 3765 |
| 3805 | 3766 |
| 3806 /** Not documented yet. */ | |
| 3807 class ReportingMetadataEntry { | 3767 class ReportingMetadataEntry { |
| 3808 /** | 3768 /** |
| 3809 * For metrics this is a list of dimension IDs which the metric is compatible | 3769 * For metrics this is a list of dimension IDs which the metric is compatible |
| 3810 * with, for dimensions it is a list of compatibility groups the dimension | 3770 * with, for dimensions it is a list of compatibility groups the dimension |
| 3811 * belongs to. | 3771 * belongs to. |
| 3812 */ | 3772 */ |
| 3813 core.List<core.String> compatibleDimensions; | 3773 core.List<core.String> compatibleDimensions; |
| 3814 | 3774 |
| 3815 /** | 3775 /** |
| 3816 * The names of the metrics the dimension or metric this reporting metadata | 3776 * The names of the metrics the dimension or metric this reporting metadata |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3897 _json["requiredMetrics"] = requiredMetrics; | 3857 _json["requiredMetrics"] = requiredMetrics; |
| 3898 } | 3858 } |
| 3899 if (supportedProducts != null) { | 3859 if (supportedProducts != null) { |
| 3900 _json["supportedProducts"] = supportedProducts; | 3860 _json["supportedProducts"] = supportedProducts; |
| 3901 } | 3861 } |
| 3902 return _json; | 3862 return _json; |
| 3903 } | 3863 } |
| 3904 } | 3864 } |
| 3905 | 3865 |
| 3906 | 3866 |
| 3907 /** Not documented yet. */ | |
| 3908 class SavedAdStyle { | 3867 class SavedAdStyle { |
| 3909 /** The AdStyle itself. */ | 3868 /** The AdStyle itself. */ |
| 3910 AdStyle adStyle; | 3869 AdStyle adStyle; |
| 3911 | 3870 |
| 3912 /** | 3871 /** |
| 3913 * Unique identifier of this saved ad style. This should be considered an | 3872 * Unique identifier of this saved ad style. This should be considered an |
| 3914 * opaque identifier; it is not safe to rely on it being in any particular | 3873 * opaque identifier; it is not safe to rely on it being in any particular |
| 3915 * format. | 3874 * format. |
| 3916 */ | 3875 */ |
| 3917 core.String id; | 3876 core.String id; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3952 _json["kind"] = kind; | 3911 _json["kind"] = kind; |
| 3953 } | 3912 } |
| 3954 if (name != null) { | 3913 if (name != null) { |
| 3955 _json["name"] = name; | 3914 _json["name"] = name; |
| 3956 } | 3915 } |
| 3957 return _json; | 3916 return _json; |
| 3958 } | 3917 } |
| 3959 } | 3918 } |
| 3960 | 3919 |
| 3961 | 3920 |
| 3962 /** Not documented yet. */ | |
| 3963 class SavedAdStyles { | 3921 class SavedAdStyles { |
| 3964 /** ETag of this response for caching purposes. */ | 3922 /** ETag of this response for caching purposes. */ |
| 3965 core.String etag; | 3923 core.String etag; |
| 3966 | 3924 |
| 3967 /** The saved ad styles returned in this list response. */ | 3925 /** The saved ad styles returned in this list response. */ |
| 3968 core.List<SavedAdStyle> items; | 3926 core.List<SavedAdStyle> items; |
| 3969 | 3927 |
| 3970 /** Kind of list this is, in this case adsense#savedAdStyles. */ | 3928 /** Kind of list this is, in this case adsense#savedAdStyles. */ |
| 3971 core.String kind; | 3929 core.String kind; |
| 3972 | 3930 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4006 _json["kind"] = kind; | 3964 _json["kind"] = kind; |
| 4007 } | 3965 } |
| 4008 if (nextPageToken != null) { | 3966 if (nextPageToken != null) { |
| 4009 _json["nextPageToken"] = nextPageToken; | 3967 _json["nextPageToken"] = nextPageToken; |
| 4010 } | 3968 } |
| 4011 return _json; | 3969 return _json; |
| 4012 } | 3970 } |
| 4013 } | 3971 } |
| 4014 | 3972 |
| 4015 | 3973 |
| 4016 /** Not documented yet. */ | |
| 4017 class SavedReport { | 3974 class SavedReport { |
| 4018 /** Unique identifier of this saved report. */ | 3975 /** Unique identifier of this saved report. */ |
| 4019 core.String id; | 3976 core.String id; |
| 4020 | 3977 |
| 4021 /** Kind of resource this is, in this case adsense#savedReport. */ | 3978 /** Kind of resource this is, in this case adsense#savedReport. */ |
| 4022 core.String kind; | 3979 core.String kind; |
| 4023 | 3980 |
| 4024 /** This saved report's name. */ | 3981 /** This saved report's name. */ |
| 4025 core.String name; | 3982 core.String name; |
| 4026 | 3983 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4048 _json["kind"] = kind; | 4005 _json["kind"] = kind; |
| 4049 } | 4006 } |
| 4050 if (name != null) { | 4007 if (name != null) { |
| 4051 _json["name"] = name; | 4008 _json["name"] = name; |
| 4052 } | 4009 } |
| 4053 return _json; | 4010 return _json; |
| 4054 } | 4011 } |
| 4055 } | 4012 } |
| 4056 | 4013 |
| 4057 | 4014 |
| 4058 /** Not documented yet. */ | |
| 4059 class SavedReports { | 4015 class SavedReports { |
| 4060 /** ETag of this response for caching purposes. */ | 4016 /** ETag of this response for caching purposes. */ |
| 4061 core.String etag; | 4017 core.String etag; |
| 4062 | 4018 |
| 4063 /** The saved reports returned in this list response. */ | 4019 /** The saved reports returned in this list response. */ |
| 4064 core.List<SavedReport> items; | 4020 core.List<SavedReport> items; |
| 4065 | 4021 |
| 4066 /** Kind of list this is, in this case adsense#savedReports. */ | 4022 /** Kind of list this is, in this case adsense#savedReports. */ |
| 4067 core.String kind; | 4023 core.String kind; |
| 4068 | 4024 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4102 _json["kind"] = kind; | 4058 _json["kind"] = kind; |
| 4103 } | 4059 } |
| 4104 if (nextPageToken != null) { | 4060 if (nextPageToken != null) { |
| 4105 _json["nextPageToken"] = nextPageToken; | 4061 _json["nextPageToken"] = nextPageToken; |
| 4106 } | 4062 } |
| 4107 return _json; | 4063 return _json; |
| 4108 } | 4064 } |
| 4109 } | 4065 } |
| 4110 | 4066 |
| 4111 | 4067 |
| 4112 /** Not documented yet. */ | |
| 4113 class UrlChannel { | 4068 class UrlChannel { |
| 4114 /** | 4069 /** |
| 4115 * Unique identifier of this URL channel. This should be considered an opaque | 4070 * Unique identifier of this URL channel. This should be considered an opaque |
| 4116 * identifier; it is not safe to rely on it being in any particular format. | 4071 * identifier; it is not safe to rely on it being in any particular format. |
| 4117 */ | 4072 */ |
| 4118 core.String id; | 4073 core.String id; |
| 4119 | 4074 |
| 4120 /** Kind of resource this is, in this case adsense#urlChannel. */ | 4075 /** Kind of resource this is, in this case adsense#urlChannel. */ |
| 4121 core.String kind; | 4076 core.String kind; |
| 4122 | 4077 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4150 _json["kind"] = kind; | 4105 _json["kind"] = kind; |
| 4151 } | 4106 } |
| 4152 if (urlPattern != null) { | 4107 if (urlPattern != null) { |
| 4153 _json["urlPattern"] = urlPattern; | 4108 _json["urlPattern"] = urlPattern; |
| 4154 } | 4109 } |
| 4155 return _json; | 4110 return _json; |
| 4156 } | 4111 } |
| 4157 } | 4112 } |
| 4158 | 4113 |
| 4159 | 4114 |
| 4160 /** Not documented yet. */ | |
| 4161 class UrlChannels { | 4115 class UrlChannels { |
| 4162 /** ETag of this response for caching purposes. */ | 4116 /** ETag of this response for caching purposes. */ |
| 4163 core.String etag; | 4117 core.String etag; |
| 4164 | 4118 |
| 4165 /** The URL channels returned in this list response. */ | 4119 /** The URL channels returned in this list response. */ |
| 4166 core.List<UrlChannel> items; | 4120 core.List<UrlChannel> items; |
| 4167 | 4121 |
| 4168 /** Kind of list this is, in this case adsense#urlChannels. */ | 4122 /** Kind of list this is, in this case adsense#urlChannels. */ |
| 4169 core.String kind; | 4123 core.String kind; |
| 4170 | 4124 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4202 } | 4156 } |
| 4203 if (kind != null) { | 4157 if (kind != null) { |
| 4204 _json["kind"] = kind; | 4158 _json["kind"] = kind; |
| 4205 } | 4159 } |
| 4206 if (nextPageToken != null) { | 4160 if (nextPageToken != null) { |
| 4207 _json["nextPageToken"] = nextPageToken; | 4161 _json["nextPageToken"] = nextPageToken; |
| 4208 } | 4162 } |
| 4209 return _json; | 4163 return _json; |
| 4210 } | 4164 } |
| 4211 } | 4165 } |
| 4212 | |
| 4213 | |
| OLD | NEW |