REST Resource: postalCodes

  • The PostalCode resource contains information about a postal code that can be targeted by ads.

  • The JSON representation for a PostalCode includes fields such as id, countryCode, countryDartId, code, and kind.

  • The available methods for the PostalCode resource are get to retrieve a single postal code by ID and list to retrieve a list of postal codes.

Resource: PostalCode

Contains information about a postal code that can be targeted by ads.

JSON representation
{
  "id": string,
  "countryCode": string,
  "countryDartId": string,
  "code": string,
  "kind": string
}
Fields
id

string

ID of this postal code.

countryCode

string

Country code of the country to which this postal code belongs.

countryDartId

string (int64 format)

DART ID of the country to which this postal code belongs.

code

string

Postal code. This is equivalent to the

id

field.

kind

string

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

"dfareporting#postalCode"

.

Methods

get

Gets one postal code by ID.

list

Retrieves a list of postal codes.