1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- # [START instantiate]
1817import os
1918import time
2019
2120from googleapiclient .discovery import build
2221
2322client_service = build ("jobs" , "v3" )
2423parent = "projects/" + os .environ ["GOOGLE_CLOUD_PROJECT" ]
25- # [END instantiate]
2624
2725
28- # [START basic_location_search ]
26+ # [START job_basic_location_search ]
2927def basic_location_search (client_service , company_name , location , distance ):
3028 request_metadata = {
3129 "user_id" : "HashedUserId" ,
@@ -47,10 +45,10 @@ def basic_location_search(client_service, company_name, location, distance):
4745 print (response )
4846
4947
50- # [END basic_location_search ]
48+ # [END job_basic_location_search ]
5149
5250
53- # [START keyword_location_search ]
51+ # [START job_keyword_location_search ]
5452def keyword_location_search (client_service , company_name , location , distance , keyword ):
5553 request_metadata = {
5654 "user_id" : "HashedUserId" ,
@@ -72,10 +70,10 @@ def keyword_location_search(client_service, company_name, location, distance, ke
7270 print (response )
7371
7472
75- # [END keyword_location_search ]
73+ # [END job_keyword_location_search ]
7674
7775
78- # [START city_location_search ]
76+ # [START job_city_location_search ]
7977def city_location_search (client_service , company_name , location ):
8078 request_metadata = {
8179 "user_id" : "HashedUserId" ,
@@ -97,10 +95,10 @@ def city_location_search(client_service, company_name, location):
9795 print (response )
9896
9997
100- # [END city_location_search ]
98+ # [END job_city_location_search ]
10199
102100
103- # [START multi_locations_search ]
101+ # [START job_multi_locations_search ]
104102def multi_locations_search (
105103 client_service , company_name , location1 , distance1 , location2
106104):
@@ -125,10 +123,10 @@ def multi_locations_search(
125123 print (response )
126124
127125
128- # [END multi_locations_search ]
126+ # [END job_multi_locations_search ]
129127
130128
131- # [START broadening_location_search ]
129+ # [START job_broadening_location_search ]
132130def broadening_location_search (client_service , company_name , location ):
133131 request_metadata = {
134132 "user_id" : "HashedUserId" ,
@@ -151,7 +149,7 @@ def broadening_location_search(client_service, company_name, location):
151149 print (response )
152150
153151
154- # [END broadening_location_search ]
152+ # [END job_broadening_location_search ]
155153
156154
157155location = "Mountain View, CA"
0 commit comments