REST Resource: postalCodes

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

  • A PostalCode is represented in JSON format with fields such as id, countryCode, countryDartId, code, and kind.

  • The PostalCode resource offers get and list methods to retrieve specific or multiple 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.