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