| 1 |
{ |
| 2 |
"auth": { |
| 3 |
"oauth2": { |
| 4 |
"scopes": { |
| 5 |
"https://www.googleapis.com/auth/doubleclickbidmanager": { |
| 6 |
"description": "View and manage your reports in DoubleClick Bid Manager" |
| 7 |
} |
| 8 |
} |
| 9 |
} |
| 10 |
}, |
| 11 |
"basePath": "/v2/", |
| 12 |
"baseUrl": "https://doubleclickbidmanager.googleapis.com/v2/", |
| 13 |
"batchPath": "batch", |
| 14 |
"canonicalName": "DoubleClick Bid Manager", |
| 15 |
"description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.", |
| 16 |
"discoveryVersion": "v1", |
| 17 |
"documentationLink": "https://developers.google.com/bid-manager/", |
| 18 |
"icons": { |
| 19 |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 20 |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 21 |
}, |
| 22 |
"id": "doubleclickbidmanager:v2", |
| 23 |
"kind": "discovery#restDescription", |
| 24 |
"mtlsRootUrl": "https://doubleclickbidmanager.mtls.googleapis.com/", |
| 25 |
"name": "doubleclickbidmanager", |
| 26 |
"ownerDomain": "google.com", |
| 27 |
"ownerName": "Google", |
| 28 |
"parameters": { |
| 29 |
"$.xgafv": { |
| 30 |
"description": "V1 error format.", |
| 31 |
"enum": [ |
| 32 |
"1", |
| 33 |
"2" |
| 34 |
], |
| 35 |
"enumDescriptions": [ |
| 36 |
"v1 error format", |
| 37 |
"v2 error format" |
| 38 |
], |
| 39 |
"location": "query", |
| 40 |
"type": "string" |
| 41 |
}, |
| 42 |
"access_token": { |
| 43 |
"description": "OAuth access token.", |
| 44 |
"location": "query", |
| 45 |
"type": "string" |
| 46 |
}, |
| 47 |
"alt": { |
| 48 |
"default": "json", |
| 49 |
"description": "Data format for response.", |
| 50 |
"enum": [ |
| 51 |
"json", |
| 52 |
"media", |
| 53 |
"proto" |
| 54 |
], |
| 55 |
"enumDescriptions": [ |
| 56 |
"Responses with Content-Type of application/json", |
| 57 |
"Media download with context-dependent Content-Type", |
| 58 |
"Responses with Content-Type of application/x-protobuf" |
| 59 |
], |
| 60 |
"location": "query", |
| 61 |
"type": "string" |
| 62 |
}, |
| 63 |
"callback": { |
| 64 |
"description": "JSONP", |
| 65 |
"location": "query", |
| 66 |
"type": "string" |
| 67 |
}, |
| 68 |
"fields": { |
| 69 |
"description": "Selector specifying which fields to include in a partial response.", |
| 70 |
"location": "query", |
| 71 |
"type": "string" |
| 72 |
}, |
| 73 |
"key": { |
| 74 |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| 75 |
"location": "query", |
| 76 |
"type": "string" |
| 77 |
}, |
| 78 |
"oauth_token": { |
| 79 |
"description": "OAuth 2.0 token for the current user.", |
| 80 |
"location": "query", |
| 81 |
"type": "string" |
| 82 |
}, |
| 83 |
"prettyPrint": { |
| 84 |
"default": "true", |
| 85 |
"description": "Returns response with indentations and line breaks.", |
| 86 |
"location": "query", |
| 87 |
"type": "boolean" |
| 88 |
}, |
| 89 |
"quotaUser": { |
| 90 |
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| 91 |
"location": "query", |
| 92 |
"type": "string" |
| 93 |
}, |
| 94 |
"uploadType": { |
| 95 |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 96 |
"location": "query", |
| 97 |
"type": "string" |
| 98 |
}, |
| 99 |
"upload_protocol": { |
| 100 |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 101 |
"location": "query", |
| 102 |
"type": "string" |
| 103 |
} |
| 104 |
}, |
| 105 |
"protocol": "rest", |
| 106 |
"resources": { |
| 107 |
"queries": { |
| 108 |
"methods": { |
| 109 |
"create": { |
| 110 |
"description": "Creates a new query.", |
| 111 |
"flatPath": "queries", |
| 112 |
"httpMethod": "POST", |
| 113 |
"id": "doubleclickbidmanager.queries.create", |
| 114 |
"parameterOrder": [], |
| 115 |
"parameters": {}, |
| 116 |
"path": "queries", |
| 117 |
"request": { |
| 118 |
"$ref": "Query" |
| 119 |
}, |
| 120 |
"response": { |
| 121 |
"$ref": "Query" |
| 122 |
}, |
| 123 |
"scopes": [ |
| 124 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 125 |
] |
| 126 |
}, |
| 127 |
"delete": { |
| 128 |
"description": "Deletes an existing query as well as its generated reports.", |
| 129 |
"flatPath": "queries/{queryId}", |
| 130 |
"httpMethod": "DELETE", |
| 131 |
"id": "doubleclickbidmanager.queries.delete", |
| 132 |
"parameterOrder": [ |
| 133 |
"queryId" |
| 134 |
], |
| 135 |
"parameters": { |
| 136 |
"queryId": { |
| 137 |
"description": "Required. The ID of the query to delete.", |
| 138 |
"format": "int64", |
| 139 |
"location": "path", |
| 140 |
"required": true, |
| 141 |
"type": "string" |
| 142 |
} |
| 143 |
}, |
| 144 |
"path": "queries/{queryId}", |
| 145 |
"scopes": [ |
| 146 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 147 |
] |
| 148 |
}, |
| 149 |
"get": { |
| 150 |
"description": "Retrieves a query.", |
| 151 |
"flatPath": "queries/{queryId}", |
| 152 |
"httpMethod": "GET", |
| 153 |
"id": "doubleclickbidmanager.queries.get", |
| 154 |
"parameterOrder": [ |
| 155 |
"queryId" |
| 156 |
], |
| 157 |
"parameters": { |
| 158 |
"queryId": { |
| 159 |
"description": "Required. The ID of the query to retrieve.", |
| 160 |
"format": "int64", |
| 161 |
"location": "path", |
| 162 |
"required": true, |
| 163 |
"type": "string" |
| 164 |
} |
| 165 |
}, |
| 166 |
"path": "queries/{queryId}", |
| 167 |
"response": { |
| 168 |
"$ref": "Query" |
| 169 |
}, |
| 170 |
"scopes": [ |
| 171 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 172 |
] |
| 173 |
}, |
| 174 |
"list": { |
| 175 |
"description": "Lists queries created by the current user.", |
| 176 |
"flatPath": "queries", |
| 177 |
"httpMethod": "GET", |
| 178 |
"id": "doubleclickbidmanager.queries.list", |
| 179 |
"parameterOrder": [], |
| 180 |
"parameters": { |
| 181 |
"orderBy": { |
| 182 |
"description": "Field to sort the list by. Accepts the following values: * `queryId` (default) * `metadata.title` The default sorting order is ascending. To specify descending order for a field, add the suffix `desc` to the field name. For example, `queryId desc`.", |
| 183 |
"location": "query", |
| 184 |
"type": "string" |
| 185 |
}, |
| 186 |
"pageSize": { |
| 187 |
"description": "Maximum number of results per page. Must be between `1` and `100`. Defaults to `100` if unspecified.", |
| 188 |
"format": "int32", |
| 189 |
"location": "query", |
| 190 |
"type": "integer" |
| 191 |
}, |
| 192 |
"pageToken": { |
| 193 |
"description": "A token identifying which page of results the server should return. Typically, this is the value of nextPageToken, returned from the previous call to the `queries.list` method. If unspecified, the first page of results is returned.", |
| 194 |
"location": "query", |
| 195 |
"type": "string" |
| 196 |
} |
| 197 |
}, |
| 198 |
"path": "queries", |
| 199 |
"response": { |
| 200 |
"$ref": "ListQueriesResponse" |
| 201 |
}, |
| 202 |
"scopes": [ |
| 203 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 204 |
] |
| 205 |
}, |
| 206 |
"run": { |
| 207 |
"description": "Runs an existing query to generate a report.", |
| 208 |
"flatPath": "queries/{queryId}:run", |
| 209 |
"httpMethod": "POST", |
| 210 |
"id": "doubleclickbidmanager.queries.run", |
| 211 |
"parameterOrder": [ |
| 212 |
"queryId" |
| 213 |
], |
| 214 |
"parameters": { |
| 215 |
"queryId": { |
| 216 |
"description": "Required. The ID of the query to run.", |
| 217 |
"format": "int64", |
| 218 |
"location": "path", |
| 219 |
"required": true, |
| 220 |
"type": "string" |
| 221 |
}, |
| 222 |
"synchronous": { |
| 223 |
"description": "Whether the query should be run synchronously. When `true`, the request won't return until the resulting report has finished running. This parameter is `false` by default. Setting this parameter to `true` is **not recommended**.", |
| 224 |
"location": "query", |
| 225 |
"type": "boolean" |
| 226 |
} |
| 227 |
}, |
| 228 |
"path": "queries/{queryId}:run", |
| 229 |
"request": { |
| 230 |
"$ref": "RunQueryRequest" |
| 231 |
}, |
| 232 |
"response": { |
| 233 |
"$ref": "Report" |
| 234 |
}, |
| 235 |
"scopes": [ |
| 236 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 237 |
] |
| 238 |
} |
| 239 |
}, |
| 240 |
"resources": { |
| 241 |
"reports": { |
| 242 |
"methods": { |
| 243 |
"get": { |
| 244 |
"description": "Retrieves a report.", |
| 245 |
"flatPath": "queries/{queryId}/reports/{reportId}", |
| 246 |
"httpMethod": "GET", |
| 247 |
"id": "doubleclickbidmanager.queries.reports.get", |
| 248 |
"parameterOrder": [ |
| 249 |
"queryId", |
| 250 |
"reportId" |
| 251 |
], |
| 252 |
"parameters": { |
| 253 |
"queryId": { |
| 254 |
"description": "Required. The ID of the query that generated the report.", |
| 255 |
"format": "int64", |
| 256 |
"location": "path", |
| 257 |
"required": true, |
| 258 |
"type": "string" |
| 259 |
}, |
| 260 |
"reportId": { |
| 261 |
"description": "Required. The ID of the query to retrieve.", |
| 262 |
"format": "int64", |
| 263 |
"location": "path", |
| 264 |
"required": true, |
| 265 |
"type": "string" |
| 266 |
} |
| 267 |
}, |
| 268 |
"path": "queries/{queryId}/reports/{reportId}", |
| 269 |
"response": { |
| 270 |
"$ref": "Report" |
| 271 |
}, |
| 272 |
"scopes": [ |
| 273 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 274 |
] |
| 275 |
}, |
| 276 |
"list": { |
| 277 |
"description": "Lists reports generated by the provided query.", |
| 278 |
"flatPath": "queries/{queryId}/reports", |
| 279 |
"httpMethod": "GET", |
| 280 |
"id": "doubleclickbidmanager.queries.reports.list", |
| 281 |
"parameterOrder": [ |
| 282 |
"queryId" |
| 283 |
], |
| 284 |
"parameters": { |
| 285 |
"orderBy": { |
| 286 |
"description": "Field to sort the list by. Accepts the following values: * `key.reportId` (default) The default sorting order is ascending. To specify descending order for a field, add the suffix `desc` to the field name. For example, `key.reportId desc`.", |
| 287 |
"location": "query", |
| 288 |
"type": "string" |
| 289 |
}, |
| 290 |
"pageSize": { |
| 291 |
"description": "Maximum number of results per page. Must be between `1` and `100`. Defaults to `100` if unspecified.", |
| 292 |
"format": "int32", |
| 293 |
"location": "query", |
| 294 |
"type": "integer" |
| 295 |
}, |
| 296 |
"pageToken": { |
| 297 |
"description": "A token identifying which page of results the server should return. Typically, this is the value of nextPageToken returned from the previous call to the `queries.reports.list` method. If unspecified, the first page of results is returned.", |
| 298 |
"location": "query", |
| 299 |
"type": "string" |
| 300 |
}, |
| 301 |
"queryId": { |
| 302 |
"description": "Required. The ID of the query that generated the reports.", |
| 303 |
"format": "int64", |
| 304 |
"location": "path", |
| 305 |
"required": true, |
| 306 |
"type": "string" |
| 307 |
} |
| 308 |
}, |
| 309 |
"path": "queries/{queryId}/reports", |
| 310 |
"response": { |
| 311 |
"$ref": "ListReportsResponse" |
| 312 |
}, |
| 313 |
"scopes": [ |
| 314 |
"https://www.googleapis.com/auth/doubleclickbidmanager" |
| 315 |
] |
| 316 |
} |
| 317 |
} |
| 318 |
} |
| 319 |
} |
| 320 |
} |
| 321 |
}, |
| 322 |
"revision": "20251126", |
| 323 |
"rootUrl": "https://doubleclickbidmanager.googleapis.com/", |
| 324 |
"schemas": { |
| 325 |
"DataRange": { |
| 326 |
"description": "The date range to be reported on.", |
| 327 |
"id": "DataRange", |
| 328 |
"properties": { |
| 329 |
"customEndDate": { |
| 330 |
"$ref": "Date", |
| 331 |
"description": "If `CUSTOM_DATES` is assigned to range, this field specifies the end date for the date range that is reported on. This field is required if using `CUSTOM_DATES` range and will be ignored otherwise." |
| 332 |
}, |
| 333 |
"customStartDate": { |
| 334 |
"$ref": "Date", |
| 335 |
"description": "If `CUSTOM_DATES` is assigned to range, this field specifies the starting date for the date range that is reported on. This field is required if using `CUSTOM_DATES` range and will be ignored otherwise." |
| 336 |
}, |
| 337 |
"range": { |
| 338 |
"description": "The preset date range to be reported on. If `CUSTOM_DATES` is assigned to this field, fields custom_start_date and custom_end_date must be set to specify the custom date range.", |
| 339 |
"enum": [ |
| 340 |
"RANGE_UNSPECIFIED", |
| 341 |
"CUSTOM_DATES", |
| 342 |
"CURRENT_DAY", |
| 343 |
"PREVIOUS_DAY", |
| 344 |
"WEEK_TO_DATE", |
| 345 |
"MONTH_TO_DATE", |
| 346 |
"QUARTER_TO_DATE", |
| 347 |
"YEAR_TO_DATE", |
| 348 |
"PREVIOUS_WEEK", |
| 349 |
"PREVIOUS_MONTH", |
| 350 |
"PREVIOUS_QUARTER", |
| 351 |
"PREVIOUS_YEAR", |
| 352 |
"LAST_7_DAYS", |
| 353 |
"LAST_30_DAYS", |
| 354 |
"LAST_90_DAYS", |
| 355 |
"LAST_365_DAYS", |
| 356 |
"ALL_TIME", |
| 357 |
"LAST_14_DAYS", |
| 358 |
"LAST_60_DAYS" |
| 359 |
], |
| 360 |
"enumDescriptions": [ |
| 361 |
"Default value when range is not specified or is unknown in this version.", |
| 362 |
"Custom date range.", |
| 363 |
"Current day.", |
| 364 |
"Previous day.", |
| 365 |
"All days, including the current day, since the most recent Sunday.", |
| 366 |
"All days, including the current day, since the start of the current month.", |
| 367 |
"All days, including the current day, since the start of the current quarter.", |
| 368 |
"All days, including the current day, since the start of the current calendar year.", |
| 369 |
"The previous completed week, beginning from Sunday.", |
| 370 |
"The previous completed calendar month.", |
| 371 |
"The previous completed quarter.", |
| 372 |
"The previous completed calendar year.", |
| 373 |
"The previous 7 days, excluding the current day.", |
| 374 |
"The previous 30 days, excluding the current day.", |
| 375 |
"The previous 90 days, excluding the current day.", |
| 376 |
"The previous 365 days, excluding the current day.", |
| 377 |
"All time for which data is available, excluding the current day.", |
| 378 |
"The previous 14 days, excluding the current day.", |
| 379 |
"The previous 60 days, excluding the current day." |
| 380 |
], |
| 381 |
"type": "string" |
| 382 |
} |
| 383 |
}, |
| 384 |
"type": "object" |
| 385 |
}, |
| 386 |
"Date": { |
| 387 |
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", |
| 388 |
"id": "Date", |
| 389 |
"properties": { |
| 390 |
"day": { |
| 391 |
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", |
| 392 |
"format": "int32", |
| 393 |
"type": "integer" |
| 394 |
}, |
| 395 |
"month": { |
| 396 |
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", |
| 397 |
"format": "int32", |
| 398 |
"type": "integer" |
| 399 |
}, |
| 400 |
"year": { |
| 401 |
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", |
| 402 |
"format": "int32", |
| 403 |
"type": "integer" |
| 404 |
} |
| 405 |
}, |
| 406 |
"type": "object" |
| 407 |
}, |
| 408 |
"FilterPair": { |
| 409 |
"description": "Represents a single filter rule.", |
| 410 |
"id": "FilterPair", |
| 411 |
"properties": { |
| 412 |
"type": { |
| 413 |
"description": "The type of value to filter by. Defined by a [Filter](/bid-manager/reference/rest/v2/filters-metrics#filters) value.", |
| 414 |
"type": "string" |
| 415 |
}, |
| 416 |
"value": { |
| 417 |
"description": "The identifying value to filter by, such as a relevant resource ID.", |
| 418 |
"type": "string" |
| 419 |
} |
| 420 |
}, |
| 421 |
"type": "object" |
| 422 |
}, |
| 423 |
"ListQueriesResponse": { |
| 424 |
"id": "ListQueriesResponse", |
| 425 |
"properties": { |
| 426 |
"nextPageToken": { |
| 427 |
"description": "A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `queries.list` method to retrieve the next page of results.", |
| 428 |
"type": "string" |
| 429 |
}, |
| 430 |
"queries": { |
| 431 |
"description": "The list of queries. This field will be absent if empty.", |
| 432 |
"items": { |
| 433 |
"$ref": "Query" |
| 434 |
}, |
| 435 |
"type": "array" |
| 436 |
} |
| 437 |
}, |
| 438 |
"type": "object" |
| 439 |
}, |
| 440 |
"ListReportsResponse": { |
| 441 |
"id": "ListReportsResponse", |
| 442 |
"properties": { |
| 443 |
"nextPageToken": { |
| 444 |
"description": "A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `queries.reports.list` method to retrieve the next page of results.", |
| 445 |
"type": "string" |
| 446 |
}, |
| 447 |
"reports": { |
| 448 |
"description": "The list of reports. This field will be absent if empty.", |
| 449 |
"items": { |
| 450 |
"$ref": "Report" |
| 451 |
}, |
| 452 |
"type": "array" |
| 453 |
} |
| 454 |
}, |
| 455 |
"type": "object" |
| 456 |
}, |
| 457 |
"Options": { |
| 458 |
"description": "Report parameter options.", |
| 459 |
"id": "Options", |
| 460 |
"properties": { |
| 461 |
"includeOnlyTargetedUserLists": { |
| 462 |
"description": "Whether to include data for audience lists specifically targeted by filtered line items or insertion orders. Requires the use of `FILTER_INSERTION_ORDER` or `FILTER_LINE_ITEM` filters.", |
| 463 |
"type": "boolean" |
| 464 |
} |
| 465 |
}, |
| 466 |
"type": "object" |
| 467 |
}, |
| 468 |
"Parameters": { |
| 469 |
"description": "Parameters of a generated report.", |
| 470 |
"id": "Parameters", |
| 471 |
"properties": { |
| 472 |
"filters": { |
| 473 |
"description": "Filters to limit the scope of reported data.", |
| 474 |
"items": { |
| 475 |
"$ref": "FilterPair" |
| 476 |
}, |
| 477 |
"type": "array" |
| 478 |
}, |
| 479 |
"groupBys": { |
| 480 |
"description": "Dimensions by which to segment and group the data. Defined by [Filter](/bid-manager/reference/rest/v2/filters-metrics#filters) values.", |
| 481 |
"items": { |
| 482 |
"type": "string" |
| 483 |
}, |
| 484 |
"type": "array" |
| 485 |
}, |
| 486 |
"metrics": { |
| 487 |
"description": "Metrics to define the data populating the report. Defined by [Metric](/bid-manager/reference/rest/v2/filters-metrics#metrics) values.", |
| 488 |
"items": { |
| 489 |
"type": "string" |
| 490 |
}, |
| 491 |
"type": "array" |
| 492 |
}, |
| 493 |
"options": { |
| 494 |
"$ref": "Options", |
| 495 |
"description": "Additional report parameter options." |
| 496 |
}, |
| 497 |
"type": { |
| 498 |
"description": "The type of the report. The type of the report determines the dimesions, filters, and metrics that can be used.", |
| 499 |
"enum": [ |
| 500 |
"REPORT_TYPE_UNSPECIFIED", |
| 501 |
"STANDARD", |
| 502 |
"INVENTORY_AVAILABILITY", |
| 503 |
"AUDIENCE_COMPOSITION", |
| 504 |
"FLOODLIGHT", |
| 505 |
"YOUTUBE", |
| 506 |
"GRP", |
| 507 |
"YOUTUBE_PROGRAMMATIC_GUARANTEED", |
| 508 |
"REACH", |
| 509 |
"UNIQUE_REACH_AUDIENCE", |
| 510 |
"FULL_PATH", |
| 511 |
"PATH_ATTRIBUTION" |
| 512 |
], |
| 513 |
"enumDeprecated": [ |
| 514 |
false, |
| 515 |
false, |
| 516 |
false, |
| 517 |
true, |
| 518 |
false, |
| 519 |
false, |
| 520 |
false, |
| 521 |
false, |
| 522 |
false, |
| 523 |
false, |
| 524 |
true, |
| 525 |
true |
| 526 |
], |
| 527 |
"enumDescriptions": [ |
| 528 |
"Default value when report type is not specified or is unknown in this version.", |
| 529 |
"Standard report.", |
| 530 |
"Inventory Availability report.", |
| 531 |
"Audience Composition report.", |
| 532 |
"Floodlight report.", |
| 533 |
"YouTube report.", |
| 534 |
"GRP report.", |
| 535 |
"YouTube Programmatic Guaranteed report.", |
| 536 |
"Reach report.", |
| 537 |
"Unique Reach Audience report.", |
| 538 |
"Full Path report.", |
| 539 |
"Path Attribution report." |
| 540 |
], |
| 541 |
"type": "string" |
| 542 |
} |
| 543 |
}, |
| 544 |
"type": "object" |
| 545 |
}, |
| 546 |
"Query": { |
| 547 |
"description": "A single query used to generate a report.", |
| 548 |
"id": "Query", |
| 549 |
"properties": { |
| 550 |
"metadata": { |
| 551 |
"$ref": "QueryMetadata", |
| 552 |
"description": "The metadata of the query." |
| 553 |
}, |
| 554 |
"params": { |
| 555 |
"$ref": "Parameters", |
| 556 |
"description": "The parameters of the report generated by the query." |
| 557 |
}, |
| 558 |
"queryId": { |
| 559 |
"description": "Output only. The unique ID of the query.", |
| 560 |
"format": "int64", |
| 561 |
"readOnly": true, |
| 562 |
"type": "string" |
| 563 |
}, |
| 564 |
"schedule": { |
| 565 |
"$ref": "QuerySchedule", |
| 566 |
"description": "When and how often the query is scheduled to run. If the frequency field is set to `ONE_TIME`, the query will only run when queries.run is called." |
| 567 |
} |
| 568 |
}, |
| 569 |
"type": "object" |
| 570 |
}, |
| 571 |
"QueryMetadata": { |
| 572 |
"description": "The metadata of the query.", |
| 573 |
"id": "QueryMetadata", |
| 574 |
"properties": { |
| 575 |
"dataRange": { |
| 576 |
"$ref": "DataRange", |
| 577 |
"description": "The date range the report generated by the query will report on. This date range will be defined by the time zone as used by the advertiser." |
| 578 |
}, |
| 579 |
"format": { |
| 580 |
"description": "The format of the report generated by the query.", |
| 581 |
"enum": [ |
| 582 |
"FORMAT_UNSPECIFIED", |
| 583 |
"CSV", |
| 584 |
"XLSX" |
| 585 |
], |
| 586 |
"enumDescriptions": [ |
| 587 |
"Default value when format is not specified or is unknown in this version.", |
| 588 |
"CSV.", |
| 589 |
"Excel." |
| 590 |
], |
| 591 |
"type": "string" |
| 592 |
}, |
| 593 |
"sendNotification": { |
| 594 |
"description": "Whether an email notification is sent to the query creator when a report generated by the query is ready. This value is `false` by default.", |
| 595 |
"type": "boolean" |
| 596 |
}, |
| 597 |
"shareEmailAddress": { |
| 598 |
"description": "List of additional email addresses with which to share the query. If send_notification is `true`, these email addresses will receive a notification when a report generated by the query is ready. If these email addresses are connected to Display & Video 360 users, the query will be available to them in the Display & Video 360 interface.", |
| 599 |
"items": { |
| 600 |
"type": "string" |
| 601 |
}, |
| 602 |
"type": "array" |
| 603 |
}, |
| 604 |
"title": { |
| 605 |
"description": "The display name of the query. This value will be used in the file name of reports generated by the query.", |
| 606 |
"type": "string" |
| 607 |
} |
| 608 |
}, |
| 609 |
"type": "object" |
| 610 |
}, |
| 611 |
"QuerySchedule": { |
| 612 |
"description": "Settings on when and how frequently to run a query.", |
| 613 |
"id": "QuerySchedule", |
| 614 |
"properties": { |
| 615 |
"endDate": { |
| 616 |
"$ref": "Date", |
| 617 |
"description": "The date on which to end the scheduled runs. This field is required if frequency is not set to `ONE_TIME`. Otherwise, it will be ignored." |
| 618 |
}, |
| 619 |
"frequency": { |
| 620 |
"description": "How frequently to run the query. If set to `ONE_TIME`, the query will only be run when queries.run is called.", |
| 621 |
"enum": [ |
| 622 |
"FREQUENCY_UNSPECIFIED", |
| 623 |
"ONE_TIME", |
| 624 |
"DAILY", |
| 625 |
"WEEKLY", |
| 626 |
"SEMI_MONTHLY", |
| 627 |
"MONTHLY", |
| 628 |
"QUARTERLY", |
| 629 |
"YEARLY" |
| 630 |
], |
| 631 |
"enumDescriptions": [ |
| 632 |
"Default value when frequency is not specified or is unknown in this version.", |
| 633 |
"Only when the query is run manually.", |
| 634 |
"Once a day.", |
| 635 |
"Once a week.", |
| 636 |
"Twice a month.", |
| 637 |
"Once a month.", |
| 638 |
"Once a quarter.", |
| 639 |
"Once a year." |
| 640 |
], |
| 641 |
"type": "string" |
| 642 |
}, |
| 643 |
"nextRunTimezoneCode": { |
| 644 |
"description": "The canonical code for the timezone the query schedule is based on. Scheduled runs are usually conducted in the morning of a given day. Defaults to `America/New_York`.", |
| 645 |
"type": "string" |
| 646 |
}, |
| 647 |
"startDate": { |
| 648 |
"$ref": "Date", |
| 649 |
"description": "The date on which to begin the scheduled runs. This field is required if frequency is not set to `ONE_TIME`. Otherwise, it will be ignored." |
| 650 |
} |
| 651 |
}, |
| 652 |
"type": "object" |
| 653 |
}, |
| 654 |
"Report": { |
| 655 |
"description": "A single report generated by its parent report.", |
| 656 |
"id": "Report", |
| 657 |
"properties": { |
| 658 |
"key": { |
| 659 |
"$ref": "ReportKey", |
| 660 |
"description": "The key information identifying the report." |
| 661 |
}, |
| 662 |
"metadata": { |
| 663 |
"$ref": "ReportMetadata", |
| 664 |
"description": "The metadata of the report." |
| 665 |
}, |
| 666 |
"params": { |
| 667 |
"$ref": "Parameters", |
| 668 |
"description": "The parameters of the report." |
| 669 |
} |
| 670 |
}, |
| 671 |
"type": "object" |
| 672 |
}, |
| 673 |
"ReportKey": { |
| 674 |
"description": "Identifying information of a report.", |
| 675 |
"id": "ReportKey", |
| 676 |
"properties": { |
| 677 |
"queryId": { |
| 678 |
"description": "Output only. The unique ID of the query that generated the report.", |
| 679 |
"format": "int64", |
| 680 |
"readOnly": true, |
| 681 |
"type": "string" |
| 682 |
}, |
| 683 |
"reportId": { |
| 684 |
"description": "Output only. The unique ID of the report.", |
| 685 |
"format": "int64", |
| 686 |
"readOnly": true, |
| 687 |
"type": "string" |
| 688 |
} |
| 689 |
}, |
| 690 |
"type": "object" |
| 691 |
}, |
| 692 |
"ReportMetadata": { |
| 693 |
"description": "The metadata of a report.", |
| 694 |
"id": "ReportMetadata", |
| 695 |
"properties": { |
| 696 |
"googleCloudStoragePath": { |
| 697 |
"description": "Output only. The location of the generated report file in Google Cloud Storage. This field will be absent if status.state is not `DONE`.", |
| 698 |
"readOnly": true, |
| 699 |
"type": "string" |
| 700 |
}, |
| 701 |
"reportDataEndDate": { |
| 702 |
"$ref": "Date", |
| 703 |
"description": "The end date of the report data date range." |
| 704 |
}, |
| 705 |
"reportDataStartDate": { |
| 706 |
"$ref": "Date", |
| 707 |
"description": "The start date of the report data date range." |
| 708 |
}, |
| 709 |
"status": { |
| 710 |
"$ref": "ReportStatus", |
| 711 |
"description": "The status of the report." |
| 712 |
} |
| 713 |
}, |
| 714 |
"type": "object" |
| 715 |
}, |
| 716 |
"ReportStatus": { |
| 717 |
"description": "The status of a report.", |
| 718 |
"id": "ReportStatus", |
| 719 |
"properties": { |
| 720 |
"finishTime": { |
| 721 |
"description": "Output only. The timestamp of when report generation finished successfully or in failure. This field will not be set unless state is `DONE` or `FAILED`.", |
| 722 |
"format": "google-datetime", |
| 723 |
"readOnly": true, |
| 724 |
"type": "string" |
| 725 |
}, |
| 726 |
"format": { |
| 727 |
"description": "The format of the generated report file.", |
| 728 |
"enum": [ |
| 729 |
"FORMAT_UNSPECIFIED", |
| 730 |
"CSV", |
| 731 |
"XLSX" |
| 732 |
], |
| 733 |
"enumDescriptions": [ |
| 734 |
"Default value when format is not specified or is unknown in this version.", |
| 735 |
"CSV.", |
| 736 |
"Excel." |
| 737 |
], |
| 738 |
"type": "string" |
| 739 |
}, |
| 740 |
"state": { |
| 741 |
"description": "Output only. The state of the report generation.", |
| 742 |
"enum": [ |
| 743 |
"STATE_UNSPECIFIED", |
| 744 |
"QUEUED", |
| 745 |
"RUNNING", |
| 746 |
"DONE", |
| 747 |
"FAILED" |
| 748 |
], |
| 749 |
"enumDescriptions": [ |
| 750 |
"Default value when state is not specified or is unknown in this version.", |
| 751 |
"The report is queued to run.", |
| 752 |
"The report is currently running.", |
| 753 |
"The report has finished running successfully.", |
| 754 |
"The report has finished running in failure." |
| 755 |
], |
| 756 |
"readOnly": true, |
| 757 |
"type": "string" |
| 758 |
} |
| 759 |
}, |
| 760 |
"type": "object" |
| 761 |
}, |
| 762 |
"RunQueryRequest": { |
| 763 |
"description": "Details specifying how to run a query.", |
| 764 |
"id": "RunQueryRequest", |
| 765 |
"properties": { |
| 766 |
"dataRange": { |
| 767 |
"$ref": "DataRange", |
| 768 |
"description": "The date range used by the query to generate the report. If unspecified, the query's original data_range is used." |
| 769 |
} |
| 770 |
}, |
| 771 |
"type": "object" |
| 772 |
} |
| 773 |
}, |
| 774 |
"servicePath": "v2/", |
| 775 |
"title": "DoubleClick Bid Manager API", |
| 776 |
"version": "v2" |
| 777 |
} |