{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/agencies-and-brands": {
"description": "View, create, edit, and delete data entities in your Agency account."
}
}
}
},
"basePath": "",
"baseUrl": "https://agenciesandbrands.googleapis.com/",
"batchPath": "batch",
"canonicalName": "AgenciesAndBrands",
"description": "Agencies and brands API is an externally available HTTP API for ad agencies and brands to programmatically manage their deals and spending with Google Ad Manager publishers.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/authorized-buyers/agencies-and-brands/get-started/start",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "agenciesandbrands:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://agenciesandbrands.mtls.googleapis.com/",
"name": "agenciesandbrands",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"agencies": {
"resources": {
"reports": {
"methods": {
"create": {
"description": "Creates a `Report` object.",
"flatPath": "v1/agencies/{agenciesId}/reports",
"httpMethod": "POST",
"id": "agenciesandbrands.agencies.reports.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The parent resource where this `Report` will be created. Format: `agencies/{account_id}`",
"location": "path",
"pattern": "^agencies/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/reports",
"request": {
"$ref": "Report"
},
"response": {
"$ref": "Report"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
},
"delete": {
"description": "Deletes a `Report` object.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}",
"httpMethod": "DELETE",
"id": "agenciesandbrands.agencies.reports.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Resource name of the report to delete. Format: `agencies/{account_id}/reports/{report_id}`",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
},
"get": {
"description": "Retrieves a `Report` object.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}",
"httpMethod": "GET",
"id": "agenciesandbrands.agencies.reports.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the report. Format: `agencies/{account_id}/reports/{report_id}`",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Report"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
},
"list": {
"description": "Lists `Report` objects.",
"flatPath": "v1/agencies/{agenciesId}/reports",
"httpMethod": "GET",
"id": "agenciesandbrands.agencies.reports.list",
"parameterOrder": [
"parent"
],
"parameters": {
"filter": {
"description": "Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of `Reports` to return. The service may return fewer than this value. If unspecified, at most 50 `Reports` will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `ListReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReports` must match the call that provided the page token.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The parent, which owns this collection of reports. Format: `agencies/{account_id}`",
"location": "path",
"pattern": "^agencies/[^/]+$",
"required": true,
"type": "string"
},
"skip": {
"description": "Optional. Number of individual resources to skip while paginating.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1/{+parent}/reports",
"response": {
"$ref": "ListReportsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
},
"patch": {
"description": "Updates a `Report` object.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}",
"httpMethod": "PATCH",
"id": "agenciesandbrands.agencies.reports.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Identifier. The resource name of the report. Report resource name have the form: `agencies/{account_id}/reports/{report_id}`",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Optional. The list of fields to update.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}",
"request": {
"$ref": "Report"
},
"response": {
"$ref": "Report"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
},
"run": {
"description": "Initiates the execution of an existing report asynchronously. Users can get the report by polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, with an exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` in its response field containing a report_result that can be passed to the `FetchReportResultRows` method to retrieve the report data.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}:run",
"httpMethod": "POST",
"id": "agenciesandbrands.agencies.reports.run",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The report to run. Format: `agencies/{account_id}/reports/{report_id}`",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:run",
"request": {
"$ref": "RunReportRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
}
},
"resources": {
"operations": {
"methods": {
"get": {
"description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}/operations/{operationsId}",
"httpMethod": "GET",
"id": "agenciesandbrands.agencies.reports.operations.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The name of the operation resource.",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+/operations/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}",
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
}
}
},
"results": {
"methods": {
"fetchRows": {
"description": "Returns the result rows from a completed report. The caller must have previously called `RunReport` and waited for that operation to complete. The rows will be returned according to the order specified by the `sorts` member of the report definition.",
"flatPath": "v1/agencies/{agenciesId}/reports/{reportsId}/results/{resultsId}:fetchRows",
"httpMethod": "GET",
"id": "agenciesandbrands.agencies.reports.results.fetchRows",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "The report result being fetched. Format: `agencies/{account_id}/reports/{report_id}/results/{report_result_id}`",
"location": "path",
"pattern": "^agencies/[^/]+/reports/[^/]+/results/[^/]+$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "Optional. The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 1,000 rows will be returned. The maximum value is 10,000; values greater than 10,000 will be reduced to 10,000.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. A page token, received from a previous `FetchReportResultRows` call. Provide this to retrieve the second and subsequent batches of rows.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}:fetchRows",
"response": {
"$ref": "FetchReportResultRowsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/agencies-and-brands"
]
}
}
}
}
}
}
}
},
"revision": "20260901",
"rootUrl": "https://agenciesandbrands.googleapis.com/",
"schemas": {
"Date": {
"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",
"id": "Date",
"properties": {
"day": {
"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.",
"format": "int32",
"type": "integer"
},
"month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"type": "integer"
},
"year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"DateRange": {
"description": "A date range for a report.",
"id": "DateRange",
"properties": {
"fixed": {
"$ref": "FixedDateRange",
"description": "A fixed date range."
},
"relative": {
"description": "A relative date range.",
"enum": [
"RELATIVE_DATE_RANGE_UNSPECIFIED",
"TODAY",
"YESTERDAY",
"THIS_WEEK_TO_DATE",
"THIS_WEEK_TO_YESTERDAY",
"THIS_MONTH_TO_DATE",
"THIS_MONTH_TO_YESTERDAY",
"THIS_QUARTER_TO_DATE",
"THIS_QUARTER_TO_YESTERDAY",
"THIS_YEAR_TO_DATE",
"THIS_YEAR_TO_YESTERDAY",
"LAST_WEEK",
"LAST_WEEK_STARTING_SUNDAY",
"LAST_MONTH",
"LAST_QUARTER",
"LAST_YEAR",
"LAST_7_DAYS",
"LAST_30_DAYS",
"LAST_60_DAYS",
"LAST_90_DAYS",
"LAST_93_DAYS",
"LAST_180_DAYS",
"LAST_360_DAYS",
"LAST_365_DAYS",
"LAST_3_MONTHS",
"LAST_6_MONTHS",
"LAST_12_MONTHS",
"ALL_AVAILABLE"
],
"enumDescriptions": [
"Default value. This value is unused.",
"The date the report is run.",
"The date a day before the date that the report is run.",
"From the beginning of the calendar week in which the up to and including the day the report is run.",
"From the beginning of the calendar week in which the report is run, up to and including the day before the report is run.",
"From the beginning of the calendar month in which the report is run, to up to and including the day the report is run.",
"From the beginning of the calendar month in which the report is run, up to and including the day before the report is run.",
"From the beginning of the calendar quarter in which the report is run, up to and including the day the report is run.",
"From the beginning of the calendar quarter in which the report is run, up to and including the day before the report is run.",
"From the beginning of the calendar year in which the report is run, to up to and including the day the report is run.",
"From the beginning of the calendar year in which the report is run, to up to and including the day before the report is run.",
"The entire previous calendar week, Monday to Sunday (inclusive), preceding the calendar week the report is run.",
"The entire previous calendar week, Sunday to Saturday (inclusive), preceding the calendar week the report is run.",
"The entire previous calendar month preceding the calendar month the report is run.",
"The entire previous calendar quarter preceding the calendar quarter the report is run.",
"The entire previous calendar year preceding the calendar year the report is run.",
"The 7 days preceding the day the report is run.",
"The 30 days preceding the day the report is run.",
"The 60 days preceding the day the report is run.",
"The 90 days preceding the day the report is run.",
"The 93 days preceding the day the report is run.",
"The 180 days preceding the day the report is run.",
"The 360 days preceding the day the report is run.",
"The 365 days preceding the day the report is run.",
"The entire previous 3 calendar months preceding the calendar month the report is run.",
"The entire previous 6 calendar months preceding the calendar month the report is run.",
"The entire previous 12 calendar months preceding the calendar month the report is run.",
"From 3 years before the report is run, to the day before the report is run, inclusive."
],
"type": "string"
}
},
"type": "object"
},
"DoubleList": {
"description": "A list of double values.",
"id": "DoubleList",
"properties": {
"values": {
"description": "The values",
"items": {
"format": "double",
"type": "number"
},
"type": "array"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
"properties": {},
"type": "object"
},
"FetchReportResultRowsResponse": {
"description": "The response message for the fetch report result rows endpoint.",
"id": "FetchReportResultRowsResponse",
"properties": {
"dateRanges": {
"description": "The computed fixed date ranges this report includes. Only returned with the first page of results (when page_token is not included in the request).",
"items": {
"$ref": "FixedDateRange"
},
"type": "array"
},
"nextPageToken": {
"description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
"type": "string"
},
"rows": {
"description": "Up to `page_size` rows of report data.",
"items": {
"$ref": "Row"
},
"type": "array"
},
"runTime": {
"description": "The time at which the report was scheduled to run. For non-scheduled reports, this is the time at which the report was requested to be run.",
"format": "google-datetime",
"type": "string"
},
"totalRowCount": {
"description": "The total number of rows available from this report. Useful for pagination. Only returned with the first page of results (when page_token is not included in the request).",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"Field": {
"description": "A dimension or a metric in a report.",
"id": "Field",
"properties": {
"dimension": {
"description": "The dimension this field represents.",
"enum": [
"DIMENSION_UNSPECIFIED",
"ADVERTISER_DOMAIN",
"AGENCY_ACCOUNT_ID",
"AGENCY_ACCOUNT_NAME",
"BID_FILTERING_REASON",
"BID_FILTERING_REASON_NAME",
"BUYER_SDK",
"CAMPAIGN_ID",
"CAMPAIGN_NAME",
"COUNTRY",
"CREATIVE_FORMAT",
"CREATIVE_ID",
"CREATIVE_POLICIES",
"CREATIVE_POLICIES_NAME",
"CREATIVE_SIZE",
"CURATION_DATA_SEGMENT_ID",
"CURATION_PARTNER_NAME",
"CURATOR_FEE_TYPE",
"DATE",
"DEAL_ID",
"DEAL_NAME",
"DETECTED_ADVERTISER_NAME",
"DSP_NAME",
"DSP_SEAT_ID",
"ENVIRONMENT",
"ENVIRONMENT_NAME",
"GMA_SDK",
"HOUR",
"MOBILE_APP_ID",
"MOBILE_APP_NAME",
"MOBILE_OS",
"MONTH",
"PACKAGE_FEE_VISIBILITY",
"PLACEMENT_ID",
"PLATFORM",
"PUBLISHER_DOMAIN",
"PUBLISHER_ID",
"PUBLISHER_NAME",
"PUBLISHER_PROTECTIONS",
"PUBLISHER_PROTECTIONS_NAME",
"SELLER_AUTHORIZATION",
"SELLER_AUTHORIZATION_NAME",
"SUPPLY_PATH_TYPE",
"SUPPLY_PATH_TYPE_NAME",
"TRANSACTION_TYPE",
"VAST_ERROR_CODE",
"WEEK"
],
"enumDescriptions": [
"Default value. This value is unused.",
"The domain of the advertiser.",
"Agency account ID.",
"Agency account name.",
"Reason that a Real-time Bidding bid was filtered from the auction.",
"The short description of the reason that a Real-time Bidding bid was filtered from the auction.",
"A boolean indicating whether the impression was rendered by a buyer SDK. If set to true, the impression was rendered by a buyer SDK.",
"The ID of the agency campaign.",
"The display name of the agency campaign.",
"Display name of a country.",
"Creative format, \"Display\" vs. \"Video\".",
"Creative ID.",
"Applied creative policies.",
"The localized display name of applied creative policies.",
"Creative size.",
"The ID of the data segment created by a curator.",
"The display name of the curation partner.",
"The type of curation service (e.g. packaging or data segment).",
"Date.",
"Deal ID.",
"Deal name.",
"Display name of the detected advertiser.",
"Display name of the DSP.",
"DSP Seat ID.",
"The user device and container environment where the impression originates. Supported values are \"app\" and \"web\".",
"The localized display name of the user device and container environment where the impression originates. Supported values are \"app\" and \"web\".",
"A boolean indicating whether the impression was rendered by the Google Mobile Ads SDK. If set to true, the impression was rendered by the Google Mobile Ads SDK.",
"Hour.",
"Mobile App ID.",
"Mobile App Name.",
"Mobile operating system.",
"Month.",
"The visibility of the package fee (e.g. disclosed or non-disclosed).",
"Placement ID.",
"Platform, e.g. \"desktop\" vs. \"mobile\".",
"Publisher domain.",
"Publisher identifier.",
"Publisher name.",
"Whether publisher protections are applied.",
"The localized display name indicating whether publisher protections are applied.",
"Seller authorization.",
"The localized display name of seller authorization.",
"The supply path type of the deal for Agency Direct.",
"The localized display name of the supply path type of the deal for Agency Direct.",
"The transaction type of the deal.",
"VAST error code.",
"Week."
],
"type": "string"
},
"metric": {
"description": "The metric this field represents.",
"enum": [
"METRIC_UNSPECIFIED",
"ACTIVE_VIEW_MEASURABILITY_RATE",
"ACTIVE_VIEW_MEASURABLE",
"ACTIVE_VIEW_VIEWABILITY_RATE",
"ACTIVE_VIEW_VIEWABLE",
"AUCTIONS_WON",
"BIDS",
"BIDS_IN_AUCTION",
"CLICKS",
"CPC",
"CPM",
"CURATION_PARTNER_FEE",
"DISCOUNT_AMOUNT",
"EFFECTIVE_DISCOUNT_RATE",
"ENGAGED_VIEWS",
"IMPRESSIONS",
"PRE_DISCOUNT_SPEND",
"PRE_DISCOUNT_SPEND_WITHOUT_CURATION_PARTNER_FEE",
"REACHED_QUERIES",
"SPEND",
"SPEND_WITHOUT_CURATION_PARTNER_FEE",
"VAST_ERROR_COUNT",
"VIDEO_COMPLETE",
"VIDEO_FIRST_QUARTILE",
"VIDEO_MIDPOINT",
"VIDEO_START",
"VIDEO_THIRD_QUARTILE",
"VIDEO_VTR"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Active View measurability rate.",
"Active View measurable.",
"Active view viewability rate.",
"Active View viewable imps.",
"Auctions won.",
"Bids.",
"Bids in auction.",
"Clicks.",
"CPC.",
"CPM.",
"Curator fee. This will be redacted to 0.00 if the package's visibility is set to non-disclosed. Use the PACKAGE_FEE_VISIBILITY dimension to check if the package's fee is disclosed.",
"Discount amount in media planner currency.",
"Discount rate in media planner currency.",
"Engaged views.",
"Impressions.",
"Discount spend in media planner currency.",
"Gross media cost in media planner currency.",
"Queries that are reached in the mediation chain.",
"Spend in reporting currency specified in the request. Defaults to USD.",
"Net media cost in media planner currency.",
"Number of video impressions failed to render due to VAST errors.",
"Number of video impressions played to completion.",
"Number of video impressions played to the first quartile.",
"Number of video impressions played to the midpoint.",
"Number of video impressions played.",
"Number of video impressions played to the third quartile.",
"The rate in which video impressions were watched to completion."
],
"type": "string"
}
},
"type": "object"
},
"FieldFilter": {
"description": "A filter on a specific field.",
"id": "FieldFilter",
"properties": {
"field": {
"$ref": "Field",
"description": "Required. The field to filter on."
},
"operation": {
"description": "Required. The operation of this filter.",
"enum": [
"IN",
"NOT_IN",
"CONTAINS",
"NOT_CONTAINS",
"LESS_THAN",
"LESS_THAN_EQUALS",
"GREATER_THAN",
"GREATER_THAN_EQUALS",
"BETWEEN",
"MATCHES",
"NOT_MATCHES"
],
"enumDescriptions": [
"For scalar operands, checks if the operand is in the set of provided filter values. For list operands, checks if any element in the operand is in the set of provided filter values. Default value.",
"For scalar operands, checks that the operand is not in the set of provided filter values. For list operands, checks that none of the elements in the operand is in the set of provided filter values.",
"For scalar string operands, checks if the operand contains any of the provided filter substrings. For string list operands, checks if any string in the operand contains any of the provided filter substrings.",
"For scalar string operands, checks that the operand contains none of the provided filter substrings. For string list operands, checks that none of the strings in the operand contain none of the provided filter substrings.",
"Operand is less than the provided filter value.",
"Operand is less than or equal to provided filter value.",
"Operand is greater than provided filter value.",
"Operand is greater than or equal to provided filter value.",
"Operand is between provided filter values.",
"Operand matches against a regular expression or set of regular expressions (one must match).",
"Operand negative matches against a regular expression or set of regular expressions (none must match)."
],
"type": "string"
},
"values": {
"description": "Required. Values to filter to.",
"items": {
"$ref": "ReportValue"
},
"type": "array"
}
},
"type": "object"
},
"Filter": {
"description": "A filter over one or more fields.",
"id": "Filter",
"properties": {
"andFilter": {
"$ref": "FilterList",
"description": "A list of filters whose results are AND-ed."
},
"fieldFilter": {
"$ref": "FieldFilter",
"description": "A filter on a single field."
},
"notFilter": {
"$ref": "Filter",
"description": "A filter whose result is negated."
},
"orFilter": {
"$ref": "FilterList",
"description": "A list of filters whose results are OR-ed."
}
},
"type": "object"
},
"FilterList": {
"description": "A list of filters.",
"id": "FilterList",
"properties": {
"filters": {
"description": "Required. A list of filters.",
"items": {
"$ref": "Filter"
},
"type": "array"
}
},
"type": "object"
},
"FixedDateRange": {
"description": "A date range between two fixed dates (inclusive of end date).",
"id": "FixedDateRange",
"properties": {
"endDate": {
"$ref": "Date",
"description": "Required. The end date (inclusive) of this date range."
},
"startDate": {
"$ref": "Date",
"description": "Required. The start date of this date range."
}
},
"type": "object"
},
"IntList": {
"description": "A list of integer values.",
"id": "IntList",
"properties": {
"values": {
"description": "The values",
"items": {
"format": "int64",
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"ListReportsResponse": {
"description": "Response object for `ListReportsResponse` containing matching `Report` objects.",
"id": "ListReportsResponse",
"properties": {
"nextPageToken": {
"description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
"type": "string"
},
"reports": {
"description": "The `Report` objects from the specified network.",
"items": {
"$ref": "Report"
},
"type": "array"
},
"totalSize": {
"description": "Total number of `Report` objects. If a filter was included in the request, this reflects the total number after the filtering is applied. `total_size` won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad-manager/api/beta/field-masks",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"MetricValueGroup": {
"description": "Contains all metric values requested for a single date range and set of column dimension values (returned in the columns field of the response). The order of the metrics in each field corresponds to the order of the metrics specified in the request.",
"id": "MetricValueGroup",
"properties": {
"primaryValues": {
"description": "Data for the PRIMARY MetricValueType.",
"items": {
"$ref": "ReportValue"
},
"type": "array"
}
},
"type": "object"
},
"Operation": {
"description": "This resource represents a long-running operation that is the result of a network API call.",
"id": "Operation",
"properties": {
"done": {
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
"type": "boolean"
},
"error": {
"$ref": "Status",
"description": "The error result of the operation in case of failure or cancellation."
},
"metadata": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
"type": "object"
},
"name": {
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
"type": "string"
},
"response": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
"type": "object"
}
},
"type": "object"
},
"Report": {
"description": "The `Report` resource.",
"id": "Report",
"properties": {
"createTime": {
"description": "Output only. The instant this report was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"displayName": {
"description": "Optional. Display name for the report.",
"type": "string"
},
"locale": {
"description": "Output only. The locale of this report. Locale is set from the user's locale at the time of the request. Locale can't be modified.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Identifier. The resource name of the report. Report resource name have the form: `agencies/{account_id}/reports/{report_id}`",
"type": "string"
},
"reportDefinition": {
"$ref": "ReportDefinition",
"description": "Required. The report definition of the report."
},
"reportId": {
"description": "Output only. Report ID.",
"format": "int64",
"readOnly": true,
"type": "string"
},
"updateTime": {
"description": "Output only. The instant this report was last modified.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"ReportDefinition": {
"description": "The definition of how a report should be run.",
"id": "ReportDefinition",
"properties": {
"currencyCode": {
"description": "Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not specified.",
"type": "string"
},
"dateRange": {
"$ref": "DateRange",
"description": "Required. The primary date range of this report."
},
"dimensions": {
"description": "Required. The list of dimensions to report on. If empty, the report will have no dimensions, and any metrics will be totals.",
"items": {
"enum": [
"DIMENSION_UNSPECIFIED",
"ADVERTISER_DOMAIN",
"AGENCY_ACCOUNT_ID",
"AGENCY_ACCOUNT_NAME",
"BID_FILTERING_REASON",
"BID_FILTERING_REASON_NAME",
"BUYER_SDK",
"CAMPAIGN_ID",
"CAMPAIGN_NAME",
"COUNTRY",
"CREATIVE_FORMAT",
"CREATIVE_ID",
"CREATIVE_POLICIES",
"CREATIVE_POLICIES_NAME",
"CREATIVE_SIZE",
"CURATION_DATA_SEGMENT_ID",
"CURATION_PARTNER_NAME",
"CURATOR_FEE_TYPE",
"DATE",
"DEAL_ID",
"DEAL_NAME",
"DETECTED_ADVERTISER_NAME",
"DSP_NAME",
"DSP_SEAT_ID",
"ENVIRONMENT",
"ENVIRONMENT_NAME",
"GMA_SDK",
"HOUR",
"MOBILE_APP_ID",
"MOBILE_APP_NAME",
"MOBILE_OS",
"MONTH",
"PACKAGE_FEE_VISIBILITY",
"PLACEMENT_ID",
"PLATFORM",
"PUBLISHER_DOMAIN",
"PUBLISHER_ID",
"PUBLISHER_NAME",
"PUBLISHER_PROTECTIONS",
"PUBLISHER_PROTECTIONS_NAME",
"SELLER_AUTHORIZATION",
"SELLER_AUTHORIZATION_NAME",
"SUPPLY_PATH_TYPE",
"SUPPLY_PATH_TYPE_NAME",
"TRANSACTION_TYPE",
"VAST_ERROR_CODE",
"WEEK"
],
"enumDescriptions": [
"Default value. This value is unused.",
"The domain of the advertiser.",
"Agency account ID.",
"Agency account name.",
"Reason that a Real-time Bidding bid was filtered from the auction.",
"The short description of the reason that a Real-time Bidding bid was filtered from the auction.",
"A boolean indicating whether the impression was rendered by a buyer SDK. If set to true, the impression was rendered by a buyer SDK.",
"The ID of the agency campaign.",
"The display name of the agency campaign.",
"Display name of a country.",
"Creative format, \"Display\" vs. \"Video\".",
"Creative ID.",
"Applied creative policies.",
"The localized display name of applied creative policies.",
"Creative size.",
"The ID of the data segment created by a curator.",
"The display name of the curation partner.",
"The type of curation service (e.g. packaging or data segment).",
"Date.",
"Deal ID.",
"Deal name.",
"Display name of the detected advertiser.",
"Display name of the DSP.",
"DSP Seat ID.",
"The user device and container environment where the impression originates. Supported values are \"app\" and \"web\".",
"The localized display name of the user device and container environment where the impression originates. Supported values are \"app\" and \"web\".",
"A boolean indicating whether the impression was rendered by the Google Mobile Ads SDK. If set to true, the impression was rendered by the Google Mobile Ads SDK.",
"Hour.",
"Mobile App ID.",
"Mobile App Name.",
"Mobile operating system.",
"Month.",
"The visibility of the package fee (e.g. disclosed or non-disclosed).",
"Placement ID.",
"Platform, e.g. \"desktop\" vs. \"mobile\".",
"Publisher domain.",
"Publisher identifier.",
"Publisher name.",
"Whether publisher protections are applied.",
"The localized display name indicating whether publisher protections are applied.",
"Seller authorization.",
"The localized display name of seller authorization.",
"The supply path type of the deal for Agency Direct.",
"The localized display name of the supply path type of the deal for Agency Direct.",
"The transaction type of the deal.",
"VAST error code.",
"Week."
],
"type": "string"
},
"type": "array"
},
"filters": {
"description": "Optional. The filters for this report.",
"items": {
"$ref": "Filter"
},
"type": "array"
},
"metrics": {
"description": "Required. The list of metrics to report on. If empty, the report will have no metrics.",
"items": {
"enum": [
"METRIC_UNSPECIFIED",
"ACTIVE_VIEW_MEASURABILITY_RATE",
"ACTIVE_VIEW_MEASURABLE",
"ACTIVE_VIEW_VIEWABILITY_RATE",
"ACTIVE_VIEW_VIEWABLE",
"AUCTIONS_WON",
"BIDS",
"BIDS_IN_AUCTION",
"CLICKS",
"CPC",
"CPM",
"CURATION_PARTNER_FEE",
"DISCOUNT_AMOUNT",
"EFFECTIVE_DISCOUNT_RATE",
"ENGAGED_VIEWS",
"IMPRESSIONS",
"PRE_DISCOUNT_SPEND",
"PRE_DISCOUNT_SPEND_WITHOUT_CURATION_PARTNER_FEE",
"REACHED_QUERIES",
"SPEND",
"SPEND_WITHOUT_CURATION_PARTNER_FEE",
"VAST_ERROR_COUNT",
"VIDEO_COMPLETE",
"VIDEO_FIRST_QUARTILE",
"VIDEO_MIDPOINT",
"VIDEO_START",
"VIDEO_THIRD_QUARTILE",
"VIDEO_VTR"
],
"enumDescriptions": [
"Default value. This value is unused.",
"Active View measurability rate.",
"Active View measurable.",
"Active view viewability rate.",
"Active View viewable imps.",
"Auctions won.",
"Bids.",
"Bids in auction.",
"Clicks.",
"CPC.",
"CPM.",
"Curator fee. This will be redacted to 0.00 if the package's visibility is set to non-disclosed. Use the PACKAGE_FEE_VISIBILITY dimension to check if the package's fee is disclosed.",
"Discount amount in media planner currency.",
"Discount rate in media planner currency.",
"Engaged views.",
"Impressions.",
"Discount spend in media planner currency.",
"Gross media cost in media planner currency.",
"Queries that are reached in the mediation chain.",
"Spend in reporting currency specified in the request. Defaults to USD.",
"Net media cost in media planner currency.",
"Number of video impressions failed to render due to VAST errors.",
"Number of video impressions played to completion.",
"Number of video impressions played to the first quartile.",
"Number of video impressions played to the midpoint.",
"Number of video impressions played.",
"Number of video impressions played to the third quartile.",
"The rate in which video impressions were watched to completion."
],
"type": "string"
},
"type": "array"
},
"sorts": {
"description": "Optional. Default sorts to apply to this report.",
"items": {
"$ref": "Sort"
},
"type": "array"
},
"timeZone": {
"description": "Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave empty for any other time zone source. Time zone in IANA format. For example, \"America/New_York\".",
"type": "string"
},
"timeZoneSource": {
"description": "Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time zone.",
"enum": [
"TIME_ZONE_SOURCE_UNSPECIFIED",
"AD_EXCHANGE",
"UTC",
"PROVIDED",
"AGENCY"
],
"enumDescriptions": [
"Unspecified default value.",
"Use the Pacific time zone(PT).",
"Use UTC time zone.",
"Use the time zone provided in the ReportDefinition.time_zone field. Reports may take longer to run since the dates are dynamically calculated at request time.",
"Use the time zone from the agency's account settings."
],
"type": "string"
}
},
"type": "object"
},
"ReportValue": {
"description": "Represents a single value in a report.",
"id": "ReportValue",
"properties": {
"boolValue": {
"description": "For boolean values.",
"type": "boolean"
},
"bytesValue": {
"description": "For bytes values.",
"format": "byte",
"type": "string"
},
"doubleListValue": {
"$ref": "DoubleList",
"description": "For lists of double values."
},
"doubleValue": {
"description": "For double values.",
"format": "double",
"type": "number"
},
"intListValue": {
"$ref": "IntList",
"description": "For lists of integer values."
},
"intValue": {
"description": "For integer values.",
"format": "int64",
"type": "string"
},
"stringListValue": {
"$ref": "StringList",
"description": "For lists of string values."
},
"stringValue": {
"description": "For string values.",
"type": "string"
}
},
"type": "object"
},
"Row": {
"description": "A row of report data.",
"id": "Row",
"properties": {
"dimensionValues": {
"description": "The order of the dimension values is the same as the order of the dimensions specified in the request.",
"items": {
"$ref": "ReportValue"
},
"type": "array"
},
"metricValueGroups": {
"description": " The length of the metric_value_groups field will be equal to the length of the date_ranges field in the fetch response. The metric_value_groups field is ordered such that each index corresponds to the date_range at the same index. For example, given date_ranges [x, y], metric_value_groups will have a length of two. The first entry in metric_value_groups represents the metrics for date x and the second entry in metric_value_groups represents the metrics for date y.",
"items": {
"$ref": "MetricValueGroup"
},
"type": "array"
}
},
"type": "object"
},
"RunReportMetadata": {
"description": "`RunReport` operation metadata.",
"id": "RunReportMetadata",
"properties": {
"percentComplete": {
"description": "An estimate of how close this report is to being completed. Will always be 100 for failed and completed reports.",
"format": "int32",
"type": "integer"
},
"report": {
"description": "The result's parent report.",
"type": "string"
}
},
"type": "object"
},
"RunReportRequest": {
"description": "Request message for a running a report.",
"id": "RunReportRequest",
"properties": {},
"type": "object"
},
"RunReportResponse": {
"description": "Response message for a completed `RunReport` operation.",
"id": "RunReportResponse",
"properties": {
"reportResult": {
"description": "The unique name of the generated result. Use with `FetchReportResultRows` to retrieve data.",
"type": "string"
}
},
"type": "object"
},
"Sort": {
"description": "Represents a sorting in a report.",
"id": "Sort",
"properties": {
"descending": {
"description": "Optional. The sort order. If true the sort will be descending.",
"type": "boolean"
},
"field": {
"$ref": "Field",
"description": "Required. A field (dimension or metric) to sort by."
}
},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"type": "object"
},
"StringList": {
"description": "A list of string values.",
"id": "StringList",
"properties": {
"values": {
"description": "The values",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Agencies and Brands API",
"version": "v1",
"version_module": true
}