AI-generated Key Takeaways
-
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 thelist
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 |
ID of this postal code. |
countryCode |
Country code of the country to which this postal code belongs. |
countryDartId |
DART ID of the country to which this postal code belongs. |
code |
Postal code. This is equivalent to the
field. |
kind |
Identifies what kind of resource this is. Value: the fixed string
. |
Methods |
|
---|---|
|
Gets one postal code by ID. |
|
Retrieves a list of postal codes. |