A Proximity criterion. The geo point and radius determine what geographical area is included. The address is a description of the geo point that does not affect ad serving.
There are two ways to create a proximity. First, by setting an address and radius. The geo point will be automatically computed. Second, by setting a geo point and radius. The address is an optional label that won't be validated.
JSON representation |
---|
{ "geoPoint": { object ( |
Fields | |
---|---|
geo |
Latitude and longitude. |
radius |
The unit of measurement of the radius. Default is KILOMETERS. |
address |
Full address. |
radius |
The radius of the proximity. |
GeoPointInfo
Geo point for proximity criterion.
JSON representation |
---|
{ "longitudeInMicroDegrees": integer, "latitudeInMicroDegrees": integer } |
Fields | |
---|---|
longitude |
Micro degrees for the longitude. |
latitude |
Micro degrees for the latitude. |
ProximityRadiusUnits
The unit of radius distance in proximity (for example, MILES)
Enums | |
---|---|
UNSPECIFIED |
Not specified. |
UNKNOWN |
Used for return value only. Represents value unknown in this version. |
MILES |
Miles |
KILOMETERS |
Kilometers |
AddressInfo
Address for proximity criterion.
JSON representation |
---|
{ "postalCode": string, "provinceCode": string, "countryCode": string, "provinceName": string, "streetAddress": string, "streetAddress2": string, "cityName": string } |
Fields | |
---|---|
postal |
Postal code. |
province |
Province or state code. |
country |
Country code. |
province |
Province or state name. |
street |
Street address line 1. |
street |
Street address line 2. This field is write-only. It is only used for calculating the longitude and latitude of an address when geoPoint is empty. |
city |
Name of the city. |