REST Resource: postalCodes

  • The PostalCode resource provides information about postal codes for ad targeting.

  • It includes an ID, country code, country DART ID, postal code itself, and a resource kind identifier.

  • You can retrieve individual postal codes using the get method or a list of postal codes using the list method.

  • Postal code information is represented in JSON format with specific fields for each attribute.

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.