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