OLD | NEW |
1 library googleapis.doubleclicksearch.v2; | 1 library googleapis.doubleclicksearch.v2; |
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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 /** A request object used to create a DoubleClick Search report. */ | 1172 /** A request object used to create a DoubleClick Search report. */ |
1173 class ReportApiColumnSpec { | 1173 class ReportApiColumnSpec { |
1174 /** Name of a DoubleClick Search column to include in the report. */ | 1174 /** Name of a DoubleClick Search column to include in the report. */ |
1175 core.String columnName; | 1175 core.String columnName; |
1176 | 1176 |
1177 /** | 1177 /** |
1178 * Segments a report by a custom dimension. The report must be scoped to an | 1178 * Segments a report by a custom dimension. The report must be scoped to an |
1179 * advertiser or lower, and the custom dimension must already be set up in | 1179 * advertiser or lower, and the custom dimension must already be set up in |
1180 * DoubleClick Search. The custom dimension name, which appears in DoubleClick | 1180 * DoubleClick Search. The custom dimension name, which appears in DoubleClick |
1181 * Search, is case sensitive. | 1181 * Search, is case sensitive. |
| 1182 * If used in a conversion report, returns the value of the specified custom |
| 1183 * dimension for the given conversion, if set. This column does not segment |
| 1184 * the conversion report. |
1182 */ | 1185 */ |
1183 core.String customDimensionName; | 1186 core.String customDimensionName; |
1184 | 1187 |
1185 /** | 1188 /** |
| 1189 * Reports on the provided custom metric. The report must be scoped to an |
| 1190 * advertiser or lower, and the custom metric must already be set up in |
| 1191 * DoubleClick Search. The custom metric name, which appears in DoubleClick |
| 1192 * Search, is case sensitive. |
| 1193 */ |
| 1194 core.String customMetricName; |
| 1195 |
| 1196 /** |
1186 * Inclusive day in YYYY-MM-DD format. When provided, this overrides the | 1197 * Inclusive day in YYYY-MM-DD format. When provided, this overrides the |
1187 * overall time range of the report for this column only. Must be provided | 1198 * overall time range of the report for this column only. Must be provided |
1188 * together with startDate. | 1199 * together with startDate. |
1189 */ | 1200 */ |
1190 core.String endDate; | 1201 core.String endDate; |
1191 | 1202 |
1192 /** | 1203 /** |
1193 * Synchronous report only. Set to true to group by this column. Defaults to | 1204 * Synchronous report only. Set to true to group by this column. Defaults to |
1194 * false. | 1205 * false. |
1195 */ | 1206 */ |
(...skipping 30 matching lines...) Expand all Loading... |
1226 | 1237 |
1227 ReportApiColumnSpec(); | 1238 ReportApiColumnSpec(); |
1228 | 1239 |
1229 ReportApiColumnSpec.fromJson(core.Map _json) { | 1240 ReportApiColumnSpec.fromJson(core.Map _json) { |
1230 if (_json.containsKey("columnName")) { | 1241 if (_json.containsKey("columnName")) { |
1231 columnName = _json["columnName"]; | 1242 columnName = _json["columnName"]; |
1232 } | 1243 } |
1233 if (_json.containsKey("customDimensionName")) { | 1244 if (_json.containsKey("customDimensionName")) { |
1234 customDimensionName = _json["customDimensionName"]; | 1245 customDimensionName = _json["customDimensionName"]; |
1235 } | 1246 } |
| 1247 if (_json.containsKey("customMetricName")) { |
| 1248 customMetricName = _json["customMetricName"]; |
| 1249 } |
1236 if (_json.containsKey("endDate")) { | 1250 if (_json.containsKey("endDate")) { |
1237 endDate = _json["endDate"]; | 1251 endDate = _json["endDate"]; |
1238 } | 1252 } |
1239 if (_json.containsKey("groupByColumn")) { | 1253 if (_json.containsKey("groupByColumn")) { |
1240 groupByColumn = _json["groupByColumn"]; | 1254 groupByColumn = _json["groupByColumn"]; |
1241 } | 1255 } |
1242 if (_json.containsKey("headerText")) { | 1256 if (_json.containsKey("headerText")) { |
1243 headerText = _json["headerText"]; | 1257 headerText = _json["headerText"]; |
1244 } | 1258 } |
1245 if (_json.containsKey("platformSource")) { | 1259 if (_json.containsKey("platformSource")) { |
1246 platformSource = _json["platformSource"]; | 1260 platformSource = _json["platformSource"]; |
1247 } | 1261 } |
1248 if (_json.containsKey("savedColumnName")) { | 1262 if (_json.containsKey("savedColumnName")) { |
1249 savedColumnName = _json["savedColumnName"]; | 1263 savedColumnName = _json["savedColumnName"]; |
1250 } | 1264 } |
1251 if (_json.containsKey("startDate")) { | 1265 if (_json.containsKey("startDate")) { |
1252 startDate = _json["startDate"]; | 1266 startDate = _json["startDate"]; |
1253 } | 1267 } |
1254 } | 1268 } |
1255 | 1269 |
1256 core.Map toJson() { | 1270 core.Map toJson() { |
1257 var _json = new core.Map(); | 1271 var _json = new core.Map(); |
1258 if (columnName != null) { | 1272 if (columnName != null) { |
1259 _json["columnName"] = columnName; | 1273 _json["columnName"] = columnName; |
1260 } | 1274 } |
1261 if (customDimensionName != null) { | 1275 if (customDimensionName != null) { |
1262 _json["customDimensionName"] = customDimensionName; | 1276 _json["customDimensionName"] = customDimensionName; |
1263 } | 1277 } |
| 1278 if (customMetricName != null) { |
| 1279 _json["customMetricName"] = customMetricName; |
| 1280 } |
1264 if (endDate != null) { | 1281 if (endDate != null) { |
1265 _json["endDate"] = endDate; | 1282 _json["endDate"] = endDate; |
1266 } | 1283 } |
1267 if (groupByColumn != null) { | 1284 if (groupByColumn != null) { |
1268 _json["groupByColumn"] = groupByColumn; | 1285 _json["groupByColumn"] = groupByColumn; |
1269 } | 1286 } |
1270 if (headerText != null) { | 1287 if (headerText != null) { |
1271 _json["headerText"] = headerText; | 1288 _json["headerText"] = headerText; |
1272 } | 1289 } |
1273 if (platformSource != null) { | 1290 if (platformSource != null) { |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 core.Map toJson() { | 1892 core.Map toJson() { |
1876 var _json = new core.Map(); | 1893 var _json = new core.Map(); |
1877 if (availabilities != null) { | 1894 if (availabilities != null) { |
1878 _json["availabilities"] = availabilities.map((value) => (value).toJson()).
toList(); | 1895 _json["availabilities"] = availabilities.map((value) => (value).toJson()).
toList(); |
1879 } | 1896 } |
1880 return _json; | 1897 return _json; |
1881 } | 1898 } |
1882 } | 1899 } |
1883 | 1900 |
1884 | 1901 |
OLD | NEW |