List the metadata for the metrics available to this AdSense account. Try it now.
Request
HTTP request
GET https://www.googleapis.com/adsense/v1.4/metadata/metrics
Parameters
Parameter name | Value | Description |
---|
Authorization
This request requires authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/adsense |
https://www.googleapis.com/auth/adsense.readonly |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "kind": "adsense#metadata", "items": [ { "kind": "adsense#reportingMetadataEntry", "id": string, "compatibleDimensions": [ string ], "compatibleMetrics": [ string ], "requiredDimensions": [ string ], "requiredMetrics": [ string ], "supportedProducts": [ string ] } ] }
Property name | Value | Description | Notes |
---|---|---|---|
kind |
string |
Kind of list this is, in this case adsense#metadata. | |
items[] |
list |
||
items[].kind |
string |
Kind of resource this is, in this case adsense#reportingMetadataEntry. | |
items[].id |
string |
Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric. | |
items[].compatibleDimensions[] |
list |
For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to. | |
items[].compatibleMetrics[] |
list |
The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with. | |
items[].requiredDimensions[] |
list |
The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. | |
items[].requiredMetrics[] |
list |
The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted. | |
items[].supportedProducts[] |
list |
The codes of the projects supported by the dimension or metric this reporting metadata entry describes. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.