Join us live on
Discord on the Google Advertising and Measurement Community server and on
YouTube on January 29th at 10:00 AM EST! We will discuss the new features added in v23 of the Google Ads API.
DistanceBucket
Stay organized with collections
Save and categorize content based on your preferences.
The distance bucket for a user's distance from an advertiser's location extension.
codeProto definition
| Enums |
BEYOND_40MILES
|
User was beyond 40 miles of the location. |
BEYOND_65KM
|
User was beyond 65KM of the location. |
UNKNOWN
|
Used for return value only. Represents value unknown in this version. |
UNSPECIFIED
|
Not specified. |
WITHIN_0_7MILES
|
User was within 0.7 miles of the location. |
WITHIN_10KM
|
User was within 10KM of the location. |
WITHIN_10MILES
|
User was within 10 miles of the location. |
WITHIN_15KM
|
User was within 15KM of the location. |
WITHIN_15MILES
|
User was within 15 miles of the location. |
WITHIN_1KM
|
User was within 1KM of the location. |
WITHIN_1MILE
|
User was within 1 mile of the location. |
WITHIN_20KM
|
User was within 20KM of the location. |
WITHIN_20MILES
|
User was within 20 miles of the location. |
WITHIN_25KM
|
User was within 25KM of the location. |
WITHIN_25MILES
|
User was within 25 miles of the location. |
WITHIN_30KM
|
User was within 30KM of the location. |
WITHIN_30MILES
|
User was within 30 miles of the location. |
WITHIN_35KM
|
User was within 35KM of the location. |
WITHIN_35MILES
|
User was within 35 miles of the location. |
WITHIN_40KM
|
User was within 40KM of the location. |
WITHIN_40MILES
|
User was within 40 miles of the location. |
WITHIN_45KM
|
User was within 45KM of the location. |
WITHIN_50KM
|
User was within 50KM of the location. |
WITHIN_55KM
|
User was within 55KM of the location. |
WITHIN_5KM
|
User was within 5KM of the location. |
WITHIN_5MILES
|
User was within 5 miles of the location. |
WITHIN_60KM
|
User was within 60KM of the location. |
WITHIN_65KM
|
User was within 65KM of the location. |
WITHIN_700M
|
User was within 700m of the location. |
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 2026-01-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-22 UTC."],[],[]]