OLD | NEW |
1 library googleapis.adexchangebuyer.v1_3; | 1 library googleapis.adexchangebuyer.v1_3; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 /** The base URL used in cookie match requests. */ | 979 /** The base URL used in cookie match requests. */ |
980 core.String cookieMatchingUrl; | 980 core.String cookieMatchingUrl; |
981 | 981 |
982 /** Account id. */ | 982 /** Account id. */ |
983 core.int id; | 983 core.int id; |
984 | 984 |
985 /** Resource type. */ | 985 /** Resource type. */ |
986 core.String kind; | 986 core.String kind; |
987 | 987 |
988 /** | 988 /** |
| 989 * The maximum number of active creatives that an account can have, where a |
| 990 * creative is active if it was inserted or bid with in the last 30 days. |
| 991 * Please contact your technical account manager if you need to change this. |
| 992 */ |
| 993 core.int maximumActiveCreatives; |
| 994 |
| 995 /** |
989 * The sum of all bidderLocation.maximumQps values cannot exceed this. Please | 996 * The sum of all bidderLocation.maximumQps values cannot exceed this. Please |
990 * contact your technical account manager if you need to change this. | 997 * contact your technical account manager if you need to change this. |
991 */ | 998 */ |
992 core.int maximumTotalQps; | 999 core.int maximumTotalQps; |
993 | 1000 |
| 1001 /** |
| 1002 * The number of creatives that this account inserted or bid with in the last |
| 1003 * 30 days. |
| 1004 */ |
| 1005 core.int numberActiveCreatives; |
| 1006 |
994 | 1007 |
995 Account(); | 1008 Account(); |
996 | 1009 |
997 Account.fromJson(core.Map _json) { | 1010 Account.fromJson(core.Map _json) { |
998 if (_json.containsKey("bidderLocation")) { | 1011 if (_json.containsKey("bidderLocation")) { |
999 bidderLocation = _json["bidderLocation"].map((value) => new AccountBidderL
ocation.fromJson(value)).toList(); | 1012 bidderLocation = _json["bidderLocation"].map((value) => new AccountBidderL
ocation.fromJson(value)).toList(); |
1000 } | 1013 } |
1001 if (_json.containsKey("cookieMatchingNid")) { | 1014 if (_json.containsKey("cookieMatchingNid")) { |
1002 cookieMatchingNid = _json["cookieMatchingNid"]; | 1015 cookieMatchingNid = _json["cookieMatchingNid"]; |
1003 } | 1016 } |
1004 if (_json.containsKey("cookieMatchingUrl")) { | 1017 if (_json.containsKey("cookieMatchingUrl")) { |
1005 cookieMatchingUrl = _json["cookieMatchingUrl"]; | 1018 cookieMatchingUrl = _json["cookieMatchingUrl"]; |
1006 } | 1019 } |
1007 if (_json.containsKey("id")) { | 1020 if (_json.containsKey("id")) { |
1008 id = _json["id"]; | 1021 id = _json["id"]; |
1009 } | 1022 } |
1010 if (_json.containsKey("kind")) { | 1023 if (_json.containsKey("kind")) { |
1011 kind = _json["kind"]; | 1024 kind = _json["kind"]; |
1012 } | 1025 } |
| 1026 if (_json.containsKey("maximumActiveCreatives")) { |
| 1027 maximumActiveCreatives = _json["maximumActiveCreatives"]; |
| 1028 } |
1013 if (_json.containsKey("maximumTotalQps")) { | 1029 if (_json.containsKey("maximumTotalQps")) { |
1014 maximumTotalQps = _json["maximumTotalQps"]; | 1030 maximumTotalQps = _json["maximumTotalQps"]; |
1015 } | 1031 } |
| 1032 if (_json.containsKey("numberActiveCreatives")) { |
| 1033 numberActiveCreatives = _json["numberActiveCreatives"]; |
| 1034 } |
1016 } | 1035 } |
1017 | 1036 |
1018 core.Map toJson() { | 1037 core.Map toJson() { |
1019 var _json = new core.Map(); | 1038 var _json = new core.Map(); |
1020 if (bidderLocation != null) { | 1039 if (bidderLocation != null) { |
1021 _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).
toList(); | 1040 _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).
toList(); |
1022 } | 1041 } |
1023 if (cookieMatchingNid != null) { | 1042 if (cookieMatchingNid != null) { |
1024 _json["cookieMatchingNid"] = cookieMatchingNid; | 1043 _json["cookieMatchingNid"] = cookieMatchingNid; |
1025 } | 1044 } |
1026 if (cookieMatchingUrl != null) { | 1045 if (cookieMatchingUrl != null) { |
1027 _json["cookieMatchingUrl"] = cookieMatchingUrl; | 1046 _json["cookieMatchingUrl"] = cookieMatchingUrl; |
1028 } | 1047 } |
1029 if (id != null) { | 1048 if (id != null) { |
1030 _json["id"] = id; | 1049 _json["id"] = id; |
1031 } | 1050 } |
1032 if (kind != null) { | 1051 if (kind != null) { |
1033 _json["kind"] = kind; | 1052 _json["kind"] = kind; |
1034 } | 1053 } |
| 1054 if (maximumActiveCreatives != null) { |
| 1055 _json["maximumActiveCreatives"] = maximumActiveCreatives; |
| 1056 } |
1035 if (maximumTotalQps != null) { | 1057 if (maximumTotalQps != null) { |
1036 _json["maximumTotalQps"] = maximumTotalQps; | 1058 _json["maximumTotalQps"] = maximumTotalQps; |
1037 } | 1059 } |
| 1060 if (numberActiveCreatives != null) { |
| 1061 _json["numberActiveCreatives"] = numberActiveCreatives; |
| 1062 } |
1038 return _json; | 1063 return _json; |
1039 } | 1064 } |
1040 } | 1065 } |
1041 | 1066 |
1042 | 1067 |
1043 /** | 1068 /** |
1044 * An account feed lists Ad Exchange buyer accounts that the user has access to. | 1069 * An account feed lists Ad Exchange buyer accounts that the user has access to. |
1045 * Each entry in the feed corresponds to a single buyer account. | 1070 * Each entry in the feed corresponds to a single buyer account. |
1046 */ | 1071 */ |
1047 class AccountsList { | 1072 class AccountsList { |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2389 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2414 _json["items"] = items.map((value) => (value).toJson()).toList(); |
2390 } | 2415 } |
2391 if (kind != null) { | 2416 if (kind != null) { |
2392 _json["kind"] = kind; | 2417 _json["kind"] = kind; |
2393 } | 2418 } |
2394 return _json; | 2419 return _json; |
2395 } | 2420 } |
2396 } | 2421 } |
2397 | 2422 |
2398 | 2423 |
OLD | NEW |