| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.adsense.v1_4; | 3 library googleapis.adsense.v1_4; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
| 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
| 15 ByteRange; | 15 ByteRange; |
| 16 | 16 |
| 17 const core.String USER_AGENT = 'dart-api-client adsense/v1.4'; | 17 const core.String USER_AGENT = 'dart-api-client adsense/v1.4'; |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * Gives AdSense publishers access to their inventory and the ability to | 20 * Accesses AdSense publishers' inventory and generates performance reports. |
| 21 * generate reports | |
| 22 */ | 21 */ |
| 23 class AdsenseApi { | 22 class AdsenseApi { |
| 24 /** View and manage your AdSense data */ | 23 /** View and manage your AdSense data */ |
| 25 static const AdsenseScope = "https://www.googleapis.com/auth/adsense"; | 24 static const AdsenseScope = "https://www.googleapis.com/auth/adsense"; |
| 26 | 25 |
| 27 /** View your AdSense data */ | 26 /** View your AdSense data */ |
| 28 static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.r
eadonly"; | 27 static const AdsenseReadonlyScope = "https://www.googleapis.com/auth/adsense.r
eadonly"; |
| 29 | 28 |
| 30 | 29 |
| 31 final commons.ApiRequester _requester; | 30 final commons.ApiRequester _requester; |
| (...skipping 2443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2475 if (nextPageToken != null) { | 2474 if (nextPageToken != null) { |
| 2476 _json["nextPageToken"] = nextPageToken; | 2475 _json["nextPageToken"] = nextPageToken; |
| 2477 } | 2476 } |
| 2478 return _json; | 2477 return _json; |
| 2479 } | 2478 } |
| 2480 } | 2479 } |
| 2481 | 2480 |
| 2482 class AdClient { | 2481 class AdClient { |
| 2483 /** Whether this ad client is opted in to ARC. */ | 2482 /** Whether this ad client is opted in to ARC. */ |
| 2484 core.bool arcOptIn; | 2483 core.bool arcOptIn; |
| 2485 /** | |
| 2486 * ARC review mode this ad client is in. Empty if the client is not opted in | |
| 2487 * to ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW. | |
| 2488 */ | |
| 2489 core.String arcReviewMode; | |
| 2490 /** Unique identifier of this ad client. */ | 2484 /** Unique identifier of this ad client. */ |
| 2491 core.String id; | 2485 core.String id; |
| 2492 /** Kind of resource this is, in this case adsense#adClient. */ | 2486 /** Kind of resource this is, in this case adsense#adClient. */ |
| 2493 core.String kind; | 2487 core.String kind; |
| 2494 /** | 2488 /** |
| 2495 * This ad client's product code, which corresponds to the PRODUCT_CODE report | 2489 * This ad client's product code, which corresponds to the PRODUCT_CODE report |
| 2496 * dimension. | 2490 * dimension. |
| 2497 */ | 2491 */ |
| 2498 core.String productCode; | 2492 core.String productCode; |
| 2499 /** Whether this ad client supports being reported on. */ | 2493 /** Whether this ad client supports being reported on. */ |
| 2500 core.bool supportsReporting; | 2494 core.bool supportsReporting; |
| 2501 | 2495 |
| 2502 AdClient(); | 2496 AdClient(); |
| 2503 | 2497 |
| 2504 AdClient.fromJson(core.Map _json) { | 2498 AdClient.fromJson(core.Map _json) { |
| 2505 if (_json.containsKey("arcOptIn")) { | 2499 if (_json.containsKey("arcOptIn")) { |
| 2506 arcOptIn = _json["arcOptIn"]; | 2500 arcOptIn = _json["arcOptIn"]; |
| 2507 } | 2501 } |
| 2508 if (_json.containsKey("arcReviewMode")) { | |
| 2509 arcReviewMode = _json["arcReviewMode"]; | |
| 2510 } | |
| 2511 if (_json.containsKey("id")) { | 2502 if (_json.containsKey("id")) { |
| 2512 id = _json["id"]; | 2503 id = _json["id"]; |
| 2513 } | 2504 } |
| 2514 if (_json.containsKey("kind")) { | 2505 if (_json.containsKey("kind")) { |
| 2515 kind = _json["kind"]; | 2506 kind = _json["kind"]; |
| 2516 } | 2507 } |
| 2517 if (_json.containsKey("productCode")) { | 2508 if (_json.containsKey("productCode")) { |
| 2518 productCode = _json["productCode"]; | 2509 productCode = _json["productCode"]; |
| 2519 } | 2510 } |
| 2520 if (_json.containsKey("supportsReporting")) { | 2511 if (_json.containsKey("supportsReporting")) { |
| 2521 supportsReporting = _json["supportsReporting"]; | 2512 supportsReporting = _json["supportsReporting"]; |
| 2522 } | 2513 } |
| 2523 } | 2514 } |
| 2524 | 2515 |
| 2525 core.Map toJson() { | 2516 core.Map toJson() { |
| 2526 var _json = new core.Map(); | 2517 var _json = new core.Map(); |
| 2527 if (arcOptIn != null) { | 2518 if (arcOptIn != null) { |
| 2528 _json["arcOptIn"] = arcOptIn; | 2519 _json["arcOptIn"] = arcOptIn; |
| 2529 } | 2520 } |
| 2530 if (arcReviewMode != null) { | |
| 2531 _json["arcReviewMode"] = arcReviewMode; | |
| 2532 } | |
| 2533 if (id != null) { | 2521 if (id != null) { |
| 2534 _json["id"] = id; | 2522 _json["id"] = id; |
| 2535 } | 2523 } |
| 2536 if (kind != null) { | 2524 if (kind != null) { |
| 2537 _json["kind"] = kind; | 2525 _json["kind"] = kind; |
| 2538 } | 2526 } |
| 2539 if (productCode != null) { | 2527 if (productCode != null) { |
| 2540 _json["productCode"] = productCode; | 2528 _json["productCode"] = productCode; |
| 2541 } | 2529 } |
| 2542 if (supportsReporting != null) { | 2530 if (supportsReporting != null) { |
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3967 } | 3955 } |
| 3968 if (kind != null) { | 3956 if (kind != null) { |
| 3969 _json["kind"] = kind; | 3957 _json["kind"] = kind; |
| 3970 } | 3958 } |
| 3971 if (nextPageToken != null) { | 3959 if (nextPageToken != null) { |
| 3972 _json["nextPageToken"] = nextPageToken; | 3960 _json["nextPageToken"] = nextPageToken; |
| 3973 } | 3961 } |
| 3974 return _json; | 3962 return _json; |
| 3975 } | 3963 } |
| 3976 } | 3964 } |
| OLD | NEW |