Method: postalCodes.get

  • Retrieves a specific postal code using its ID and the associated user profile ID.

  • Utilizes a GET request with path parameters for profileId and code.

  • Requires an empty request body and returns a PostalCode object in the response.

  • Needs authorization with the dfatrafficking scope.

Gets one postal code by ID.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
profileId

string (int64 format)

User profile ID associated with this request.

code

string

Postal code ID.

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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