Method: sites.get

  • This page details how to get a single site by ID using an HTTP GET request.

  • The request URL includes path parameters for the user profileId and the site id.

  • The request body for this operation must be empty.

  • A successful response body contains an instance of a Site object.

  • Authorization for this request requires the https://www.googleapis.com/auth/dfatrafficking OAuth scope.

Gets one site by ID.

HTTP request

GET https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{profileId}/sites/{id}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

id

string (int64 format)

Site ID.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Site.

Authorization scopes

Requires the following OAuth scope:

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