google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- 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 +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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 +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -48,8 +48,41 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
52
|
-
#
|
51
|
+
# Logs a generic message from the client, such as
|
52
|
+
# `Failed to render component`, `Profile page is running slow`,
|
53
|
+
# `More than 500 users have accessed this result.`, etc.
|
54
|
+
# @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::PartnersV2::LogMessageResponse]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def log_client_message_message(log_message_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v2/clientMessages:log', options)
|
74
|
+
command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
|
75
|
+
command.request_object = log_message_request_object
|
76
|
+
command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
|
77
|
+
command.response_class = Google::Apis::PartnersV2::LogMessageResponse
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
83
|
+
# Gets an Exam Token for a Partner's user to take an exam in the Exams System
|
84
|
+
# @param [String] exam_type
|
85
|
+
# The exam type we are requesting a token for.
|
53
86
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
54
87
|
# Experiment IDs the current request belongs to.
|
55
88
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
@@ -68,27 +101,28 @@ module Google
|
|
68
101
|
# Locale to use for the current request.
|
69
102
|
# @param [String] request_metadata_user_overrides_ip_address
|
70
103
|
# IP address to use instead of the user's geo-located IP address.
|
71
|
-
# @param [String] fields
|
72
|
-
# Selector specifying which fields to include in a partial response.
|
73
104
|
# @param [String] quota_user
|
74
105
|
# Available to use for quota purposes for server-side applications. Can be any
|
75
106
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
107
|
+
# @param [String] fields
|
108
|
+
# Selector specifying which fields to include in a partial response.
|
76
109
|
# @param [Google::Apis::RequestOptions] options
|
77
110
|
# Request-specific options
|
78
111
|
#
|
79
112
|
# @yield [result, err] Result & error if block supplied
|
80
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
113
|
+
# @yieldparam result [Google::Apis::PartnersV2::ExamToken] parsed result object
|
81
114
|
# @yieldparam err [StandardError] error object if request failed
|
82
115
|
#
|
83
|
-
# @return [Google::Apis::PartnersV2::
|
116
|
+
# @return [Google::Apis::PartnersV2::ExamToken]
|
84
117
|
#
|
85
118
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
86
119
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
87
120
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
88
|
-
def
|
89
|
-
command = make_simple_command(:get, 'v2/
|
90
|
-
command.response_representation = Google::Apis::PartnersV2::
|
91
|
-
command.response_class = Google::Apis::PartnersV2::
|
121
|
+
def get_exam_token(exam_type, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block)
|
122
|
+
command = make_simple_command(:get, 'v2/exams/{examType}/token', options)
|
123
|
+
command.response_representation = Google::Apis::PartnersV2::ExamToken::Representation
|
124
|
+
command.response_class = Google::Apis::PartnersV2::ExamToken
|
125
|
+
command.params['examType'] = exam_type unless exam_type.nil?
|
92
126
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
93
127
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
94
128
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
@@ -96,17 +130,34 @@ module Google
|
|
96
130
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
97
131
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
98
132
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
99
|
-
command.query['fields'] = fields unless fields.nil?
|
100
133
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
134
|
+
command.query['fields'] = fields unless fields.nil?
|
101
135
|
execute_or_queue_command(command, &block)
|
102
136
|
end
|
103
137
|
|
104
|
-
#
|
105
|
-
#
|
138
|
+
# Lists advertiser leads for a user's associated company.
|
139
|
+
# Should only be called within the context of an authorized logged in user.
|
140
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
141
|
+
# Experiment IDs the current request belongs to.
|
142
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
143
|
+
# Second level identifier to indicate where the traffic comes from.
|
144
|
+
# An identifier has multiple letters created by a team which redirected the
|
145
|
+
# traffic to us.
|
146
|
+
# @param [String] order_by
|
147
|
+
# How to order Leads. Currently, only `create_time`
|
148
|
+
# and `create_time desc` are supported
|
106
149
|
# @param [String] request_metadata_user_overrides_user_id
|
107
150
|
# Logged-in user ID to impersonate instead of the user's ID.
|
108
151
|
# @param [String] request_metadata_partners_session_id
|
109
152
|
# Google Partners session ID.
|
153
|
+
# @param [String] page_token
|
154
|
+
# A token identifying a page of results that the server returns.
|
155
|
+
# Typically, this is the value of `ListLeadsResponse.next_page_token`
|
156
|
+
# returned from the previous call to
|
157
|
+
# ListLeads.
|
158
|
+
# @param [Fixnum] page_size
|
159
|
+
# Requested page size. Server may return fewer leads than requested.
|
160
|
+
# If unspecified, server picks an appropriate default.
|
110
161
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
111
162
|
# Identifier to indicate where the traffic comes from.
|
112
163
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -115,59 +166,47 @@ module Google
|
|
115
166
|
# Locale to use for the current request.
|
116
167
|
# @param [String] request_metadata_user_overrides_ip_address
|
117
168
|
# IP address to use instead of the user's geo-located IP address.
|
118
|
-
# @param [String] update_mask
|
119
|
-
# Standard field mask for the set of fields to be updated.
|
120
|
-
# Required with at least 1 value in FieldMask's paths.
|
121
|
-
# Only `state` and `adwords_customer_id` are currently supported.
|
122
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
123
|
-
# Experiment IDs the current request belongs to.
|
124
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
125
|
-
# Second level identifier to indicate where the traffic comes from.
|
126
|
-
# An identifier has multiple letters created by a team which redirected the
|
127
|
-
# traffic to us.
|
128
|
-
# @param [String] fields
|
129
|
-
# Selector specifying which fields to include in a partial response.
|
130
169
|
# @param [String] quota_user
|
131
170
|
# Available to use for quota purposes for server-side applications. Can be any
|
132
171
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
133
174
|
# @param [Google::Apis::RequestOptions] options
|
134
175
|
# Request-specific options
|
135
176
|
#
|
136
177
|
# @yield [result, err] Result & error if block supplied
|
137
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
178
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListLeadsResponse] parsed result object
|
138
179
|
# @yieldparam err [StandardError] error object if request failed
|
139
180
|
#
|
140
|
-
# @return [Google::Apis::PartnersV2::
|
181
|
+
# @return [Google::Apis::PartnersV2::ListLeadsResponse]
|
141
182
|
#
|
142
183
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
184
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
185
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
-
def
|
146
|
-
command = make_simple_command(:
|
147
|
-
command.
|
148
|
-
command.
|
149
|
-
command.
|
150
|
-
command.
|
186
|
+
def list_leads(request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:get, 'v2/leads', options)
|
188
|
+
command.response_representation = Google::Apis::PartnersV2::ListLeadsResponse::Representation
|
189
|
+
command.response_class = Google::Apis::PartnersV2::ListLeadsResponse
|
190
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
191
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
192
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
151
193
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
152
194
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
195
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
196
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
153
197
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
154
198
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
155
199
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
156
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
157
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
158
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
159
|
-
command.query['fields'] = fields unless fields.nil?
|
160
200
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
201
|
+
command.query['fields'] = fields unless fields.nil?
|
161
202
|
execute_or_queue_command(command, &block)
|
162
203
|
end
|
163
204
|
|
164
|
-
#
|
165
|
-
# Should only be called within the context of an authorized logged in user.
|
166
|
-
# @param [Google::Apis::PartnersV2::Company] company_object
|
167
|
-
# @param [String] request_metadata_partners_session_id
|
168
|
-
# Google Partners session ID.
|
205
|
+
# Lists the Offers available for the current user
|
169
206
|
# @param [String] request_metadata_user_overrides_user_id
|
170
207
|
# Logged-in user ID to impersonate instead of the user's ID.
|
208
|
+
# @param [String] request_metadata_partners_session_id
|
209
|
+
# Google Partners session ID.
|
171
210
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
172
211
|
# Identifier to indicate where the traffic comes from.
|
173
212
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -176,173 +215,167 @@ module Google
|
|
176
215
|
# Locale to use for the current request.
|
177
216
|
# @param [String] request_metadata_user_overrides_ip_address
|
178
217
|
# IP address to use instead of the user's geo-located IP address.
|
179
|
-
# @param [String] update_mask
|
180
|
-
# Standard field mask for the set of fields to be updated.
|
181
|
-
# Required with at least 1 value in FieldMask's paths.
|
182
218
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
183
219
|
# Experiment IDs the current request belongs to.
|
184
220
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
185
221
|
# Second level identifier to indicate where the traffic comes from.
|
186
222
|
# An identifier has multiple letters created by a team which redirected the
|
187
223
|
# traffic to us.
|
188
|
-
# @param [String] fields
|
189
|
-
# Selector specifying which fields to include in a partial response.
|
190
224
|
# @param [String] quota_user
|
191
225
|
# Available to use for quota purposes for server-side applications. Can be any
|
192
226
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
227
|
+
# @param [String] fields
|
228
|
+
# Selector specifying which fields to include in a partial response.
|
193
229
|
# @param [Google::Apis::RequestOptions] options
|
194
230
|
# Request-specific options
|
195
231
|
#
|
196
232
|
# @yield [result, err] Result & error if block supplied
|
197
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
233
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListOffersResponse] parsed result object
|
198
234
|
# @yieldparam err [StandardError] error object if request failed
|
199
235
|
#
|
200
|
-
# @return [Google::Apis::PartnersV2::
|
236
|
+
# @return [Google::Apis::PartnersV2::ListOffersResponse]
|
201
237
|
#
|
202
238
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
203
239
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
204
240
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
205
|
-
def
|
206
|
-
command = make_simple_command(:
|
207
|
-
command.
|
208
|
-
command.
|
209
|
-
command.response_representation = Google::Apis::PartnersV2::Company::Representation
|
210
|
-
command.response_class = Google::Apis::PartnersV2::Company
|
211
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
241
|
+
def list_offers(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
242
|
+
command = make_simple_command(:get, 'v2/offers', options)
|
243
|
+
command.response_representation = Google::Apis::PartnersV2::ListOffersResponse::Representation
|
244
|
+
command.response_class = Google::Apis::PartnersV2::ListOffersResponse
|
212
245
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
246
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
213
247
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
214
248
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
215
249
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
216
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
217
250
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
218
251
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
219
|
-
command.query['fields'] = fields unless fields.nil?
|
220
252
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
253
|
+
command.query['fields'] = fields unless fields.nil?
|
221
254
|
execute_or_queue_command(command, &block)
|
222
255
|
end
|
223
256
|
|
224
|
-
#
|
225
|
-
# @param [String] user_id
|
226
|
-
# Identifier of the user. Can be set to <code>me</code> to mean the currently
|
227
|
-
# authenticated user.
|
228
|
-
# @param [String] request_metadata_partners_session_id
|
229
|
-
# Google Partners session ID.
|
230
|
-
# @param [String] request_metadata_user_overrides_user_id
|
231
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
232
|
-
# @param [String] user_view
|
233
|
-
# Specifies what parts of the user information to return.
|
234
|
-
# @param [String] request_metadata_traffic_source_traffic_source_id
|
235
|
-
# Identifier to indicate where the traffic comes from.
|
236
|
-
# An identifier has multiple letters created by a team which redirected the
|
237
|
-
# traffic to us.
|
257
|
+
# Lists the Historical Offers for the current user (or user's entire company)
|
238
258
|
# @param [String] request_metadata_locale
|
239
259
|
# Locale to use for the current request.
|
240
260
|
# @param [String] request_metadata_user_overrides_ip_address
|
241
261
|
# IP address to use instead of the user's geo-located IP address.
|
242
262
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
243
263
|
# Experiment IDs the current request belongs to.
|
264
|
+
# @param [Boolean] entire_company
|
265
|
+
# if true, show history for the entire company. Requires user to be admin.
|
266
|
+
# @param [String] order_by
|
267
|
+
# Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
|
268
|
+
# Use "foo desc" to sort descending.
|
269
|
+
# List of valid field names is: name, offer_code, expiration_time, status,
|
270
|
+
# last_modified_time, sender_name, creation_time, country_code,
|
271
|
+
# offer_type.
|
244
272
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
245
273
|
# Second level identifier to indicate where the traffic comes from.
|
246
274
|
# An identifier has multiple letters created by a team which redirected the
|
247
275
|
# traffic to us.
|
248
|
-
# @param [String]
|
249
|
-
#
|
276
|
+
# @param [String] request_metadata_partners_session_id
|
277
|
+
# Google Partners session ID.
|
278
|
+
# @param [String] request_metadata_user_overrides_user_id
|
279
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
280
|
+
# @param [String] page_token
|
281
|
+
# Token to retrieve a specific page.
|
282
|
+
# @param [Fixnum] page_size
|
283
|
+
# Maximum number of rows to return per page.
|
284
|
+
# @param [String] request_metadata_traffic_source_traffic_source_id
|
285
|
+
# Identifier to indicate where the traffic comes from.
|
286
|
+
# An identifier has multiple letters created by a team which redirected the
|
287
|
+
# traffic to us.
|
250
288
|
# @param [String] quota_user
|
251
289
|
# Available to use for quota purposes for server-side applications. Can be any
|
252
290
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
291
|
+
# @param [String] fields
|
292
|
+
# Selector specifying which fields to include in a partial response.
|
253
293
|
# @param [Google::Apis::RequestOptions] options
|
254
294
|
# Request-specific options
|
255
295
|
#
|
256
296
|
# @yield [result, err] Result & error if block supplied
|
257
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
297
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListOffersHistoryResponse] parsed result object
|
258
298
|
# @yieldparam err [StandardError] error object if request failed
|
259
299
|
#
|
260
|
-
# @return [Google::Apis::PartnersV2::
|
300
|
+
# @return [Google::Apis::PartnersV2::ListOffersHistoryResponse]
|
261
301
|
#
|
262
302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
263
303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
264
304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
265
|
-
def
|
266
|
-
command = make_simple_command(:get, 'v2/
|
267
|
-
command.response_representation = Google::Apis::PartnersV2::
|
268
|
-
command.response_class = Google::Apis::PartnersV2::
|
269
|
-
command.params['userId'] = user_id unless user_id.nil?
|
270
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
271
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
272
|
-
command.query['userView'] = user_view unless user_view.nil?
|
273
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
305
|
+
def list_offer_histories(request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, entire_company: nil, order_by: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
306
|
+
command = make_simple_command(:get, 'v2/offers/history', options)
|
307
|
+
command.response_representation = Google::Apis::PartnersV2::ListOffersHistoryResponse::Representation
|
308
|
+
command.response_class = Google::Apis::PartnersV2::ListOffersHistoryResponse
|
274
309
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
275
310
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
276
311
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
312
|
+
command.query['entireCompany'] = entire_company unless entire_company.nil?
|
313
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
277
314
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
278
|
-
command.query['
|
315
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
316
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
317
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
318
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
319
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
279
320
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
|
+
command.query['fields'] = fields unless fields.nil?
|
280
322
|
execute_or_queue_command(command, &block)
|
281
323
|
end
|
282
324
|
|
283
|
-
#
|
284
|
-
# should only be called within the context of a logged in user.
|
285
|
-
# @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
|
286
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
287
|
-
# IP address to use instead of the user's geo-located IP address.
|
288
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
289
|
-
# Experiment IDs the current request belongs to.
|
290
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
291
|
-
# Second level identifier to indicate where the traffic comes from.
|
292
|
-
# An identifier has multiple letters created by a team which redirected the
|
293
|
-
# traffic to us.
|
294
|
-
# @param [String] request_metadata_partners_session_id
|
295
|
-
# Google Partners session ID.
|
325
|
+
# Lists states for current user.
|
296
326
|
# @param [String] request_metadata_user_overrides_user_id
|
297
327
|
# Logged-in user ID to impersonate instead of the user's ID.
|
328
|
+
# @param [String] request_metadata_partners_session_id
|
329
|
+
# Google Partners session ID.
|
298
330
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
299
331
|
# Identifier to indicate where the traffic comes from.
|
300
332
|
# An identifier has multiple letters created by a team which redirected the
|
301
333
|
# traffic to us.
|
302
334
|
# @param [String] request_metadata_locale
|
303
335
|
# Locale to use for the current request.
|
304
|
-
# @param [String]
|
305
|
-
#
|
336
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
337
|
+
# IP address to use instead of the user's geo-located IP address.
|
338
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
339
|
+
# Experiment IDs the current request belongs to.
|
340
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
341
|
+
# Second level identifier to indicate where the traffic comes from.
|
342
|
+
# An identifier has multiple letters created by a team which redirected the
|
343
|
+
# traffic to us.
|
306
344
|
# @param [String] quota_user
|
307
345
|
# Available to use for quota purposes for server-side applications. Can be any
|
308
346
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
347
|
+
# @param [String] fields
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
309
349
|
# @param [Google::Apis::RequestOptions] options
|
310
350
|
# Request-specific options
|
311
351
|
#
|
312
352
|
# @yield [result, err] Result & error if block supplied
|
313
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
353
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListUserStatesResponse] parsed result object
|
314
354
|
# @yieldparam err [StandardError] error object if request failed
|
315
355
|
#
|
316
|
-
# @return [Google::Apis::PartnersV2::
|
356
|
+
# @return [Google::Apis::PartnersV2::ListUserStatesResponse]
|
317
357
|
#
|
318
358
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
359
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
360
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
-
def
|
322
|
-
command = make_simple_command(:
|
323
|
-
command.
|
324
|
-
command.
|
325
|
-
command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
|
326
|
-
command.response_class = Google::Apis::PartnersV2::UserProfile
|
327
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
328
|
-
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
329
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
330
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
361
|
+
def list_user_states(request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
362
|
+
command = make_simple_command(:get, 'v2/userStates', options)
|
363
|
+
command.response_representation = Google::Apis::PartnersV2::ListUserStatesResponse::Representation
|
364
|
+
command.response_class = Google::Apis::PartnersV2::ListUserStatesResponse
|
331
365
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
366
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
332
367
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
333
368
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
334
|
-
command.query['
|
369
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
370
|
+
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
371
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
335
372
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
|
+
command.query['fields'] = fields unless fields.nil?
|
336
374
|
execute_or_queue_command(command, &block)
|
337
375
|
end
|
338
376
|
|
339
|
-
#
|
340
|
-
#
|
341
|
-
# The ID of the user. Can be set to <code>me</code> to mean
|
342
|
-
# the currently authenticated user.
|
343
|
-
# @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
|
344
|
-
# @param [String] request_metadata_locale
|
345
|
-
# Locale to use for the current request.
|
377
|
+
# Lists analytics data for a user's associated company.
|
378
|
+
# Should only be called within the context of an authorized logged in user.
|
346
379
|
# @param [String] request_metadata_user_overrides_ip_address
|
347
380
|
# IP address to use instead of the user's geo-located IP address.
|
348
381
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
@@ -355,50 +388,65 @@ module Google
|
|
355
388
|
# Logged-in user ID to impersonate instead of the user's ID.
|
356
389
|
# @param [String] request_metadata_partners_session_id
|
357
390
|
# Google Partners session ID.
|
391
|
+
# @param [String] page_token
|
392
|
+
# A token identifying a page of results that the server returns.
|
393
|
+
# Typically, this is the value of `ListAnalyticsResponse.next_page_token`
|
394
|
+
# returned from the previous call to
|
395
|
+
# ListAnalytics.
|
396
|
+
# Will be a date string in `YYYY-MM-DD` format representing the end date
|
397
|
+
# of the date range of results to return.
|
398
|
+
# If unspecified or set to "", default value is the current date.
|
399
|
+
# @param [Fixnum] page_size
|
400
|
+
# Requested page size. Server may return fewer analytics than requested.
|
401
|
+
# If unspecified or set to 0, default value is 30.
|
402
|
+
# Specifies the number of days in the date range when querying analytics.
|
403
|
+
# The `page_token` represents the end date of the date range
|
404
|
+
# and the start date is calculated using the `page_size` as the number
|
405
|
+
# of days BEFORE the end date.
|
406
|
+
# Must be a non-negative integer.
|
358
407
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
359
408
|
# Identifier to indicate where the traffic comes from.
|
360
409
|
# An identifier has multiple letters created by a team which redirected the
|
361
410
|
# traffic to us.
|
362
|
-
# @param [String]
|
363
|
-
#
|
411
|
+
# @param [String] request_metadata_locale
|
412
|
+
# Locale to use for the current request.
|
364
413
|
# @param [String] quota_user
|
365
414
|
# Available to use for quota purposes for server-side applications. Can be any
|
366
415
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
416
|
+
# @param [String] fields
|
417
|
+
# Selector specifying which fields to include in a partial response.
|
367
418
|
# @param [Google::Apis::RequestOptions] options
|
368
419
|
# Request-specific options
|
369
420
|
#
|
370
421
|
# @yield [result, err] Result & error if block supplied
|
371
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
422
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListAnalyticsResponse] parsed result object
|
372
423
|
# @yieldparam err [StandardError] error object if request failed
|
373
424
|
#
|
374
|
-
# @return [Google::Apis::PartnersV2::
|
425
|
+
# @return [Google::Apis::PartnersV2::ListAnalyticsResponse]
|
375
426
|
#
|
376
427
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
377
428
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
378
429
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
379
|
-
def
|
380
|
-
command = make_simple_command(:
|
381
|
-
command.
|
382
|
-
command.
|
383
|
-
command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
|
384
|
-
command.response_class = Google::Apis::PartnersV2::CompanyRelation
|
385
|
-
command.params['userId'] = user_id unless user_id.nil?
|
386
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
430
|
+
def list_analytics(request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, page_token: nil, page_size: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, quota_user: nil, fields: nil, options: nil, &block)
|
431
|
+
command = make_simple_command(:get, 'v2/analytics', options)
|
432
|
+
command.response_representation = Google::Apis::PartnersV2::ListAnalyticsResponse::Representation
|
433
|
+
command.response_class = Google::Apis::PartnersV2::ListAnalyticsResponse
|
387
434
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
388
435
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
389
436
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
390
437
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
391
438
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
439
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
440
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
392
441
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
393
|
-
command.query['
|
442
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
394
443
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
command.query['fields'] = fields unless fields.nil?
|
395
445
|
execute_or_queue_command(command, &block)
|
396
446
|
end
|
397
447
|
|
398
|
-
#
|
399
|
-
#
|
400
|
-
# The ID of the user. Can be set to <code>me</code> to mean
|
401
|
-
# the currently authenticated user.
|
448
|
+
# Gets Partners Status of the logged in user's agency.
|
449
|
+
# Should only be called if the logged in user is the admin of the agency.
|
402
450
|
# @param [String] request_metadata_partners_session_id
|
403
451
|
# Google Partners session ID.
|
404
452
|
# @param [String] request_metadata_user_overrides_user_id
|
@@ -417,28 +465,27 @@ module Google
|
|
417
465
|
# Second level identifier to indicate where the traffic comes from.
|
418
466
|
# An identifier has multiple letters created by a team which redirected the
|
419
467
|
# traffic to us.
|
420
|
-
# @param [String] fields
|
421
|
-
# Selector specifying which fields to include in a partial response.
|
422
468
|
# @param [String] quota_user
|
423
469
|
# Available to use for quota purposes for server-side applications. Can be any
|
424
470
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
471
|
+
# @param [String] fields
|
472
|
+
# Selector specifying which fields to include in a partial response.
|
425
473
|
# @param [Google::Apis::RequestOptions] options
|
426
474
|
# Request-specific options
|
427
475
|
#
|
428
476
|
# @yield [result, err] Result & error if block supplied
|
429
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
477
|
+
# @yieldparam result [Google::Apis::PartnersV2::GetPartnersStatusResponse] parsed result object
|
430
478
|
# @yieldparam err [StandardError] error object if request failed
|
431
479
|
#
|
432
|
-
# @return [Google::Apis::PartnersV2::
|
480
|
+
# @return [Google::Apis::PartnersV2::GetPartnersStatusResponse]
|
433
481
|
#
|
434
482
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
435
483
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
436
484
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
437
|
-
def
|
438
|
-
command = make_simple_command(:
|
439
|
-
command.response_representation = Google::Apis::PartnersV2::
|
440
|
-
command.response_class = Google::Apis::PartnersV2::
|
441
|
-
command.params['userId'] = user_id unless user_id.nil?
|
485
|
+
def get_partnersstatus(request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
486
|
+
command = make_simple_command(:get, 'v2/partnersstatus', options)
|
487
|
+
command.response_representation = Google::Apis::PartnersV2::GetPartnersStatusResponse::Representation
|
488
|
+
command.response_class = Google::Apis::PartnersV2::GetPartnersStatusResponse
|
442
489
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
443
490
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
444
491
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
@@ -446,322 +493,143 @@ module Google
|
|
446
493
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
447
494
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
448
495
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
449
|
-
command.query['fields'] = fields unless fields.nil?
|
450
496
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
497
|
+
command.query['fields'] = fields unless fields.nil?
|
451
498
|
execute_or_queue_command(command, &block)
|
452
499
|
end
|
453
500
|
|
454
|
-
#
|
455
|
-
# @param [
|
456
|
-
# The ID of the company to retrieve.
|
501
|
+
# Updates the specified lead.
|
502
|
+
# @param [Google::Apis::PartnersV2::Lead] lead_object
|
457
503
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
458
504
|
# Identifier to indicate where the traffic comes from.
|
459
505
|
# An identifier has multiple letters created by a team which redirected the
|
460
506
|
# traffic to us.
|
507
|
+
# @param [String] request_metadata_locale
|
508
|
+
# Locale to use for the current request.
|
461
509
|
# @param [String] request_metadata_user_overrides_ip_address
|
462
510
|
# IP address to use instead of the user's geo-located IP address.
|
511
|
+
# @param [String] update_mask
|
512
|
+
# Standard field mask for the set of fields to be updated.
|
513
|
+
# Required with at least 1 value in FieldMask's paths.
|
514
|
+
# Only `state` and `adwords_customer_id` are currently supported.
|
463
515
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
464
516
|
# Experiment IDs the current request belongs to.
|
465
|
-
# @param [String] currency_code
|
466
|
-
# If the company's budget is in a different currency code than this one, then
|
467
|
-
# the converted budget is converted to this currency code.
|
468
|
-
# @param [String] order_by
|
469
|
-
# How to order addresses within the returned company. Currently, only
|
470
|
-
# `address` and `address desc` is supported which will sorted by closest to
|
471
|
-
# farthest in distance from given address and farthest to closest distance
|
472
|
-
# from given address respectively.
|
473
517
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
474
518
|
# Second level identifier to indicate where the traffic comes from.
|
475
519
|
# An identifier has multiple letters created by a team which redirected the
|
476
520
|
# traffic to us.
|
477
|
-
# @param [String] request_metadata_user_overrides_user_id
|
478
|
-
# Logged-in user ID to impersonate instead of the user's ID.
|
479
521
|
# @param [String] request_metadata_partners_session_id
|
480
522
|
# Google Partners session ID.
|
481
|
-
# @param [String]
|
482
|
-
#
|
483
|
-
# `COMPANY_VIEW_UNSPECIFIED`.
|
484
|
-
# @param [String] request_metadata_locale
|
485
|
-
# Locale to use for the current request.
|
486
|
-
# @param [String] address
|
487
|
-
# The address to use for sorting the company's addresses by proximity.
|
488
|
-
# If not given, the geo-located address of the request is used.
|
489
|
-
# Used when order_by is set.
|
490
|
-
# @param [String] fields
|
491
|
-
# Selector specifying which fields to include in a partial response.
|
523
|
+
# @param [String] request_metadata_user_overrides_user_id
|
524
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
492
525
|
# @param [String] quota_user
|
493
526
|
# Available to use for quota purposes for server-side applications. Can be any
|
494
527
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
528
|
+
# @param [String] fields
|
529
|
+
# Selector specifying which fields to include in a partial response.
|
495
530
|
# @param [Google::Apis::RequestOptions] options
|
496
531
|
# Request-specific options
|
497
532
|
#
|
498
533
|
# @yield [result, err] Result & error if block supplied
|
499
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
534
|
+
# @yieldparam result [Google::Apis::PartnersV2::Lead] parsed result object
|
500
535
|
# @yieldparam err [StandardError] error object if request failed
|
501
536
|
#
|
502
|
-
# @return [Google::Apis::PartnersV2::
|
537
|
+
# @return [Google::Apis::PartnersV2::Lead]
|
503
538
|
#
|
504
539
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
505
540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
506
541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
507
|
-
def
|
508
|
-
command = make_simple_command(:
|
509
|
-
command.
|
510
|
-
command.
|
511
|
-
command.
|
542
|
+
def update_leads(lead_object = nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
543
|
+
command = make_simple_command(:patch, 'v2/leads', options)
|
544
|
+
command.request_representation = Google::Apis::PartnersV2::Lead::Representation
|
545
|
+
command.request_object = lead_object
|
546
|
+
command.response_representation = Google::Apis::PartnersV2::Lead::Representation
|
547
|
+
command.response_class = Google::Apis::PartnersV2::Lead
|
512
548
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
549
|
+
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
513
550
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
551
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
514
552
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
515
|
-
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
516
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
517
553
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
518
|
-
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
519
554
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
520
|
-
command.query['
|
521
|
-
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
522
|
-
command.query['address'] = address unless address.nil?
|
523
|
-
command.query['fields'] = fields unless fields.nil?
|
555
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
524
556
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
557
|
+
command.query['fields'] = fields unless fields.nil?
|
525
558
|
execute_or_queue_command(command, &block)
|
526
559
|
end
|
527
560
|
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
534
|
-
# If `units` is negative, `nanos` must be negative or zero.
|
535
|
-
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
561
|
+
# Update company.
|
562
|
+
# Should only be called within the context of an authorized logged in user.
|
563
|
+
# @param [Google::Apis::PartnersV2::Company] company_object
|
564
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
565
|
+
# Experiment IDs the current request belongs to.
|
536
566
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
537
567
|
# Second level identifier to indicate where the traffic comes from.
|
538
568
|
# An identifier has multiple letters created by a team which redirected the
|
539
569
|
# traffic to us.
|
540
|
-
# @param [String] request_metadata_partners_session_id
|
541
|
-
# Google Partners session ID.
|
542
|
-
# @param [String] company_name
|
543
|
-
# Company name to search for.
|
544
|
-
# @param [String] page_token
|
545
|
-
# A token identifying a page of results that the server returns.
|
546
|
-
# Typically, this is the value of `ListCompaniesResponse.next_page_token`
|
547
|
-
# returned from the previous call to
|
548
|
-
# ListCompanies.
|
549
|
-
# @param [Array<String>, String] industries
|
550
|
-
# List of industries the company can help with.
|
551
|
-
# @param [String] website_url
|
552
|
-
# Website URL that will help to find a better matched company.
|
553
|
-
# .
|
554
|
-
# @param [Array<String>, String] gps_motivations
|
555
|
-
# List of reasons for using Google Partner Search to get companies.
|
556
|
-
# @param [Array<String>, String] language_codes
|
557
|
-
# List of language codes that company can support. Only primary language
|
558
|
-
# subtags are accepted as defined by
|
559
|
-
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
560
|
-
# (IETF BCP 47, "Tags for Identifying Languages").
|
561
|
-
# @param [Fixnum] page_size
|
562
|
-
# Requested page size. Server may return fewer companies than requested.
|
563
|
-
# If unspecified, server picks an appropriate default.
|
564
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
565
|
-
# IP address to use instead of the user's geo-located IP address.
|
566
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
567
|
-
# Experiment IDs the current request belongs to.
|
568
|
-
# @param [String] order_by
|
569
|
-
# How to order addresses within the returned companies. Currently, only
|
570
|
-
# `address` and `address desc` is supported which will sorted by closest to
|
571
|
-
# farthest in distance from given address and farthest to closest distance
|
572
|
-
# from given address respectively.
|
573
|
-
# @param [Array<String>, String] specializations
|
574
|
-
# List of specializations that the returned agencies should provide. If this
|
575
|
-
# is not empty, any returned agency must have at least one of these
|
576
|
-
# specializations, or one of the services in the "services" field.
|
577
|
-
# @param [String] max_monthly_budget_currency_code
|
578
|
-
# The 3-letter currency code defined in ISO 4217.
|
579
|
-
# @param [String] min_monthly_budget_currency_code
|
580
|
-
# The 3-letter currency code defined in ISO 4217.
|
581
570
|
# @param [String] request_metadata_user_overrides_user_id
|
582
571
|
# Logged-in user ID to impersonate instead of the user's ID.
|
583
|
-
# @param [String]
|
584
|
-
#
|
585
|
-
# `COMPANY_VIEW_UNSPECIFIED`.
|
586
|
-
# @param [String] request_metadata_locale
|
587
|
-
# Locale to use for the current request.
|
588
|
-
# @param [String] address
|
589
|
-
# The address to use when searching for companies.
|
590
|
-
# If not given, the geo-located address of the request is used.
|
591
|
-
# @param [Fixnum] min_monthly_budget_units
|
592
|
-
# The whole units of the amount.
|
593
|
-
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
594
|
-
# @param [Fixnum] max_monthly_budget_nanos
|
595
|
-
# Number of nano (10^-9) units of the amount.
|
596
|
-
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
597
|
-
# If `units` is positive, `nanos` must be positive or zero.
|
598
|
-
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
599
|
-
# If `units` is negative, `nanos` must be negative or zero.
|
600
|
-
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
601
|
-
# @param [Array<String>, String] services
|
602
|
-
# List of services that the returned agencies should provide. If this is
|
603
|
-
# not empty, any returned agency must have at least one of these services,
|
604
|
-
# or one of the specializations in the "specializations" field.
|
605
|
-
# @param [Fixnum] max_monthly_budget_units
|
606
|
-
# The whole units of the amount.
|
607
|
-
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
572
|
+
# @param [String] request_metadata_partners_session_id
|
573
|
+
# Google Partners session ID.
|
608
574
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
609
575
|
# Identifier to indicate where the traffic comes from.
|
610
576
|
# An identifier has multiple letters created by a team which redirected the
|
611
577
|
# traffic to us.
|
612
|
-
# @param [String]
|
613
|
-
#
|
578
|
+
# @param [String] request_metadata_locale
|
579
|
+
# Locale to use for the current request.
|
580
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
581
|
+
# IP address to use instead of the user's geo-located IP address.
|
582
|
+
# @param [String] update_mask
|
583
|
+
# Standard field mask for the set of fields to be updated.
|
584
|
+
# Required with at least 1 value in FieldMask's paths.
|
614
585
|
# @param [String] quota_user
|
615
586
|
# Available to use for quota purposes for server-side applications. Can be any
|
616
587
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
588
|
+
# @param [String] fields
|
589
|
+
# Selector specifying which fields to include in a partial response.
|
617
590
|
# @param [Google::Apis::RequestOptions] options
|
618
591
|
# Request-specific options
|
619
592
|
#
|
620
593
|
# @yield [result, err] Result & error if block supplied
|
621
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
594
|
+
# @yieldparam result [Google::Apis::PartnersV2::Company] parsed result object
|
622
595
|
# @yieldparam err [StandardError] error object if request failed
|
623
596
|
#
|
624
|
-
# @return [Google::Apis::PartnersV2::
|
597
|
+
# @return [Google::Apis::PartnersV2::Company]
|
625
598
|
#
|
626
599
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
627
600
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
628
601
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
629
|
-
def
|
630
|
-
command = make_simple_command(:
|
631
|
-
command.
|
632
|
-
command.
|
633
|
-
command.
|
634
|
-
command.
|
635
|
-
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
636
|
-
command.query['companyName'] = company_name unless company_name.nil?
|
637
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
638
|
-
command.query['industries'] = industries unless industries.nil?
|
639
|
-
command.query['websiteUrl'] = website_url unless website_url.nil?
|
640
|
-
command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
|
641
|
-
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
642
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
643
|
-
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
602
|
+
def update_companies(company_object = nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, update_mask: nil, quota_user: nil, fields: nil, options: nil, &block)
|
603
|
+
command = make_simple_command(:patch, 'v2/companies', options)
|
604
|
+
command.request_representation = Google::Apis::PartnersV2::Company::Representation
|
605
|
+
command.request_object = company_object
|
606
|
+
command.response_representation = Google::Apis::PartnersV2::Company::Representation
|
607
|
+
command.response_class = Google::Apis::PartnersV2::Company
|
644
608
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
645
|
-
command.query['
|
646
|
-
command.query['specializations'] = specializations unless specializations.nil?
|
647
|
-
command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
|
648
|
-
command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
|
609
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
649
610
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
650
|
-
command.query['
|
611
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
612
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
651
613
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
652
|
-
command.query['
|
653
|
-
command.query['
|
654
|
-
command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
|
655
|
-
command.query['services'] = services unless services.nil?
|
656
|
-
command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
|
657
|
-
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
658
|
-
command.query['fields'] = fields unless fields.nil?
|
659
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
-
execute_or_queue_command(command, &block)
|
661
|
-
end
|
662
|
-
|
663
|
-
# Creates an advertiser lead for the given company ID.
|
664
|
-
# @param [String] company_id
|
665
|
-
# The ID of the company to contact.
|
666
|
-
# @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
|
667
|
-
# @param [String] fields
|
668
|
-
# Selector specifying which fields to include in a partial response.
|
669
|
-
# @param [String] quota_user
|
670
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
671
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
672
|
-
# @param [Google::Apis::RequestOptions] options
|
673
|
-
# Request-specific options
|
674
|
-
#
|
675
|
-
# @yield [result, err] Result & error if block supplied
|
676
|
-
# @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
|
677
|
-
# @yieldparam err [StandardError] error object if request failed
|
678
|
-
#
|
679
|
-
# @return [Google::Apis::PartnersV2::CreateLeadResponse]
|
680
|
-
#
|
681
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
682
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
683
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
684
|
-
def create_lead(company_id, create_lead_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
685
|
-
command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
|
686
|
-
command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
|
687
|
-
command.request_object = create_lead_request_object
|
688
|
-
command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
|
689
|
-
command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
|
690
|
-
command.params['companyId'] = company_id unless company_id.nil?
|
691
|
-
command.query['fields'] = fields unless fields.nil?
|
692
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
693
|
-
execute_or_queue_command(command, &block)
|
694
|
-
end
|
695
|
-
|
696
|
-
# Logs a user event.
|
697
|
-
# @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
|
698
|
-
# @param [String] fields
|
699
|
-
# Selector specifying which fields to include in a partial response.
|
700
|
-
# @param [String] quota_user
|
701
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
702
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
703
|
-
# @param [Google::Apis::RequestOptions] options
|
704
|
-
# Request-specific options
|
705
|
-
#
|
706
|
-
# @yield [result, err] Result & error if block supplied
|
707
|
-
# @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
|
708
|
-
# @yieldparam err [StandardError] error object if request failed
|
709
|
-
#
|
710
|
-
# @return [Google::Apis::PartnersV2::LogUserEventResponse]
|
711
|
-
#
|
712
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
713
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
714
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
715
|
-
def log_user_event(log_user_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
716
|
-
command = make_simple_command(:post, 'v2/userEvents:log', options)
|
717
|
-
command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
|
718
|
-
command.request_object = log_user_event_request_object
|
719
|
-
command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
|
720
|
-
command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
|
721
|
-
command.query['fields'] = fields unless fields.nil?
|
614
|
+
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
615
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
722
616
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
723
|
-
execute_or_queue_command(command, &block)
|
724
|
-
end
|
725
|
-
|
726
|
-
# Logs a generic message from the client, such as
|
727
|
-
# `Failed to render component`, `Profile page is running slow`,
|
728
|
-
# `More than 500 users have accessed this result.`, etc.
|
729
|
-
# @param [Google::Apis::PartnersV2::LogMessageRequest] log_message_request_object
|
730
|
-
# @param [String] fields
|
731
|
-
# Selector specifying which fields to include in a partial response.
|
732
|
-
# @param [String] quota_user
|
733
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
734
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
735
|
-
# @param [Google::Apis::RequestOptions] options
|
736
|
-
# Request-specific options
|
737
|
-
#
|
738
|
-
# @yield [result, err] Result & error if block supplied
|
739
|
-
# @yieldparam result [Google::Apis::PartnersV2::LogMessageResponse] parsed result object
|
740
|
-
# @yieldparam err [StandardError] error object if request failed
|
741
|
-
#
|
742
|
-
# @return [Google::Apis::PartnersV2::LogMessageResponse]
|
743
|
-
#
|
744
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
745
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
746
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
747
|
-
def log_client_message_message(log_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
748
|
-
command = make_simple_command(:post, 'v2/clientMessages:log', options)
|
749
|
-
command.request_representation = Google::Apis::PartnersV2::LogMessageRequest::Representation
|
750
|
-
command.request_object = log_message_request_object
|
751
|
-
command.response_representation = Google::Apis::PartnersV2::LogMessageResponse::Representation
|
752
|
-
command.response_class = Google::Apis::PartnersV2::LogMessageResponse
|
753
617
|
command.query['fields'] = fields unless fields.nil?
|
754
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
755
618
|
execute_or_queue_command(command, &block)
|
756
619
|
end
|
757
620
|
|
758
|
-
#
|
759
|
-
# @param [String]
|
760
|
-
# The
|
761
|
-
#
|
762
|
-
#
|
621
|
+
# Deletes a user's company relation. Unaffiliaites the user from a company.
|
622
|
+
# @param [String] user_id
|
623
|
+
# The ID of the user. Can be set to <code>me</code> to mean
|
624
|
+
# the currently authenticated user.
|
625
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
626
|
+
# Second level identifier to indicate where the traffic comes from.
|
627
|
+
# An identifier has multiple letters created by a team which redirected the
|
628
|
+
# traffic to us.
|
763
629
|
# @param [String] request_metadata_user_overrides_user_id
|
764
630
|
# Logged-in user ID to impersonate instead of the user's ID.
|
631
|
+
# @param [String] request_metadata_partners_session_id
|
632
|
+
# Google Partners session ID.
|
765
633
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
766
634
|
# Identifier to indicate where the traffic comes from.
|
767
635
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -772,58 +640,53 @@ module Google
|
|
772
640
|
# IP address to use instead of the user's geo-located IP address.
|
773
641
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
774
642
|
# Experiment IDs the current request belongs to.
|
775
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
776
|
-
# Second level identifier to indicate where the traffic comes from.
|
777
|
-
# An identifier has multiple letters created by a team which redirected the
|
778
|
-
# traffic to us.
|
779
|
-
# @param [String] fields
|
780
|
-
# Selector specifying which fields to include in a partial response.
|
781
643
|
# @param [String] quota_user
|
782
644
|
# Available to use for quota purposes for server-side applications. Can be any
|
783
645
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
646
|
+
# @param [String] fields
|
647
|
+
# Selector specifying which fields to include in a partial response.
|
784
648
|
# @param [Google::Apis::RequestOptions] options
|
785
649
|
# Request-specific options
|
786
650
|
#
|
787
651
|
# @yield [result, err] Result & error if block supplied
|
788
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
652
|
+
# @yieldparam result [Google::Apis::PartnersV2::Empty] parsed result object
|
789
653
|
# @yieldparam err [StandardError] error object if request failed
|
790
654
|
#
|
791
|
-
# @return [Google::Apis::PartnersV2::
|
655
|
+
# @return [Google::Apis::PartnersV2::Empty]
|
792
656
|
#
|
793
657
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
794
658
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
795
659
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
796
|
-
def
|
797
|
-
command = make_simple_command(:
|
798
|
-
command.response_representation = Google::Apis::PartnersV2::
|
799
|
-
command.response_class = Google::Apis::PartnersV2::
|
800
|
-
command.params['
|
801
|
-
command.query['requestMetadata.
|
660
|
+
def delete_user_company_relation(user_id, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
|
661
|
+
command = make_simple_command(:delete, 'v2/users/{userId}/companyRelation', options)
|
662
|
+
command.response_representation = Google::Apis::PartnersV2::Empty::Representation
|
663
|
+
command.response_class = Google::Apis::PartnersV2::Empty
|
664
|
+
command.params['userId'] = user_id unless user_id.nil?
|
665
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
802
666
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
667
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
803
668
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
804
669
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
805
670
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
806
671
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
807
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
808
|
-
command.query['fields'] = fields unless fields.nil?
|
809
672
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
673
|
+
command.query['fields'] = fields unless fields.nil?
|
810
674
|
execute_or_queue_command(command, &block)
|
811
675
|
end
|
812
676
|
|
813
|
-
#
|
814
|
-
#
|
677
|
+
# Creates a user's company relation. Affiliates the user to a company.
|
678
|
+
# @param [String] user_id
|
679
|
+
# The ID of the user. Can be set to <code>me</code> to mean
|
680
|
+
# the currently authenticated user.
|
681
|
+
# @param [Google::Apis::PartnersV2::CompanyRelation] company_relation_object
|
682
|
+
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
683
|
+
# Second level identifier to indicate where the traffic comes from.
|
684
|
+
# An identifier has multiple letters created by a team which redirected the
|
685
|
+
# traffic to us.
|
815
686
|
# @param [String] request_metadata_partners_session_id
|
816
687
|
# Google Partners session ID.
|
817
688
|
# @param [String] request_metadata_user_overrides_user_id
|
818
689
|
# Logged-in user ID to impersonate instead of the user's ID.
|
819
|
-
# @param [String] page_token
|
820
|
-
# A token identifying a page of results that the server returns.
|
821
|
-
# Typically, this is the value of `ListLeadsResponse.next_page_token`
|
822
|
-
# returned from the previous call to
|
823
|
-
# ListLeads.
|
824
|
-
# @param [Fixnum] page_size
|
825
|
-
# Requested page size. Server may return fewer leads than requested.
|
826
|
-
# If unspecified, server picks an appropriate default.
|
827
690
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
828
691
|
# Identifier to indicate where the traffic comes from.
|
829
692
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -834,54 +697,52 @@ module Google
|
|
834
697
|
# IP address to use instead of the user's geo-located IP address.
|
835
698
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
836
699
|
# Experiment IDs the current request belongs to.
|
837
|
-
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
838
|
-
# Second level identifier to indicate where the traffic comes from.
|
839
|
-
# An identifier has multiple letters created by a team which redirected the
|
840
|
-
# traffic to us.
|
841
|
-
# @param [String] order_by
|
842
|
-
# How to order Leads. Currently, only `create_time`
|
843
|
-
# and `create_time desc` are supported
|
844
|
-
# @param [String] fields
|
845
|
-
# Selector specifying which fields to include in a partial response.
|
846
700
|
# @param [String] quota_user
|
847
701
|
# Available to use for quota purposes for server-side applications. Can be any
|
848
702
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
703
|
+
# @param [String] fields
|
704
|
+
# Selector specifying which fields to include in a partial response.
|
849
705
|
# @param [Google::Apis::RequestOptions] options
|
850
706
|
# Request-specific options
|
851
707
|
#
|
852
708
|
# @yield [result, err] Result & error if block supplied
|
853
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
709
|
+
# @yieldparam result [Google::Apis::PartnersV2::CompanyRelation] parsed result object
|
854
710
|
# @yieldparam err [StandardError] error object if request failed
|
855
711
|
#
|
856
|
-
# @return [Google::Apis::PartnersV2::
|
712
|
+
# @return [Google::Apis::PartnersV2::CompanyRelation]
|
857
713
|
#
|
858
714
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
859
715
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
860
716
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
861
|
-
def
|
862
|
-
command = make_simple_command(:
|
863
|
-
command.
|
864
|
-
command.
|
717
|
+
def create_user_company_relation(user_id, company_relation_object = nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, quota_user: nil, fields: nil, options: nil, &block)
|
718
|
+
command = make_simple_command(:put, 'v2/users/{userId}/companyRelation', options)
|
719
|
+
command.request_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
|
720
|
+
command.request_object = company_relation_object
|
721
|
+
command.response_representation = Google::Apis::PartnersV2::CompanyRelation::Representation
|
722
|
+
command.response_class = Google::Apis::PartnersV2::CompanyRelation
|
723
|
+
command.params['userId'] = user_id unless user_id.nil?
|
724
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
865
725
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
866
726
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
867
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
868
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
869
727
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
870
728
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
871
729
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
872
730
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
873
|
-
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
874
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
875
|
-
command.query['fields'] = fields unless fields.nil?
|
876
731
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
732
|
+
command.query['fields'] = fields unless fields.nil?
|
877
733
|
execute_or_queue_command(command, &block)
|
878
734
|
end
|
879
735
|
|
880
|
-
#
|
881
|
-
# @param [String]
|
882
|
-
#
|
736
|
+
# Gets a user.
|
737
|
+
# @param [String] user_id
|
738
|
+
# Identifier of the user. Can be set to <code>me</code> to mean the currently
|
739
|
+
# authenticated user.
|
883
740
|
# @param [String] request_metadata_partners_session_id
|
884
741
|
# Google Partners session ID.
|
742
|
+
# @param [String] request_metadata_user_overrides_user_id
|
743
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
744
|
+
# @param [String] user_view
|
745
|
+
# Specifies what parts of the user information to return.
|
885
746
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
886
747
|
# Identifier to indicate where the traffic comes from.
|
887
748
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -896,62 +757,54 @@ module Google
|
|
896
757
|
# Second level identifier to indicate where the traffic comes from.
|
897
758
|
# An identifier has multiple letters created by a team which redirected the
|
898
759
|
# traffic to us.
|
899
|
-
# @param [String] fields
|
900
|
-
# Selector specifying which fields to include in a partial response.
|
901
760
|
# @param [String] quota_user
|
902
761
|
# Available to use for quota purposes for server-side applications. Can be any
|
903
762
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
904
765
|
# @param [Google::Apis::RequestOptions] options
|
905
766
|
# Request-specific options
|
906
767
|
#
|
907
768
|
# @yield [result, err] Result & error if block supplied
|
908
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
769
|
+
# @yieldparam result [Google::Apis::PartnersV2::User] parsed result object
|
909
770
|
# @yieldparam err [StandardError] error object if request failed
|
910
771
|
#
|
911
|
-
# @return [Google::Apis::PartnersV2::
|
772
|
+
# @return [Google::Apis::PartnersV2::User]
|
912
773
|
#
|
913
774
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
914
775
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
915
776
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
916
|
-
def
|
917
|
-
command = make_simple_command(:get, 'v2/
|
918
|
-
command.response_representation = Google::Apis::PartnersV2::
|
919
|
-
command.response_class = Google::Apis::PartnersV2::
|
920
|
-
command.
|
777
|
+
def get_user(user_id, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, user_view: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
778
|
+
command = make_simple_command(:get, 'v2/users/{userId}', options)
|
779
|
+
command.response_representation = Google::Apis::PartnersV2::User::Representation
|
780
|
+
command.response_class = Google::Apis::PartnersV2::User
|
781
|
+
command.params['userId'] = user_id unless user_id.nil?
|
921
782
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
783
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
784
|
+
command.query['userView'] = user_view unless user_view.nil?
|
922
785
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
923
786
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
924
787
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
925
788
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
926
789
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
927
|
-
command.query['fields'] = fields unless fields.nil?
|
928
790
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
791
|
+
command.query['fields'] = fields unless fields.nil?
|
929
792
|
execute_or_queue_command(command, &block)
|
930
793
|
end
|
931
794
|
|
932
|
-
#
|
795
|
+
# Updates a user's profile. A user can only update their own profile and
|
796
|
+
# should only be called within the context of a logged in user.
|
797
|
+
# @param [Google::Apis::PartnersV2::UserProfile] user_profile_object
|
933
798
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
934
799
|
# Experiment IDs the current request belongs to.
|
935
|
-
# @param [Boolean] entire_company
|
936
|
-
# if true, show history for the entire company. Requires user to be admin.
|
937
800
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
938
801
|
# Second level identifier to indicate where the traffic comes from.
|
939
802
|
# An identifier has multiple letters created by a team which redirected the
|
940
803
|
# traffic to us.
|
941
|
-
# @param [String] order_by
|
942
|
-
# Comma-separated list of fields to order by, e.g.: "foo,bar,baz".
|
943
|
-
# Use "foo desc" to sort descending.
|
944
|
-
# List of valid field names is: name, offer_code, expiration_time, status,
|
945
|
-
# last_modified_time, sender_name, creation_time, country_code,
|
946
|
-
# offer_type.
|
947
804
|
# @param [String] request_metadata_user_overrides_user_id
|
948
805
|
# Logged-in user ID to impersonate instead of the user's ID.
|
949
806
|
# @param [String] request_metadata_partners_session_id
|
950
807
|
# Google Partners session ID.
|
951
|
-
# @param [String] page_token
|
952
|
-
# Token to retrieve a specific page.
|
953
|
-
# @param [Fixnum] page_size
|
954
|
-
# Maximum number of rows to return per page.
|
955
808
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
956
809
|
# Identifier to indicate where the traffic comes from.
|
957
810
|
# An identifier has multiple letters created by a team which redirected the
|
@@ -960,163 +813,310 @@ module Google
|
|
960
813
|
# Locale to use for the current request.
|
961
814
|
# @param [String] request_metadata_user_overrides_ip_address
|
962
815
|
# IP address to use instead of the user's geo-located IP address.
|
963
|
-
# @param [String] fields
|
964
|
-
# Selector specifying which fields to include in a partial response.
|
965
816
|
# @param [String] quota_user
|
966
817
|
# Available to use for quota purposes for server-side applications. Can be any
|
967
818
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
819
|
+
# @param [String] fields
|
820
|
+
# Selector specifying which fields to include in a partial response.
|
968
821
|
# @param [Google::Apis::RequestOptions] options
|
969
822
|
# Request-specific options
|
970
823
|
#
|
971
824
|
# @yield [result, err] Result & error if block supplied
|
972
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
825
|
+
# @yieldparam result [Google::Apis::PartnersV2::UserProfile] parsed result object
|
973
826
|
# @yieldparam err [StandardError] error object if request failed
|
974
827
|
#
|
975
|
-
# @return [Google::Apis::PartnersV2::
|
828
|
+
# @return [Google::Apis::PartnersV2::UserProfile]
|
976
829
|
#
|
977
830
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
978
831
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
979
832
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
980
|
-
def
|
981
|
-
command = make_simple_command(:
|
982
|
-
command.
|
983
|
-
command.
|
833
|
+
def update_user_profile(user_profile_object = nil, request_metadata_experiment_ids: nil, request_metadata_traffic_source_traffic_sub_id: nil, request_metadata_user_overrides_user_id: nil, request_metadata_partners_session_id: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_locale: nil, request_metadata_user_overrides_ip_address: nil, quota_user: nil, fields: nil, options: nil, &block)
|
834
|
+
command = make_simple_command(:patch, 'v2/users/profile', options)
|
835
|
+
command.request_representation = Google::Apis::PartnersV2::UserProfile::Representation
|
836
|
+
command.request_object = user_profile_object
|
837
|
+
command.response_representation = Google::Apis::PartnersV2::UserProfile::Representation
|
838
|
+
command.response_class = Google::Apis::PartnersV2::UserProfile
|
984
839
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
985
|
-
command.query['entireCompany'] = entire_company unless entire_company.nil?
|
986
840
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
987
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
988
841
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
989
842
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
990
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
991
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
992
843
|
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
993
844
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
994
845
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
995
|
-
command.query['fields'] = fields unless fields.nil?
|
996
846
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
847
|
+
command.query['fields'] = fields unless fields.nil?
|
997
848
|
execute_or_queue_command(command, &block)
|
998
849
|
end
|
999
850
|
|
1000
|
-
# Lists
|
851
|
+
# Lists companies.
|
852
|
+
# @param [String] max_monthly_budget_currency_code
|
853
|
+
# The 3-letter currency code defined in ISO 4217.
|
1001
854
|
# @param [String] request_metadata_user_overrides_user_id
|
1002
855
|
# Logged-in user ID to impersonate instead of the user's ID.
|
1003
|
-
# @param [String]
|
1004
|
-
#
|
856
|
+
# @param [String] min_monthly_budget_currency_code
|
857
|
+
# The 3-letter currency code defined in ISO 4217.
|
858
|
+
# @param [String] view
|
859
|
+
# The view of the `Company` resource to be returned. This must not be
|
860
|
+
# `COMPANY_VIEW_UNSPECIFIED`.
|
861
|
+
# @param [String] request_metadata_locale
|
862
|
+
# Locale to use for the current request.
|
863
|
+
# @param [String] address
|
864
|
+
# The address to use when searching for companies.
|
865
|
+
# If not given, the geo-located address of the request is used.
|
866
|
+
# @param [Fixnum] min_monthly_budget_units
|
867
|
+
# The whole units of the amount.
|
868
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
869
|
+
# @param [Fixnum] max_monthly_budget_nanos
|
870
|
+
# Number of nano (10^-9) units of the amount.
|
871
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
872
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
873
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
874
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
875
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
876
|
+
# @param [Array<String>, String] services
|
877
|
+
# List of services that the returned agencies should provide. If this is
|
878
|
+
# not empty, any returned agency must have at least one of these services,
|
879
|
+
# or one of the specializations in the "specializations" field.
|
880
|
+
# @param [Fixnum] max_monthly_budget_units
|
881
|
+
# The whole units of the amount.
|
882
|
+
# For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
|
1005
883
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
1006
884
|
# Identifier to indicate where the traffic comes from.
|
1007
885
|
# An identifier has multiple letters created by a team which redirected the
|
1008
886
|
# traffic to us.
|
1009
|
-
# @param [String] request_metadata_locale
|
1010
|
-
# Locale to use for the current request.
|
1011
|
-
# @param [String] request_metadata_user_overrides_ip_address
|
1012
|
-
# IP address to use instead of the user's geo-located IP address.
|
1013
|
-
# @param [Array<String>, String] request_metadata_experiment_ids
|
1014
|
-
# Experiment IDs the current request belongs to.
|
1015
887
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
1016
888
|
# Second level identifier to indicate where the traffic comes from.
|
1017
889
|
# An identifier has multiple letters created by a team which redirected the
|
1018
890
|
# traffic to us.
|
1019
|
-
# @param [
|
1020
|
-
#
|
891
|
+
# @param [Fixnum] min_monthly_budget_nanos
|
892
|
+
# Number of nano (10^-9) units of the amount.
|
893
|
+
# The value must be between -999,999,999 and +999,999,999 inclusive.
|
894
|
+
# If `units` is positive, `nanos` must be positive or zero.
|
895
|
+
# If `units` is zero, `nanos` can be positive, zero, or negative.
|
896
|
+
# If `units` is negative, `nanos` must be negative or zero.
|
897
|
+
# For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
898
|
+
# @param [String] request_metadata_partners_session_id
|
899
|
+
# Google Partners session ID.
|
900
|
+
# @param [String] page_token
|
901
|
+
# A token identifying a page of results that the server returns.
|
902
|
+
# Typically, this is the value of `ListCompaniesResponse.next_page_token`
|
903
|
+
# returned from the previous call to
|
904
|
+
# ListCompanies.
|
905
|
+
# @param [String] company_name
|
906
|
+
# Company name to search for.
|
907
|
+
# @param [Array<String>, String] industries
|
908
|
+
# List of industries the company can help with.
|
909
|
+
# @param [String] website_url
|
910
|
+
# Website URL that will help to find a better matched company.
|
911
|
+
# .
|
912
|
+
# @param [Array<String>, String] gps_motivations
|
913
|
+
# List of reasons for using Google Partner Search to get companies.
|
914
|
+
# @param [Array<String>, String] language_codes
|
915
|
+
# List of language codes that company can support. Only primary language
|
916
|
+
# subtags are accepted as defined by
|
917
|
+
# <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
|
918
|
+
# (IETF BCP 47, "Tags for Identifying Languages").
|
919
|
+
# @param [Fixnum] page_size
|
920
|
+
# Requested page size. Server may return fewer companies than requested.
|
921
|
+
# If unspecified, server picks an appropriate default.
|
922
|
+
# @param [String] request_metadata_user_overrides_ip_address
|
923
|
+
# IP address to use instead of the user's geo-located IP address.
|
924
|
+
# @param [Array<String>, String] request_metadata_experiment_ids
|
925
|
+
# Experiment IDs the current request belongs to.
|
926
|
+
# @param [String] order_by
|
927
|
+
# How to order addresses within the returned companies. Currently, only
|
928
|
+
# `address` and `address desc` is supported which will sorted by closest to
|
929
|
+
# farthest in distance from given address and farthest to closest distance
|
930
|
+
# from given address respectively.
|
931
|
+
# @param [Array<String>, String] specializations
|
932
|
+
# List of specializations that the returned agencies should provide. If this
|
933
|
+
# is not empty, any returned agency must have at least one of these
|
934
|
+
# specializations, or one of the services in the "services" field.
|
1021
935
|
# @param [String] quota_user
|
1022
936
|
# Available to use for quota purposes for server-side applications. Can be any
|
1023
937
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
938
|
+
# @param [String] fields
|
939
|
+
# Selector specifying which fields to include in a partial response.
|
1024
940
|
# @param [Google::Apis::RequestOptions] options
|
1025
941
|
# Request-specific options
|
1026
942
|
#
|
1027
943
|
# @yield [result, err] Result & error if block supplied
|
1028
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
944
|
+
# @yieldparam result [Google::Apis::PartnersV2::ListCompaniesResponse] parsed result object
|
1029
945
|
# @yieldparam err [StandardError] error object if request failed
|
1030
946
|
#
|
1031
|
-
# @return [Google::Apis::PartnersV2::
|
947
|
+
# @return [Google::Apis::PartnersV2::ListCompaniesResponse]
|
1032
948
|
#
|
1033
949
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1034
950
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1035
951
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1036
|
-
def
|
1037
|
-
command = make_simple_command(:get, 'v2/
|
1038
|
-
command.response_representation = Google::Apis::PartnersV2::
|
1039
|
-
command.response_class = Google::Apis::PartnersV2::
|
952
|
+
def list_companies(max_monthly_budget_currency_code: nil, request_metadata_user_overrides_user_id: nil, min_monthly_budget_currency_code: nil, view: nil, request_metadata_locale: nil, address: nil, min_monthly_budget_units: nil, max_monthly_budget_nanos: nil, services: nil, max_monthly_budget_units: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_traffic_source_traffic_sub_id: nil, min_monthly_budget_nanos: nil, request_metadata_partners_session_id: nil, page_token: nil, company_name: nil, industries: nil, website_url: nil, gps_motivations: nil, language_codes: nil, page_size: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, order_by: nil, specializations: nil, quota_user: nil, fields: nil, options: nil, &block)
|
953
|
+
command = make_simple_command(:get, 'v2/companies', options)
|
954
|
+
command.response_representation = Google::Apis::PartnersV2::ListCompaniesResponse::Representation
|
955
|
+
command.response_class = Google::Apis::PartnersV2::ListCompaniesResponse
|
956
|
+
command.query['maxMonthlyBudget.currencyCode'] = max_monthly_budget_currency_code unless max_monthly_budget_currency_code.nil?
|
1040
957
|
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
1041
|
-
command.query['
|
1042
|
-
command.query['
|
958
|
+
command.query['minMonthlyBudget.currencyCode'] = min_monthly_budget_currency_code unless min_monthly_budget_currency_code.nil?
|
959
|
+
command.query['view'] = view unless view.nil?
|
1043
960
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
961
|
+
command.query['address'] = address unless address.nil?
|
962
|
+
command.query['minMonthlyBudget.units'] = min_monthly_budget_units unless min_monthly_budget_units.nil?
|
963
|
+
command.query['maxMonthlyBudget.nanos'] = max_monthly_budget_nanos unless max_monthly_budget_nanos.nil?
|
964
|
+
command.query['services'] = services unless services.nil?
|
965
|
+
command.query['maxMonthlyBudget.units'] = max_monthly_budget_units unless max_monthly_budget_units.nil?
|
966
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
967
|
+
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
968
|
+
command.query['minMonthlyBudget.nanos'] = min_monthly_budget_nanos unless min_monthly_budget_nanos.nil?
|
969
|
+
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
970
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
971
|
+
command.query['companyName'] = company_name unless company_name.nil?
|
972
|
+
command.query['industries'] = industries unless industries.nil?
|
973
|
+
command.query['websiteUrl'] = website_url unless website_url.nil?
|
974
|
+
command.query['gpsMotivations'] = gps_motivations unless gps_motivations.nil?
|
975
|
+
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
976
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1044
977
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
1045
978
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
1046
|
-
command.query['
|
1047
|
-
command.query['
|
979
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
980
|
+
command.query['specializations'] = specializations unless specializations.nil?
|
1048
981
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
982
|
+
command.query['fields'] = fields unless fields.nil?
|
1049
983
|
execute_or_queue_command(command, &block)
|
1050
984
|
end
|
1051
985
|
|
1052
|
-
#
|
1053
|
-
#
|
1054
|
-
#
|
1055
|
-
#
|
1056
|
-
#
|
1057
|
-
#
|
1058
|
-
#
|
1059
|
-
#
|
1060
|
-
#
|
1061
|
-
#
|
986
|
+
# Gets a company.
|
987
|
+
# @param [String] company_id
|
988
|
+
# The ID of the company to retrieve.
|
989
|
+
# @param [String] view
|
990
|
+
# The view of `Company` resource to be returned. This must not be
|
991
|
+
# `COMPANY_VIEW_UNSPECIFIED`.
|
992
|
+
# @param [String] address
|
993
|
+
# The address to use for sorting the company's addresses by proximity.
|
994
|
+
# If not given, the geo-located address of the request is used.
|
995
|
+
# Used when order_by is set.
|
996
|
+
# @param [String] request_metadata_locale
|
997
|
+
# Locale to use for the current request.
|
1062
998
|
# @param [String] request_metadata_traffic_source_traffic_source_id
|
1063
999
|
# Identifier to indicate where the traffic comes from.
|
1064
1000
|
# An identifier has multiple letters created by a team which redirected the
|
1065
1001
|
# traffic to us.
|
1066
|
-
# @param [String] request_metadata_locale
|
1067
|
-
# Locale to use for the current request.
|
1068
1002
|
# @param [String] request_metadata_user_overrides_ip_address
|
1069
1003
|
# IP address to use instead of the user's geo-located IP address.
|
1070
1004
|
# @param [Array<String>, String] request_metadata_experiment_ids
|
1071
1005
|
# Experiment IDs the current request belongs to.
|
1006
|
+
# @param [String] currency_code
|
1007
|
+
# If the company's budget is in a different currency code than this one, then
|
1008
|
+
# the converted budget is converted to this currency code.
|
1072
1009
|
# @param [String] request_metadata_traffic_source_traffic_sub_id
|
1073
1010
|
# Second level identifier to indicate where the traffic comes from.
|
1074
1011
|
# An identifier has multiple letters created by a team which redirected the
|
1075
1012
|
# traffic to us.
|
1076
|
-
# @param [String]
|
1077
|
-
#
|
1013
|
+
# @param [String] order_by
|
1014
|
+
# How to order addresses within the returned company. Currently, only
|
1015
|
+
# `address` and `address desc` is supported which will sorted by closest to
|
1016
|
+
# farthest in distance from given address and farthest to closest distance
|
1017
|
+
# from given address respectively.
|
1078
1018
|
# @param [String] request_metadata_partners_session_id
|
1079
1019
|
# Google Partners session ID.
|
1080
|
-
# @param [String]
|
1081
|
-
#
|
1082
|
-
# Typically, this is the value of `ListAnalyticsResponse.next_page_token`
|
1083
|
-
# returned from the previous call to
|
1084
|
-
# ListAnalytics.
|
1085
|
-
# Will be a date string in `YYYY-MM-DD` format representing the end date
|
1086
|
-
# of the date range of results to return.
|
1087
|
-
# If unspecified or set to "", default value is the current date.
|
1088
|
-
# @param [String] fields
|
1089
|
-
# Selector specifying which fields to include in a partial response.
|
1020
|
+
# @param [String] request_metadata_user_overrides_user_id
|
1021
|
+
# Logged-in user ID to impersonate instead of the user's ID.
|
1090
1022
|
# @param [String] quota_user
|
1091
1023
|
# Available to use for quota purposes for server-side applications. Can be any
|
1092
1024
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1025
|
+
# @param [String] fields
|
1026
|
+
# Selector specifying which fields to include in a partial response.
|
1093
1027
|
# @param [Google::Apis::RequestOptions] options
|
1094
1028
|
# Request-specific options
|
1095
1029
|
#
|
1096
1030
|
# @yield [result, err] Result & error if block supplied
|
1097
|
-
# @yieldparam result [Google::Apis::PartnersV2::
|
1031
|
+
# @yieldparam result [Google::Apis::PartnersV2::GetCompanyResponse] parsed result object
|
1098
1032
|
# @yieldparam err [StandardError] error object if request failed
|
1099
1033
|
#
|
1100
|
-
# @return [Google::Apis::PartnersV2::
|
1034
|
+
# @return [Google::Apis::PartnersV2::GetCompanyResponse]
|
1101
1035
|
#
|
1102
1036
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1103
1037
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1104
1038
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1105
|
-
def
|
1106
|
-
command = make_simple_command(:get, 'v2/
|
1107
|
-
command.response_representation = Google::Apis::PartnersV2::
|
1108
|
-
command.response_class = Google::Apis::PartnersV2::
|
1109
|
-
command.
|
1110
|
-
command.query['
|
1039
|
+
def get_company(company_id, view: nil, address: nil, request_metadata_locale: nil, request_metadata_traffic_source_traffic_source_id: nil, request_metadata_user_overrides_ip_address: nil, request_metadata_experiment_ids: nil, currency_code: nil, request_metadata_traffic_source_traffic_sub_id: nil, order_by: nil, request_metadata_partners_session_id: nil, request_metadata_user_overrides_user_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
1040
|
+
command = make_simple_command(:get, 'v2/companies/{companyId}', options)
|
1041
|
+
command.response_representation = Google::Apis::PartnersV2::GetCompanyResponse::Representation
|
1042
|
+
command.response_class = Google::Apis::PartnersV2::GetCompanyResponse
|
1043
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
1044
|
+
command.query['view'] = view unless view.nil?
|
1045
|
+
command.query['address'] = address unless address.nil?
|
1111
1046
|
command.query['requestMetadata.locale'] = request_metadata_locale unless request_metadata_locale.nil?
|
1047
|
+
command.query['requestMetadata.trafficSource.trafficSourceId'] = request_metadata_traffic_source_traffic_source_id unless request_metadata_traffic_source_traffic_source_id.nil?
|
1112
1048
|
command.query['requestMetadata.userOverrides.ipAddress'] = request_metadata_user_overrides_ip_address unless request_metadata_user_overrides_ip_address.nil?
|
1113
1049
|
command.query['requestMetadata.experimentIds'] = request_metadata_experiment_ids unless request_metadata_experiment_ids.nil?
|
1050
|
+
command.query['currencyCode'] = currency_code unless currency_code.nil?
|
1114
1051
|
command.query['requestMetadata.trafficSource.trafficSubId'] = request_metadata_traffic_source_traffic_sub_id unless request_metadata_traffic_source_traffic_sub_id.nil?
|
1115
|
-
command.query['
|
1052
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1116
1053
|
command.query['requestMetadata.partnersSessionId'] = request_metadata_partners_session_id unless request_metadata_partners_session_id.nil?
|
1117
|
-
command.query['
|
1054
|
+
command.query['requestMetadata.userOverrides.userId'] = request_metadata_user_overrides_user_id unless request_metadata_user_overrides_user_id.nil?
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1056
|
+
command.query['fields'] = fields unless fields.nil?
|
1057
|
+
execute_or_queue_command(command, &block)
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# Creates an advertiser lead for the given company ID.
|
1061
|
+
# @param [String] company_id
|
1062
|
+
# The ID of the company to contact.
|
1063
|
+
# @param [Google::Apis::PartnersV2::CreateLeadRequest] create_lead_request_object
|
1064
|
+
# @param [String] quota_user
|
1065
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1066
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1067
|
+
# @param [String] fields
|
1068
|
+
# Selector specifying which fields to include in a partial response.
|
1069
|
+
# @param [Google::Apis::RequestOptions] options
|
1070
|
+
# Request-specific options
|
1071
|
+
#
|
1072
|
+
# @yield [result, err] Result & error if block supplied
|
1073
|
+
# @yieldparam result [Google::Apis::PartnersV2::CreateLeadResponse] parsed result object
|
1074
|
+
# @yieldparam err [StandardError] error object if request failed
|
1075
|
+
#
|
1076
|
+
# @return [Google::Apis::PartnersV2::CreateLeadResponse]
|
1077
|
+
#
|
1078
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1079
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1080
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1081
|
+
def create_lead(company_id, create_lead_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1082
|
+
command = make_simple_command(:post, 'v2/companies/{companyId}/leads', options)
|
1083
|
+
command.request_representation = Google::Apis::PartnersV2::CreateLeadRequest::Representation
|
1084
|
+
command.request_object = create_lead_request_object
|
1085
|
+
command.response_representation = Google::Apis::PartnersV2::CreateLeadResponse::Representation
|
1086
|
+
command.response_class = Google::Apis::PartnersV2::CreateLeadResponse
|
1087
|
+
command.params['companyId'] = company_id unless company_id.nil?
|
1088
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1118
1089
|
command.query['fields'] = fields unless fields.nil?
|
1090
|
+
execute_or_queue_command(command, &block)
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Logs a user event.
|
1094
|
+
# @param [Google::Apis::PartnersV2::LogUserEventRequest] log_user_event_request_object
|
1095
|
+
# @param [String] quota_user
|
1096
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1097
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1098
|
+
# @param [String] fields
|
1099
|
+
# Selector specifying which fields to include in a partial response.
|
1100
|
+
# @param [Google::Apis::RequestOptions] options
|
1101
|
+
# Request-specific options
|
1102
|
+
#
|
1103
|
+
# @yield [result, err] Result & error if block supplied
|
1104
|
+
# @yieldparam result [Google::Apis::PartnersV2::LogUserEventResponse] parsed result object
|
1105
|
+
# @yieldparam err [StandardError] error object if request failed
|
1106
|
+
#
|
1107
|
+
# @return [Google::Apis::PartnersV2::LogUserEventResponse]
|
1108
|
+
#
|
1109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1112
|
+
def log_user_event(log_user_event_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
1113
|
+
command = make_simple_command(:post, 'v2/userEvents:log', options)
|
1114
|
+
command.request_representation = Google::Apis::PartnersV2::LogUserEventRequest::Representation
|
1115
|
+
command.request_object = log_user_event_request_object
|
1116
|
+
command.response_representation = Google::Apis::PartnersV2::LogUserEventResponse::Representation
|
1117
|
+
command.response_class = Google::Apis::PartnersV2::LogUserEventResponse
|
1119
1118
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1119
|
+
command.query['fields'] = fields unless fields.nil?
|
1120
1120
|
execute_or_queue_command(command, &block)
|
1121
1121
|
end
|
1122
1122
|
|