REST Resource: postalCodes
Stay organized with collections
Save and categorize content based on your preferences.
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 |
|
Gets one postal code by ID. |
|
Retrieves a list of postal codes. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePostalCode\u003c/code\u003e resource provides information about postal codes for ad targeting.\u003c/p\u003e\n"],["\u003cp\u003eIt includes an ID, country code, country DART ID, postal code itself, and a resource kind identifier.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve individual postal codes using the \u003ccode\u003eget\u003c/code\u003e method or a list of postal codes using the \u003ccode\u003elist\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003ePostal code information is represented in JSON format with specific fields for each attribute.\u003c/p\u003e\n"]]],[],null,["# REST Resource: postalCodes\n\n- [Resource: PostalCode](#PostalCode)\n - [JSON representation](#PostalCode.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: PostalCode\n--------------------\n\nContains information about a postal code that can be targeted by ads.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"countryCode\": string, \"countryDartId\": string, \"code\": string, \"kind\": string } ``` |\n\n| Fields ||\n|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` ID of this postal code. |\n| `country``Code` | `string` Country code of the country to which this postal code belongs. |\n| `country``Dart``Id` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` DART ID of the country to which this postal code belongs. |\n| `code` | `string` Postal code. This is equivalent to the `id` field. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"dfareporting#postalCode\"` . |\n\n| Methods ------- ||\n|---------------------------------------------------------------|-----------------------------------|\n| ### [get](/doubleclick-advertisers/rest/v4/postalCodes/get) | Gets one postal code by ID. |\n| ### [list](/doubleclick-advertisers/rest/v4/postalCodes/list) | Retrieves a list of postal codes. |"]]