blob: 662f523dd334439ea09948a6ce5ce5468b05b29d [file] [log] [blame]
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="partners_v2.html">Google Partners API</a> . <a href="partners_v2.v2.html">v2</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#getPartnersstatus">getPartnersstatus(requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, requestMetadata_partnersSessionId=None)</a></code></p>
79<p class="firstline">Gets Partners Status of the logged in user's agency.</p>
80<p class="toc_element">
81 <code><a href="#updateCompanies">updateCompanies(body, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, updateMask=None, requestMetadata_partnersSessionId=None)</a></code></p>
82<p class="firstline">Update company.</p>
83<p class="toc_element">
84 <code><a href="#updateLeads">updateLeads(body, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, updateMask=None, requestMetadata_partnersSessionId=None)</a></code></p>
85<p class="firstline">Updates the specified lead.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="getPartnersstatus">getPartnersstatus(requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, requestMetadata_partnersSessionId=None)</code>
89 <pre>Gets Partners Status of the logged in user's agency.
90Should only be called if the logged in user is the admin of the agency.
91
92Args:
93 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
94 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
95An identifier has multiple letters created by a team which redirected the
96traffic to us.
97 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
98 x__xgafv: string, V1 error format.
99 Allowed values
100 1 - v1 error format
101 2 - v2 error format
102 requestMetadata_locale: string, Locale to use for the current request.
103 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
104 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
105An identifier has multiple letters created by a team which redirected the
106traffic to us.
107 requestMetadata_partnersSessionId: string, Google Partners session ID.
108
109Returns:
110 An object of the form:
111
112 { # Response message for
113 # GetPartnersStatus.
114 "responseMetadata": { # Common data that is in each API response. # Current response metadata.
115 "debugInfo": { # Debug information about this request. # Debug information about this request.
116 "serverTraceInfo": "A String", # Server-side debug stack trace.
117 "serviceUrl": "A String", # URL of the service that handled this request.
118 "serverInfo": "A String", # Info about the server that serviced this request.
119 },
120 },
121 }</pre>
122</div>
123
124<div class="method">
125 <code class="details" id="updateCompanies">updateCompanies(body, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, updateMask=None, requestMetadata_partnersSessionId=None)</code>
126 <pre>Update company.
127Should only be called within the context of an authorized logged in user.
128
129Args:
130 body: object, The request body. (required)
131 The object takes the form of:
132
133{ # A company resource in the Google Partners API. Once certified, it qualifies
134 # for being searched by advertisers.
135 "industries": [ # Industries the company can help with.
136 "A String",
137 ],
138 "originalMinMonthlyBudget": { # Represents an amount of money with its currency type. # The unconverted minimum monthly budget that the company accepts for partner
139 # business.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400140 "nanos": 42, # Number of nano (10^-9) units of the amount.
141 # The value must be between -999,999,999 and +999,999,999 inclusive.
142 # If `units` is positive, `nanos` must be positive or zero.
143 # If `units` is zero, `nanos` can be positive, zero, or negative.
144 # If `units` is negative, `nanos` must be negative or zero.
145 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700146 "units": "A String", # The whole units of the amount.
147 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400148 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
149 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700150 "publicProfile": { # Basic information from a public profile. # Basic information from the company's public profile.
151 "url": "A String", # The URL of the public profile.
152 "profileImage": "A String", # The URL to the main profile image of the public profile.
153 "displayImageUrl": "A String", # The URL to the main display image of the public profile. Being deprecated.
154 "displayName": "A String", # The display name of the public profile.
155 "id": "A String", # The ID which can be used to retrieve more details about the public profile.
156 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400157 "name": "A String", # The name of the company.
158 "badgeTier": "A String", # Partner badge tier
159 "localizedInfos": [ # The list of localized info for the company.
160 { # The localized company information.
161 "countryCodes": [ # List of country codes for the localized company info.
162 "A String",
163 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400164 "languageCode": "A String", # Language code of the localized company info, as defined by
165 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
166 # (IETF BCP 47, "Tags for Identifying Languages").
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700167 "displayName": "A String", # Localized display name.
168 "overview": "A String", # Localized brief description that the company uses to advertise themselves.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400169 },
170 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700171 "autoApprovalEmailDomains": [ # Email domains that allow users with a matching email address to get
172 # auto-approved for associating with this company.
173 "A String",
174 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400175 "locations": [ # The list of all company locations.
176 # If set, must include the
177 # primary_location
178 # in the list.
179 { # A location with address and geographic coordinates. May optionally contain a
180 # detailed (multi-field) version of the address.
181 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
182 "addressLine": [ # The following address lines represent the most specific part of any
183 # address.
184 "A String",
185 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700186 "locality": "A String", # Generally refers to the city/town portion of an address.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400187 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
188 # classification code for sorting mail.
189 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
190 # of doubles representing degrees latitude and degrees longitude. Unless
191 # specified otherwise, this must conform to the
192 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
193 # standard</a>. Values must be within normalized ranges.
194 #
195 # Example of normalization code in Python:
196 #
197 # def NormalizeLongitude(longitude):
198 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
199 # q, r = divmod(longitude, 360.0)
200 # if r > 180.0 or (r == 180.0 and q <= -1.0):
201 # return r - 360.0
202 # return r
203 #
204 # def NormalizeLatLng(latitude, longitude):
205 # """Wraps decimal degrees latitude and longitude to
206 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
207 # r = latitude % 360.0
208 # if r <= 90.0:
209 # return r, NormalizeLongitude(longitude)
210 # elif r >= 270.0:
211 # return r - 360, NormalizeLongitude(longitude)
212 # else:
213 # return 180 - r, NormalizeLongitude(longitude + 180.0)
214 #
215 # assert 180.0 == NormalizeLongitude(180.0)
216 # assert -180.0 == NormalizeLongitude(-180.0)
217 # assert -179.0 == NormalizeLongitude(181.0)
218 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
219 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
220 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
221 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
222 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
223 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
224 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
225 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
226 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
227 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
228 #
229 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
230 # as if it were annotated as ST_LOCATION.
231 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
232 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
233 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700234 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
235 # neighborhoods or boroughs in other locations.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400236 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
237 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
238 "address": "A String", # The single string version of the address.
239 "postalCode": "A String", # Values are frequently alphanumeric.
240 },
241 ],
242 "websiteUrl": "A String", # URL of the company's website.
243 "primaryLocation": { # A location with address and geographic coordinates. May optionally contain a # The primary location of the company.
244 # detailed (multi-field) version of the address.
245 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
246 "addressLine": [ # The following address lines represent the most specific part of any
247 # address.
248 "A String",
249 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700250 "locality": "A String", # Generally refers to the city/town portion of an address.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400251 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
252 # classification code for sorting mail.
253 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
254 # of doubles representing degrees latitude and degrees longitude. Unless
255 # specified otherwise, this must conform to the
256 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
257 # standard</a>. Values must be within normalized ranges.
258 #
259 # Example of normalization code in Python:
260 #
261 # def NormalizeLongitude(longitude):
262 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
263 # q, r = divmod(longitude, 360.0)
264 # if r > 180.0 or (r == 180.0 and q <= -1.0):
265 # return r - 360.0
266 # return r
267 #
268 # def NormalizeLatLng(latitude, longitude):
269 # """Wraps decimal degrees latitude and longitude to
270 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
271 # r = latitude % 360.0
272 # if r <= 90.0:
273 # return r, NormalizeLongitude(longitude)
274 # elif r >= 270.0:
275 # return r - 360, NormalizeLongitude(longitude)
276 # else:
277 # return 180 - r, NormalizeLongitude(longitude + 180.0)
278 #
279 # assert 180.0 == NormalizeLongitude(180.0)
280 # assert -180.0 == NormalizeLongitude(-180.0)
281 # assert -179.0 == NormalizeLongitude(181.0)
282 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
283 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
284 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
285 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
286 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
287 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
288 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
289 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
290 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
291 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
292 #
293 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
294 # as if it were annotated as ST_LOCATION.
295 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
296 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
297 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700298 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
299 # neighborhoods or boroughs in other locations.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400300 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
301 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
302 "address": "A String", # The single string version of the address.
303 "postalCode": "A String", # Values are frequently alphanumeric.
304 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700305 "additionalWebsites": [ # URL of the company's additional websites used to verify the dynamic badges.
306 # These are stored as full URLs as entered by the user, but only the TLD will
307 # be used for the actual verification.
308 "A String",
309 ],
310 "profileStatus": "A String", # The public viewability status of the company's profile.
311 "ranks": [ # Information related to the ranking of the company within the list of
312 # companies.
313 { # Information related to ranking of results.
314 "type": "A String", # The type of rank.
315 "value": 3.14, # The numerical value of the rank.
316 },
317 ],
318 "primaryAdwordsManagerAccountId": "A String", # The Primary AdWords Manager Account id.
319 "services": [ # Services the company can help with.
320 "A String",
321 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400322 "certificationStatuses": [ # The list of Google Partners certification statuses for the company.
323 { # Google Partners certification status.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700324 "isCertified": True or False, # Whether certification is passing.
Thomas Coffee2f245372017-03-27 10:39:26 -0700325 "userCount": 42, # Number of people who are certified,
326 "type": "A String", # The type of the certification.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400327 "examStatuses": [ # List of certification exam statuses.
328 { # Status for a Google Partners certification exam.
329 "numberUsersPass": 42, # The number of people who have passed the certification exam.
330 "type": "A String", # The type of certification exam.
331 },
332 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400333 },
334 ],
335 "companyTypes": [ # Company type labels listed on the company's profile.
336 "A String",
337 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 "convertedMinMonthlyBudget": { # Represents an amount of money with its currency type. # The minimum monthly budget that the company accepts for partner business,
339 # converted to the requested currency code.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400340 "nanos": 42, # Number of nano (10^-9) units of the amount.
341 # The value must be between -999,999,999 and +999,999,999 inclusive.
342 # If `units` is positive, `nanos` must be positive or zero.
343 # If `units` is zero, `nanos` can be positive, zero, or negative.
344 # If `units` is negative, `nanos` must be negative or zero.
345 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700346 "units": "A String", # The whole units of the amount.
347 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400348 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
349 },
350 "id": "A String", # The ID of the company.
351 "primaryLanguageCode": "A String", # The primary language code of the company, as defined by
352 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
353 # (IETF BCP 47, "Tags for Identifying Languages").
354 "specializationStatus": [ # The list of Google Partners specialization statuses for the company.
355 { # Agency specialization status
356 "badgeSpecialization": "A String", # The specialization this status is for.
357 "badgeSpecializationState": "A String", # State of agency specialization.
358 },
359 ],
360}
361
362 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
363 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
364An identifier has multiple letters created by a team which redirected the
365traffic to us.
366 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
367 x__xgafv: string, V1 error format.
368 Allowed values
369 1 - v1 error format
370 2 - v2 error format
371 requestMetadata_locale: string, Locale to use for the current request.
372 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
373 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
374An identifier has multiple letters created by a team which redirected the
375traffic to us.
376 updateMask: string, Standard field mask for the set of fields to be updated.
377Required with at least 1 value in FieldMask's paths.
378 requestMetadata_partnersSessionId: string, Google Partners session ID.
379
380Returns:
381 An object of the form:
382
383 { # A company resource in the Google Partners API. Once certified, it qualifies
384 # for being searched by advertisers.
385 "industries": [ # Industries the company can help with.
386 "A String",
387 ],
388 "originalMinMonthlyBudget": { # Represents an amount of money with its currency type. # The unconverted minimum monthly budget that the company accepts for partner
389 # business.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400390 "nanos": 42, # Number of nano (10^-9) units of the amount.
391 # The value must be between -999,999,999 and +999,999,999 inclusive.
392 # If `units` is positive, `nanos` must be positive or zero.
393 # If `units` is zero, `nanos` can be positive, zero, or negative.
394 # If `units` is negative, `nanos` must be negative or zero.
395 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700396 "units": "A String", # The whole units of the amount.
397 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400398 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
399 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700400 "publicProfile": { # Basic information from a public profile. # Basic information from the company's public profile.
401 "url": "A String", # The URL of the public profile.
402 "profileImage": "A String", # The URL to the main profile image of the public profile.
403 "displayImageUrl": "A String", # The URL to the main display image of the public profile. Being deprecated.
404 "displayName": "A String", # The display name of the public profile.
405 "id": "A String", # The ID which can be used to retrieve more details about the public profile.
406 },
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400407 "name": "A String", # The name of the company.
408 "badgeTier": "A String", # Partner badge tier
409 "localizedInfos": [ # The list of localized info for the company.
410 { # The localized company information.
411 "countryCodes": [ # List of country codes for the localized company info.
412 "A String",
413 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400414 "languageCode": "A String", # Language code of the localized company info, as defined by
415 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
416 # (IETF BCP 47, "Tags for Identifying Languages").
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700417 "displayName": "A String", # Localized display name.
418 "overview": "A String", # Localized brief description that the company uses to advertise themselves.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400419 },
420 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700421 "autoApprovalEmailDomains": [ # Email domains that allow users with a matching email address to get
422 # auto-approved for associating with this company.
423 "A String",
424 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400425 "locations": [ # The list of all company locations.
426 # If set, must include the
427 # primary_location
428 # in the list.
429 { # A location with address and geographic coordinates. May optionally contain a
430 # detailed (multi-field) version of the address.
431 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
432 "addressLine": [ # The following address lines represent the most specific part of any
433 # address.
434 "A String",
435 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700436 "locality": "A String", # Generally refers to the city/town portion of an address.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400437 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
438 # classification code for sorting mail.
439 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
440 # of doubles representing degrees latitude and degrees longitude. Unless
441 # specified otherwise, this must conform to the
442 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
443 # standard</a>. Values must be within normalized ranges.
444 #
445 # Example of normalization code in Python:
446 #
447 # def NormalizeLongitude(longitude):
448 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
449 # q, r = divmod(longitude, 360.0)
450 # if r > 180.0 or (r == 180.0 and q <= -1.0):
451 # return r - 360.0
452 # return r
453 #
454 # def NormalizeLatLng(latitude, longitude):
455 # """Wraps decimal degrees latitude and longitude to
456 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
457 # r = latitude % 360.0
458 # if r <= 90.0:
459 # return r, NormalizeLongitude(longitude)
460 # elif r >= 270.0:
461 # return r - 360, NormalizeLongitude(longitude)
462 # else:
463 # return 180 - r, NormalizeLongitude(longitude + 180.0)
464 #
465 # assert 180.0 == NormalizeLongitude(180.0)
466 # assert -180.0 == NormalizeLongitude(-180.0)
467 # assert -179.0 == NormalizeLongitude(181.0)
468 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
469 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
470 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
471 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
472 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
473 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
474 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
475 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
476 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
477 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
478 #
479 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
480 # as if it were annotated as ST_LOCATION.
481 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
482 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
483 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700484 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
485 # neighborhoods or boroughs in other locations.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400486 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
487 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
488 "address": "A String", # The single string version of the address.
489 "postalCode": "A String", # Values are frequently alphanumeric.
490 },
491 ],
492 "websiteUrl": "A String", # URL of the company's website.
493 "primaryLocation": { # A location with address and geographic coordinates. May optionally contain a # The primary location of the company.
494 # detailed (multi-field) version of the address.
495 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
496 "addressLine": [ # The following address lines represent the most specific part of any
497 # address.
498 "A String",
499 ],
Thomas Coffee2f245372017-03-27 10:39:26 -0700500 "locality": "A String", # Generally refers to the city/town portion of an address.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400501 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
502 # classification code for sorting mail.
503 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
504 # of doubles representing degrees latitude and degrees longitude. Unless
505 # specified otherwise, this must conform to the
506 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
507 # standard</a>. Values must be within normalized ranges.
508 #
509 # Example of normalization code in Python:
510 #
511 # def NormalizeLongitude(longitude):
512 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
513 # q, r = divmod(longitude, 360.0)
514 # if r > 180.0 or (r == 180.0 and q <= -1.0):
515 # return r - 360.0
516 # return r
517 #
518 # def NormalizeLatLng(latitude, longitude):
519 # """Wraps decimal degrees latitude and longitude to
520 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
521 # r = latitude % 360.0
522 # if r <= 90.0:
523 # return r, NormalizeLongitude(longitude)
524 # elif r >= 270.0:
525 # return r - 360, NormalizeLongitude(longitude)
526 # else:
527 # return 180 - r, NormalizeLongitude(longitude + 180.0)
528 #
529 # assert 180.0 == NormalizeLongitude(180.0)
530 # assert -180.0 == NormalizeLongitude(-180.0)
531 # assert -179.0 == NormalizeLongitude(181.0)
532 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
533 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
534 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
535 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
536 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
537 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
538 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
539 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
540 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
541 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
542 #
543 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
544 # as if it were annotated as ST_LOCATION.
545 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
546 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
547 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700548 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
549 # neighborhoods or boroughs in other locations.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400550 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
551 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
552 "address": "A String", # The single string version of the address.
553 "postalCode": "A String", # Values are frequently alphanumeric.
554 },
Thomas Coffee2f245372017-03-27 10:39:26 -0700555 "additionalWebsites": [ # URL of the company's additional websites used to verify the dynamic badges.
556 # These are stored as full URLs as entered by the user, but only the TLD will
557 # be used for the actual verification.
558 "A String",
559 ],
560 "profileStatus": "A String", # The public viewability status of the company's profile.
561 "ranks": [ # Information related to the ranking of the company within the list of
562 # companies.
563 { # Information related to ranking of results.
564 "type": "A String", # The type of rank.
565 "value": 3.14, # The numerical value of the rank.
566 },
567 ],
568 "primaryAdwordsManagerAccountId": "A String", # The Primary AdWords Manager Account id.
569 "services": [ # Services the company can help with.
570 "A String",
571 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400572 "certificationStatuses": [ # The list of Google Partners certification statuses for the company.
573 { # Google Partners certification status.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700574 "isCertified": True or False, # Whether certification is passing.
Thomas Coffee2f245372017-03-27 10:39:26 -0700575 "userCount": 42, # Number of people who are certified,
576 "type": "A String", # The type of the certification.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400577 "examStatuses": [ # List of certification exam statuses.
578 { # Status for a Google Partners certification exam.
579 "numberUsersPass": 42, # The number of people who have passed the certification exam.
580 "type": "A String", # The type of certification exam.
581 },
582 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400583 },
584 ],
585 "companyTypes": [ # Company type labels listed on the company's profile.
586 "A String",
587 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400588 "convertedMinMonthlyBudget": { # Represents an amount of money with its currency type. # The minimum monthly budget that the company accepts for partner business,
589 # converted to the requested currency code.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400590 "nanos": 42, # Number of nano (10^-9) units of the amount.
591 # The value must be between -999,999,999 and +999,999,999 inclusive.
592 # If `units` is positive, `nanos` must be positive or zero.
593 # If `units` is zero, `nanos` can be positive, zero, or negative.
594 # If `units` is negative, `nanos` must be negative or zero.
595 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700596 "units": "A String", # The whole units of the amount.
597 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400598 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
599 },
600 "id": "A String", # The ID of the company.
601 "primaryLanguageCode": "A String", # The primary language code of the company, as defined by
602 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
603 # (IETF BCP 47, "Tags for Identifying Languages").
604 "specializationStatus": [ # The list of Google Partners specialization statuses for the company.
605 { # Agency specialization status
606 "badgeSpecialization": "A String", # The specialization this status is for.
607 "badgeSpecializationState": "A String", # State of agency specialization.
608 },
609 ],
610 }</pre>
611</div>
612
613<div class="method">
614 <code class="details" id="updateLeads">updateLeads(body, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, updateMask=None, requestMetadata_partnersSessionId=None)</code>
615 <pre>Updates the specified lead.
616
617Args:
618 body: object, The request body. (required)
619 The object takes the form of:
620
621{ # A lead resource that represents an advertiser contact for a `Company`. These
622 # are usually generated via Google Partner Search (the advertiser portal).
623 "marketingOptIn": True or False, # Whether or not the lead signed up for marketing emails
624 "languageCode": "A String", # Language code of the lead's language preference, as defined by
625 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
626 # (IETF BCP 47, "Tags for Identifying Languages").
Thomas Coffee2f245372017-03-27 10:39:26 -0700627 "type": "A String", # Type of lead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400628 "familyName": "A String", # Last name of lead source.
629 "minMonthlyBudget": { # Represents an amount of money with its currency type. # The minimum monthly budget lead source is willing to spend.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400630 "nanos": 42, # Number of nano (10^-9) units of the amount.
631 # The value must be between -999,999,999 and +999,999,999 inclusive.
632 # If `units` is positive, `nanos` must be positive or zero.
633 # If `units` is zero, `nanos` can be positive, zero, or negative.
634 # If `units` is negative, `nanos` must be negative or zero.
635 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700636 "units": "A String", # The whole units of the amount.
637 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400638 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
639 },
640 "comments": "A String", # Comments lead source gave.
641 "email": "A String", # Email address of lead source.
642 "websiteUrl": "A String", # Website URL of lead source.
643 "state": "A String", # The lead's state in relation to the company.
644 "phoneNumber": "A String", # Phone number of lead source.
Thomas Coffee2f245372017-03-27 10:39:26 -0700645 "gpsMotivations": [ # List of reasons for using Google Partner Search and creating a lead.
646 "A String",
647 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400648 "id": "A String", # ID of the lead.
649 "givenName": "A String", # First name of lead source.
Thomas Coffee2f245372017-03-27 10:39:26 -0700650 "adwordsCustomerId": "A String", # The AdWords Customer ID of the lead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400651 "createTime": "A String", # Timestamp of when this lead was created.
652}
653
654 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
655 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
656An identifier has multiple letters created by a team which redirected the
657traffic to us.
658 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
659 x__xgafv: string, V1 error format.
660 Allowed values
661 1 - v1 error format
662 2 - v2 error format
663 requestMetadata_locale: string, Locale to use for the current request.
664 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
665 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
666An identifier has multiple letters created by a team which redirected the
667traffic to us.
668 updateMask: string, Standard field mask for the set of fields to be updated.
669Required with at least 1 value in FieldMask's paths.
670Only `state` and `adwords_customer_id` are currently supported.
671 requestMetadata_partnersSessionId: string, Google Partners session ID.
672
673Returns:
674 An object of the form:
675
676 { # A lead resource that represents an advertiser contact for a `Company`. These
677 # are usually generated via Google Partner Search (the advertiser portal).
678 "marketingOptIn": True or False, # Whether or not the lead signed up for marketing emails
679 "languageCode": "A String", # Language code of the lead's language preference, as defined by
680 # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
681 # (IETF BCP 47, "Tags for Identifying Languages").
Thomas Coffee2f245372017-03-27 10:39:26 -0700682 "type": "A String", # Type of lead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400683 "familyName": "A String", # Last name of lead source.
684 "minMonthlyBudget": { # Represents an amount of money with its currency type. # The minimum monthly budget lead source is willing to spend.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400685 "nanos": 42, # Number of nano (10^-9) units of the amount.
686 # The value must be between -999,999,999 and +999,999,999 inclusive.
687 # If `units` is positive, `nanos` must be positive or zero.
688 # If `units` is zero, `nanos` can be positive, zero, or negative.
689 # If `units` is negative, `nanos` must be negative or zero.
690 # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700691 "units": "A String", # The whole units of the amount.
692 # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400693 "currencyCode": "A String", # The 3-letter currency code defined in ISO 4217.
694 },
695 "comments": "A String", # Comments lead source gave.
696 "email": "A String", # Email address of lead source.
697 "websiteUrl": "A String", # Website URL of lead source.
698 "state": "A String", # The lead's state in relation to the company.
699 "phoneNumber": "A String", # Phone number of lead source.
Thomas Coffee2f245372017-03-27 10:39:26 -0700700 "gpsMotivations": [ # List of reasons for using Google Partner Search and creating a lead.
701 "A String",
702 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400703 "id": "A String", # ID of the lead.
704 "givenName": "A String", # First name of lead source.
Thomas Coffee2f245372017-03-27 10:39:26 -0700705 "adwordsCustomerId": "A String", # The AdWords Customer ID of the lead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400706 "createTime": "A String", # Timestamp of when this lead was created.
707 }</pre>
708</div>
709
710</body></html>