google-api-client 0.13.0 → 0.13.1

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