google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/accounts/docs/OAuth2
26
26
  module Oauth2V2
27
27
  VERSION = 'V2'
28
- REVISION = '20161103'
28
+ REVISION = '20170424'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/partners/
27
27
  module PartnersV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170324'
29
+ REVISION = '20170503'
30
30
  end
31
31
  end
32
32
  end
@@ -22,91 +22,26 @@ module Google
22
22
  module Apis
23
23
  module PartnersV2
24
24
 
25
- # An object representing a latitude/longitude pair. This is expressed as a pair
26
- # of doubles representing degrees latitude and degrees longitude. Unless
27
- # specified otherwise, this must conform to the
28
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
29
- # standard</a>. Values must be within normalized ranges.
30
- # Example of normalization code in Python:
31
- # def NormalizeLongitude(longitude):
32
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
33
- # q, r = divmod(longitude, 360.0)
34
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
35
- # return r - 360.0
36
- # return r
37
- # def NormalizeLatLng(latitude, longitude):
38
- # """Wraps decimal degrees latitude and longitude to
39
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
40
- # r = latitude % 360.0
41
- # if r <= 90.0:
42
- # return r, NormalizeLongitude(longitude)
43
- # elif r >= 270.0:
44
- # return r - 360, NormalizeLongitude(longitude)
45
- # else:
46
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
47
- # assert 180.0 == NormalizeLongitude(180.0)
48
- # assert -180.0 == NormalizeLongitude(-180.0)
49
- # assert -179.0 == NormalizeLongitude(181.0)
50
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
51
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
52
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
53
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
54
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
55
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
56
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
57
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
58
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
59
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
60
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
61
- # as if it were annotated as ST_LOCATION.
62
- class LatLng
63
- include Google::Apis::Core::Hashable
64
-
65
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
66
- # Corresponds to the JSON property `latitude`
67
- # @return [Float]
68
- attr_accessor :latitude
69
-
70
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
71
- # Corresponds to the JSON property `longitude`
72
- # @return [Float]
73
- attr_accessor :longitude
74
-
75
- def initialize(**args)
76
- update!(**args)
77
- end
78
-
79
- # Update properties of this object
80
- def update!(**args)
81
- @latitude = args[:latitude] if args.key?(:latitude)
82
- @longitude = args[:longitude] if args.key?(:longitude)
83
- end
84
- end
85
-
86
- # Represents an amount of money with its currency type.
87
- class Money
25
+ # Response message for CreateLead.
26
+ class CreateLeadResponse
88
27
  include Google::Apis::Core::Hashable
89
28
 
90
- # The whole units of the amount.
91
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
92
- # Corresponds to the JSON property `units`
93
- # @return [Fixnum]
94
- attr_accessor :units
29
+ # A lead resource that represents an advertiser contact for a `Company`. These
30
+ # are usually generated via Google Partner Search (the advertiser portal).
31
+ # Corresponds to the JSON property `lead`
32
+ # @return [Google::Apis::PartnersV2::Lead]
33
+ attr_accessor :lead
95
34
 
96
- # The 3-letter currency code defined in ISO 4217.
97
- # Corresponds to the JSON property `currencyCode`
35
+ # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
36
+ # validation.
37
+ # Corresponds to the JSON property `recaptchaStatus`
98
38
  # @return [String]
99
- attr_accessor :currency_code
39
+ attr_accessor :recaptcha_status
100
40
 
101
- # Number of nano (10^-9) units of the amount.
102
- # The value must be between -999,999,999 and +999,999,999 inclusive.
103
- # If `units` is positive, `nanos` must be positive or zero.
104
- # If `units` is zero, `nanos` can be positive, zero, or negative.
105
- # If `units` is negative, `nanos` must be negative or zero.
106
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
107
- # Corresponds to the JSON property `nanos`
108
- # @return [Fixnum]
109
- attr_accessor :nanos
41
+ # Common data that is in each API response.
42
+ # Corresponds to the JSON property `responseMetadata`
43
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
44
+ attr_accessor :response_metadata
110
45
 
111
46
  def initialize(**args)
112
47
  update!(**args)
@@ -114,32 +49,26 @@ module Google
114
49
 
115
50
  # Update properties of this object
116
51
  def update!(**args)
117
- @units = args[:units] if args.key?(:units)
118
- @currency_code = args[:currency_code] if args.key?(:currency_code)
119
- @nanos = args[:nanos] if args.key?(:nanos)
52
+ @lead = args[:lead] if args.key?(:lead)
53
+ @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
54
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
120
55
  end
121
56
  end
122
57
 
123
- # Analytics aggregated data for a `Company` for a given date range.
124
- class AnalyticsSummary
58
+ # Response message for GetCompany.
59
+ class GetCompanyResponse
125
60
  include Google::Apis::Core::Hashable
126
61
 
127
- # Aggregated number of times users saw the `Company`
128
- # in Google Partners Search results for given date range.
129
- # Corresponds to the JSON property `searchViewsCount`
130
- # @return [Fixnum]
131
- attr_accessor :search_views_count
132
-
133
- # Aggregated number of times users contacted the `Company`
134
- # for given date range.
135
- # Corresponds to the JSON property `contactsCount`
136
- # @return [Fixnum]
137
- attr_accessor :contacts_count
62
+ # A company resource in the Google Partners API. Once certified, it qualifies
63
+ # for being searched by advertisers.
64
+ # Corresponds to the JSON property `company`
65
+ # @return [Google::Apis::PartnersV2::Company]
66
+ attr_accessor :company
138
67
 
139
- # Aggregated number of profile views for the `Company` for given date range.
140
- # Corresponds to the JSON property `profileViewsCount`
141
- # @return [Fixnum]
142
- attr_accessor :profile_views_count
68
+ # Common data that is in each API response.
69
+ # Corresponds to the JSON property `responseMetadata`
70
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
71
+ attr_accessor :response_metadata
143
72
 
144
73
  def initialize(**args)
145
74
  update!(**args)
@@ -147,163 +76,104 @@ module Google
147
76
 
148
77
  # Update properties of this object
149
78
  def update!(**args)
150
- @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
151
- @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
152
- @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
79
+ @company = args[:company] if args.key?(:company)
80
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
153
81
  end
154
82
  end
155
83
 
156
- # Request message for
157
- # LogClientMessage.
158
- class LogMessageRequest
84
+ # A location with address and geographic coordinates. May optionally contain a
85
+ # detailed (multi-field) version of the address.
86
+ class Location
159
87
  include Google::Apis::Core::Hashable
160
88
 
161
- # Message level of client message.
162
- # Corresponds to the JSON property `level`
89
+ # Top-level administrative subdivision of this country.
90
+ # Corresponds to the JSON property `administrativeArea`
163
91
  # @return [String]
164
- attr_accessor :level
92
+ attr_accessor :administrative_area
165
93
 
166
- # Details about the client message.
167
- # Corresponds to the JSON property `details`
94
+ # Generally refers to the city/town portion of an address.
95
+ # Corresponds to the JSON property `locality`
168
96
  # @return [String]
169
- attr_accessor :details
170
-
171
- # Map of client info, such as URL, browser navigator, browser platform, etc.
172
- # Corresponds to the JSON property `clientInfo`
173
- # @return [Hash<String,String>]
174
- attr_accessor :client_info
175
-
176
- # Common data that is in each API request.
177
- # Corresponds to the JSON property `requestMetadata`
178
- # @return [Google::Apis::PartnersV2::RequestMetadata]
179
- attr_accessor :request_metadata
180
-
181
- def initialize(**args)
182
- update!(**args)
183
- end
184
-
185
- # Update properties of this object
186
- def update!(**args)
187
- @level = args[:level] if args.key?(:level)
188
- @details = args[:details] if args.key?(:details)
189
- @client_info = args[:client_info] if args.key?(:client_info)
190
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
191
- end
192
- end
97
+ attr_accessor :locality
193
98
 
194
- # Debug information about this request.
195
- class DebugInfo
196
- include Google::Apis::Core::Hashable
99
+ # An object representing a latitude/longitude pair. This is expressed as a pair
100
+ # of doubles representing degrees latitude and degrees longitude. Unless
101
+ # specified otherwise, this must conform to the
102
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
103
+ # standard</a>. Values must be within normalized ranges.
104
+ # Example of normalization code in Python:
105
+ # def NormalizeLongitude(longitude):
106
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
107
+ # q, r = divmod(longitude, 360.0)
108
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
109
+ # return r - 360.0
110
+ # return r
111
+ # def NormalizeLatLng(latitude, longitude):
112
+ # """Wraps decimal degrees latitude and longitude to
113
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
114
+ # r = latitude % 360.0
115
+ # if r <= 90.0:
116
+ # return r, NormalizeLongitude(longitude)
117
+ # elif r >= 270.0:
118
+ # return r - 360, NormalizeLongitude(longitude)
119
+ # else:
120
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
121
+ # assert 180.0 == NormalizeLongitude(180.0)
122
+ # assert -180.0 == NormalizeLongitude(-180.0)
123
+ # assert -179.0 == NormalizeLongitude(181.0)
124
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
125
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
126
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
127
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
128
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
129
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
130
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
131
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
132
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
133
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
134
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
135
+ # as if it were annotated as ST_LOCATION.
136
+ # Corresponds to the JSON property `latLng`
137
+ # @return [Google::Apis::PartnersV2::LatLng]
138
+ attr_accessor :lat_lng
197
139
 
198
- # Info about the server that serviced this request.
199
- # Corresponds to the JSON property `serverInfo`
140
+ # CLDR (Common Locale Data Repository) region code .
141
+ # Corresponds to the JSON property `regionCode`
200
142
  # @return [String]
201
- attr_accessor :server_info
143
+ attr_accessor :region_code
202
144
 
203
- # Server-side debug stack trace.
204
- # Corresponds to the JSON property `serverTraceInfo`
145
+ # Dependent locality or sublocality. Used for UK dependent localities, or
146
+ # neighborhoods or boroughs in other locations.
147
+ # Corresponds to the JSON property `dependentLocality`
205
148
  # @return [String]
206
- attr_accessor :server_trace_info
149
+ attr_accessor :dependent_locality
207
150
 
208
- # URL of the service that handled this request.
209
- # Corresponds to the JSON property `serviceUrl`
151
+ # The single string version of the address.
152
+ # Corresponds to the JSON property `address`
210
153
  # @return [String]
211
- attr_accessor :service_url
212
-
213
- def initialize(**args)
214
- update!(**args)
215
- end
216
-
217
- # Update properties of this object
218
- def update!(**args)
219
- @server_info = args[:server_info] if args.key?(:server_info)
220
- @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
221
- @service_url = args[:service_url] if args.key?(:service_url)
222
- end
223
- end
224
-
225
- # A lead resource that represents an advertiser contact for a `Company`. These
226
- # are usually generated via Google Partner Search (the advertiser portal).
227
- class Lead
228
- include Google::Apis::Core::Hashable
229
-
230
- # Whether or not the lead signed up for marketing emails
231
- # Corresponds to the JSON property `marketingOptIn`
232
- # @return [Boolean]
233
- attr_accessor :marketing_opt_in
234
- alias_method :marketing_opt_in?, :marketing_opt_in
154
+ attr_accessor :address
235
155
 
236
- # Type of lead.
237
- # Corresponds to the JSON property `type`
156
+ # Values are frequently alphanumeric.
157
+ # Corresponds to the JSON property `postalCode`
238
158
  # @return [String]
239
- attr_accessor :type
240
-
241
- # Represents an amount of money with its currency type.
242
- # Corresponds to the JSON property `minMonthlyBudget`
243
- # @return [Google::Apis::PartnersV2::Money]
244
- attr_accessor :min_monthly_budget
159
+ attr_accessor :postal_code
245
160
 
246
- # First name of lead source.
247
- # Corresponds to the JSON property `givenName`
161
+ # Use of this code is very country-specific, but will refer to a secondary
162
+ # classification code for sorting mail.
163
+ # Corresponds to the JSON property `sortingCode`
248
164
  # @return [String]
249
- attr_accessor :given_name
165
+ attr_accessor :sorting_code
250
166
 
251
- # Language code of the lead's language preference, as defined by
252
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
253
- # (IETF BCP 47, "Tags for Identifying Languages").
167
+ # Language code of the address. Should be in BCP 47 format.
254
168
  # Corresponds to the JSON property `languageCode`
255
169
  # @return [String]
256
170
  attr_accessor :language_code
257
171
 
258
- # Website URL of lead source.
259
- # Corresponds to the JSON property `websiteUrl`
260
- # @return [String]
261
- attr_accessor :website_url
262
-
263
- # List of reasons for using Google Partner Search and creating a lead.
264
- # Corresponds to the JSON property `gpsMotivations`
172
+ # The following address lines represent the most specific part of any
173
+ # address.
174
+ # Corresponds to the JSON property `addressLine`
265
175
  # @return [Array<String>]
266
- attr_accessor :gps_motivations
267
-
268
- # The lead's state in relation to the company.
269
- # Corresponds to the JSON property `state`
270
- # @return [String]
271
- attr_accessor :state
272
-
273
- # Email address of lead source.
274
- # Corresponds to the JSON property `email`
275
- # @return [String]
276
- attr_accessor :email
277
-
278
- # Last name of lead source.
279
- # Corresponds to the JSON property `familyName`
280
- # @return [String]
281
- attr_accessor :family_name
282
-
283
- # ID of the lead.
284
- # Corresponds to the JSON property `id`
285
- # @return [String]
286
- attr_accessor :id
287
-
288
- # Comments lead source gave.
289
- # Corresponds to the JSON property `comments`
290
- # @return [String]
291
- attr_accessor :comments
292
-
293
- # The AdWords Customer ID of the lead.
294
- # Corresponds to the JSON property `adwordsCustomerId`
295
- # @return [Fixnum]
296
- attr_accessor :adwords_customer_id
297
-
298
- # Phone number of lead source.
299
- # Corresponds to the JSON property `phoneNumber`
300
- # @return [String]
301
- attr_accessor :phone_number
302
-
303
- # Timestamp of when this lead was created.
304
- # Corresponds to the JSON property `createTime`
305
- # @return [String]
306
- attr_accessor :create_time
176
+ attr_accessor :address_line
307
177
 
308
178
  def initialize(**args)
309
179
  update!(**args)
@@ -311,38 +181,32 @@ module Google
311
181
 
312
182
  # Update properties of this object
313
183
  def update!(**args)
314
- @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
315
- @type = args[:type] if args.key?(:type)
316
- @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
317
- @given_name = args[:given_name] if args.key?(:given_name)
184
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
185
+ @locality = args[:locality] if args.key?(:locality)
186
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
187
+ @region_code = args[:region_code] if args.key?(:region_code)
188
+ @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
189
+ @address = args[:address] if args.key?(:address)
190
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
191
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
318
192
  @language_code = args[:language_code] if args.key?(:language_code)
319
- @website_url = args[:website_url] if args.key?(:website_url)
320
- @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
321
- @state = args[:state] if args.key?(:state)
322
- @email = args[:email] if args.key?(:email)
323
- @family_name = args[:family_name] if args.key?(:family_name)
324
- @id = args[:id] if args.key?(:id)
325
- @comments = args[:comments] if args.key?(:comments)
326
- @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
327
- @phone_number = args[:phone_number] if args.key?(:phone_number)
328
- @create_time = args[:create_time] if args.key?(:create_time)
193
+ @address_line = args[:address_line] if args.key?(:address_line)
329
194
  end
330
195
  end
331
196
 
332
- # Response message for
333
- # ListUserStates.
334
- class ListUserStatesResponse
197
+ # Status for a Google Partners certification exam.
198
+ class CertificationExamStatus
335
199
  include Google::Apis::Core::Hashable
336
200
 
337
- # User's states.
338
- # Corresponds to the JSON property `userStates`
339
- # @return [Array<String>]
340
- attr_accessor :user_states
201
+ # The type of certification exam.
202
+ # Corresponds to the JSON property `type`
203
+ # @return [String]
204
+ attr_accessor :type
341
205
 
342
- # Common data that is in each API response.
343
- # Corresponds to the JSON property `responseMetadata`
344
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
345
- attr_accessor :response_metadata
206
+ # The number of people who have passed the certification exam.
207
+ # Corresponds to the JSON property `numberUsersPass`
208
+ # @return [Fixnum]
209
+ attr_accessor :number_users_pass
346
210
 
347
211
  def initialize(**args)
348
212
  update!(**args)
@@ -350,95 +214,77 @@ module Google
350
214
 
351
215
  # Update properties of this object
352
216
  def update!(**args)
353
- @user_states = args[:user_states] if args.key?(:user_states)
354
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
217
+ @type = args[:type] if args.key?(:type)
218
+ @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
355
219
  end
356
220
  end
357
221
 
358
- # A CompanyRelation resource representing information about a user's
359
- # affiliation and standing with a company in Partners.
360
- class CompanyRelation
222
+ # A token that allows a user to take an exam.
223
+ class ExamToken
361
224
  include Google::Apis::Core::Hashable
362
225
 
363
- # The timestamp when the user was approved.
364
- # @OutputOnly
365
- # Corresponds to the JSON property `resolvedTimestamp`
366
- # @return [String]
367
- attr_accessor :resolved_timestamp
368
-
369
- # Indicates if the user is an admin for this company.
370
- # Corresponds to the JSON property `companyAdmin`
371
- # @return [Boolean]
372
- attr_accessor :company_admin
373
- alias_method :company_admin?, :company_admin
374
-
375
- # The primary address for this company.
376
- # Corresponds to the JSON property `address`
377
- # @return [String]
378
- attr_accessor :address
379
-
380
- # The flag that indicates if the company is pending verification.
381
- # Corresponds to the JSON property `isPending`
382
- # @return [Boolean]
383
- attr_accessor :is_pending
384
- alias_method :is_pending?, :is_pending
385
-
386
- # The timestamp of when affiliation was requested.
387
- # @OutputOnly
388
- # Corresponds to the JSON property `creationTime`
389
- # @return [String]
390
- attr_accessor :creation_time
391
-
392
- # The state of relationship, in terms of approvals.
393
- # Corresponds to the JSON property `state`
394
- # @return [String]
395
- attr_accessor :state
396
-
397
- # The name (in the company's primary language) for the company.
398
- # Corresponds to the JSON property `name`
226
+ # The type of the exam the token belongs to.
227
+ # Corresponds to the JSON property `examType`
399
228
  # @return [String]
400
- attr_accessor :name
401
-
402
- # The AdWords manager account # associated this company.
403
- # Corresponds to the JSON property `managerAccount`
404
- # @return [Fixnum]
405
- attr_accessor :manager_account
229
+ attr_accessor :exam_type
406
230
 
407
- # The segment the company is classified as.
408
- # Corresponds to the JSON property `segment`
409
- # @return [Array<String>]
410
- attr_accessor :segment
231
+ # The id of the exam the token is for.
232
+ # Corresponds to the JSON property `examId`
233
+ # @return [Fixnum]
234
+ attr_accessor :exam_id
411
235
 
412
- # Whether the company is a Partner.
413
- # Corresponds to the JSON property `badgeTier`
236
+ # The token, only present if the user has access to the exam.
237
+ # Corresponds to the JSON property `token`
414
238
  # @return [String]
415
- attr_accessor :badge_tier
239
+ attr_accessor :token
416
240
 
417
- # The list of Google Partners specialization statuses for the company.
418
- # Corresponds to the JSON property `specializationStatus`
419
- # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
420
- attr_accessor :specialization_status
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
421
244
 
422
- # The phone number for the company's primary address.
423
- # Corresponds to the JSON property `phoneNumber`
424
- # @return [String]
425
- attr_accessor :phone_number
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
248
+ @exam_id = args[:exam_id] if args.key?(:exam_id)
249
+ @token = args[:token] if args.key?(:token)
250
+ end
251
+ end
426
252
 
427
- # The website URL for this company.
428
- # Corresponds to the JSON property `website`
429
- # @return [String]
430
- attr_accessor :website
253
+ # A set of opt-ins for a user.
254
+ class OptIns
255
+ include Google::Apis::Core::Hashable
431
256
 
432
- # The ID of the company. There may be no id if this is a
433
- # pending company.5
434
- # Corresponds to the JSON property `companyId`
435
- # @return [String]
436
- attr_accessor :company_id
257
+ # An opt-in about receiving email regarding new features and products.
258
+ # Corresponds to the JSON property `specialOffers`
259
+ # @return [Boolean]
260
+ attr_accessor :special_offers
261
+ alias_method :special_offers?, :special_offers
437
262
 
438
- # A URL to a profile photo, e.g. a G+ profile photo.
439
- # Corresponds to the JSON property `logoUrl`
440
- # @return [String]
441
- attr_accessor :logo_url
263
+ # An opt-in about receiving email with customized AdWords campaign management
264
+ # tips.
265
+ # Corresponds to the JSON property `performanceSuggestions`
266
+ # @return [Boolean]
267
+ attr_accessor :performance_suggestions
268
+ alias_method :performance_suggestions?, :performance_suggestions
269
+
270
+ # An opt-in to receive special promotional gifts and material in the mail.
271
+ # Corresponds to the JSON property `physicalMail`
272
+ # @return [Boolean]
273
+ attr_accessor :physical_mail
274
+ alias_method :physical_mail?, :physical_mail
275
+
276
+ # An opt-in to allow recieivng phone calls about their Partners account.
277
+ # Corresponds to the JSON property `phoneContact`
278
+ # @return [Boolean]
279
+ attr_accessor :phone_contact
280
+ alias_method :phone_contact?, :phone_contact
281
+
282
+ # An opt-in about receiving email from Partners marketing teams. Includes
283
+ # member-only events and special promotional offers for Google products.
284
+ # Corresponds to the JSON property `marketComm`
285
+ # @return [Boolean]
286
+ attr_accessor :market_comm
287
+ alias_method :market_comm?, :market_comm
442
288
 
443
289
  def initialize(**args)
444
290
  update!(**args)
@@ -446,50 +292,27 @@ module Google
446
292
 
447
293
  # Update properties of this object
448
294
  def update!(**args)
449
- @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
450
- @company_admin = args[:company_admin] if args.key?(:company_admin)
451
- @address = args[:address] if args.key?(:address)
452
- @is_pending = args[:is_pending] if args.key?(:is_pending)
453
- @creation_time = args[:creation_time] if args.key?(:creation_time)
454
- @state = args[:state] if args.key?(:state)
455
- @name = args[:name] if args.key?(:name)
456
- @manager_account = args[:manager_account] if args.key?(:manager_account)
457
- @segment = args[:segment] if args.key?(:segment)
458
- @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
459
- @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
460
- @phone_number = args[:phone_number] if args.key?(:phone_number)
461
- @website = args[:website] if args.key?(:website)
462
- @company_id = args[:company_id] if args.key?(:company_id)
463
- @logo_url = args[:logo_url] if args.key?(:logo_url)
295
+ @special_offers = args[:special_offers] if args.key?(:special_offers)
296
+ @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
297
+ @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
298
+ @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
299
+ @market_comm = args[:market_comm] if args.key?(:market_comm)
464
300
  end
465
301
  end
466
302
 
467
- # Represents a whole calendar date, e.g. date of birth. The time of day and
468
- # time zone are either specified elsewhere or are not significant. The date
469
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
470
- # represent a year and month where the day is not significant, e.g. credit card
471
- # expiration date. The year may be 0 to represent a month and day independent
472
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
473
- # and `google.protobuf.Timestamp`.
474
- class Date
303
+ # Information related to ranking of results.
304
+ class Rank
475
305
  include Google::Apis::Core::Hashable
476
306
 
477
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
478
- # a year.
479
- # Corresponds to the JSON property `year`
480
- # @return [Fixnum]
481
- attr_accessor :year
482
-
483
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
484
- # if specifying a year/month where the day is not significant.
485
- # Corresponds to the JSON property `day`
486
- # @return [Fixnum]
487
- attr_accessor :day
307
+ # The type of rank.
308
+ # Corresponds to the JSON property `type`
309
+ # @return [String]
310
+ attr_accessor :type
488
311
 
489
- # Month of year. Must be from 1 to 12.
490
- # Corresponds to the JSON property `month`
491
- # @return [Fixnum]
492
- attr_accessor :month
312
+ # The numerical value of the rank.
313
+ # Corresponds to the JSON property `value`
314
+ # @return [Float]
315
+ attr_accessor :value
493
316
 
494
317
  def initialize(**args)
495
318
  update!(**args)
@@ -497,48 +320,108 @@ module Google
497
320
 
498
321
  # Update properties of this object
499
322
  def update!(**args)
500
- @year = args[:year] if args.key?(:year)
501
- @day = args[:day] if args.key?(:day)
502
- @month = args[:month] if args.key?(:month)
323
+ @type = args[:type] if args.key?(:type)
324
+ @value = args[:value] if args.key?(:value)
503
325
  end
504
326
  end
505
327
 
506
- # A generic empty message that you can re-use to avoid defining duplicated
507
- # empty messages in your APIs. A typical example is to use it as the request
508
- # or the response type of an API method. For instance:
509
- # service Foo `
510
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
511
- # `
512
- # The JSON representation for `Empty` is empty JSON object ````.
513
- class Empty
328
+ # Response message for
329
+ # GetPartnersStatus.
330
+ class GetPartnersStatusResponse
514
331
  include Google::Apis::Core::Hashable
515
332
 
333
+ # Common data that is in each API response.
334
+ # Corresponds to the JSON property `responseMetadata`
335
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
336
+ attr_accessor :response_metadata
337
+
516
338
  def initialize(**args)
517
339
  update!(**args)
518
340
  end
519
341
 
520
342
  # Update properties of this object
521
343
  def update!(**args)
344
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
522
345
  end
523
346
  end
524
347
 
525
- # Source of traffic for the current request.
526
- class TrafficSource
348
+ # The profile information of a Partners user.
349
+ class UserProfile
527
350
  include Google::Apis::Core::Hashable
528
351
 
529
- # Identifier to indicate where the traffic comes from.
530
- # An identifier has multiple letters created by a team which redirected the
531
- # traffic to us.
532
- # Corresponds to the JSON property `trafficSourceId`
352
+ # A list of ids representing which industries the user selected.
353
+ # Corresponds to the JSON property `industries`
354
+ # @return [Array<String>]
355
+ attr_accessor :industries
356
+
357
+ # A set of opt-ins for a user.
358
+ # Corresponds to the JSON property `emailOptIns`
359
+ # @return [Google::Apis::PartnersV2::OptIns]
360
+ attr_accessor :email_opt_ins
361
+
362
+ # The user's family name.
363
+ # Corresponds to the JSON property `familyName`
533
364
  # @return [String]
534
- attr_accessor :traffic_source_id
365
+ attr_accessor :family_name
535
366
 
536
- # Second level identifier to indicate where the traffic comes from.
537
- # An identifier has multiple letters created by a team which redirected the
538
- # traffic to us.
539
- # Corresponds to the JSON property `trafficSubId`
367
+ # The list of languages this user understands.
368
+ # Corresponds to the JSON property `languages`
369
+ # @return [Array<String>]
370
+ attr_accessor :languages
371
+
372
+ # A list of ids representing which markets the user was interested in.
373
+ # Corresponds to the JSON property `markets`
374
+ # @return [Array<String>]
375
+ attr_accessor :markets
376
+
377
+ # If the user has edit access to multiple accounts, the user can choose the
378
+ # preferred account and it is used when a personal account is needed. Can
379
+ # be empty.
380
+ # Corresponds to the JSON property `adwordsManagerAccount`
381
+ # @return [Fixnum]
382
+ attr_accessor :adwords_manager_account
383
+
384
+ # The user's phone number.
385
+ # Corresponds to the JSON property `phoneNumber`
540
386
  # @return [String]
541
- attr_accessor :traffic_sub_id
387
+ attr_accessor :phone_number
388
+
389
+ # The user's primary country, an ISO 2-character code.
390
+ # Corresponds to the JSON property `primaryCountryCode`
391
+ # @return [String]
392
+ attr_accessor :primary_country_code
393
+
394
+ # The email address the user has selected on the Partners site as primary.
395
+ # Corresponds to the JSON property `emailAddress`
396
+ # @return [String]
397
+ attr_accessor :email_address
398
+
399
+ # A list of ids representing which channels the user selected they were in.
400
+ # Corresponds to the JSON property `channels`
401
+ # @return [Array<String>]
402
+ attr_accessor :channels
403
+
404
+ # Whether the user's public profile is visible to anyone with the URL.
405
+ # Corresponds to the JSON property `profilePublic`
406
+ # @return [Boolean]
407
+ attr_accessor :profile_public
408
+ alias_method :profile_public?, :profile_public
409
+
410
+ # A list of ids represnting which job categories the user selected.
411
+ # Corresponds to the JSON property `jobFunctions`
412
+ # @return [Array<String>]
413
+ attr_accessor :job_functions
414
+
415
+ # The user's given name.
416
+ # Corresponds to the JSON property `givenName`
417
+ # @return [String]
418
+ attr_accessor :given_name
419
+
420
+ # A location with address and geographic coordinates. May optionally contain a
421
+ # detailed (multi-field) version of the address.
422
+ # Corresponds to the JSON property `address`
423
+ # @return [Google::Apis::PartnersV2::Location]
424
+ attr_accessor :address
542
425
 
543
426
  def initialize(**args)
544
427
  update!(**args)
@@ -546,74 +429,86 @@ module Google
546
429
 
547
430
  # Update properties of this object
548
431
  def update!(**args)
549
- @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
550
- @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
432
+ @industries = args[:industries] if args.key?(:industries)
433
+ @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
434
+ @family_name = args[:family_name] if args.key?(:family_name)
435
+ @languages = args[:languages] if args.key?(:languages)
436
+ @markets = args[:markets] if args.key?(:markets)
437
+ @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
438
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
439
+ @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
440
+ @email_address = args[:email_address] if args.key?(:email_address)
441
+ @channels = args[:channels] if args.key?(:channels)
442
+ @profile_public = args[:profile_public] if args.key?(:profile_public)
443
+ @job_functions = args[:job_functions] if args.key?(:job_functions)
444
+ @given_name = args[:given_name] if args.key?(:given_name)
445
+ @address = args[:address] if args.key?(:address)
551
446
  end
552
447
  end
553
448
 
554
- # Common data that is in each API request.
555
- class RequestMetadata
449
+ # Historical information about a Google Partners Offer.
450
+ class HistoricalOffer
556
451
  include Google::Apis::Core::Hashable
557
452
 
558
- # Experiment IDs the current request belongs to.
559
- # Corresponds to the JSON property `experimentIds`
560
- # @return [Array<String>]
561
- attr_accessor :experiment_ids
453
+ # ID of client.
454
+ # Corresponds to the JSON property `clientId`
455
+ # @return [Fixnum]
456
+ attr_accessor :client_id
457
+
458
+ # Name of the client.
459
+ # Corresponds to the JSON property `clientName`
460
+ # @return [String]
461
+ attr_accessor :client_name
562
462
 
563
- # Source of traffic for the current request.
564
- # Corresponds to the JSON property `trafficSource`
565
- # @return [Google::Apis::PartnersV2::TrafficSource]
566
- attr_accessor :traffic_source
463
+ # Time last action was taken.
464
+ # Corresponds to the JSON property `lastModifiedTime`
465
+ # @return [String]
466
+ attr_accessor :last_modified_time
567
467
 
568
- # Locale to use for the current request.
569
- # Corresponds to the JSON property `locale`
468
+ # Client's AdWords page URL.
469
+ # Corresponds to the JSON property `adwordsUrl`
570
470
  # @return [String]
571
- attr_accessor :locale
471
+ attr_accessor :adwords_url
572
472
 
573
- # Values to use instead of the user's respective defaults. These are only
574
- # honored by whitelisted products.
575
- # Corresponds to the JSON property `userOverrides`
576
- # @return [Google::Apis::PartnersV2::UserOverrides]
577
- attr_accessor :user_overrides
473
+ # Type of offer.
474
+ # Corresponds to the JSON property `offerType`
475
+ # @return [String]
476
+ attr_accessor :offer_type
578
477
 
579
- # Google Partners session ID.
580
- # Corresponds to the JSON property `partnersSessionId`
478
+ # Name (First + Last) of the partners user to whom the incentive is allocated.
479
+ # Corresponds to the JSON property `senderName`
581
480
  # @return [String]
582
- attr_accessor :partners_session_id
481
+ attr_accessor :sender_name
583
482
 
584
- def initialize(**args)
585
- update!(**args)
586
- end
483
+ # Country Code for the offer country.
484
+ # Corresponds to the JSON property `offerCountryCode`
485
+ # @return [String]
486
+ attr_accessor :offer_country_code
587
487
 
588
- # Update properties of this object
589
- def update!(**args)
590
- @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
591
- @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
592
- @locale = args[:locale] if args.key?(:locale)
593
- @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
594
- @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
595
- end
596
- end
488
+ # Time this offer expires.
489
+ # Corresponds to the JSON property `expirationTime`
490
+ # @return [String]
491
+ attr_accessor :expiration_time
597
492
 
598
- # Request message for CreateLead.
599
- class CreateLeadRequest
600
- include Google::Apis::Core::Hashable
493
+ # Offer code.
494
+ # Corresponds to the JSON property `offerCode`
495
+ # @return [String]
496
+ attr_accessor :offer_code
601
497
 
602
- # Common data that is in each API request.
603
- # Corresponds to the JSON property `requestMetadata`
604
- # @return [Google::Apis::PartnersV2::RequestMetadata]
605
- attr_accessor :request_metadata
498
+ # Time offer was first created.
499
+ # Corresponds to the JSON property `creationTime`
500
+ # @return [String]
501
+ attr_accessor :creation_time
606
502
 
607
- # A lead resource that represents an advertiser contact for a `Company`. These
608
- # are usually generated via Google Partner Search (the advertiser portal).
609
- # Corresponds to the JSON property `lead`
610
- # @return [Google::Apis::PartnersV2::Lead]
611
- attr_accessor :lead
503
+ # Status of the offer.
504
+ # Corresponds to the JSON property `status`
505
+ # @return [String]
506
+ attr_accessor :status
612
507
 
613
- # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
614
- # Corresponds to the JSON property `recaptchaChallenge`
615
- # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
616
- attr_accessor :recaptcha_challenge
508
+ # Email address for client.
509
+ # Corresponds to the JSON property `clientEmail`
510
+ # @return [String]
511
+ attr_accessor :client_email
617
512
 
618
513
  def initialize(**args)
619
514
  update!(**args)
@@ -621,25 +516,35 @@ module Google
621
516
 
622
517
  # Update properties of this object
623
518
  def update!(**args)
624
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
625
- @lead = args[:lead] if args.key?(:lead)
626
- @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
519
+ @client_id = args[:client_id] if args.key?(:client_id)
520
+ @client_name = args[:client_name] if args.key?(:client_name)
521
+ @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
522
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
523
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
524
+ @sender_name = args[:sender_name] if args.key?(:sender_name)
525
+ @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
526
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
527
+ @offer_code = args[:offer_code] if args.key?(:offer_code)
528
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
529
+ @status = args[:status] if args.key?(:status)
530
+ @client_email = args[:client_email] if args.key?(:client_email)
627
531
  end
628
532
  end
629
533
 
630
- # Key value data pair for an event.
631
- class EventData
534
+ # Values to use instead of the user's respective defaults. These are only
535
+ # honored by whitelisted products.
536
+ class UserOverrides
632
537
  include Google::Apis::Core::Hashable
633
538
 
634
- # Data type.
635
- # Corresponds to the JSON property `key`
539
+ # IP address to use instead of the user's geo-located IP address.
540
+ # Corresponds to the JSON property `ipAddress`
636
541
  # @return [String]
637
- attr_accessor :key
542
+ attr_accessor :ip_address
638
543
 
639
- # Data values.
640
- # Corresponds to the JSON property `values`
641
- # @return [Array<String>]
642
- attr_accessor :values
544
+ # Logged-in user ID to impersonate instead of the user's ID.
545
+ # Corresponds to the JSON property `userId`
546
+ # @return [String]
547
+ attr_accessor :user_id
643
548
 
644
549
  def initialize(**args)
645
550
  update!(**args)
@@ -647,46 +552,51 @@ module Google
647
552
 
648
553
  # Update properties of this object
649
554
  def update!(**args)
650
- @key = args[:key] if args.key?(:key)
651
- @values = args[:values] if args.key?(:values)
555
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
556
+ @user_id = args[:user_id] if args.key?(:user_id)
652
557
  end
653
558
  end
654
559
 
655
- # A user's information on a specific exam.
656
- class ExamStatus
560
+ # Request message for
561
+ # LogUserEvent.
562
+ class LogUserEventRequest
657
563
  include Google::Apis::Core::Hashable
658
564
 
659
- # The date the user last taken this exam.
660
- # Corresponds to the JSON property `taken`
565
+ # The category the action belongs to.
566
+ # Corresponds to the JSON property `eventCategory`
661
567
  # @return [String]
662
- attr_accessor :taken
568
+ attr_accessor :event_category
663
569
 
664
- # Whether this exam has been passed and not expired.
665
- # Corresponds to the JSON property `passed`
666
- # @return [Boolean]
667
- attr_accessor :passed
668
- alias_method :passed?, :passed
570
+ # A lead resource that represents an advertiser contact for a `Company`. These
571
+ # are usually generated via Google Partner Search (the advertiser portal).
572
+ # Corresponds to the JSON property `lead`
573
+ # @return [Google::Apis::PartnersV2::Lead]
574
+ attr_accessor :lead
669
575
 
670
- # Date this exam is due to expire.
671
- # Corresponds to the JSON property `expiration`
576
+ # The action that occurred.
577
+ # Corresponds to the JSON property `eventAction`
672
578
  # @return [String]
673
- attr_accessor :expiration
579
+ attr_accessor :event_action
674
580
 
675
- # Whether this exam is in the state of warning.
676
- # Corresponds to the JSON property `warning`
677
- # @return [Boolean]
678
- attr_accessor :warning
679
- alias_method :warning?, :warning
581
+ # Common data that is in each API request.
582
+ # Corresponds to the JSON property `requestMetadata`
583
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
584
+ attr_accessor :request_metadata
680
585
 
681
- # The date the user last passed this exam.
682
- # Corresponds to the JSON property `lastPassed`
586
+ # The URL where the event occurred.
587
+ # Corresponds to the JSON property `url`
683
588
  # @return [String]
684
- attr_accessor :last_passed
589
+ attr_accessor :url
685
590
 
686
- # The type of the exam.
687
- # Corresponds to the JSON property `examType`
591
+ # The scope of the event.
592
+ # Corresponds to the JSON property `eventScope`
688
593
  # @return [String]
689
- attr_accessor :exam_type
594
+ attr_accessor :event_scope
595
+
596
+ # List of event data for the event.
597
+ # Corresponds to the JSON property `eventDatas`
598
+ # @return [Array<Google::Apis::PartnersV2::EventData>]
599
+ attr_accessor :event_datas
690
600
 
691
601
  def initialize(**args)
692
602
  update!(**args)
@@ -694,33 +604,30 @@ module Google
694
604
 
695
605
  # Update properties of this object
696
606
  def update!(**args)
697
- @taken = args[:taken] if args.key?(:taken)
698
- @passed = args[:passed] if args.key?(:passed)
699
- @expiration = args[:expiration] if args.key?(:expiration)
700
- @warning = args[:warning] if args.key?(:warning)
701
- @last_passed = args[:last_passed] if args.key?(:last_passed)
702
- @exam_type = args[:exam_type] if args.key?(:exam_type)
607
+ @event_category = args[:event_category] if args.key?(:event_category)
608
+ @lead = args[:lead] if args.key?(:lead)
609
+ @event_action = args[:event_action] if args.key?(:event_action)
610
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
611
+ @url = args[:url] if args.key?(:url)
612
+ @event_scope = args[:event_scope] if args.key?(:event_scope)
613
+ @event_datas = args[:event_datas] if args.key?(:event_datas)
703
614
  end
704
615
  end
705
616
 
706
- # Response for ListOffer.
707
- class ListOffersResponse
617
+ # Details of the analytics events for a `Company` within a single day.
618
+ class AnalyticsDataPoint
708
619
  include Google::Apis::Core::Hashable
709
620
 
710
- # Common data that is in each API response.
711
- # Corresponds to the JSON property `responseMetadata`
712
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
713
- attr_accessor :response_metadata
714
-
715
- # Reason why no Offers are available.
716
- # Corresponds to the JSON property `noOfferReason`
717
- # @return [String]
718
- attr_accessor :no_offer_reason
621
+ # Number of times the type of event occurred.
622
+ # Meaning depends on context (e.g. profile views, contacts, etc.).
623
+ # Corresponds to the JSON property `eventCount`
624
+ # @return [Fixnum]
625
+ attr_accessor :event_count
719
626
 
720
- # Available Offers to be distributed.
721
- # Corresponds to the JSON property `availableOffers`
722
- # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
723
- attr_accessor :available_offers
627
+ # Location information of where these events occurred.
628
+ # Corresponds to the JSON property `eventLocations`
629
+ # @return [Array<Google::Apis::PartnersV2::LatLng>]
630
+ attr_accessor :event_locations
724
631
 
725
632
  def initialize(**args)
726
633
  update!(**args)
@@ -728,35 +635,40 @@ module Google
728
635
 
729
636
  # Update properties of this object
730
637
  def update!(**args)
731
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
732
- @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
733
- @available_offers = args[:available_offers] if args.key?(:available_offers)
638
+ @event_count = args[:event_count] if args.key?(:event_count)
639
+ @event_locations = args[:event_locations] if args.key?(:event_locations)
734
640
  end
735
641
  end
736
642
 
737
- # Offer info by country.
738
- class CountryOfferInfo
643
+ # Analytics data for a `Company` within a single day.
644
+ class Analytics
739
645
  include Google::Apis::Core::Hashable
740
646
 
741
- # Country code for which offer codes may be requested.
742
- # Corresponds to the JSON property `offerCountryCode`
743
- # @return [String]
744
- attr_accessor :offer_country_code
647
+ # Details of the analytics events for a `Company` within a single day.
648
+ # Corresponds to the JSON property `contacts`
649
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
650
+ attr_accessor :contacts
745
651
 
746
- # (localized) Spend X amount for that country's offer.
747
- # Corresponds to the JSON property `spendXAmount`
748
- # @return [String]
749
- attr_accessor :spend_x_amount
652
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
653
+ # time zone are either specified elsewhere or are not significant. The date
654
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
655
+ # represent a year and month where the day is not significant, e.g. credit card
656
+ # expiration date. The year may be 0 to represent a month and day independent
657
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
658
+ # and `google.protobuf.Timestamp`.
659
+ # Corresponds to the JSON property `eventDate`
660
+ # @return [Google::Apis::PartnersV2::Date]
661
+ attr_accessor :event_date
750
662
 
751
- # Type of offer country is eligible for.
752
- # Corresponds to the JSON property `offerType`
753
- # @return [String]
754
- attr_accessor :offer_type
663
+ # Details of the analytics events for a `Company` within a single day.
664
+ # Corresponds to the JSON property `profileViews`
665
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
666
+ attr_accessor :profile_views
755
667
 
756
- # (localized) Get Y amount for that country's offer.
757
- # Corresponds to the JSON property `getYAmount`
758
- # @return [String]
759
- attr_accessor :get_y_amount
668
+ # Details of the analytics events for a `Company` within a single day.
669
+ # Corresponds to the JSON property `searchViews`
670
+ # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
671
+ attr_accessor :search_views
760
672
 
761
673
  def initialize(**args)
762
674
  update!(**args)
@@ -764,36 +676,27 @@ module Google
764
676
 
765
677
  # Update properties of this object
766
678
  def update!(**args)
767
- @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
768
- @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
769
- @offer_type = args[:offer_type] if args.key?(:offer_type)
770
- @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
679
+ @contacts = args[:contacts] if args.key?(:contacts)
680
+ @event_date = args[:event_date] if args.key?(:event_date)
681
+ @profile_views = args[:profile_views] if args.key?(:profile_views)
682
+ @search_views = args[:search_views] if args.key?(:search_views)
771
683
  end
772
684
  end
773
685
 
774
- # Response message for
775
- # ListCompanies.
776
- class ListCompaniesResponse
686
+ # Information about a particular AdWords Manager Account.
687
+ # Read more at https://support.google.com/adwords/answer/6139186
688
+ class AdWordsManagerAccountInfo
777
689
  include Google::Apis::Core::Hashable
778
690
 
779
- # Common data that is in each API response.
780
- # Corresponds to the JSON property `responseMetadata`
781
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
782
- attr_accessor :response_metadata
783
-
784
- # The list of companies.
785
- # Corresponds to the JSON property `companies`
786
- # @return [Array<Google::Apis::PartnersV2::Company>]
787
- attr_accessor :companies
691
+ # The AdWords Manager Account id.
692
+ # Corresponds to the JSON property `id`
693
+ # @return [Fixnum]
694
+ attr_accessor :id
788
695
 
789
- # A token to retrieve next page of results.
790
- # Pass this value in the `ListCompaniesRequest.page_token` field in the
791
- # subsequent call to
792
- # ListCompanies to retrieve the
793
- # next page of results.
794
- # Corresponds to the JSON property `nextPageToken`
696
+ # Name of the customer this account represents.
697
+ # Corresponds to the JSON property `customerName`
795
698
  # @return [String]
796
- attr_accessor :next_page_token
699
+ attr_accessor :customer_name
797
700
 
798
701
  def initialize(**args)
799
702
  update!(**args)
@@ -801,60 +704,62 @@ module Google
801
704
 
802
705
  # Update properties of this object
803
706
  def update!(**args)
804
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
805
- @companies = args[:companies] if args.key?(:companies)
806
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
707
+ @id = args[:id] if args.key?(:id)
708
+ @customer_name = args[:customer_name] if args.key?(:customer_name)
807
709
  end
808
710
  end
809
711
 
810
- # Customers qualified for an offer.
811
- class OfferCustomer
712
+ # Basic information from a public profile.
713
+ class PublicProfile
812
714
  include Google::Apis::Core::Hashable
813
715
 
814
- # Formatted Get Y amount with currency code.
815
- # Corresponds to the JSON property `getYAmount`
716
+ # The ID which can be used to retrieve more details about the public profile.
717
+ # Corresponds to the JSON property `id`
816
718
  # @return [String]
817
- attr_accessor :get_y_amount
719
+ attr_accessor :id
818
720
 
819
- # Name of the customer.
820
- # Corresponds to the JSON property `name`
721
+ # The URL of the public profile.
722
+ # Corresponds to the JSON property `url`
821
723
  # @return [String]
822
- attr_accessor :name
724
+ attr_accessor :url
823
725
 
824
- # Formatted Spend X amount with currency code.
825
- # Corresponds to the JSON property `spendXAmount`
726
+ # The URL to the main profile image of the public profile.
727
+ # Corresponds to the JSON property `profileImage`
826
728
  # @return [String]
827
- attr_accessor :spend_x_amount
729
+ attr_accessor :profile_image
828
730
 
829
- # URL to the customer's AdWords page.
830
- # Corresponds to the JSON property `adwordsUrl`
731
+ # The display name of the public profile.
732
+ # Corresponds to the JSON property `displayName`
831
733
  # @return [String]
832
- attr_accessor :adwords_url
734
+ attr_accessor :display_name
833
735
 
834
- # Type of the offer
835
- # Corresponds to the JSON property `offerType`
736
+ # The URL to the main display image of the public profile. Being deprecated.
737
+ # Corresponds to the JSON property `displayImageUrl`
836
738
  # @return [String]
837
- attr_accessor :offer_type
739
+ attr_accessor :display_image_url
838
740
 
839
- # Country code of the customer.
840
- # Corresponds to the JSON property `countryCode`
841
- # @return [String]
842
- attr_accessor :country_code
741
+ def initialize(**args)
742
+ update!(**args)
743
+ end
843
744
 
844
- # External CID for the customer.
845
- # Corresponds to the JSON property `externalCid`
846
- # @return [Fixnum]
847
- attr_accessor :external_cid
745
+ # Update properties of this object
746
+ def update!(**args)
747
+ @id = args[:id] if args.key?(:id)
748
+ @url = args[:url] if args.key?(:url)
749
+ @profile_image = args[:profile_image] if args.key?(:profile_image)
750
+ @display_name = args[:display_name] if args.key?(:display_name)
751
+ @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
752
+ end
753
+ end
848
754
 
849
- # Days the customer is still eligible.
850
- # Corresponds to the JSON property `eligibilityDaysLeft`
851
- # @return [Fixnum]
852
- attr_accessor :eligibility_days_left
755
+ # Common data that is in each API response.
756
+ class ResponseMetadata
757
+ include Google::Apis::Core::Hashable
853
758
 
854
- # Time the customer was created.
855
- # Corresponds to the JSON property `creationTime`
856
- # @return [String]
857
- attr_accessor :creation_time
759
+ # Debug information about this request.
760
+ # Corresponds to the JSON property `debugInfo`
761
+ # @return [Google::Apis::PartnersV2::DebugInfo]
762
+ attr_accessor :debug_info
858
763
 
859
764
  def initialize(**args)
860
765
  update!(**args)
@@ -862,42 +767,23 @@ module Google
862
767
 
863
768
  # Update properties of this object
864
769
  def update!(**args)
865
- @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
866
- @name = args[:name] if args.key?(:name)
867
- @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
868
- @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
869
- @offer_type = args[:offer_type] if args.key?(:offer_type)
870
- @country_code = args[:country_code] if args.key?(:country_code)
871
- @external_cid = args[:external_cid] if args.key?(:external_cid)
872
- @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
873
- @creation_time = args[:creation_time] if args.key?(:creation_time)
770
+ @debug_info = args[:debug_info] if args.key?(:debug_info)
874
771
  end
875
772
  end
876
773
 
877
- # Google Partners certification status.
878
- class CertificationStatus
774
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
775
+ class RecaptchaChallenge
879
776
  include Google::Apis::Core::Hashable
880
777
 
881
- # List of certification exam statuses.
882
- # Corresponds to the JSON property `examStatuses`
883
- # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
884
- attr_accessor :exam_statuses
885
-
886
- # The type of the certification.
887
- # Corresponds to the JSON property `type`
778
+ # The ID of the reCaptcha challenge.
779
+ # Corresponds to the JSON property `id`
888
780
  # @return [String]
889
- attr_accessor :type
890
-
891
- # Number of people who are certified,
892
- # Corresponds to the JSON property `userCount`
893
- # @return [Fixnum]
894
- attr_accessor :user_count
781
+ attr_accessor :id
895
782
 
896
- # Whether certification is passing.
897
- # Corresponds to the JSON property `isCertified`
898
- # @return [Boolean]
899
- attr_accessor :is_certified
900
- alias_method :is_certified?, :is_certified
783
+ # The response to the reCaptcha challenge.
784
+ # Corresponds to the JSON property `response`
785
+ # @return [String]
786
+ attr_accessor :response
901
787
 
902
788
  def initialize(**args)
903
789
  update!(**args)
@@ -905,38 +791,76 @@ module Google
905
791
 
906
792
  # Update properties of this object
907
793
  def update!(**args)
908
- @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
909
- @type = args[:type] if args.key?(:type)
910
- @user_count = args[:user_count] if args.key?(:user_count)
911
- @is_certified = args[:is_certified] if args.key?(:is_certified)
794
+ @id = args[:id] if args.key?(:id)
795
+ @response = args[:response] if args.key?(:response)
912
796
  end
913
797
  end
914
798
 
915
- # The localized company information.
916
- class LocalizedCompanyInfo
799
+ # Available Offers to be distributed.
800
+ class AvailableOffer
917
801
  include Google::Apis::Core::Hashable
918
802
 
919
- # List of country codes for the localized company info.
920
- # Corresponds to the JSON property `countryCodes`
921
- # @return [Array<String>]
922
- attr_accessor :country_codes
803
+ # Description of the offer.
804
+ # Corresponds to the JSON property `description`
805
+ # @return [String]
806
+ attr_accessor :description
923
807
 
924
- # Localized brief description that the company uses to advertise themselves.
925
- # Corresponds to the JSON property `overview`
808
+ # Level of this offer.
809
+ # Corresponds to the JSON property `offerLevel`
926
810
  # @return [String]
927
- attr_accessor :overview
811
+ attr_accessor :offer_level
928
812
 
929
- # Localized display name.
930
- # Corresponds to the JSON property `displayName`
813
+ # Name of the offer.
814
+ # Corresponds to the JSON property `name`
931
815
  # @return [String]
932
- attr_accessor :display_name
816
+ attr_accessor :name
933
817
 
934
- # Language code of the localized company info, as defined by
935
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
936
- # (IETF BCP 47, "Tags for Identifying Languages").
937
- # Corresponds to the JSON property `languageCode`
818
+ # Whether or not the list of qualified customers is definitely complete.
819
+ # Corresponds to the JSON property `qualifiedCustomersComplete`
820
+ # @return [Boolean]
821
+ attr_accessor :qualified_customers_complete
822
+ alias_method :qualified_customers_complete?, :qualified_customers_complete
823
+
824
+ # ID of this offer.
825
+ # Corresponds to the JSON property `id`
826
+ # @return [Fixnum]
827
+ attr_accessor :id
828
+
829
+ # Offer info by country.
830
+ # Corresponds to the JSON property `countryOfferInfos`
831
+ # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
832
+ attr_accessor :country_offer_infos
833
+
834
+ # Type of offer.
835
+ # Corresponds to the JSON property `offerType`
938
836
  # @return [String]
939
- attr_accessor :language_code
837
+ attr_accessor :offer_type
838
+
839
+ # The maximum age of an account [in days] to be eligible.
840
+ # Corresponds to the JSON property `maxAccountAge`
841
+ # @return [Fixnum]
842
+ attr_accessor :max_account_age
843
+
844
+ # Customers who qualify for this offer.
845
+ # Corresponds to the JSON property `qualifiedCustomer`
846
+ # @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
847
+ attr_accessor :qualified_customer
848
+
849
+ # Terms of the offer.
850
+ # Corresponds to the JSON property `terms`
851
+ # @return [String]
852
+ attr_accessor :terms
853
+
854
+ # Should special text be shown on the offers page.
855
+ # Corresponds to the JSON property `showSpecialOfferCopy`
856
+ # @return [Boolean]
857
+ attr_accessor :show_special_offer_copy
858
+ alias_method :show_special_offer_copy?, :show_special_offer_copy
859
+
860
+ # The number of codes for this offer that are available for distribution.
861
+ # Corresponds to the JSON property `available`
862
+ # @return [Fixnum]
863
+ attr_accessor :available
940
864
 
941
865
  def initialize(**args)
942
866
  update!(**args)
@@ -944,22 +868,70 @@ module Google
944
868
 
945
869
  # Update properties of this object
946
870
  def update!(**args)
947
- @country_codes = args[:country_codes] if args.key?(:country_codes)
948
- @overview = args[:overview] if args.key?(:overview)
949
- @display_name = args[:display_name] if args.key?(:display_name)
950
- @language_code = args[:language_code] if args.key?(:language_code)
871
+ @description = args[:description] if args.key?(:description)
872
+ @offer_level = args[:offer_level] if args.key?(:offer_level)
873
+ @name = args[:name] if args.key?(:name)
874
+ @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
875
+ @id = args[:id] if args.key?(:id)
876
+ @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
877
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
878
+ @max_account_age = args[:max_account_age] if args.key?(:max_account_age)
879
+ @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
880
+ @terms = args[:terms] if args.key?(:terms)
881
+ @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
882
+ @available = args[:available] if args.key?(:available)
951
883
  end
952
884
  end
953
885
 
954
- # Response message for
955
- # LogUserEvent.
956
- class LogUserEventResponse
886
+ # An object representing a latitude/longitude pair. This is expressed as a pair
887
+ # of doubles representing degrees latitude and degrees longitude. Unless
888
+ # specified otherwise, this must conform to the
889
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
890
+ # standard</a>. Values must be within normalized ranges.
891
+ # Example of normalization code in Python:
892
+ # def NormalizeLongitude(longitude):
893
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
894
+ # q, r = divmod(longitude, 360.0)
895
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
896
+ # return r - 360.0
897
+ # return r
898
+ # def NormalizeLatLng(latitude, longitude):
899
+ # """Wraps decimal degrees latitude and longitude to
900
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
901
+ # r = latitude % 360.0
902
+ # if r <= 90.0:
903
+ # return r, NormalizeLongitude(longitude)
904
+ # elif r >= 270.0:
905
+ # return r - 360, NormalizeLongitude(longitude)
906
+ # else:
907
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
908
+ # assert 180.0 == NormalizeLongitude(180.0)
909
+ # assert -180.0 == NormalizeLongitude(-180.0)
910
+ # assert -179.0 == NormalizeLongitude(181.0)
911
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
912
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
913
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
914
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
915
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
916
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
917
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
918
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
919
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
920
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
921
+ # The code in logs/storage/validator/logs_validator_traits.cc treats this type
922
+ # as if it were annotated as ST_LOCATION.
923
+ class LatLng
957
924
  include Google::Apis::Core::Hashable
958
925
 
959
- # Common data that is in each API response.
960
- # Corresponds to the JSON property `responseMetadata`
961
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
962
- attr_accessor :response_metadata
926
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
927
+ # Corresponds to the JSON property `longitude`
928
+ # @return [Float]
929
+ attr_accessor :longitude
930
+
931
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
932
+ # Corresponds to the JSON property `latitude`
933
+ # @return [Float]
934
+ attr_accessor :latitude
963
935
 
964
936
  def initialize(**args)
965
937
  update!(**args)
@@ -967,45 +939,35 @@ module Google
967
939
 
968
940
  # Update properties of this object
969
941
  def update!(**args)
970
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
942
+ @longitude = args[:longitude] if args.key?(:longitude)
943
+ @latitude = args[:latitude] if args.key?(:latitude)
971
944
  end
972
945
  end
973
946
 
974
- # Response for ListOfferHistory.
975
- class ListOffersHistoryResponse
947
+ # Represents an amount of money with its currency type.
948
+ class Money
976
949
  include Google::Apis::Core::Hashable
977
950
 
978
- # True if the user has the option to show entire company history.
979
- # Corresponds to the JSON property `canShowEntireCompany`
980
- # @return [Boolean]
981
- attr_accessor :can_show_entire_company
982
- alias_method :can_show_entire_company?, :can_show_entire_company
983
-
984
- # Number of results across all pages.
985
- # Corresponds to the JSON property `totalResults`
951
+ # The whole units of the amount.
952
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
953
+ # Corresponds to the JSON property `units`
986
954
  # @return [Fixnum]
987
- attr_accessor :total_results
988
-
989
- # True if this response is showing entire company history.
990
- # Corresponds to the JSON property `showingEntireCompany`
991
- # @return [Boolean]
992
- attr_accessor :showing_entire_company
993
- alias_method :showing_entire_company?, :showing_entire_company
994
-
995
- # Historical offers meeting request.
996
- # Corresponds to the JSON property `offers`
997
- # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
998
- attr_accessor :offers
955
+ attr_accessor :units
999
956
 
1000
- # Supply this token in a ListOffersHistoryRequest to retrieve the next page.
1001
- # Corresponds to the JSON property `nextPageToken`
957
+ # The 3-letter currency code defined in ISO 4217.
958
+ # Corresponds to the JSON property `currencyCode`
1002
959
  # @return [String]
1003
- attr_accessor :next_page_token
960
+ attr_accessor :currency_code
1004
961
 
1005
- # Common data that is in each API response.
1006
- # Corresponds to the JSON property `responseMetadata`
1007
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
1008
- attr_accessor :response_metadata
962
+ # Number of nano (10^-9) units of the amount.
963
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
964
+ # If `units` is positive, `nanos` must be positive or zero.
965
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
966
+ # If `units` is negative, `nanos` must be negative or zero.
967
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
968
+ # Corresponds to the JSON property `nanos`
969
+ # @return [Fixnum]
970
+ attr_accessor :nanos
1009
971
 
1010
972
  def initialize(**args)
1011
973
  update!(**args)
@@ -1013,24 +975,32 @@ module Google
1013
975
 
1014
976
  # Update properties of this object
1015
977
  def update!(**args)
1016
- @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
1017
- @total_results = args[:total_results] if args.key?(:total_results)
1018
- @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
1019
- @offers = args[:offers] if args.key?(:offers)
1020
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1021
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
978
+ @units = args[:units] if args.key?(:units)
979
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
980
+ @nanos = args[:nanos] if args.key?(:nanos)
1022
981
  end
1023
982
  end
1024
983
 
1025
- # Response message for
1026
- # LogClientMessage.
1027
- class LogMessageResponse
984
+ # Analytics aggregated data for a `Company` for a given date range.
985
+ class AnalyticsSummary
1028
986
  include Google::Apis::Core::Hashable
1029
987
 
1030
- # Common data that is in each API response.
1031
- # Corresponds to the JSON property `responseMetadata`
1032
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
1033
- attr_accessor :response_metadata
988
+ # Aggregated number of profile views for the `Company` for given date range.
989
+ # Corresponds to the JSON property `profileViewsCount`
990
+ # @return [Fixnum]
991
+ attr_accessor :profile_views_count
992
+
993
+ # Aggregated number of times users saw the `Company`
994
+ # in Google Partners Search results for given date range.
995
+ # Corresponds to the JSON property `searchViewsCount`
996
+ # @return [Fixnum]
997
+ attr_accessor :search_views_count
998
+
999
+ # Aggregated number of times users contacted the `Company`
1000
+ # for given date range.
1001
+ # Corresponds to the JSON property `contactsCount`
1002
+ # @return [Fixnum]
1003
+ attr_accessor :contacts_count
1034
1004
 
1035
1005
  def initialize(**args)
1036
1006
  update!(**args)
@@ -1038,23 +1008,36 @@ module Google
1038
1008
 
1039
1009
  # Update properties of this object
1040
1010
  def update!(**args)
1041
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1011
+ @profile_views_count = args[:profile_views_count] if args.key?(:profile_views_count)
1012
+ @search_views_count = args[:search_views_count] if args.key?(:search_views_count)
1013
+ @contacts_count = args[:contacts_count] if args.key?(:contacts_count)
1042
1014
  end
1043
1015
  end
1044
1016
 
1045
- # Agency specialization status
1046
- class SpecializationStatus
1017
+ # Request message for
1018
+ # LogClientMessage.
1019
+ class LogMessageRequest
1047
1020
  include Google::Apis::Core::Hashable
1048
1021
 
1049
- # The specialization this status is for.
1050
- # Corresponds to the JSON property `badgeSpecialization`
1022
+ # Map of client info, such as URL, browser navigator, browser platform, etc.
1023
+ # Corresponds to the JSON property `clientInfo`
1024
+ # @return [Hash<String,String>]
1025
+ attr_accessor :client_info
1026
+
1027
+ # Common data that is in each API request.
1028
+ # Corresponds to the JSON property `requestMetadata`
1029
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
1030
+ attr_accessor :request_metadata
1031
+
1032
+ # Message level of client message.
1033
+ # Corresponds to the JSON property `level`
1051
1034
  # @return [String]
1052
- attr_accessor :badge_specialization
1035
+ attr_accessor :level
1053
1036
 
1054
- # State of agency specialization.
1055
- # Corresponds to the JSON property `badgeSpecializationState`
1037
+ # Details about the client message.
1038
+ # Corresponds to the JSON property `details`
1056
1039
  # @return [String]
1057
- attr_accessor :badge_specialization_state
1040
+ attr_accessor :details
1058
1041
 
1059
1042
  def initialize(**args)
1060
1043
  update!(**args)
@@ -1062,120 +1045,95 @@ module Google
1062
1045
 
1063
1046
  # Update properties of this object
1064
1047
  def update!(**args)
1065
- @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
1066
- @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
1048
+ @client_info = args[:client_info] if args.key?(:client_info)
1049
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1050
+ @level = args[:level] if args.key?(:level)
1051
+ @details = args[:details] if args.key?(:details)
1067
1052
  end
1068
1053
  end
1069
1054
 
1070
- # A user's information on a specific certification.
1071
- class Certification
1055
+ # A lead resource that represents an advertiser contact for a `Company`. These
1056
+ # are usually generated via Google Partner Search (the advertiser portal).
1057
+ class Lead
1072
1058
  include Google::Apis::Core::Hashable
1073
1059
 
1074
- # The date the user last achieved certification.
1075
- # Corresponds to the JSON property `lastAchieved`
1060
+ # Timestamp of when this lead was created.
1061
+ # Corresponds to the JSON property `createTime`
1076
1062
  # @return [String]
1077
- attr_accessor :last_achieved
1063
+ attr_accessor :create_time
1078
1064
 
1079
- # Whether this certification has been achieved.
1080
- # Corresponds to the JSON property `achieved`
1065
+ # Whether or not the lead signed up for marketing emails
1066
+ # Corresponds to the JSON property `marketingOptIn`
1081
1067
  # @return [Boolean]
1082
- attr_accessor :achieved
1083
- alias_method :achieved?, :achieved
1068
+ attr_accessor :marketing_opt_in
1069
+ alias_method :marketing_opt_in?, :marketing_opt_in
1084
1070
 
1085
- # Date this certification is due to expire.
1086
- # Corresponds to the JSON property `expiration`
1071
+ # Type of lead.
1072
+ # Corresponds to the JSON property `type`
1087
1073
  # @return [String]
1088
- attr_accessor :expiration
1089
-
1090
- # Whether this certification is in the state of warning.
1091
- # Corresponds to the JSON property `warning`
1092
- # @return [Boolean]
1093
- attr_accessor :warning
1094
- alias_method :warning?, :warning
1074
+ attr_accessor :type
1095
1075
 
1096
- # The type of certification, the area of expertise.
1097
- # Corresponds to the JSON property `certificationType`
1076
+ # First name of lead source.
1077
+ # Corresponds to the JSON property `givenName`
1098
1078
  # @return [String]
1099
- attr_accessor :certification_type
1100
-
1101
- def initialize(**args)
1102
- update!(**args)
1103
- end
1104
-
1105
- # Update properties of this object
1106
- def update!(**args)
1107
- @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
1108
- @achieved = args[:achieved] if args.key?(:achieved)
1109
- @expiration = args[:expiration] if args.key?(:expiration)
1110
- @warning = args[:warning] if args.key?(:warning)
1111
- @certification_type = args[:certification_type] if args.key?(:certification_type)
1112
- end
1113
- end
1079
+ attr_accessor :given_name
1114
1080
 
1115
- # A resource representing a user of the Partners platform.
1116
- class User
1117
- include Google::Apis::Core::Hashable
1081
+ # Represents an amount of money with its currency type.
1082
+ # Corresponds to the JSON property `minMonthlyBudget`
1083
+ # @return [Google::Apis::PartnersV2::Money]
1084
+ attr_accessor :min_monthly_budget
1118
1085
 
1119
- # This is the list of AdWords Manager Accounts the user has edit access to.
1120
- # If the user has edit access to multiple accounts, the user can choose the
1121
- # preferred account and we use this when a personal account is needed. Can
1122
- # be empty meaning the user has access to no accounts.
1123
- # @OutputOnly
1124
- # Corresponds to the JSON property `availableAdwordsManagerAccounts`
1125
- # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
1126
- attr_accessor :available_adwords_manager_accounts
1086
+ # Website URL of lead source.
1087
+ # Corresponds to the JSON property `websiteUrl`
1088
+ # @return [String]
1089
+ attr_accessor :website_url
1127
1090
 
1128
- # The list of emails the user has access to/can select as primary.
1129
- # @OutputOnly
1130
- # Corresponds to the JSON property `primaryEmails`
1131
- # @return [Array<String>]
1132
- attr_accessor :primary_emails
1091
+ # Language code of the lead's language preference, as defined by
1092
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1093
+ # (IETF BCP 47, "Tags for Identifying Languages").
1094
+ # Corresponds to the JSON property `languageCode`
1095
+ # @return [String]
1096
+ attr_accessor :language_code
1133
1097
 
1134
- # The list of exams the user ever taken. For each type of exam, only one
1135
- # entry is listed.
1136
- # Corresponds to the JSON property `examStatus`
1137
- # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
1138
- attr_accessor :exam_status
1098
+ # List of reasons for using Google Partner Search and creating a lead.
1099
+ # Corresponds to the JSON property `gpsMotivations`
1100
+ # @return [Array<String>]
1101
+ attr_accessor :gps_motivations
1139
1102
 
1140
- # The ID of the user.
1141
- # Corresponds to the JSON property `id`
1103
+ # The lead's state in relation to the company.
1104
+ # Corresponds to the JSON property `state`
1142
1105
  # @return [String]
1143
- attr_accessor :id
1106
+ attr_accessor :state
1144
1107
 
1145
- # Basic information from a public profile.
1146
- # Corresponds to the JSON property `publicProfile`
1147
- # @return [Google::Apis::PartnersV2::PublicProfile]
1148
- attr_accessor :public_profile
1108
+ # Email address of lead source.
1109
+ # Corresponds to the JSON property `email`
1110
+ # @return [String]
1111
+ attr_accessor :email
1149
1112
 
1150
- # The email address used by the user used for company verification.
1151
- # @OutputOnly
1152
- # Corresponds to the JSON property `companyVerificationEmail`
1113
+ # Last name of lead source.
1114
+ # Corresponds to the JSON property `familyName`
1153
1115
  # @return [String]
1154
- attr_accessor :company_verification_email
1116
+ attr_accessor :family_name
1155
1117
 
1156
- # The list of achieved certifications. These are calculated based on exam
1157
- # results and other requirements.
1158
- # @OutputOnly
1159
- # Corresponds to the JSON property `certificationStatus`
1160
- # @return [Array<Google::Apis::PartnersV2::Certification>]
1161
- attr_accessor :certification_status
1118
+ # ID of the lead.
1119
+ # Corresponds to the JSON property `id`
1120
+ # @return [String]
1121
+ attr_accessor :id
1162
1122
 
1163
- # A CompanyRelation resource representing information about a user's
1164
- # affiliation and standing with a company in Partners.
1165
- # Corresponds to the JSON property `company`
1166
- # @return [Google::Apis::PartnersV2::CompanyRelation]
1167
- attr_accessor :company
1123
+ # Comments lead source gave.
1124
+ # Corresponds to the JSON property `comments`
1125
+ # @return [String]
1126
+ attr_accessor :comments
1168
1127
 
1169
- # The profile information of a Partners user.
1170
- # Corresponds to the JSON property `profile`
1171
- # @return [Google::Apis::PartnersV2::UserProfile]
1172
- attr_accessor :profile
1128
+ # The AdWords Customer ID of the lead.
1129
+ # Corresponds to the JSON property `adwordsCustomerId`
1130
+ # @return [Fixnum]
1131
+ attr_accessor :adwords_customer_id
1173
1132
 
1174
- # The most recent time the user interacted with the Partners site.
1175
- # @OutputOnly
1176
- # Corresponds to the JSON property `lastAccessTime`
1133
+ # Phone number of lead source.
1134
+ # Corresponds to the JSON property `phoneNumber`
1177
1135
  # @return [String]
1178
- attr_accessor :last_access_time
1136
+ attr_accessor :phone_number
1179
1137
 
1180
1138
  def initialize(**args)
1181
1139
  update!(**args)
@@ -1183,49 +1141,42 @@ module Google
1183
1141
 
1184
1142
  # Update properties of this object
1185
1143
  def update!(**args)
1186
- @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
1187
- @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
1188
- @exam_status = args[:exam_status] if args.key?(:exam_status)
1144
+ @create_time = args[:create_time] if args.key?(:create_time)
1145
+ @marketing_opt_in = args[:marketing_opt_in] if args.key?(:marketing_opt_in)
1146
+ @type = args[:type] if args.key?(:type)
1147
+ @given_name = args[:given_name] if args.key?(:given_name)
1148
+ @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
1149
+ @website_url = args[:website_url] if args.key?(:website_url)
1150
+ @language_code = args[:language_code] if args.key?(:language_code)
1151
+ @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
1152
+ @state = args[:state] if args.key?(:state)
1153
+ @email = args[:email] if args.key?(:email)
1154
+ @family_name = args[:family_name] if args.key?(:family_name)
1189
1155
  @id = args[:id] if args.key?(:id)
1190
- @public_profile = args[:public_profile] if args.key?(:public_profile)
1191
- @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
1192
- @certification_status = args[:certification_status] if args.key?(:certification_status)
1193
- @company = args[:company] if args.key?(:company)
1194
- @profile = args[:profile] if args.key?(:profile)
1195
- @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
1156
+ @comments = args[:comments] if args.key?(:comments)
1157
+ @adwords_customer_id = args[:adwords_customer_id] if args.key?(:adwords_customer_id)
1158
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1196
1159
  end
1197
1160
  end
1198
1161
 
1199
- # Response message for
1200
- # ListAnalytics.
1201
- class ListAnalyticsResponse
1162
+ # Debug information about this request.
1163
+ class DebugInfo
1202
1164
  include Google::Apis::Core::Hashable
1203
1165
 
1204
- # A token to retrieve next page of results.
1205
- # Pass this value in the `ListAnalyticsRequest.page_token` field in the
1206
- # subsequent call to
1207
- # ListAnalytics to retrieve the
1208
- # next page of results.
1209
- # Corresponds to the JSON property `nextPageToken`
1166
+ # URL of the service that handled this request.
1167
+ # Corresponds to the JSON property `serviceUrl`
1210
1168
  # @return [String]
1211
- attr_accessor :next_page_token
1212
-
1213
- # Common data that is in each API response.
1214
- # Corresponds to the JSON property `responseMetadata`
1215
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
1216
- attr_accessor :response_metadata
1169
+ attr_accessor :service_url
1217
1170
 
1218
- # Analytics aggregated data for a `Company` for a given date range.
1219
- # Corresponds to the JSON property `analyticsSummary`
1220
- # @return [Google::Apis::PartnersV2::AnalyticsSummary]
1221
- attr_accessor :analytics_summary
1171
+ # Info about the server that serviced this request.
1172
+ # Corresponds to the JSON property `serverInfo`
1173
+ # @return [String]
1174
+ attr_accessor :server_info
1222
1175
 
1223
- # The list of analytics.
1224
- # Sorted in ascending order of
1225
- # Analytics.event_date.
1226
- # Corresponds to the JSON property `analytics`
1227
- # @return [Array<Google::Apis::PartnersV2::Analytics>]
1228
- attr_accessor :analytics
1176
+ # Server-side debug stack trace.
1177
+ # Corresponds to the JSON property `serverTraceInfo`
1178
+ # @return [String]
1179
+ attr_accessor :server_trace_info
1229
1180
 
1230
1181
  def initialize(**args)
1231
1182
  update!(**args)
@@ -1233,15 +1184,15 @@ module Google
1233
1184
 
1234
1185
  # Update properties of this object
1235
1186
  def update!(**args)
1236
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1237
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1238
- @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
1239
- @analytics = args[:analytics] if args.key?(:analytics)
1187
+ @service_url = args[:service_url] if args.key?(:service_url)
1188
+ @server_info = args[:server_info] if args.key?(:server_info)
1189
+ @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info)
1240
1190
  end
1241
1191
  end
1242
1192
 
1243
- # Response message for ListLeads.
1244
- class ListLeadsResponse
1193
+ # Response message for
1194
+ # ListUserStates.
1195
+ class ListUserStatesResponse
1245
1196
  include Google::Apis::Core::Hashable
1246
1197
 
1247
1198
  # Common data that is in each API response.
@@ -1249,24 +1200,10 @@ module Google
1249
1200
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
1250
1201
  attr_accessor :response_metadata
1251
1202
 
1252
- # The total count of leads for the given company.
1253
- # Corresponds to the JSON property `totalSize`
1254
- # @return [Fixnum]
1255
- attr_accessor :total_size
1256
-
1257
- # The list of leads.
1258
- # Corresponds to the JSON property `leads`
1259
- # @return [Array<Google::Apis::PartnersV2::Lead>]
1260
- attr_accessor :leads
1261
-
1262
- # A token to retrieve next page of results.
1263
- # Pass this value in the `ListLeadsRequest.page_token` field in the
1264
- # subsequent call to
1265
- # ListLeads to retrieve the
1266
- # next page of results.
1267
- # Corresponds to the JSON property `nextPageToken`
1268
- # @return [String]
1269
- attr_accessor :next_page_token
1203
+ # User's states.
1204
+ # Corresponds to the JSON property `userStates`
1205
+ # @return [Array<String>]
1206
+ attr_accessor :user_states
1270
1207
 
1271
1208
  def initialize(**args)
1272
1209
  update!(**args)
@@ -1275,131 +1212,94 @@ module Google
1275
1212
  # Update properties of this object
1276
1213
  def update!(**args)
1277
1214
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1278
- @total_size = args[:total_size] if args.key?(:total_size)
1279
- @leads = args[:leads] if args.key?(:leads)
1280
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1215
+ @user_states = args[:user_states] if args.key?(:user_states)
1281
1216
  end
1282
1217
  end
1283
1218
 
1284
- # A company resource in the Google Partners API. Once certified, it qualifies
1285
- # for being searched by advertisers.
1286
- class Company
1219
+ # A CompanyRelation resource representing information about a user's
1220
+ # affiliation and standing with a company in Partners.
1221
+ class CompanyRelation
1287
1222
  include Google::Apis::Core::Hashable
1288
1223
 
1289
- # The list of all company locations.
1290
- # If set, must include the
1291
- # primary_location
1292
- # in the list.
1293
- # Corresponds to the JSON property `locations`
1294
- # @return [Array<Google::Apis::PartnersV2::Location>]
1295
- attr_accessor :locations
1296
-
1297
- # Represents an amount of money with its currency type.
1298
- # Corresponds to the JSON property `convertedMinMonthlyBudget`
1299
- # @return [Google::Apis::PartnersV2::Money]
1300
- attr_accessor :converted_min_monthly_budget
1301
-
1302
- # Industries the company can help with.
1303
- # Corresponds to the JSON property `industries`
1304
- # @return [Array<String>]
1305
- attr_accessor :industries
1306
-
1307
- # URL of the company's website.
1308
- # Corresponds to the JSON property `websiteUrl`
1309
- # @return [String]
1310
- attr_accessor :website_url
1311
-
1312
- # URL of the company's additional websites used to verify the dynamic badges.
1313
- # These are stored as full URLs as entered by the user, but only the TLD will
1314
- # be used for the actual verification.
1315
- # Corresponds to the JSON property `additionalWebsites`
1316
- # @return [Array<String>]
1317
- attr_accessor :additional_websites
1318
-
1319
- # The Primary AdWords Manager Account id.
1320
- # Corresponds to the JSON property `primaryAdwordsManagerAccountId`
1321
- # @return [Fixnum]
1322
- attr_accessor :primary_adwords_manager_account_id
1224
+ # Indicates if the user is an admin for this company.
1225
+ # Corresponds to the JSON property `companyAdmin`
1226
+ # @return [Boolean]
1227
+ attr_accessor :company_admin
1228
+ alias_method :company_admin?, :company_admin
1323
1229
 
1324
- # The name of the company.
1325
- # Corresponds to the JSON property `name`
1230
+ # The primary address for this company.
1231
+ # Corresponds to the JSON property `address`
1326
1232
  # @return [String]
1327
- attr_accessor :name
1233
+ attr_accessor :address
1328
1234
 
1329
- # The list of localized info for the company.
1330
- # Corresponds to the JSON property `localizedInfos`
1331
- # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
1332
- attr_accessor :localized_infos
1235
+ # The flag that indicates if the company is pending verification.
1236
+ # Corresponds to the JSON property `isPending`
1237
+ # @return [Boolean]
1238
+ attr_accessor :is_pending
1239
+ alias_method :is_pending?, :is_pending
1333
1240
 
1334
- # The ID of the company.
1335
- # Corresponds to the JSON property `id`
1241
+ # The timestamp of when affiliation was requested.
1242
+ # @OutputOnly
1243
+ # Corresponds to the JSON property `creationTime`
1336
1244
  # @return [String]
1337
- attr_accessor :id
1338
-
1339
- # The list of Google Partners certification statuses for the company.
1340
- # Corresponds to the JSON property `certificationStatuses`
1341
- # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
1342
- attr_accessor :certification_statuses
1343
-
1344
- # Basic information from a public profile.
1345
- # Corresponds to the JSON property `publicProfile`
1346
- # @return [Google::Apis::PartnersV2::PublicProfile]
1347
- attr_accessor :public_profile
1348
-
1349
- # A location with address and geographic coordinates. May optionally contain a
1350
- # detailed (multi-field) version of the address.
1351
- # Corresponds to the JSON property `primaryLocation`
1352
- # @return [Google::Apis::PartnersV2::Location]
1353
- attr_accessor :primary_location
1354
-
1355
- # Services the company can help with.
1356
- # Corresponds to the JSON property `services`
1357
- # @return [Array<String>]
1358
- attr_accessor :services
1359
-
1360
- # Represents an amount of money with its currency type.
1361
- # Corresponds to the JSON property `originalMinMonthlyBudget`
1362
- # @return [Google::Apis::PartnersV2::Money]
1363
- attr_accessor :original_min_monthly_budget
1245
+ attr_accessor :creation_time
1364
1246
 
1365
- # Information related to the ranking of the company within the list of
1366
- # companies.
1367
- # Corresponds to the JSON property `ranks`
1368
- # @return [Array<Google::Apis::PartnersV2::Rank>]
1369
- attr_accessor :ranks
1247
+ # The state of relationship, in terms of approvals.
1248
+ # Corresponds to the JSON property `state`
1249
+ # @return [String]
1250
+ attr_accessor :state
1370
1251
 
1371
- # Partner badge tier
1372
- # Corresponds to the JSON property `badgeTier`
1252
+ # The name (in the company's primary language) for the company.
1253
+ # Corresponds to the JSON property `name`
1373
1254
  # @return [String]
1374
- attr_accessor :badge_tier
1255
+ attr_accessor :name
1256
+
1257
+ # The AdWords manager account # associated this company.
1258
+ # Corresponds to the JSON property `managerAccount`
1259
+ # @return [Fixnum]
1260
+ attr_accessor :manager_account
1261
+
1262
+ # The segment the company is classified as.
1263
+ # Corresponds to the JSON property `segment`
1264
+ # @return [Array<String>]
1265
+ attr_accessor :segment
1375
1266
 
1376
1267
  # The list of Google Partners specialization statuses for the company.
1377
1268
  # Corresponds to the JSON property `specializationStatus`
1378
1269
  # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
1379
1270
  attr_accessor :specialization_status
1380
1271
 
1381
- # Company type labels listed on the company's profile.
1382
- # Corresponds to the JSON property `companyTypes`
1383
- # @return [Array<String>]
1384
- attr_accessor :company_types
1272
+ # Whether the company is a Partner.
1273
+ # Corresponds to the JSON property `badgeTier`
1274
+ # @return [String]
1275
+ attr_accessor :badge_tier
1385
1276
 
1386
- # Email domains that allow users with a matching email address to get
1387
- # auto-approved for associating with this company.
1388
- # Corresponds to the JSON property `autoApprovalEmailDomains`
1389
- # @return [Array<String>]
1390
- attr_accessor :auto_approval_email_domains
1277
+ # The phone number for the company's primary address.
1278
+ # Corresponds to the JSON property `phoneNumber`
1279
+ # @return [String]
1280
+ attr_accessor :phone_number
1391
1281
 
1392
- # The primary language code of the company, as defined by
1393
- # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1394
- # (IETF BCP 47, "Tags for Identifying Languages").
1395
- # Corresponds to the JSON property `primaryLanguageCode`
1282
+ # The website URL for this company.
1283
+ # Corresponds to the JSON property `website`
1396
1284
  # @return [String]
1397
- attr_accessor :primary_language_code
1285
+ attr_accessor :website
1398
1286
 
1399
- # The public viewability status of the company's profile.
1400
- # Corresponds to the JSON property `profileStatus`
1287
+ # The ID of the company. There may be no id if this is a
1288
+ # pending company.5
1289
+ # Corresponds to the JSON property `companyId`
1401
1290
  # @return [String]
1402
- attr_accessor :profile_status
1291
+ attr_accessor :company_id
1292
+
1293
+ # A URL to a profile photo, e.g. a G+ profile photo.
1294
+ # Corresponds to the JSON property `logoUrl`
1295
+ # @return [String]
1296
+ attr_accessor :logo_url
1297
+
1298
+ # The timestamp when the user was approved.
1299
+ # @OutputOnly
1300
+ # Corresponds to the JSON property `resolvedTimestamp`
1301
+ # @return [String]
1302
+ attr_accessor :resolved_timestamp
1403
1303
 
1404
1304
  def initialize(**args)
1405
1305
  update!(**args)
@@ -1407,50 +1307,50 @@ module Google
1407
1307
 
1408
1308
  # Update properties of this object
1409
1309
  def update!(**args)
1410
- @locations = args[:locations] if args.key?(:locations)
1411
- @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
1412
- @industries = args[:industries] if args.key?(:industries)
1413
- @website_url = args[:website_url] if args.key?(:website_url)
1414
- @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
1415
- @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
1310
+ @company_admin = args[:company_admin] if args.key?(:company_admin)
1311
+ @address = args[:address] if args.key?(:address)
1312
+ @is_pending = args[:is_pending] if args.key?(:is_pending)
1313
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1314
+ @state = args[:state] if args.key?(:state)
1416
1315
  @name = args[:name] if args.key?(:name)
1417
- @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
1418
- @id = args[:id] if args.key?(:id)
1419
- @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
1420
- @public_profile = args[:public_profile] if args.key?(:public_profile)
1421
- @primary_location = args[:primary_location] if args.key?(:primary_location)
1422
- @services = args[:services] if args.key?(:services)
1423
- @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
1424
- @ranks = args[:ranks] if args.key?(:ranks)
1425
- @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1316
+ @manager_account = args[:manager_account] if args.key?(:manager_account)
1317
+ @segment = args[:segment] if args.key?(:segment)
1426
1318
  @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
1427
- @company_types = args[:company_types] if args.key?(:company_types)
1428
- @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
1429
- @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
1430
- @profile_status = args[:profile_status] if args.key?(:profile_status)
1319
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
1320
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1321
+ @website = args[:website] if args.key?(:website)
1322
+ @company_id = args[:company_id] if args.key?(:company_id)
1323
+ @logo_url = args[:logo_url] if args.key?(:logo_url)
1324
+ @resolved_timestamp = args[:resolved_timestamp] if args.key?(:resolved_timestamp)
1431
1325
  end
1432
1326
  end
1433
1327
 
1434
- # Response message for CreateLead.
1435
- class CreateLeadResponse
1328
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1329
+ # time zone are either specified elsewhere or are not significant. The date
1330
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1331
+ # represent a year and month where the day is not significant, e.g. credit card
1332
+ # expiration date. The year may be 0 to represent a month and day independent
1333
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1334
+ # and `google.protobuf.Timestamp`.
1335
+ class Date
1436
1336
  include Google::Apis::Core::Hashable
1437
1337
 
1438
- # A lead resource that represents an advertiser contact for a `Company`. These
1439
- # are usually generated via Google Partner Search (the advertiser portal).
1440
- # Corresponds to the JSON property `lead`
1441
- # @return [Google::Apis::PartnersV2::Lead]
1442
- attr_accessor :lead
1338
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1339
+ # a year.
1340
+ # Corresponds to the JSON property `year`
1341
+ # @return [Fixnum]
1342
+ attr_accessor :year
1443
1343
 
1444
- # The outcome of <a href="https://www.google.com/recaptcha/">reCaptcha</a>
1445
- # validation.
1446
- # Corresponds to the JSON property `recaptchaStatus`
1447
- # @return [String]
1448
- attr_accessor :recaptcha_status
1344
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1345
+ # if specifying a year/month where the day is not significant.
1346
+ # Corresponds to the JSON property `day`
1347
+ # @return [Fixnum]
1348
+ attr_accessor :day
1449
1349
 
1450
- # Common data that is in each API response.
1451
- # Corresponds to the JSON property `responseMetadata`
1452
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
1453
- attr_accessor :response_metadata
1350
+ # Month of year. Must be from 1 to 12.
1351
+ # Corresponds to the JSON property `month`
1352
+ # @return [Fixnum]
1353
+ attr_accessor :month
1454
1354
 
1455
1355
  def initialize(**args)
1456
1356
  update!(**args)
@@ -1458,131 +1358,48 @@ module Google
1458
1358
 
1459
1359
  # Update properties of this object
1460
1360
  def update!(**args)
1461
- @lead = args[:lead] if args.key?(:lead)
1462
- @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status)
1463
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1361
+ @year = args[:year] if args.key?(:year)
1362
+ @day = args[:day] if args.key?(:day)
1363
+ @month = args[:month] if args.key?(:month)
1464
1364
  end
1465
1365
  end
1466
1366
 
1467
- # Response message for GetCompany.
1468
- class GetCompanyResponse
1367
+ # A generic empty message that you can re-use to avoid defining duplicated
1368
+ # empty messages in your APIs. A typical example is to use it as the request
1369
+ # or the response type of an API method. For instance:
1370
+ # service Foo `
1371
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1372
+ # `
1373
+ # The JSON representation for `Empty` is empty JSON object ````.
1374
+ class Empty
1469
1375
  include Google::Apis::Core::Hashable
1470
1376
 
1471
- # A company resource in the Google Partners API. Once certified, it qualifies
1472
- # for being searched by advertisers.
1473
- # Corresponds to the JSON property `company`
1474
- # @return [Google::Apis::PartnersV2::Company]
1475
- attr_accessor :company
1476
-
1477
- # Common data that is in each API response.
1478
- # Corresponds to the JSON property `responseMetadata`
1479
- # @return [Google::Apis::PartnersV2::ResponseMetadata]
1480
- attr_accessor :response_metadata
1481
-
1482
1377
  def initialize(**args)
1483
1378
  update!(**args)
1484
1379
  end
1485
1380
 
1486
1381
  # Update properties of this object
1487
1382
  def update!(**args)
1488
- @company = args[:company] if args.key?(:company)
1489
- @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1490
1383
  end
1491
1384
  end
1492
1385
 
1493
- # A location with address and geographic coordinates. May optionally contain a
1494
- # detailed (multi-field) version of the address.
1495
- class Location
1386
+ # Source of traffic for the current request.
1387
+ class TrafficSource
1496
1388
  include Google::Apis::Core::Hashable
1497
1389
 
1498
- # The following address lines represent the most specific part of any
1499
- # address.
1500
- # Corresponds to the JSON property `addressLine`
1501
- # @return [Array<String>]
1502
- attr_accessor :address_line
1503
-
1504
- # Generally refers to the city/town portion of an address.
1505
- # Corresponds to the JSON property `locality`
1506
- # @return [String]
1507
- attr_accessor :locality
1508
-
1509
- # Top-level administrative subdivision of this country.
1510
- # Corresponds to the JSON property `administrativeArea`
1511
- # @return [String]
1512
- attr_accessor :administrative_area
1513
-
1514
- # An object representing a latitude/longitude pair. This is expressed as a pair
1515
- # of doubles representing degrees latitude and degrees longitude. Unless
1516
- # specified otherwise, this must conform to the
1517
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1518
- # standard</a>. Values must be within normalized ranges.
1519
- # Example of normalization code in Python:
1520
- # def NormalizeLongitude(longitude):
1521
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1522
- # q, r = divmod(longitude, 360.0)
1523
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1524
- # return r - 360.0
1525
- # return r
1526
- # def NormalizeLatLng(latitude, longitude):
1527
- # """Wraps decimal degrees latitude and longitude to
1528
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1529
- # r = latitude % 360.0
1530
- # if r <= 90.0:
1531
- # return r, NormalizeLongitude(longitude)
1532
- # elif r >= 270.0:
1533
- # return r - 360, NormalizeLongitude(longitude)
1534
- # else:
1535
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1536
- # assert 180.0 == NormalizeLongitude(180.0)
1537
- # assert -180.0 == NormalizeLongitude(-180.0)
1538
- # assert -179.0 == NormalizeLongitude(181.0)
1539
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1540
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1541
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1542
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1543
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1544
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1545
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1546
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1547
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1548
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1549
- # The code in logs/storage/validator/logs_validator_traits.cc treats this type
1550
- # as if it were annotated as ST_LOCATION.
1551
- # Corresponds to the JSON property `latLng`
1552
- # @return [Google::Apis::PartnersV2::LatLng]
1553
- attr_accessor :lat_lng
1554
-
1555
- # The single string version of the address.
1556
- # Corresponds to the JSON property `address`
1557
- # @return [String]
1558
- attr_accessor :address
1559
-
1560
- # CLDR (Common Locale Data Repository) region code .
1561
- # Corresponds to the JSON property `regionCode`
1562
- # @return [String]
1563
- attr_accessor :region_code
1564
-
1565
- # Dependent locality or sublocality. Used for UK dependent localities, or
1566
- # neighborhoods or boroughs in other locations.
1567
- # Corresponds to the JSON property `dependentLocality`
1568
- # @return [String]
1569
- attr_accessor :dependent_locality
1570
-
1571
- # Values are frequently alphanumeric.
1572
- # Corresponds to the JSON property `postalCode`
1573
- # @return [String]
1574
- attr_accessor :postal_code
1575
-
1576
- # Use of this code is very country-specific, but will refer to a secondary
1577
- # classification code for sorting mail.
1578
- # Corresponds to the JSON property `sortingCode`
1390
+ # Identifier to indicate where the traffic comes from.
1391
+ # An identifier has multiple letters created by a team which redirected the
1392
+ # traffic to us.
1393
+ # Corresponds to the JSON property `trafficSourceId`
1579
1394
  # @return [String]
1580
- attr_accessor :sorting_code
1395
+ attr_accessor :traffic_source_id
1581
1396
 
1582
- # Language code of the address. Should be in BCP 47 format.
1583
- # Corresponds to the JSON property `languageCode`
1397
+ # Second level identifier to indicate where the traffic comes from.
1398
+ # An identifier has multiple letters created by a team which redirected the
1399
+ # traffic to us.
1400
+ # Corresponds to the JSON property `trafficSubId`
1584
1401
  # @return [String]
1585
- attr_accessor :language_code
1402
+ attr_accessor :traffic_sub_id
1586
1403
 
1587
1404
  def initialize(**args)
1588
1405
  update!(**args)
@@ -1590,32 +1407,30 @@ module Google
1590
1407
 
1591
1408
  # Update properties of this object
1592
1409
  def update!(**args)
1593
- @address_line = args[:address_line] if args.key?(:address_line)
1594
- @locality = args[:locality] if args.key?(:locality)
1595
- @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1596
- @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1597
- @address = args[:address] if args.key?(:address)
1598
- @region_code = args[:region_code] if args.key?(:region_code)
1599
- @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality)
1600
- @postal_code = args[:postal_code] if args.key?(:postal_code)
1601
- @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
1602
- @language_code = args[:language_code] if args.key?(:language_code)
1410
+ @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id)
1411
+ @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id)
1603
1412
  end
1604
1413
  end
1605
1414
 
1606
- # Status for a Google Partners certification exam.
1607
- class CertificationExamStatus
1415
+ # Request message for CreateLead.
1416
+ class CreateLeadRequest
1608
1417
  include Google::Apis::Core::Hashable
1609
1418
 
1610
- # The number of people who have passed the certification exam.
1611
- # Corresponds to the JSON property `numberUsersPass`
1612
- # @return [Fixnum]
1613
- attr_accessor :number_users_pass
1419
+ # Common data that is in each API request.
1420
+ # Corresponds to the JSON property `requestMetadata`
1421
+ # @return [Google::Apis::PartnersV2::RequestMetadata]
1422
+ attr_accessor :request_metadata
1614
1423
 
1615
- # The type of certification exam.
1616
- # Corresponds to the JSON property `type`
1617
- # @return [String]
1618
- attr_accessor :type
1424
+ # A lead resource that represents an advertiser contact for a `Company`. These
1425
+ # are usually generated via Google Partner Search (the advertiser portal).
1426
+ # Corresponds to the JSON property `lead`
1427
+ # @return [Google::Apis::PartnersV2::Lead]
1428
+ attr_accessor :lead
1429
+
1430
+ # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
1431
+ # Corresponds to the JSON property `recaptchaChallenge`
1432
+ # @return [Google::Apis::PartnersV2::RecaptchaChallenge]
1433
+ attr_accessor :recaptcha_challenge
1619
1434
 
1620
1435
  def initialize(**args)
1621
1436
  update!(**args)
@@ -1623,29 +1438,41 @@ module Google
1623
1438
 
1624
1439
  # Update properties of this object
1625
1440
  def update!(**args)
1626
- @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass)
1627
- @type = args[:type] if args.key?(:type)
1441
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1442
+ @lead = args[:lead] if args.key?(:lead)
1443
+ @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
1628
1444
  end
1629
1445
  end
1630
1446
 
1631
- # A token that allows a user to take an exam.
1632
- class ExamToken
1447
+ # Common data that is in each API request.
1448
+ class RequestMetadata
1633
1449
  include Google::Apis::Core::Hashable
1634
1450
 
1635
- # The id of the exam the token is for.
1636
- # Corresponds to the JSON property `examId`
1637
- # @return [Fixnum]
1638
- attr_accessor :exam_id
1639
-
1640
- # The token, only present if the user has access to the exam.
1641
- # Corresponds to the JSON property `token`
1451
+ # Locale to use for the current request.
1452
+ # Corresponds to the JSON property `locale`
1642
1453
  # @return [String]
1643
- attr_accessor :token
1454
+ attr_accessor :locale
1644
1455
 
1645
- # The type of the exam the token belongs to.
1646
- # Corresponds to the JSON property `examType`
1456
+ # Values to use instead of the user's respective defaults. These are only
1457
+ # honored by whitelisted products.
1458
+ # Corresponds to the JSON property `userOverrides`
1459
+ # @return [Google::Apis::PartnersV2::UserOverrides]
1460
+ attr_accessor :user_overrides
1461
+
1462
+ # Google Partners session ID.
1463
+ # Corresponds to the JSON property `partnersSessionId`
1647
1464
  # @return [String]
1648
- attr_accessor :exam_type
1465
+ attr_accessor :partners_session_id
1466
+
1467
+ # Experiment IDs the current request belongs to.
1468
+ # Corresponds to the JSON property `experimentIds`
1469
+ # @return [Array<String>]
1470
+ attr_accessor :experiment_ids
1471
+
1472
+ # Source of traffic for the current request.
1473
+ # Corresponds to the JSON property `trafficSource`
1474
+ # @return [Google::Apis::PartnersV2::TrafficSource]
1475
+ attr_accessor :traffic_source
1649
1476
 
1650
1477
  def initialize(**args)
1651
1478
  update!(**args)
@@ -1653,47 +1480,27 @@ module Google
1653
1480
 
1654
1481
  # Update properties of this object
1655
1482
  def update!(**args)
1656
- @exam_id = args[:exam_id] if args.key?(:exam_id)
1657
- @token = args[:token] if args.key?(:token)
1658
- @exam_type = args[:exam_type] if args.key?(:exam_type)
1483
+ @locale = args[:locale] if args.key?(:locale)
1484
+ @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
1485
+ @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
1486
+ @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
1487
+ @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
1659
1488
  end
1660
1489
  end
1661
1490
 
1662
- # A set of opt-ins for a user.
1663
- class OptIns
1491
+ # Key value data pair for an event.
1492
+ class EventData
1664
1493
  include Google::Apis::Core::Hashable
1665
1494
 
1666
- # An opt-in to receive special promotional gifts and material in the mail.
1667
- # Corresponds to the JSON property `physicalMail`
1668
- # @return [Boolean]
1669
- attr_accessor :physical_mail
1670
- alias_method :physical_mail?, :physical_mail
1671
-
1672
- # An opt-in to allow recieivng phone calls about their Partners account.
1673
- # Corresponds to the JSON property `phoneContact`
1674
- # @return [Boolean]
1675
- attr_accessor :phone_contact
1676
- alias_method :phone_contact?, :phone_contact
1677
-
1678
- # An opt-in about receiving email from Partners marketing teams. Includes
1679
- # member-only events and special promotional offers for Google products.
1680
- # Corresponds to the JSON property `marketComm`
1681
- # @return [Boolean]
1682
- attr_accessor :market_comm
1683
- alias_method :market_comm?, :market_comm
1684
-
1685
- # An opt-in about receiving email regarding new features and products.
1686
- # Corresponds to the JSON property `specialOffers`
1687
- # @return [Boolean]
1688
- attr_accessor :special_offers
1689
- alias_method :special_offers?, :special_offers
1495
+ # Data type.
1496
+ # Corresponds to the JSON property `key`
1497
+ # @return [String]
1498
+ attr_accessor :key
1690
1499
 
1691
- # An opt-in about receiving email with customized AdWords campaign management
1692
- # tips.
1693
- # Corresponds to the JSON property `performanceSuggestions`
1694
- # @return [Boolean]
1695
- attr_accessor :performance_suggestions
1696
- alias_method :performance_suggestions?, :performance_suggestions
1500
+ # Data values.
1501
+ # Corresponds to the JSON property `values`
1502
+ # @return [Array<String>]
1503
+ attr_accessor :values
1697
1504
 
1698
1505
  def initialize(**args)
1699
1506
  update!(**args)
@@ -1701,27 +1508,46 @@ module Google
1701
1508
 
1702
1509
  # Update properties of this object
1703
1510
  def update!(**args)
1704
- @physical_mail = args[:physical_mail] if args.key?(:physical_mail)
1705
- @phone_contact = args[:phone_contact] if args.key?(:phone_contact)
1706
- @market_comm = args[:market_comm] if args.key?(:market_comm)
1707
- @special_offers = args[:special_offers] if args.key?(:special_offers)
1708
- @performance_suggestions = args[:performance_suggestions] if args.key?(:performance_suggestions)
1511
+ @key = args[:key] if args.key?(:key)
1512
+ @values = args[:values] if args.key?(:values)
1709
1513
  end
1710
1514
  end
1711
1515
 
1712
- # Information related to ranking of results.
1713
- class Rank
1516
+ # A user's information on a specific exam.
1517
+ class ExamStatus
1714
1518
  include Google::Apis::Core::Hashable
1715
1519
 
1716
- # The numerical value of the rank.
1717
- # Corresponds to the JSON property `value`
1718
- # @return [Float]
1719
- attr_accessor :value
1520
+ # Whether this exam is in the state of warning.
1521
+ # Corresponds to the JSON property `warning`
1522
+ # @return [Boolean]
1523
+ attr_accessor :warning
1524
+ alias_method :warning?, :warning
1720
1525
 
1721
- # The type of rank.
1722
- # Corresponds to the JSON property `type`
1526
+ # Date this exam is due to expire.
1527
+ # Corresponds to the JSON property `expiration`
1723
1528
  # @return [String]
1724
- attr_accessor :type
1529
+ attr_accessor :expiration
1530
+
1531
+ # The date the user last passed this exam.
1532
+ # Corresponds to the JSON property `lastPassed`
1533
+ # @return [String]
1534
+ attr_accessor :last_passed
1535
+
1536
+ # The type of the exam.
1537
+ # Corresponds to the JSON property `examType`
1538
+ # @return [String]
1539
+ attr_accessor :exam_type
1540
+
1541
+ # Whether this exam has been passed and not expired.
1542
+ # Corresponds to the JSON property `passed`
1543
+ # @return [Boolean]
1544
+ attr_accessor :passed
1545
+ alias_method :passed?, :passed
1546
+
1547
+ # The date the user last taken this exam.
1548
+ # Corresponds to the JSON property `taken`
1549
+ # @return [String]
1550
+ attr_accessor :taken
1725
1551
 
1726
1552
  def initialize(**args)
1727
1553
  update!(**args)
@@ -1729,88 +1555,69 @@ module Google
1729
1555
 
1730
1556
  # Update properties of this object
1731
1557
  def update!(**args)
1732
- @value = args[:value] if args.key?(:value)
1733
- @type = args[:type] if args.key?(:type)
1558
+ @warning = args[:warning] if args.key?(:warning)
1559
+ @expiration = args[:expiration] if args.key?(:expiration)
1560
+ @last_passed = args[:last_passed] if args.key?(:last_passed)
1561
+ @exam_type = args[:exam_type] if args.key?(:exam_type)
1562
+ @passed = args[:passed] if args.key?(:passed)
1563
+ @taken = args[:taken] if args.key?(:taken)
1734
1564
  end
1735
1565
  end
1736
1566
 
1737
- # The profile information of a Partners user.
1738
- class UserProfile
1567
+ # Response for ListOffer.
1568
+ class ListOffersResponse
1739
1569
  include Google::Apis::Core::Hashable
1740
1570
 
1741
- # A location with address and geographic coordinates. May optionally contain a
1742
- # detailed (multi-field) version of the address.
1743
- # Corresponds to the JSON property `address`
1744
- # @return [Google::Apis::PartnersV2::Location]
1745
- attr_accessor :address
1746
-
1747
- # A list of ids representing which industries the user selected.
1748
- # Corresponds to the JSON property `industries`
1749
- # @return [Array<String>]
1750
- attr_accessor :industries
1751
-
1752
- # The list of languages this user understands.
1753
- # Corresponds to the JSON property `languages`
1754
- # @return [Array<String>]
1755
- attr_accessor :languages
1571
+ # Common data that is in each API response.
1572
+ # Corresponds to the JSON property `responseMetadata`
1573
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1574
+ attr_accessor :response_metadata
1756
1575
 
1757
- # The user's family name.
1758
- # Corresponds to the JSON property `familyName`
1576
+ # Reason why no Offers are available.
1577
+ # Corresponds to the JSON property `noOfferReason`
1759
1578
  # @return [String]
1760
- attr_accessor :family_name
1579
+ attr_accessor :no_offer_reason
1761
1580
 
1762
- # A set of opt-ins for a user.
1763
- # Corresponds to the JSON property `emailOptIns`
1764
- # @return [Google::Apis::PartnersV2::OptIns]
1765
- attr_accessor :email_opt_ins
1581
+ # Available Offers to be distributed.
1582
+ # Corresponds to the JSON property `availableOffers`
1583
+ # @return [Array<Google::Apis::PartnersV2::AvailableOffer>]
1584
+ attr_accessor :available_offers
1766
1585
 
1767
- # A list of ids representing which markets the user was interested in.
1768
- # Corresponds to the JSON property `markets`
1769
- # @return [Array<String>]
1770
- attr_accessor :markets
1586
+ def initialize(**args)
1587
+ update!(**args)
1588
+ end
1771
1589
 
1772
- # If the user has edit access to multiple accounts, the user can choose the
1773
- # preferred account and it is used when a personal account is needed. Can
1774
- # be empty.
1775
- # Corresponds to the JSON property `adwordsManagerAccount`
1776
- # @return [Fixnum]
1777
- attr_accessor :adwords_manager_account
1590
+ # Update properties of this object
1591
+ def update!(**args)
1592
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1593
+ @no_offer_reason = args[:no_offer_reason] if args.key?(:no_offer_reason)
1594
+ @available_offers = args[:available_offers] if args.key?(:available_offers)
1595
+ end
1596
+ end
1597
+
1598
+ # Offer info by country.
1599
+ class CountryOfferInfo
1600
+ include Google::Apis::Core::Hashable
1778
1601
 
1779
- # The user's phone number.
1780
- # Corresponds to the JSON property `phoneNumber`
1602
+ # Country code for which offer codes may be requested.
1603
+ # Corresponds to the JSON property `offerCountryCode`
1781
1604
  # @return [String]
1782
- attr_accessor :phone_number
1605
+ attr_accessor :offer_country_code
1783
1606
 
1784
- # The user's primary country, an ISO 2-character code.
1785
- # Corresponds to the JSON property `primaryCountryCode`
1607
+ # (localized) Spend X amount for that country's offer.
1608
+ # Corresponds to the JSON property `spendXAmount`
1786
1609
  # @return [String]
1787
- attr_accessor :primary_country_code
1610
+ attr_accessor :spend_x_amount
1788
1611
 
1789
- # The email address the user has selected on the Partners site as primary.
1790
- # Corresponds to the JSON property `emailAddress`
1612
+ # Type of offer country is eligible for.
1613
+ # Corresponds to the JSON property `offerType`
1791
1614
  # @return [String]
1792
- attr_accessor :email_address
1793
-
1794
- # Whether the user's public profile is visible to anyone with the URL.
1795
- # Corresponds to the JSON property `profilePublic`
1796
- # @return [Boolean]
1797
- attr_accessor :profile_public
1798
- alias_method :profile_public?, :profile_public
1799
-
1800
- # A list of ids representing which channels the user selected they were in.
1801
- # Corresponds to the JSON property `channels`
1802
- # @return [Array<String>]
1803
- attr_accessor :channels
1804
-
1805
- # A list of ids represnting which job categories the user selected.
1806
- # Corresponds to the JSON property `jobFunctions`
1807
- # @return [Array<String>]
1808
- attr_accessor :job_functions
1615
+ attr_accessor :offer_type
1809
1616
 
1810
- # The user's given name.
1811
- # Corresponds to the JSON property `givenName`
1617
+ # (localized) Get Y amount for that country's offer.
1618
+ # Corresponds to the JSON property `getYAmount`
1812
1619
  # @return [String]
1813
- attr_accessor :given_name
1620
+ attr_accessor :get_y_amount
1814
1621
 
1815
1622
  def initialize(**args)
1816
1623
  update!(**args)
@@ -1818,106 +1625,179 @@ module Google
1818
1625
 
1819
1626
  # Update properties of this object
1820
1627
  def update!(**args)
1821
- @address = args[:address] if args.key?(:address)
1822
- @industries = args[:industries] if args.key?(:industries)
1823
- @languages = args[:languages] if args.key?(:languages)
1824
- @family_name = args[:family_name] if args.key?(:family_name)
1825
- @email_opt_ins = args[:email_opt_ins] if args.key?(:email_opt_ins)
1826
- @markets = args[:markets] if args.key?(:markets)
1827
- @adwords_manager_account = args[:adwords_manager_account] if args.key?(:adwords_manager_account)
1828
- @phone_number = args[:phone_number] if args.key?(:phone_number)
1829
- @primary_country_code = args[:primary_country_code] if args.key?(:primary_country_code)
1830
- @email_address = args[:email_address] if args.key?(:email_address)
1831
- @profile_public = args[:profile_public] if args.key?(:profile_public)
1832
- @channels = args[:channels] if args.key?(:channels)
1833
- @job_functions = args[:job_functions] if args.key?(:job_functions)
1834
- @given_name = args[:given_name] if args.key?(:given_name)
1628
+ @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
1629
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1630
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
1631
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1835
1632
  end
1836
1633
  end
1837
1634
 
1838
1635
  # Response message for
1839
- # GetPartnersStatus.
1840
- class GetPartnersStatusResponse
1636
+ # ListCompanies.
1637
+ class ListCompaniesResponse
1841
1638
  include Google::Apis::Core::Hashable
1842
1639
 
1640
+ # A token to retrieve next page of results.
1641
+ # Pass this value in the `ListCompaniesRequest.page_token` field in the
1642
+ # subsequent call to
1643
+ # ListCompanies to retrieve the
1644
+ # next page of results.
1645
+ # Corresponds to the JSON property `nextPageToken`
1646
+ # @return [String]
1647
+ attr_accessor :next_page_token
1648
+
1843
1649
  # Common data that is in each API response.
1844
1650
  # Corresponds to the JSON property `responseMetadata`
1845
1651
  # @return [Google::Apis::PartnersV2::ResponseMetadata]
1846
1652
  attr_accessor :response_metadata
1847
1653
 
1654
+ # The list of companies.
1655
+ # Corresponds to the JSON property `companies`
1656
+ # @return [Array<Google::Apis::PartnersV2::Company>]
1657
+ attr_accessor :companies
1658
+
1848
1659
  def initialize(**args)
1849
1660
  update!(**args)
1850
1661
  end
1851
1662
 
1852
1663
  # Update properties of this object
1853
1664
  def update!(**args)
1665
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1854
1666
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1667
+ @companies = args[:companies] if args.key?(:companies)
1855
1668
  end
1856
1669
  end
1857
1670
 
1858
- # Historical information about a Google Partners Offer.
1859
- class HistoricalOffer
1671
+ # Customers qualified for an offer.
1672
+ class OfferCustomer
1860
1673
  include Google::Apis::Core::Hashable
1861
1674
 
1862
- # Name (First + Last) of the partners user to whom the incentive is allocated.
1863
- # Corresponds to the JSON property `senderName`
1675
+ # Formatted Get Y amount with currency code.
1676
+ # Corresponds to the JSON property `getYAmount`
1864
1677
  # @return [String]
1865
- attr_accessor :sender_name
1678
+ attr_accessor :get_y_amount
1866
1679
 
1867
- # Country Code for the offer country.
1868
- # Corresponds to the JSON property `offerCountryCode`
1680
+ # Name of the customer.
1681
+ # Corresponds to the JSON property `name`
1869
1682
  # @return [String]
1870
- attr_accessor :offer_country_code
1683
+ attr_accessor :name
1871
1684
 
1872
- # Time this offer expires.
1873
- # Corresponds to the JSON property `expirationTime`
1685
+ # Formatted Spend X amount with currency code.
1686
+ # Corresponds to the JSON property `spendXAmount`
1874
1687
  # @return [String]
1875
- attr_accessor :expiration_time
1688
+ attr_accessor :spend_x_amount
1876
1689
 
1877
- # Offer code.
1878
- # Corresponds to the JSON property `offerCode`
1690
+ # URL to the customer's AdWords page.
1691
+ # Corresponds to the JSON property `adwordsUrl`
1879
1692
  # @return [String]
1880
- attr_accessor :offer_code
1693
+ attr_accessor :adwords_url
1881
1694
 
1882
- # Time offer was first created.
1695
+ # External CID for the customer.
1696
+ # Corresponds to the JSON property `externalCid`
1697
+ # @return [Fixnum]
1698
+ attr_accessor :external_cid
1699
+
1700
+ # Time the customer was created.
1883
1701
  # Corresponds to the JSON property `creationTime`
1884
1702
  # @return [String]
1885
1703
  attr_accessor :creation_time
1886
1704
 
1887
- # Email address for client.
1888
- # Corresponds to the JSON property `clientEmail`
1705
+ # Country code of the customer.
1706
+ # Corresponds to the JSON property `countryCode`
1889
1707
  # @return [String]
1890
- attr_accessor :client_email
1708
+ attr_accessor :country_code
1891
1709
 
1892
- # Status of the offer.
1893
- # Corresponds to the JSON property `status`
1710
+ # Days the customer is still eligible.
1711
+ # Corresponds to the JSON property `eligibilityDaysLeft`
1712
+ # @return [Fixnum]
1713
+ attr_accessor :eligibility_days_left
1714
+
1715
+ # Type of the offer
1716
+ # Corresponds to the JSON property `offerType`
1894
1717
  # @return [String]
1895
- attr_accessor :status
1718
+ attr_accessor :offer_type
1896
1719
 
1897
- # ID of client.
1898
- # Corresponds to the JSON property `clientId`
1720
+ def initialize(**args)
1721
+ update!(**args)
1722
+ end
1723
+
1724
+ # Update properties of this object
1725
+ def update!(**args)
1726
+ @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
1727
+ @name = args[:name] if args.key?(:name)
1728
+ @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
1729
+ @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1730
+ @external_cid = args[:external_cid] if args.key?(:external_cid)
1731
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
1732
+ @country_code = args[:country_code] if args.key?(:country_code)
1733
+ @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
1734
+ @offer_type = args[:offer_type] if args.key?(:offer_type)
1735
+ end
1736
+ end
1737
+
1738
+ # Google Partners certification status.
1739
+ class CertificationStatus
1740
+ include Google::Apis::Core::Hashable
1741
+
1742
+ # Number of people who are certified,
1743
+ # Corresponds to the JSON property `userCount`
1899
1744
  # @return [Fixnum]
1900
- attr_accessor :client_id
1745
+ attr_accessor :user_count
1901
1746
 
1902
- # Name of the client.
1903
- # Corresponds to the JSON property `clientName`
1747
+ # Whether certification is passing.
1748
+ # Corresponds to the JSON property `isCertified`
1749
+ # @return [Boolean]
1750
+ attr_accessor :is_certified
1751
+ alias_method :is_certified?, :is_certified
1752
+
1753
+ # List of certification exam statuses.
1754
+ # Corresponds to the JSON property `examStatuses`
1755
+ # @return [Array<Google::Apis::PartnersV2::CertificationExamStatus>]
1756
+ attr_accessor :exam_statuses
1757
+
1758
+ # The type of the certification.
1759
+ # Corresponds to the JSON property `type`
1904
1760
  # @return [String]
1905
- attr_accessor :client_name
1761
+ attr_accessor :type
1906
1762
 
1907
- # Time last action was taken.
1908
- # Corresponds to the JSON property `lastModifiedTime`
1763
+ def initialize(**args)
1764
+ update!(**args)
1765
+ end
1766
+
1767
+ # Update properties of this object
1768
+ def update!(**args)
1769
+ @user_count = args[:user_count] if args.key?(:user_count)
1770
+ @is_certified = args[:is_certified] if args.key?(:is_certified)
1771
+ @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses)
1772
+ @type = args[:type] if args.key?(:type)
1773
+ end
1774
+ end
1775
+
1776
+ # The localized company information.
1777
+ class LocalizedCompanyInfo
1778
+ include Google::Apis::Core::Hashable
1779
+
1780
+ # Language code of the localized company info, as defined by
1781
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
1782
+ # (IETF BCP 47, "Tags for Identifying Languages").
1783
+ # Corresponds to the JSON property `languageCode`
1909
1784
  # @return [String]
1910
- attr_accessor :last_modified_time
1785
+ attr_accessor :language_code
1911
1786
 
1912
- # Client's AdWords page URL.
1913
- # Corresponds to the JSON property `adwordsUrl`
1787
+ # List of country codes for the localized company info.
1788
+ # Corresponds to the JSON property `countryCodes`
1789
+ # @return [Array<String>]
1790
+ attr_accessor :country_codes
1791
+
1792
+ # Localized brief description that the company uses to advertise themselves.
1793
+ # Corresponds to the JSON property `overview`
1914
1794
  # @return [String]
1915
- attr_accessor :adwords_url
1795
+ attr_accessor :overview
1916
1796
 
1917
- # Type of offer.
1918
- # Corresponds to the JSON property `offerType`
1797
+ # Localized display name.
1798
+ # Corresponds to the JSON property `displayName`
1919
1799
  # @return [String]
1920
- attr_accessor :offer_type
1800
+ attr_accessor :display_name
1921
1801
 
1922
1802
  def initialize(**args)
1923
1803
  update!(**args)
@@ -1925,35 +1805,22 @@ module Google
1925
1805
 
1926
1806
  # Update properties of this object
1927
1807
  def update!(**args)
1928
- @sender_name = args[:sender_name] if args.key?(:sender_name)
1929
- @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
1930
- @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1931
- @offer_code = args[:offer_code] if args.key?(:offer_code)
1932
- @creation_time = args[:creation_time] if args.key?(:creation_time)
1933
- @client_email = args[:client_email] if args.key?(:client_email)
1934
- @status = args[:status] if args.key?(:status)
1935
- @client_id = args[:client_id] if args.key?(:client_id)
1936
- @client_name = args[:client_name] if args.key?(:client_name)
1937
- @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
1938
- @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
1939
- @offer_type = args[:offer_type] if args.key?(:offer_type)
1808
+ @language_code = args[:language_code] if args.key?(:language_code)
1809
+ @country_codes = args[:country_codes] if args.key?(:country_codes)
1810
+ @overview = args[:overview] if args.key?(:overview)
1811
+ @display_name = args[:display_name] if args.key?(:display_name)
1940
1812
  end
1941
1813
  end
1942
1814
 
1943
- # Values to use instead of the user's respective defaults. These are only
1944
- # honored by whitelisted products.
1945
- class UserOverrides
1815
+ # Response message for
1816
+ # LogUserEvent.
1817
+ class LogUserEventResponse
1946
1818
  include Google::Apis::Core::Hashable
1947
1819
 
1948
- # Logged-in user ID to impersonate instead of the user's ID.
1949
- # Corresponds to the JSON property `userId`
1950
- # @return [String]
1951
- attr_accessor :user_id
1952
-
1953
- # IP address to use instead of the user's geo-located IP address.
1954
- # Corresponds to the JSON property `ipAddress`
1955
- # @return [String]
1956
- attr_accessor :ip_address
1820
+ # Common data that is in each API response.
1821
+ # Corresponds to the JSON property `responseMetadata`
1822
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1823
+ attr_accessor :response_metadata
1957
1824
 
1958
1825
  def initialize(**args)
1959
1826
  update!(**args)
@@ -1961,51 +1828,45 @@ module Google
1961
1828
 
1962
1829
  # Update properties of this object
1963
1830
  def update!(**args)
1964
- @user_id = args[:user_id] if args.key?(:user_id)
1965
- @ip_address = args[:ip_address] if args.key?(:ip_address)
1831
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1966
1832
  end
1967
1833
  end
1968
1834
 
1969
- # Request message for
1970
- # LogUserEvent.
1971
- class LogUserEventRequest
1835
+ # Response for ListOfferHistory.
1836
+ class ListOffersHistoryResponse
1972
1837
  include Google::Apis::Core::Hashable
1973
1838
 
1974
- # The category the action belongs to.
1975
- # Corresponds to the JSON property `eventCategory`
1976
- # @return [String]
1977
- attr_accessor :event_category
1978
-
1979
- # A lead resource that represents an advertiser contact for a `Company`. These
1980
- # are usually generated via Google Partner Search (the advertiser portal).
1981
- # Corresponds to the JSON property `lead`
1982
- # @return [Google::Apis::PartnersV2::Lead]
1983
- attr_accessor :lead
1839
+ # True if this response is showing entire company history.
1840
+ # Corresponds to the JSON property `showingEntireCompany`
1841
+ # @return [Boolean]
1842
+ attr_accessor :showing_entire_company
1843
+ alias_method :showing_entire_company?, :showing_entire_company
1984
1844
 
1985
- # The action that occurred.
1986
- # Corresponds to the JSON property `eventAction`
1987
- # @return [String]
1988
- attr_accessor :event_action
1845
+ # Historical offers meeting request.
1846
+ # Corresponds to the JSON property `offers`
1847
+ # @return [Array<Google::Apis::PartnersV2::HistoricalOffer>]
1848
+ attr_accessor :offers
1989
1849
 
1990
- # The URL where the event occurred.
1991
- # Corresponds to the JSON property `url`
1850
+ # Supply this token in a ListOffersHistoryRequest to retrieve the next page.
1851
+ # Corresponds to the JSON property `nextPageToken`
1992
1852
  # @return [String]
1993
- attr_accessor :url
1853
+ attr_accessor :next_page_token
1994
1854
 
1995
- # Common data that is in each API request.
1996
- # Corresponds to the JSON property `requestMetadata`
1997
- # @return [Google::Apis::PartnersV2::RequestMetadata]
1998
- attr_accessor :request_metadata
1855
+ # Common data that is in each API response.
1856
+ # Corresponds to the JSON property `responseMetadata`
1857
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1858
+ attr_accessor :response_metadata
1999
1859
 
2000
- # List of event data for the event.
2001
- # Corresponds to the JSON property `eventDatas`
2002
- # @return [Array<Google::Apis::PartnersV2::EventData>]
2003
- attr_accessor :event_datas
1860
+ # True if the user has the option to show entire company history.
1861
+ # Corresponds to the JSON property `canShowEntireCompany`
1862
+ # @return [Boolean]
1863
+ attr_accessor :can_show_entire_company
1864
+ alias_method :can_show_entire_company?, :can_show_entire_company
2004
1865
 
2005
- # The scope of the event.
2006
- # Corresponds to the JSON property `eventScope`
2007
- # @return [String]
2008
- attr_accessor :event_scope
1866
+ # Number of results across all pages.
1867
+ # Corresponds to the JSON property `totalResults`
1868
+ # @return [Fixnum]
1869
+ attr_accessor :total_results
2009
1870
 
2010
1871
  def initialize(**args)
2011
1872
  update!(**args)
@@ -2013,30 +1874,24 @@ module Google
2013
1874
 
2014
1875
  # Update properties of this object
2015
1876
  def update!(**args)
2016
- @event_category = args[:event_category] if args.key?(:event_category)
2017
- @lead = args[:lead] if args.key?(:lead)
2018
- @event_action = args[:event_action] if args.key?(:event_action)
2019
- @url = args[:url] if args.key?(:url)
2020
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
2021
- @event_datas = args[:event_datas] if args.key?(:event_datas)
2022
- @event_scope = args[:event_scope] if args.key?(:event_scope)
1877
+ @showing_entire_company = args[:showing_entire_company] if args.key?(:showing_entire_company)
1878
+ @offers = args[:offers] if args.key?(:offers)
1879
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1880
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
1881
+ @can_show_entire_company = args[:can_show_entire_company] if args.key?(:can_show_entire_company)
1882
+ @total_results = args[:total_results] if args.key?(:total_results)
2023
1883
  end
2024
1884
  end
2025
1885
 
2026
- # Details of the analytics events for a `Company` within a single day.
2027
- class AnalyticsDataPoint
1886
+ # Response message for
1887
+ # LogClientMessage.
1888
+ class LogMessageResponse
2028
1889
  include Google::Apis::Core::Hashable
2029
1890
 
2030
- # Number of times the type of event occurred.
2031
- # Meaning depends on context (e.g. profile views, contacts, etc.).
2032
- # Corresponds to the JSON property `eventCount`
2033
- # @return [Fixnum]
2034
- attr_accessor :event_count
2035
-
2036
- # Location information of where these events occurred.
2037
- # Corresponds to the JSON property `eventLocations`
2038
- # @return [Array<Google::Apis::PartnersV2::LatLng>]
2039
- attr_accessor :event_locations
1891
+ # Common data that is in each API response.
1892
+ # Corresponds to the JSON property `responseMetadata`
1893
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
1894
+ attr_accessor :response_metadata
2040
1895
 
2041
1896
  def initialize(**args)
2042
1897
  update!(**args)
@@ -2044,40 +1899,23 @@ module Google
2044
1899
 
2045
1900
  # Update properties of this object
2046
1901
  def update!(**args)
2047
- @event_count = args[:event_count] if args.key?(:event_count)
2048
- @event_locations = args[:event_locations] if args.key?(:event_locations)
1902
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2049
1903
  end
2050
1904
  end
2051
1905
 
2052
- # Analytics data for a `Company` within a single day.
2053
- class Analytics
1906
+ # Agency specialization status
1907
+ class SpecializationStatus
2054
1908
  include Google::Apis::Core::Hashable
2055
1909
 
2056
- # Details of the analytics events for a `Company` within a single day.
2057
- # Corresponds to the JSON property `contacts`
2058
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2059
- attr_accessor :contacts
2060
-
2061
- # Represents a whole calendar date, e.g. date of birth. The time of day and
2062
- # time zone are either specified elsewhere or are not significant. The date
2063
- # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
2064
- # represent a year and month where the day is not significant, e.g. credit card
2065
- # expiration date. The year may be 0 to represent a month and day independent
2066
- # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
2067
- # and `google.protobuf.Timestamp`.
2068
- # Corresponds to the JSON property `eventDate`
2069
- # @return [Google::Apis::PartnersV2::Date]
2070
- attr_accessor :event_date
2071
-
2072
- # Details of the analytics events for a `Company` within a single day.
2073
- # Corresponds to the JSON property `profileViews`
2074
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2075
- attr_accessor :profile_views
1910
+ # The specialization this status is for.
1911
+ # Corresponds to the JSON property `badgeSpecialization`
1912
+ # @return [String]
1913
+ attr_accessor :badge_specialization
2076
1914
 
2077
- # Details of the analytics events for a `Company` within a single day.
2078
- # Corresponds to the JSON property `searchViews`
2079
- # @return [Google::Apis::PartnersV2::AnalyticsDataPoint]
2080
- attr_accessor :search_views
1915
+ # State of agency specialization.
1916
+ # Corresponds to the JSON property `badgeSpecializationState`
1917
+ # @return [String]
1918
+ attr_accessor :badge_specialization_state
2081
1919
 
2082
1920
  def initialize(**args)
2083
1921
  update!(**args)
@@ -2085,41 +1923,41 @@ module Google
2085
1923
 
2086
1924
  # Update properties of this object
2087
1925
  def update!(**args)
2088
- @contacts = args[:contacts] if args.key?(:contacts)
2089
- @event_date = args[:event_date] if args.key?(:event_date)
2090
- @profile_views = args[:profile_views] if args.key?(:profile_views)
2091
- @search_views = args[:search_views] if args.key?(:search_views)
1926
+ @badge_specialization = args[:badge_specialization] if args.key?(:badge_specialization)
1927
+ @badge_specialization_state = args[:badge_specialization_state] if args.key?(:badge_specialization_state)
2092
1928
  end
2093
1929
  end
2094
1930
 
2095
- # Basic information from a public profile.
2096
- class PublicProfile
1931
+ # A user's information on a specific certification.
1932
+ class Certification
2097
1933
  include Google::Apis::Core::Hashable
2098
1934
 
2099
- # The ID which can be used to retrieve more details about the public profile.
2100
- # Corresponds to the JSON property `id`
2101
- # @return [String]
2102
- attr_accessor :id
1935
+ # Whether this certification has been achieved.
1936
+ # Corresponds to the JSON property `achieved`
1937
+ # @return [Boolean]
1938
+ attr_accessor :achieved
1939
+ alias_method :achieved?, :achieved
2103
1940
 
2104
- # The URL of the public profile.
2105
- # Corresponds to the JSON property `url`
1941
+ # Date this certification is due to expire.
1942
+ # Corresponds to the JSON property `expiration`
2106
1943
  # @return [String]
2107
- attr_accessor :url
1944
+ attr_accessor :expiration
2108
1945
 
2109
- # The URL to the main profile image of the public profile.
2110
- # Corresponds to the JSON property `profileImage`
2111
- # @return [String]
2112
- attr_accessor :profile_image
1946
+ # Whether this certification is in the state of warning.
1947
+ # Corresponds to the JSON property `warning`
1948
+ # @return [Boolean]
1949
+ attr_accessor :warning
1950
+ alias_method :warning?, :warning
2113
1951
 
2114
- # The display name of the public profile.
2115
- # Corresponds to the JSON property `displayName`
1952
+ # The type of certification, the area of expertise.
1953
+ # Corresponds to the JSON property `certificationType`
2116
1954
  # @return [String]
2117
- attr_accessor :display_name
1955
+ attr_accessor :certification_type
2118
1956
 
2119
- # The URL to the main display image of the public profile. Being deprecated.
2120
- # Corresponds to the JSON property `displayImageUrl`
1957
+ # The date the user last achieved certification.
1958
+ # Corresponds to the JSON property `lastAchieved`
2121
1959
  # @return [String]
2122
- attr_accessor :display_image_url
1960
+ attr_accessor :last_achieved
2123
1961
 
2124
1962
  def initialize(**args)
2125
1963
  update!(**args)
@@ -2127,28 +1965,78 @@ module Google
2127
1965
 
2128
1966
  # Update properties of this object
2129
1967
  def update!(**args)
2130
- @id = args[:id] if args.key?(:id)
2131
- @url = args[:url] if args.key?(:url)
2132
- @profile_image = args[:profile_image] if args.key?(:profile_image)
2133
- @display_name = args[:display_name] if args.key?(:display_name)
2134
- @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
1968
+ @achieved = args[:achieved] if args.key?(:achieved)
1969
+ @expiration = args[:expiration] if args.key?(:expiration)
1970
+ @warning = args[:warning] if args.key?(:warning)
1971
+ @certification_type = args[:certification_type] if args.key?(:certification_type)
1972
+ @last_achieved = args[:last_achieved] if args.key?(:last_achieved)
2135
1973
  end
2136
1974
  end
2137
1975
 
2138
- # Information about a particular AdWords Manager Account.
2139
- # Read more at https://support.google.com/adwords/answer/6139186
2140
- class AdWordsManagerAccountInfo
1976
+ # A resource representing a user of the Partners platform.
1977
+ class User
2141
1978
  include Google::Apis::Core::Hashable
2142
1979
 
2143
- # The AdWords Manager Account id.
1980
+ # The list of achieved certifications. These are calculated based on exam
1981
+ # results and other requirements.
1982
+ # @OutputOnly
1983
+ # Corresponds to the JSON property `certificationStatus`
1984
+ # @return [Array<Google::Apis::PartnersV2::Certification>]
1985
+ attr_accessor :certification_status
1986
+
1987
+ # The email address used by the user used for company verification.
1988
+ # @OutputOnly
1989
+ # Corresponds to the JSON property `companyVerificationEmail`
1990
+ # @return [String]
1991
+ attr_accessor :company_verification_email
1992
+
1993
+ # A CompanyRelation resource representing information about a user's
1994
+ # affiliation and standing with a company in Partners.
1995
+ # Corresponds to the JSON property `company`
1996
+ # @return [Google::Apis::PartnersV2::CompanyRelation]
1997
+ attr_accessor :company
1998
+
1999
+ # The profile information of a Partners user.
2000
+ # Corresponds to the JSON property `profile`
2001
+ # @return [Google::Apis::PartnersV2::UserProfile]
2002
+ attr_accessor :profile
2003
+
2004
+ # The most recent time the user interacted with the Partners site.
2005
+ # @OutputOnly
2006
+ # Corresponds to the JSON property `lastAccessTime`
2007
+ # @return [String]
2008
+ attr_accessor :last_access_time
2009
+
2010
+ # The list of emails the user has access to/can select as primary.
2011
+ # @OutputOnly
2012
+ # Corresponds to the JSON property `primaryEmails`
2013
+ # @return [Array<String>]
2014
+ attr_accessor :primary_emails
2015
+
2016
+ # This is the list of AdWords Manager Accounts the user has edit access to.
2017
+ # If the user has edit access to multiple accounts, the user can choose the
2018
+ # preferred account and we use this when a personal account is needed. Can
2019
+ # be empty meaning the user has access to no accounts.
2020
+ # @OutputOnly
2021
+ # Corresponds to the JSON property `availableAdwordsManagerAccounts`
2022
+ # @return [Array<Google::Apis::PartnersV2::AdWordsManagerAccountInfo>]
2023
+ attr_accessor :available_adwords_manager_accounts
2024
+
2025
+ # The list of exams the user ever taken. For each type of exam, only one
2026
+ # entry is listed.
2027
+ # Corresponds to the JSON property `examStatus`
2028
+ # @return [Array<Google::Apis::PartnersV2::ExamStatus>]
2029
+ attr_accessor :exam_status
2030
+
2031
+ # The ID of the user.
2144
2032
  # Corresponds to the JSON property `id`
2145
- # @return [Fixnum]
2033
+ # @return [String]
2146
2034
  attr_accessor :id
2147
2035
 
2148
- # Name of the customer this account represents.
2149
- # Corresponds to the JSON property `customerName`
2150
- # @return [String]
2151
- attr_accessor :customer_name
2036
+ # Basic information from a public profile.
2037
+ # Corresponds to the JSON property `publicProfile`
2038
+ # @return [Google::Apis::PartnersV2::PublicProfile]
2039
+ attr_accessor :public_profile
2152
2040
 
2153
2041
  def initialize(**args)
2154
2042
  update!(**args)
@@ -2156,19 +2044,49 @@ module Google
2156
2044
 
2157
2045
  # Update properties of this object
2158
2046
  def update!(**args)
2047
+ @certification_status = args[:certification_status] if args.key?(:certification_status)
2048
+ @company_verification_email = args[:company_verification_email] if args.key?(:company_verification_email)
2049
+ @company = args[:company] if args.key?(:company)
2050
+ @profile = args[:profile] if args.key?(:profile)
2051
+ @last_access_time = args[:last_access_time] if args.key?(:last_access_time)
2052
+ @primary_emails = args[:primary_emails] if args.key?(:primary_emails)
2053
+ @available_adwords_manager_accounts = args[:available_adwords_manager_accounts] if args.key?(:available_adwords_manager_accounts)
2054
+ @exam_status = args[:exam_status] if args.key?(:exam_status)
2159
2055
  @id = args[:id] if args.key?(:id)
2160
- @customer_name = args[:customer_name] if args.key?(:customer_name)
2056
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
2161
2057
  end
2162
2058
  end
2163
2059
 
2164
- # Common data that is in each API response.
2165
- class ResponseMetadata
2060
+ # Response message for
2061
+ # ListAnalytics.
2062
+ class ListAnalyticsResponse
2166
2063
  include Google::Apis::Core::Hashable
2167
2064
 
2168
- # Debug information about this request.
2169
- # Corresponds to the JSON property `debugInfo`
2170
- # @return [Google::Apis::PartnersV2::DebugInfo]
2171
- attr_accessor :debug_info
2065
+ # A token to retrieve next page of results.
2066
+ # Pass this value in the `ListAnalyticsRequest.page_token` field in the
2067
+ # subsequent call to
2068
+ # ListAnalytics to retrieve the
2069
+ # next page of results.
2070
+ # Corresponds to the JSON property `nextPageToken`
2071
+ # @return [String]
2072
+ attr_accessor :next_page_token
2073
+
2074
+ # Common data that is in each API response.
2075
+ # Corresponds to the JSON property `responseMetadata`
2076
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
2077
+ attr_accessor :response_metadata
2078
+
2079
+ # Analytics aggregated data for a `Company` for a given date range.
2080
+ # Corresponds to the JSON property `analyticsSummary`
2081
+ # @return [Google::Apis::PartnersV2::AnalyticsSummary]
2082
+ attr_accessor :analytics_summary
2083
+
2084
+ # The list of analytics.
2085
+ # Sorted in ascending order of
2086
+ # Analytics.event_date.
2087
+ # Corresponds to the JSON property `analytics`
2088
+ # @return [Array<Google::Apis::PartnersV2::Analytics>]
2089
+ attr_accessor :analytics
2172
2090
 
2173
2091
  def initialize(**args)
2174
2092
  update!(**args)
@@ -2176,23 +2094,40 @@ module Google
2176
2094
 
2177
2095
  # Update properties of this object
2178
2096
  def update!(**args)
2179
- @debug_info = args[:debug_info] if args.key?(:debug_info)
2097
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2098
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2099
+ @analytics_summary = args[:analytics_summary] if args.key?(:analytics_summary)
2100
+ @analytics = args[:analytics] if args.key?(:analytics)
2180
2101
  end
2181
2102
  end
2182
2103
 
2183
- # <a href="https://www.google.com/recaptcha/">reCaptcha</a> challenge info.
2184
- class RecaptchaChallenge
2104
+ # Response message for ListLeads.
2105
+ class ListLeadsResponse
2185
2106
  include Google::Apis::Core::Hashable
2186
2107
 
2187
- # The ID of the reCaptcha challenge.
2188
- # Corresponds to the JSON property `id`
2189
- # @return [String]
2190
- attr_accessor :id
2108
+ # The list of leads.
2109
+ # Corresponds to the JSON property `leads`
2110
+ # @return [Array<Google::Apis::PartnersV2::Lead>]
2111
+ attr_accessor :leads
2191
2112
 
2192
- # The response to the reCaptcha challenge.
2193
- # Corresponds to the JSON property `response`
2113
+ # A token to retrieve next page of results.
2114
+ # Pass this value in the `ListLeadsRequest.page_token` field in the
2115
+ # subsequent call to
2116
+ # ListLeads to retrieve the
2117
+ # next page of results.
2118
+ # Corresponds to the JSON property `nextPageToken`
2194
2119
  # @return [String]
2195
- attr_accessor :response
2120
+ attr_accessor :next_page_token
2121
+
2122
+ # Common data that is in each API response.
2123
+ # Corresponds to the JSON property `responseMetadata`
2124
+ # @return [Google::Apis::PartnersV2::ResponseMetadata]
2125
+ attr_accessor :response_metadata
2126
+
2127
+ # The total count of leads for the given company.
2128
+ # Corresponds to the JSON property `totalSize`
2129
+ # @return [Fixnum]
2130
+ attr_accessor :total_size
2196
2131
 
2197
2132
  def initialize(**args)
2198
2133
  update!(**args)
@@ -2200,76 +2135,132 @@ module Google
2200
2135
 
2201
2136
  # Update properties of this object
2202
2137
  def update!(**args)
2203
- @id = args[:id] if args.key?(:id)
2204
- @response = args[:response] if args.key?(:response)
2138
+ @leads = args[:leads] if args.key?(:leads)
2139
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2140
+ @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
2141
+ @total_size = args[:total_size] if args.key?(:total_size)
2205
2142
  end
2206
2143
  end
2207
2144
 
2208
- # Available Offers to be distributed.
2209
- class AvailableOffer
2145
+ # A company resource in the Google Partners API. Once certified, it qualifies
2146
+ # for being searched by advertisers.
2147
+ class Company
2210
2148
  include Google::Apis::Core::Hashable
2211
2149
 
2212
- # Level of this offer.
2213
- # Corresponds to the JSON property `offerLevel`
2214
- # @return [String]
2215
- attr_accessor :offer_level
2150
+ # The Primary AdWords Manager Account id.
2151
+ # Corresponds to the JSON property `primaryAdwordsManagerAccountId`
2152
+ # @return [Fixnum]
2153
+ attr_accessor :primary_adwords_manager_account_id
2216
2154
 
2217
- # Name of the offer.
2155
+ # The name of the company.
2218
2156
  # Corresponds to the JSON property `name`
2219
2157
  # @return [String]
2220
2158
  attr_accessor :name
2221
2159
 
2222
- # ID of this offer.
2160
+ # The list of localized info for the company.
2161
+ # Corresponds to the JSON property `localizedInfos`
2162
+ # @return [Array<Google::Apis::PartnersV2::LocalizedCompanyInfo>]
2163
+ attr_accessor :localized_infos
2164
+
2165
+ # The ID of the company.
2223
2166
  # Corresponds to the JSON property `id`
2224
- # @return [Fixnum]
2167
+ # @return [String]
2225
2168
  attr_accessor :id
2226
2169
 
2227
- # Whether or not the list of qualified customers is definitely complete.
2228
- # Corresponds to the JSON property `qualifiedCustomersComplete`
2229
- # @return [Boolean]
2230
- attr_accessor :qualified_customers_complete
2231
- alias_method :qualified_customers_complete?, :qualified_customers_complete
2170
+ # The list of Google Partners certification statuses for the company.
2171
+ # Corresponds to the JSON property `certificationStatuses`
2172
+ # @return [Array<Google::Apis::PartnersV2::CertificationStatus>]
2173
+ attr_accessor :certification_statuses
2232
2174
 
2233
- # Offer info by country.
2234
- # Corresponds to the JSON property `countryOfferInfos`
2235
- # @return [Array<Google::Apis::PartnersV2::CountryOfferInfo>]
2236
- attr_accessor :country_offer_infos
2175
+ # Represents an amount of money with its currency type.
2176
+ # Corresponds to the JSON property `originalMinMonthlyBudget`
2177
+ # @return [Google::Apis::PartnersV2::Money]
2178
+ attr_accessor :original_min_monthly_budget
2237
2179
 
2238
- # Type of offer.
2239
- # Corresponds to the JSON property `offerType`
2180
+ # Basic information from a public profile.
2181
+ # Corresponds to the JSON property `publicProfile`
2182
+ # @return [Google::Apis::PartnersV2::PublicProfile]
2183
+ attr_accessor :public_profile
2184
+
2185
+ # Services the company can help with.
2186
+ # Corresponds to the JSON property `services`
2187
+ # @return [Array<String>]
2188
+ attr_accessor :services
2189
+
2190
+ # A location with address and geographic coordinates. May optionally contain a
2191
+ # detailed (multi-field) version of the address.
2192
+ # Corresponds to the JSON property `primaryLocation`
2193
+ # @return [Google::Apis::PartnersV2::Location]
2194
+ attr_accessor :primary_location
2195
+
2196
+ # Information related to the ranking of the company within the list of
2197
+ # companies.
2198
+ # Corresponds to the JSON property `ranks`
2199
+ # @return [Array<Google::Apis::PartnersV2::Rank>]
2200
+ attr_accessor :ranks
2201
+
2202
+ # Partner badge tier
2203
+ # Corresponds to the JSON property `badgeTier`
2240
2204
  # @return [String]
2241
- attr_accessor :offer_type
2205
+ attr_accessor :badge_tier
2242
2206
 
2243
- # The maximum age of an account [in days] to be eligible.
2244
- # Corresponds to the JSON property `maxAccountAge`
2245
- # @return [Fixnum]
2246
- attr_accessor :max_account_age
2207
+ # The list of Google Partners specialization statuses for the company.
2208
+ # Corresponds to the JSON property `specializationStatus`
2209
+ # @return [Array<Google::Apis::PartnersV2::SpecializationStatus>]
2210
+ attr_accessor :specialization_status
2247
2211
 
2248
- # Customers who qualify for this offer.
2249
- # Corresponds to the JSON property `qualifiedCustomer`
2250
- # @return [Array<Google::Apis::PartnersV2::OfferCustomer>]
2251
- attr_accessor :qualified_customer
2212
+ # Company type labels listed on the company's profile.
2213
+ # Corresponds to the JSON property `companyTypes`
2214
+ # @return [Array<String>]
2215
+ attr_accessor :company_types
2252
2216
 
2253
- # Terms of the offer.
2254
- # Corresponds to the JSON property `terms`
2217
+ # Email domains that allow users with a matching email address to get
2218
+ # auto-approved for associating with this company.
2219
+ # Corresponds to the JSON property `autoApprovalEmailDomains`
2220
+ # @return [Array<String>]
2221
+ attr_accessor :auto_approval_email_domains
2222
+
2223
+ # The public viewability status of the company's profile.
2224
+ # Corresponds to the JSON property `profileStatus`
2255
2225
  # @return [String]
2256
- attr_accessor :terms
2226
+ attr_accessor :profile_status
2257
2227
 
2258
- # Should special text be shown on the offers page.
2259
- # Corresponds to the JSON property `showSpecialOfferCopy`
2260
- # @return [Boolean]
2261
- attr_accessor :show_special_offer_copy
2262
- alias_method :show_special_offer_copy?, :show_special_offer_copy
2228
+ # The primary language code of the company, as defined by
2229
+ # <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
2230
+ # (IETF BCP 47, "Tags for Identifying Languages").
2231
+ # Corresponds to the JSON property `primaryLanguageCode`
2232
+ # @return [String]
2233
+ attr_accessor :primary_language_code
2263
2234
 
2264
- # The number of codes for this offer that are available for distribution.
2265
- # Corresponds to the JSON property `available`
2266
- # @return [Fixnum]
2267
- attr_accessor :available
2235
+ # The list of all company locations.
2236
+ # If set, must include the
2237
+ # primary_location
2238
+ # in the list.
2239
+ # Corresponds to the JSON property `locations`
2240
+ # @return [Array<Google::Apis::PartnersV2::Location>]
2241
+ attr_accessor :locations
2268
2242
 
2269
- # Description of the offer.
2270
- # Corresponds to the JSON property `description`
2243
+ # Represents an amount of money with its currency type.
2244
+ # Corresponds to the JSON property `convertedMinMonthlyBudget`
2245
+ # @return [Google::Apis::PartnersV2::Money]
2246
+ attr_accessor :converted_min_monthly_budget
2247
+
2248
+ # Industries the company can help with.
2249
+ # Corresponds to the JSON property `industries`
2250
+ # @return [Array<String>]
2251
+ attr_accessor :industries
2252
+
2253
+ # URL of the company's website.
2254
+ # Corresponds to the JSON property `websiteUrl`
2271
2255
  # @return [String]
2272
- attr_accessor :description
2256
+ attr_accessor :website_url
2257
+
2258
+ # URL of the company's additional websites used to verify the dynamic badges.
2259
+ # These are stored as full URLs as entered by the user, but only the TLD will
2260
+ # be used for the actual verification.
2261
+ # Corresponds to the JSON property `additionalWebsites`
2262
+ # @return [Array<String>]
2263
+ attr_accessor :additional_websites
2273
2264
 
2274
2265
  def initialize(**args)
2275
2266
  update!(**args)
@@ -2277,18 +2268,27 @@ module Google
2277
2268
 
2278
2269
  # Update properties of this object
2279
2270
  def update!(**args)
2280
- @offer_level = args[:offer_level] if args.key?(:offer_level)
2271
+ @primary_adwords_manager_account_id = args[:primary_adwords_manager_account_id] if args.key?(:primary_adwords_manager_account_id)
2281
2272
  @name = args[:name] if args.key?(:name)
2273
+ @localized_infos = args[:localized_infos] if args.key?(:localized_infos)
2282
2274
  @id = args[:id] if args.key?(:id)
2283
- @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
2284
- @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos)
2285
- @offer_type = args[:offer_type] if args.key?(:offer_type)
2286
- @max_account_age = args[:max_account_age] if args.key?(:max_account_age)
2287
- @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer)
2288
- @terms = args[:terms] if args.key?(:terms)
2289
- @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy)
2290
- @available = args[:available] if args.key?(:available)
2291
- @description = args[:description] if args.key?(:description)
2275
+ @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses)
2276
+ @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget)
2277
+ @public_profile = args[:public_profile] if args.key?(:public_profile)
2278
+ @services = args[:services] if args.key?(:services)
2279
+ @primary_location = args[:primary_location] if args.key?(:primary_location)
2280
+ @ranks = args[:ranks] if args.key?(:ranks)
2281
+ @badge_tier = args[:badge_tier] if args.key?(:badge_tier)
2282
+ @specialization_status = args[:specialization_status] if args.key?(:specialization_status)
2283
+ @company_types = args[:company_types] if args.key?(:company_types)
2284
+ @auto_approval_email_domains = args[:auto_approval_email_domains] if args.key?(:auto_approval_email_domains)
2285
+ @profile_status = args[:profile_status] if args.key?(:profile_status)
2286
+ @primary_language_code = args[:primary_language_code] if args.key?(:primary_language_code)
2287
+ @locations = args[:locations] if args.key?(:locations)
2288
+ @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget)
2289
+ @industries = args[:industries] if args.key?(:industries)
2290
+ @website_url = args[:website_url] if args.key?(:website_url)
2291
+ @additional_websites = args[:additional_websites] if args.key?(:additional_websites)
2292
2292
  end
2293
2293
  end
2294
2294
  end