blob: 18c1228020cdce1733515e91943b0425decc3966 [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.users.html">users</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#createCompanyRelation">createCompanyRelation(userId=None, 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, requestMetadata_partnersSessionId=None)</a></code></p>
79<p class="firstline">Creates a user's company relation. Affiliates the user to a company.</p>
80<p class="toc_element">
81 <code><a href="#deleteCompanyRelation">deleteCompanyRelation(userId=None, 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>
82<p class="firstline">Deletes a user's company relation. Unaffiliaites the user from a company.</p>
83<p class="toc_element">
84 <code><a href="#get">get(userId=None, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, userView=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, requestMetadata_partnersSessionId=None)</a></code></p>
85<p class="firstline">Gets a user.</p>
86<p class="toc_element">
87 <code><a href="#updateProfile">updateProfile(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, requestMetadata_partnersSessionId=None)</a></code></p>
88<p class="firstline">Updates a user's profile. A user can only update their own profile and</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="createCompanyRelation">createCompanyRelation(userId=None, 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, requestMetadata_partnersSessionId=None)</code>
92 <pre>Creates a user's company relation. Affiliates the user to a company.
93
94Args:
95 userId: string, The ID of the user. Can be set to <code>me</code> to mean
96the currently authenticated user. (required)
97 body: object, The request body. (required)
98 The object takes the form of:
99
100{ # A CompanyRelation resource representing information about a user's
101 # affiliation and standing with a company in Partners.
102 "managerAccount": "A String", # The AdWords manager account # associated this company.
103 "website": "A String", # The website URL for this company.
104 "name": "A String", # The name (in the company's primary language) for the company.
105 "companyId": "A String", # The ID of the company. There may be no id if this is a
106 # pending company.5
107 "isPending": True or False, # The flag that indicates if the company is pending verification.
108 "logoUrl": "A String", # A URL to a profile photo, e.g. a G+ profile photo.
109 "creationTime": "A String", # The timestamp of when affiliation was requested.
110 # @OutputOnly
111 "companyAdmin": True or False, # Indicates if the user is an admin for this company.
112 "badgeTier": "A String", # Whether the company is a Partner.
113 "state": "A String", # The state of relationship, in terms of approvals.
114 "phoneNumber": "A String", # The phone number for the company's primary address.
115 "address": "A String", # The primary address for this company.
116 "resolvedTimestamp": "A String", # The timestamp when the user was approved.
117 # @OutputOnly
118 "segment": [ # The segment the company is classified as.
119 "A String",
120 ],
121 "specializationStatus": [ # The list of Google Partners specialization statuses for the company.
122 { # Agency specialization status
123 "badgeSpecialization": "A String", # The specialization this status is for.
124 "badgeSpecializationState": "A String", # State of agency specialization.
125 },
126 ],
127 }
128
129 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
130 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
131An identifier has multiple letters created by a team which redirected the
132traffic to us.
133 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
134 x__xgafv: string, V1 error format.
135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
138 requestMetadata_locale: string, Locale to use for the current request.
139 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
140 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
141An identifier has multiple letters created by a team which redirected the
142traffic to us.
143 requestMetadata_partnersSessionId: string, Google Partners session ID.
144
145Returns:
146 An object of the form:
147
148 { # A CompanyRelation resource representing information about a user's
149 # affiliation and standing with a company in Partners.
150 "managerAccount": "A String", # The AdWords manager account # associated this company.
151 "website": "A String", # The website URL for this company.
152 "name": "A String", # The name (in the company's primary language) for the company.
153 "companyId": "A String", # The ID of the company. There may be no id if this is a
154 # pending company.5
155 "isPending": True or False, # The flag that indicates if the company is pending verification.
156 "logoUrl": "A String", # A URL to a profile photo, e.g. a G+ profile photo.
157 "creationTime": "A String", # The timestamp of when affiliation was requested.
158 # @OutputOnly
159 "companyAdmin": True or False, # Indicates if the user is an admin for this company.
160 "badgeTier": "A String", # Whether the company is a Partner.
161 "state": "A String", # The state of relationship, in terms of approvals.
162 "phoneNumber": "A String", # The phone number for the company's primary address.
163 "address": "A String", # The primary address for this company.
164 "resolvedTimestamp": "A String", # The timestamp when the user was approved.
165 # @OutputOnly
166 "segment": [ # The segment the company is classified as.
167 "A String",
168 ],
169 "specializationStatus": [ # The list of Google Partners specialization statuses for the company.
170 { # Agency specialization status
171 "badgeSpecialization": "A String", # The specialization this status is for.
172 "badgeSpecializationState": "A String", # State of agency specialization.
173 },
174 ],
175 }</pre>
176</div>
177
178<div class="method">
179 <code class="details" id="deleteCompanyRelation">deleteCompanyRelation(userId=None, 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>
180 <pre>Deletes a user's company relation. Unaffiliaites the user from a company.
181
182Args:
183 userId: string, The ID of the user. Can be set to <code>me</code> to mean
184the currently authenticated user. (required)
185 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
186 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
187An identifier has multiple letters created by a team which redirected the
188traffic to us.
189 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
190 x__xgafv: string, V1 error format.
191 Allowed values
192 1 - v1 error format
193 2 - v2 error format
194 requestMetadata_locale: string, Locale to use for the current request.
195 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
196 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
197An identifier has multiple letters created by a team which redirected the
198traffic to us.
199 requestMetadata_partnersSessionId: string, Google Partners session ID.
200
201Returns:
202 An object of the form:
203
204 { # A generic empty message that you can re-use to avoid defining duplicated
205 # empty messages in your APIs. A typical example is to use it as the request
206 # or the response type of an API method. For instance:
207 #
208 # service Foo {
209 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
210 # }
211 #
212 # The JSON representation for `Empty` is empty JSON object `{}`.
213 }</pre>
214</div>
215
216<div class="method">
217 <code class="details" id="get">get(userId=None, requestMetadata_userOverrides_ipAddress=None, requestMetadata_trafficSource_trafficSubId=None, requestMetadata_userOverrides_userId=None, x__xgafv=None, requestMetadata_locale=None, userView=None, requestMetadata_experimentIds=None, requestMetadata_trafficSource_trafficSourceId=None, requestMetadata_partnersSessionId=None)</code>
218 <pre>Gets a user.
219
220Args:
221 userId: string, Identifier of the user. Can be set to <code>me</code> to mean the currently
222authenticated user. (required)
223 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
224 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
225An identifier has multiple letters created by a team which redirected the
226traffic to us.
227 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232 requestMetadata_locale: string, Locale to use for the current request.
233 userView: string, Specifies what parts of the user information to return.
234 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
235 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
236An identifier has multiple letters created by a team which redirected the
237traffic to us.
238 requestMetadata_partnersSessionId: string, Google Partners session ID.
239
240Returns:
241 An object of the form:
242
243 { # A resource representing a user of the Partners platform.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400244 "profile": { # The profile information of a Partners user. # The profile information of a Partners user, contains all the directly
245 # editable user information.
246 "industries": [ # A list of ids representing which industries the user selected.
247 "A String",
248 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400249 "languages": [ # The list of languages this user understands.
250 "A String",
251 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700252 "adwordsManagerAccount": "A String", # If the user has edit access to multiple accounts, the user can choose the
253 # preferred account and it is used when a personal account is needed. Can
254 # be empty.
255 "primaryCountryCode": "A String", # The user's primary country, an ISO 2-character code.
256 "markets": [ # A list of ids representing which markets the user was interested in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400257 "A String",
258 ],
259 "emailOptIns": { # A set of opt-ins for a user. # The list of opt-ins for the user, related to communication preferences.
260 "specialOffers": True or False, # An opt-in about receiving email regarding new features and products.
261 "marketComm": True or False, # An opt-in about receiving email from Partners marketing teams. Includes
262 # member-only events and special promotional offers for Google products.
263 "phoneContact": True or False, # An opt-in to allow recieivng phone calls about their Partners account.
264 "physicalMail": True or False, # An opt-in to receive special promotional gifts and material in the mail.
265 "performanceSuggestions": True or False, # An opt-in about receiving email with customized AdWords campaign management
266 # tips.
267 },
268 "familyName": "A String", # The user's family name.
269 "channels": [ # A list of ids representing which channels the user selected they were in.
270 "A String",
271 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700272 "phoneNumber": "A String", # The user's phone number.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400273 "address": { # A location with address and geographic coordinates. May optionally contain a # The user's mailing address, contains multiple fields.
274 # detailed (multi-field) version of the address.
275 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
276 "addressLine": [ # The following address lines represent the most specific part of any
277 # address.
278 "A String",
279 ],
280 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
281 # neighborhoods or boroughs in other locations.
282 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
283 # classification code for sorting mail.
284 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
285 # of doubles representing degrees latitude and degrees longitude. Unless
286 # specified otherwise, this must conform to the
287 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
288 # standard</a>. Values must be within normalized ranges.
289 #
290 # Example of normalization code in Python:
291 #
292 # def NormalizeLongitude(longitude):
293 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
294 # q, r = divmod(longitude, 360.0)
295 # if r > 180.0 or (r == 180.0 and q <= -1.0):
296 # return r - 360.0
297 # return r
298 #
299 # def NormalizeLatLng(latitude, longitude):
300 # """Wraps decimal degrees latitude and longitude to
301 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
302 # r = latitude % 360.0
303 # if r <= 90.0:
304 # return r, NormalizeLongitude(longitude)
305 # elif r >= 270.0:
306 # return r - 360, NormalizeLongitude(longitude)
307 # else:
308 # return 180 - r, NormalizeLongitude(longitude + 180.0)
309 #
310 # assert 180.0 == NormalizeLongitude(180.0)
311 # assert -180.0 == NormalizeLongitude(-180.0)
312 # assert -179.0 == NormalizeLongitude(181.0)
313 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
314 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
315 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
316 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
317 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
318 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
319 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
320 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
321 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
322 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
323 #
324 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
325 # as if it were annotated as ST_LOCATION.
326 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
327 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
328 },
329 "locality": "A String", # Generally refers to the city/town portion of an address.
330 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
331 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
332 "address": "A String", # The single string version of the address.
333 "postalCode": "A String", # Values are frequently alphanumeric.
334 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700335 "emailAddress": "A String", # The email address the user has selected on the Partners site as primary.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400336 "givenName": "A String", # The user's given name.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700337 "jobFunctions": [ # A list of ids represnting which job categories the user selected.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400338 "A String",
339 ],
340 "profilePublic": True or False, # Whether the user's public profile is visible to anyone with the URL.
341 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700342 "companyVerificationEmail": "A String", # The email address used by the user used for company verification.
343 # @OutputOnly
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400344 "certificationStatus": [ # The list of achieved certifications. These are calculated based on exam
345 # results and other requirements.
346 # @OutputOnly
347 { # A user's information on a specific certification.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400348 "lastAchieved": "A String", # The date the user last achieved certification.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700349 "warning": True or False, # Whether this certification is in the state of warning.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400350 "expiration": "A String", # Date this certification is due to expire.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700351 "certificationType": "A String", # The type of certification, the area of expertise.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400352 "achieved": True or False, # Whether this certification has been achieved.
353 },
354 ],
355 "availableAdwordsManagerAccounts": [ # This is the list of AdWords Manager Accounts the user has edit access to.
356 # If the user has edit access to multiple accounts, the user can choose the
357 # preferred account and we use this when a personal account is needed. Can
358 # be empty meaning the user has access to no accounts.
359 # @OutputOnly
360 { # Information about a particular AdWords Manager Account.
361 # Read more at https://support.google.com/adwords/answer/6139186
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400362 "id": "A String", # The AdWords Manager Account id.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700363 "customerName": "A String", # Name of the customer this account represents.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400364 },
365 ],
366 "company": { # A CompanyRelation resource representing information about a user's # The company that the user is associated with.
367 # If not present, the user is not associated with any company.
368 # affiliation and standing with a company in Partners.
369 "managerAccount": "A String", # The AdWords manager account # associated this company.
370 "website": "A String", # The website URL for this company.
371 "name": "A String", # The name (in the company's primary language) for the company.
372 "companyId": "A String", # The ID of the company. There may be no id if this is a
373 # pending company.5
374 "isPending": True or False, # The flag that indicates if the company is pending verification.
375 "logoUrl": "A String", # A URL to a profile photo, e.g. a G+ profile photo.
376 "creationTime": "A String", # The timestamp of when affiliation was requested.
377 # @OutputOnly
378 "companyAdmin": True or False, # Indicates if the user is an admin for this company.
379 "badgeTier": "A String", # Whether the company is a Partner.
380 "state": "A String", # The state of relationship, in terms of approvals.
381 "phoneNumber": "A String", # The phone number for the company's primary address.
382 "address": "A String", # The primary address for this company.
383 "resolvedTimestamp": "A String", # The timestamp when the user was approved.
384 # @OutputOnly
385 "segment": [ # The segment the company is classified as.
386 "A String",
387 ],
388 "specializationStatus": [ # The list of Google Partners specialization statuses for the company.
389 { # Agency specialization status
390 "badgeSpecialization": "A String", # The specialization this status is for.
391 "badgeSpecializationState": "A String", # State of agency specialization.
392 },
393 ],
394 },
395 "lastAccessTime": "A String", # The most recent time the user interacted with the Partners site.
396 # @OutputOnly
397 "primaryEmails": [ # The list of emails the user has access to/can select as primary.
398 # @OutputOnly
399 "A String",
400 ],
401 "id": "A String", # The ID of the user.
402 "publicProfile": { # Basic information from a public profile. # Information about a user's external public profile outside Google Partners.
403 "url": "A String", # The URL of the public profile.
404 "profileImage": "A String", # The URL to the main profile image of the public profile.
405 "displayImageUrl": "A String", # The URL to the main display image of the public profile. Being deprecated.
406 "displayName": "A String", # The display name of the public profile.
407 "id": "A String", # The ID which can be used to retrieve more details about the public profile.
408 },
409 "examStatus": [ # The list of exams the user ever taken. For each type of exam, only one
410 # entry is listed.
411 { # A user's information on a specific exam.
412 "examType": "A String", # The type of the exam.
413 "warning": True or False, # Whether this exam is in the state of warning.
414 "expiration": "A String", # Date this exam is due to expire.
415 "passed": True or False, # Whether this exam has been passed and not expired.
416 "taken": "A String", # The date the user last taken this exam.
417 "lastPassed": "A String", # The date the user last passed this exam.
418 },
419 ],
420 }</pre>
421</div>
422
423<div class="method">
424 <code class="details" id="updateProfile">updateProfile(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, requestMetadata_partnersSessionId=None)</code>
425 <pre>Updates a user's profile. A user can only update their own profile and
426should only be called within the context of a logged in user.
427
428Args:
429 body: object, The request body. (required)
430 The object takes the form of:
431
432{ # The profile information of a Partners user.
433 "industries": [ # A list of ids representing which industries the user selected.
434 "A String",
435 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400436 "languages": [ # The list of languages this user understands.
437 "A String",
438 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700439 "adwordsManagerAccount": "A String", # If the user has edit access to multiple accounts, the user can choose the
440 # preferred account and it is used when a personal account is needed. Can
441 # be empty.
442 "primaryCountryCode": "A String", # The user's primary country, an ISO 2-character code.
443 "markets": [ # A list of ids representing which markets the user was interested in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400444 "A String",
445 ],
446 "emailOptIns": { # A set of opt-ins for a user. # The list of opt-ins for the user, related to communication preferences.
447 "specialOffers": True or False, # An opt-in about receiving email regarding new features and products.
448 "marketComm": True or False, # An opt-in about receiving email from Partners marketing teams. Includes
449 # member-only events and special promotional offers for Google products.
450 "phoneContact": True or False, # An opt-in to allow recieivng phone calls about their Partners account.
451 "physicalMail": True or False, # An opt-in to receive special promotional gifts and material in the mail.
452 "performanceSuggestions": True or False, # An opt-in about receiving email with customized AdWords campaign management
453 # tips.
454 },
455 "familyName": "A String", # The user's family name.
456 "channels": [ # A list of ids representing which channels the user selected they were in.
457 "A String",
458 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700459 "phoneNumber": "A String", # The user's phone number.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400460 "address": { # A location with address and geographic coordinates. May optionally contain a # The user's mailing address, contains multiple fields.
461 # detailed (multi-field) version of the address.
462 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
463 "addressLine": [ # The following address lines represent the most specific part of any
464 # address.
465 "A String",
466 ],
467 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
468 # neighborhoods or boroughs in other locations.
469 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
470 # classification code for sorting mail.
471 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
472 # of doubles representing degrees latitude and degrees longitude. Unless
473 # specified otherwise, this must conform to the
474 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
475 # standard</a>. Values must be within normalized ranges.
476 #
477 # Example of normalization code in Python:
478 #
479 # def NormalizeLongitude(longitude):
480 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
481 # q, r = divmod(longitude, 360.0)
482 # if r > 180.0 or (r == 180.0 and q <= -1.0):
483 # return r - 360.0
484 # return r
485 #
486 # def NormalizeLatLng(latitude, longitude):
487 # """Wraps decimal degrees latitude and longitude to
488 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
489 # r = latitude % 360.0
490 # if r <= 90.0:
491 # return r, NormalizeLongitude(longitude)
492 # elif r >= 270.0:
493 # return r - 360, NormalizeLongitude(longitude)
494 # else:
495 # return 180 - r, NormalizeLongitude(longitude + 180.0)
496 #
497 # assert 180.0 == NormalizeLongitude(180.0)
498 # assert -180.0 == NormalizeLongitude(-180.0)
499 # assert -179.0 == NormalizeLongitude(181.0)
500 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
501 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
502 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
503 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
504 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
505 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
506 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
507 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
508 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
509 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
510 #
511 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
512 # as if it were annotated as ST_LOCATION.
513 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
514 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
515 },
516 "locality": "A String", # Generally refers to the city/town portion of an address.
517 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
518 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
519 "address": "A String", # The single string version of the address.
520 "postalCode": "A String", # Values are frequently alphanumeric.
521 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700522 "emailAddress": "A String", # The email address the user has selected on the Partners site as primary.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400523 "givenName": "A String", # The user's given name.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700524 "jobFunctions": [ # A list of ids represnting which job categories the user selected.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400525 "A String",
526 ],
527 "profilePublic": True or False, # Whether the user's public profile is visible to anyone with the URL.
528 }
529
530 requestMetadata_userOverrides_ipAddress: string, IP address to use instead of the user's geo-located IP address.
531 requestMetadata_trafficSource_trafficSubId: string, Second level identifier to indicate where the traffic comes from.
532An identifier has multiple letters created by a team which redirected the
533traffic to us.
534 requestMetadata_userOverrides_userId: string, Logged-in user ID to impersonate instead of the user's ID.
535 x__xgafv: string, V1 error format.
536 Allowed values
537 1 - v1 error format
538 2 - v2 error format
539 requestMetadata_locale: string, Locale to use for the current request.
540 requestMetadata_experimentIds: string, Experiment IDs the current request belongs to. (repeated)
541 requestMetadata_trafficSource_trafficSourceId: string, Identifier to indicate where the traffic comes from.
542An identifier has multiple letters created by a team which redirected the
543traffic to us.
544 requestMetadata_partnersSessionId: string, Google Partners session ID.
545
546Returns:
547 An object of the form:
548
549 { # The profile information of a Partners user.
550 "industries": [ # A list of ids representing which industries the user selected.
551 "A String",
552 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400553 "languages": [ # The list of languages this user understands.
554 "A String",
555 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700556 "adwordsManagerAccount": "A String", # If the user has edit access to multiple accounts, the user can choose the
557 # preferred account and it is used when a personal account is needed. Can
558 # be empty.
559 "primaryCountryCode": "A String", # The user's primary country, an ISO 2-character code.
560 "markets": [ # A list of ids representing which markets the user was interested in.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400561 "A String",
562 ],
563 "emailOptIns": { # A set of opt-ins for a user. # The list of opt-ins for the user, related to communication preferences.
564 "specialOffers": True or False, # An opt-in about receiving email regarding new features and products.
565 "marketComm": True or False, # An opt-in about receiving email from Partners marketing teams. Includes
566 # member-only events and special promotional offers for Google products.
567 "phoneContact": True or False, # An opt-in to allow recieivng phone calls about their Partners account.
568 "physicalMail": True or False, # An opt-in to receive special promotional gifts and material in the mail.
569 "performanceSuggestions": True or False, # An opt-in about receiving email with customized AdWords campaign management
570 # tips.
571 },
572 "familyName": "A String", # The user's family name.
573 "channels": [ # A list of ids representing which channels the user selected they were in.
574 "A String",
575 ],
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700576 "phoneNumber": "A String", # The user's phone number.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400577 "address": { # A location with address and geographic coordinates. May optionally contain a # The user's mailing address, contains multiple fields.
578 # detailed (multi-field) version of the address.
579 "languageCode": "A String", # Language code of the address. Should be in BCP 47 format.
580 "addressLine": [ # The following address lines represent the most specific part of any
581 # address.
582 "A String",
583 ],
584 "dependentLocality": "A String", # Dependent locality or sublocality. Used for UK dependent localities, or
585 # neighborhoods or boroughs in other locations.
586 "sortingCode": "A String", # Use of this code is very country-specific, but will refer to a secondary
587 # classification code for sorting mail.
588 "latLng": { # An object representing a latitude/longitude pair. This is expressed as a pair # The latitude and longitude of the location, in degrees.
589 # of doubles representing degrees latitude and degrees longitude. Unless
590 # specified otherwise, this must conform to the
591 # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
592 # standard</a>. Values must be within normalized ranges.
593 #
594 # Example of normalization code in Python:
595 #
596 # def NormalizeLongitude(longitude):
597 # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
598 # q, r = divmod(longitude, 360.0)
599 # if r > 180.0 or (r == 180.0 and q <= -1.0):
600 # return r - 360.0
601 # return r
602 #
603 # def NormalizeLatLng(latitude, longitude):
604 # """Wraps decimal degrees latitude and longitude to
605 # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
606 # r = latitude % 360.0
607 # if r <= 90.0:
608 # return r, NormalizeLongitude(longitude)
609 # elif r >= 270.0:
610 # return r - 360, NormalizeLongitude(longitude)
611 # else:
612 # return 180 - r, NormalizeLongitude(longitude + 180.0)
613 #
614 # assert 180.0 == NormalizeLongitude(180.0)
615 # assert -180.0 == NormalizeLongitude(-180.0)
616 # assert -179.0 == NormalizeLongitude(181.0)
617 # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
618 # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
619 # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
620 # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
621 # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
622 # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
623 # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
624 # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
625 # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
626 # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
627 #
628 # The code in logs/storage/validator/logs_validator_traits.cc treats this type
629 # as if it were annotated as ST_LOCATION.
630 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
631 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
632 },
633 "locality": "A String", # Generally refers to the city/town portion of an address.
634 "regionCode": "A String", # CLDR (Common Locale Data Repository) region code .
635 "administrativeArea": "A String", # Top-level administrative subdivision of this country.
636 "address": "A String", # The single string version of the address.
637 "postalCode": "A String", # Values are frequently alphanumeric.
638 },
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700639 "emailAddress": "A String", # The email address the user has selected on the Partners site as primary.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400640 "givenName": "A String", # The user's given name.
Sai Cheemalapatie833b792017-03-24 15:06:46 -0700641 "jobFunctions": [ # A list of ids represnting which job categories the user selected.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400642 "A String",
643 ],
644 "profilePublic": True or False, # Whether the user's public profile is visible to anyone with the URL.
645 }</pre>
646</div>
647
648</body></html>