Method: metros.list

  • This document details how to retrieve a list of metros using a GET request to a specific URL.

  • The request requires a profileId as a path parameter.

  • The request body must be empty, and the response body contains a list of metro objects.

  • Successful requests require the https://www.googleapis.com/auth/dfatrafficking OAuth scope for authorization.

Retrieves a list of metros.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v4/userprofiles/{profileId}/metros

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

Request body

The request body must be empty.

Response body

Metro metros.list Response

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "metros": [
    {
      object (Metro)
    }
  ]
}
Fields
kind

string

Identifies what kind of resource this is. Value: the fixed string

"dfareporting#metrosListResponse"

.

metros[]

object (Metro)

Metro collection.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/dfatrafficking