鄰近條件。地理點和半徑會決定涵蓋的地理區域。地址是對地理區域說明而不會影響廣告放送的地理區域。
建立鄰近區域的方法有兩種。首先,設定地址和半徑。系統會自動計算地理點。第二,設定地理點和半徑。地址是系統不會驗證的選用標籤。
JSON 表示法 |
---|
{ "geoPoint": { object ( |
欄位 | |
---|---|
geoPoint |
經緯度。 |
radiusUnits |
半徑的測量單位。預設值為 KILOMETERS。 |
address |
完整地址。 |
radius |
鄰近區域的半徑。 |
GeoPointInfo
鄰近條件的地理點。
JSON 表示法 |
---|
{ "longitudeInMicroDegrees": integer, "latitudeInMicroDegrees": integer } |
欄位 | |
---|---|
longitudeInMicroDegrees |
經度,以微度表示。 |
latitudeInMicroDegrees |
緯度,以微度表示。 |
ProximityRadiusUnits
鄰近區域的半徑距離單位 (例如 MILES)
列舉 | |
---|---|
UNSPECIFIED |
未指定。 |
UNKNOWN |
僅用於傳回值。代表這個版本未知的值。 |
MILES |
英里 |
KILOMETERS |
公里 |
AddressInfo
鄰近條件的地址。
JSON 表示法 |
---|
{ "postalCode": string, "provinceCode": string, "countryCode": string, "provinceName": string, "streetAddress": string, "streetAddress2": string, "cityName": string } |
欄位 | |
---|---|
postalCode |
郵遞區號。 |
provinceCode |
省或州代碼。 |
countryCode |
國家/地區代碼。 |
provinceName |
省或州名稱。 |
streetAddress |
街道地址第 1 行。 |
streetAddress2 |
街道地址第 2 行。這是寫入專用欄位。只是在 GeoPoint 沒有內容時,才會用來計算地址的經緯度。 |
cityName |
城市名稱。 |