google-apis-content_v2_1 0.17.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/content_v2_1/classes.rb +902 -175
- data/lib/google/apis/content_v2_1/gem_version.rb +2 -2
- data/lib/google/apis/content_v2_1/representations.rb +267 -0
- data/lib/google/apis/content_v2_1/service.rb +335 -12
- metadata +3 -3
@@ -384,6 +384,44 @@ module Google
|
|
384
384
|
execute_or_queue_command(command, &block)
|
385
385
|
end
|
386
386
|
|
387
|
+
# Request verification code to start phone verification.
|
388
|
+
# @param [Fixnum] merchant_id
|
389
|
+
# Required. The ID of the managing account. If this parameter is not the same as
|
390
|
+
# accountId, then this account must be a multi-client account and accountId must
|
391
|
+
# be the ID of a sub-account of this account.
|
392
|
+
# @param [Fixnum] account_id
|
393
|
+
# Required. The ID of the account.
|
394
|
+
# @param [Google::Apis::ContentV2_1::RequestPhoneVerificationRequest] request_phone_verification_request_object
|
395
|
+
# @param [String] fields
|
396
|
+
# Selector specifying which fields to include in a partial response.
|
397
|
+
# @param [String] quota_user
|
398
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
399
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
400
|
+
# @param [Google::Apis::RequestOptions] options
|
401
|
+
# Request-specific options
|
402
|
+
#
|
403
|
+
# @yield [result, err] Result & error if block supplied
|
404
|
+
# @yieldparam result [Google::Apis::ContentV2_1::RequestPhoneVerificationResponse] parsed result object
|
405
|
+
# @yieldparam err [StandardError] error object if request failed
|
406
|
+
#
|
407
|
+
# @return [Google::Apis::ContentV2_1::RequestPhoneVerificationResponse]
|
408
|
+
#
|
409
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
410
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
411
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
412
|
+
def requestphoneverification_account(merchant_id, account_id, request_phone_verification_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
413
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/requestphoneverification', options)
|
414
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationRequest::Representation
|
415
|
+
command.request_object = request_phone_verification_request_object
|
416
|
+
command.response_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse::Representation
|
417
|
+
command.response_class = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse
|
418
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
419
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
420
|
+
command.query['fields'] = fields unless fields.nil?
|
421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
422
|
+
execute_or_queue_command(command, &block)
|
423
|
+
end
|
424
|
+
|
387
425
|
# Updates a Merchant Center account. Any fields that are not provided are
|
388
426
|
# deleted from the resource.
|
389
427
|
# @param [Fixnum] merchant_id
|
@@ -459,6 +497,47 @@ module Google
|
|
459
497
|
execute_or_queue_command(command, &block)
|
460
498
|
end
|
461
499
|
|
500
|
+
# Validates verification code to verify phone number for the account. If
|
501
|
+
# successful this will overwrite the value of `accounts.businessinformation.
|
502
|
+
# phoneNumber`. Only verified phone number will replace an existing verified
|
503
|
+
# phone number.
|
504
|
+
# @param [Fixnum] merchant_id
|
505
|
+
# Required. The ID of the managing account. If this parameter is not the same as
|
506
|
+
# accountId, then this account must be a multi-client account and accountId must
|
507
|
+
# be the ID of a sub-account of this account.
|
508
|
+
# @param [Fixnum] account_id
|
509
|
+
# Required. The ID of the account.
|
510
|
+
# @param [Google::Apis::ContentV2_1::VerifyPhoneNumberRequest] verify_phone_number_request_object
|
511
|
+
# @param [String] fields
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
513
|
+
# @param [String] quota_user
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
517
|
+
# Request-specific options
|
518
|
+
#
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
520
|
+
# @yieldparam result [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse] parsed result object
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
522
|
+
#
|
523
|
+
# @return [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse]
|
524
|
+
#
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
+
def verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
529
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/verifyphonenumber', options)
|
530
|
+
command.request_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberRequest::Representation
|
531
|
+
command.request_object = verify_phone_number_request_object
|
532
|
+
command.response_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse::Representation
|
533
|
+
command.response_class = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse
|
534
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
535
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
+
execute_or_queue_command(command, &block)
|
539
|
+
end
|
540
|
+
|
462
541
|
# Uploads credentials for the Merchant Center account. If credentials already
|
463
542
|
# exist for this Merchant Center account and purpose, this method updates them.
|
464
543
|
# @param [Fixnum] account_id
|
@@ -1029,8 +1108,8 @@ module Google
|
|
1029
1108
|
# @param [Fixnum] merchant_id
|
1030
1109
|
# Required. The ID of the account.
|
1031
1110
|
# @param [String] region_code
|
1032
|
-
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1033
|
-
# ISO_3166-1_alpha-2). Currently only US is available.
|
1111
|
+
# Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1112
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1034
1113
|
# @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
|
1035
1114
|
# @param [String] fields
|
1036
1115
|
# Selector specifying which fields to include in a partial response.
|
@@ -1064,8 +1143,8 @@ module Google
|
|
1064
1143
|
# @param [Fixnum] merchant_id
|
1065
1144
|
# Required. The ID of the account.
|
1066
1145
|
# @param [String] region_code
|
1067
|
-
# The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1068
|
-
# ISO_3166-1_alpha-2). Currently only US is available.
|
1146
|
+
# Required. The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1147
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1069
1148
|
# @param [String] fields
|
1070
1149
|
# Selector specifying which fields to include in a partial response.
|
1071
1150
|
# @param [String] quota_user
|
@@ -1103,8 +1182,8 @@ module Google
|
|
1103
1182
|
# @param [Fixnum] merchant_id
|
1104
1183
|
# Required. The ID of the account.
|
1105
1184
|
# @param [String] region_code
|
1106
|
-
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1107
|
-
# ISO_3166-1_alpha-2). Currently only US is available.
|
1185
|
+
# Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1186
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1108
1187
|
# @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
|
1109
1188
|
# @param [String] fields
|
1110
1189
|
# Selector specifying which fields to include in a partial response.
|
@@ -1134,13 +1213,55 @@ module Google
|
|
1134
1213
|
execute_or_queue_command(command, &block)
|
1135
1214
|
end
|
1136
1215
|
|
1216
|
+
# Updates the status of the BoG program for your Merchant Center account.
|
1217
|
+
# @param [Fixnum] merchant_id
|
1218
|
+
# Required. The ID of the account.
|
1219
|
+
# @param [String] region_code
|
1220
|
+
# Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1221
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1222
|
+
# @param [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] buy_on_google_program_status_object
|
1223
|
+
# @param [String] update_mask
|
1224
|
+
# The list of fields to update. If the update mask is not provided, then all the
|
1225
|
+
# fields set in buyOnGoogleProgramStatus will be updated. Clearing fields is
|
1226
|
+
# only possible if update mask is provided.
|
1227
|
+
# @param [String] fields
|
1228
|
+
# Selector specifying which fields to include in a partial response.
|
1229
|
+
# @param [String] quota_user
|
1230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1232
|
+
# @param [Google::Apis::RequestOptions] options
|
1233
|
+
# Request-specific options
|
1234
|
+
#
|
1235
|
+
# @yield [result, err] Result & error if block supplied
|
1236
|
+
# @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
|
1237
|
+
# @yieldparam err [StandardError] error object if request failed
|
1238
|
+
#
|
1239
|
+
# @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
|
1240
|
+
#
|
1241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1244
|
+
def patch_buyongoogleprogram(merchant_id, region_code, buy_on_google_program_status_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1245
|
+
command = make_simple_command(:patch, '{merchantId}/buyongoogleprograms/{regionCode}', options)
|
1246
|
+
command.request_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
|
1247
|
+
command.request_object = buy_on_google_program_status_object
|
1248
|
+
command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
|
1249
|
+
command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
|
1250
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1251
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1252
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1253
|
+
command.query['fields'] = fields unless fields.nil?
|
1254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1255
|
+
execute_or_queue_command(command, &block)
|
1256
|
+
end
|
1257
|
+
|
1137
1258
|
# Pauses the BoG program in your Merchant Center account. Important: This method
|
1138
1259
|
# is only whitelisted for selected merchants.
|
1139
1260
|
# @param [Fixnum] merchant_id
|
1140
1261
|
# Required. The ID of the account.
|
1141
1262
|
# @param [String] region_code
|
1142
|
-
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1143
|
-
# ISO_3166-1_alpha-2). Currently only US is available.
|
1263
|
+
# Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1264
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1144
1265
|
# @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
|
1145
1266
|
# @param [String] fields
|
1146
1267
|
# Selector specifying which fields to include in a partial response.
|
@@ -1176,8 +1297,8 @@ module Google
|
|
1176
1297
|
# @param [Fixnum] merchant_id
|
1177
1298
|
# Required. The ID of the account.
|
1178
1299
|
# @param [String] region_code
|
1179
|
-
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1180
|
-
# ISO_3166-1_alpha-2). Currently only US is available.
|
1300
|
+
# Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
|
1301
|
+
# org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
|
1181
1302
|
# @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
|
1182
1303
|
# @param [String] fields
|
1183
1304
|
# Selector specifying which fields to include in a partial response.
|
@@ -1892,6 +2013,68 @@ module Google
|
|
1892
2013
|
execute_or_queue_command(command, &block)
|
1893
2014
|
end
|
1894
2015
|
|
2016
|
+
# Retrieves the status and review eligibility for the free listing program.
|
2017
|
+
# @param [Fixnum] merchant_id
|
2018
|
+
# Required. The ID of the account.
|
2019
|
+
# @param [String] fields
|
2020
|
+
# Selector specifying which fields to include in a partial response.
|
2021
|
+
# @param [String] quota_user
|
2022
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2023
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2024
|
+
# @param [Google::Apis::RequestOptions] options
|
2025
|
+
# Request-specific options
|
2026
|
+
#
|
2027
|
+
# @yield [result, err] Result & error if block supplied
|
2028
|
+
# @yieldparam result [Google::Apis::ContentV2_1::FreeListingsProgramStatus] parsed result object
|
2029
|
+
# @yieldparam err [StandardError] error object if request failed
|
2030
|
+
#
|
2031
|
+
# @return [Google::Apis::ContentV2_1::FreeListingsProgramStatus]
|
2032
|
+
#
|
2033
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2034
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2035
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2036
|
+
def get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
2037
|
+
command = make_simple_command(:get, '{merchantId}/freelistingsprogram', options)
|
2038
|
+
command.response_representation = Google::Apis::ContentV2_1::FreeListingsProgramStatus::Representation
|
2039
|
+
command.response_class = Google::Apis::ContentV2_1::FreeListingsProgramStatus
|
2040
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2041
|
+
command.query['fields'] = fields unless fields.nil?
|
2042
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2043
|
+
execute_or_queue_command(command, &block)
|
2044
|
+
end
|
2045
|
+
|
2046
|
+
# Requests a review for Free Listings program in the provided region. Important:
|
2047
|
+
# This method is only whitelisted for selected merchants.
|
2048
|
+
# @param [Fixnum] merchant_id
|
2049
|
+
# Required. The ID of the account.
|
2050
|
+
# @param [Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest] request_review_free_listings_request_object
|
2051
|
+
# @param [String] fields
|
2052
|
+
# Selector specifying which fields to include in a partial response.
|
2053
|
+
# @param [String] quota_user
|
2054
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2055
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2056
|
+
# @param [Google::Apis::RequestOptions] options
|
2057
|
+
# Request-specific options
|
2058
|
+
#
|
2059
|
+
# @yield [result, err] Result & error if block supplied
|
2060
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2061
|
+
# @yieldparam err [StandardError] error object if request failed
|
2062
|
+
#
|
2063
|
+
# @return [void]
|
2064
|
+
#
|
2065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2068
|
+
def requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2069
|
+
command = make_simple_command(:post, '{merchantId}/freelistingsprogram/requestreview', options)
|
2070
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest::Representation
|
2071
|
+
command.request_object = request_review_free_listings_request_object
|
2072
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2073
|
+
command.query['fields'] = fields unless fields.nil?
|
2074
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2075
|
+
execute_or_queue_command(command, &block)
|
2076
|
+
end
|
2077
|
+
|
1895
2078
|
# Retrieves and/or updates the LIA settings of multiple accounts in a single
|
1896
2079
|
# request.
|
1897
2080
|
# @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
|
@@ -2958,6 +3141,49 @@ module Google
|
|
2958
3141
|
execute_or_queue_command(command, &block)
|
2959
3142
|
end
|
2960
3143
|
|
3144
|
+
# Capture funds from the customer for the current order total. This method
|
3145
|
+
# should be called after the merchant verifies that they are able and ready to
|
3146
|
+
# start shipping the order. This method blocks until a response is received from
|
3147
|
+
# the payment processsor. If this method succeeds, the merchant is guaranteed to
|
3148
|
+
# receive funds for the order after shipment. If the request fails, it can be
|
3149
|
+
# retried or the order may be cancelled. This method cannot be called after the
|
3150
|
+
# entire order is already shipped.
|
3151
|
+
# @param [Fixnum] merchant_id
|
3152
|
+
# Required. The ID of the account that manages the order. This cannot be a multi-
|
3153
|
+
# client account.
|
3154
|
+
# @param [String] order_id
|
3155
|
+
# Required. The ID of the Order.
|
3156
|
+
# @param [Google::Apis::ContentV2_1::CaptureOrderRequest] capture_order_request_object
|
3157
|
+
# @param [String] fields
|
3158
|
+
# Selector specifying which fields to include in a partial response.
|
3159
|
+
# @param [String] quota_user
|
3160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3162
|
+
# @param [Google::Apis::RequestOptions] options
|
3163
|
+
# Request-specific options
|
3164
|
+
#
|
3165
|
+
# @yield [result, err] Result & error if block supplied
|
3166
|
+
# @yieldparam result [Google::Apis::ContentV2_1::CaptureOrderResponse] parsed result object
|
3167
|
+
# @yieldparam err [StandardError] error object if request failed
|
3168
|
+
#
|
3169
|
+
# @return [Google::Apis::ContentV2_1::CaptureOrderResponse]
|
3170
|
+
#
|
3171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3174
|
+
def capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3175
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/captureOrder', options)
|
3176
|
+
command.request_representation = Google::Apis::ContentV2_1::CaptureOrderRequest::Representation
|
3177
|
+
command.request_object = capture_order_request_object
|
3178
|
+
command.response_representation = Google::Apis::ContentV2_1::CaptureOrderResponse::Representation
|
3179
|
+
command.response_class = Google::Apis::ContentV2_1::CaptureOrderResponse
|
3180
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3181
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
3182
|
+
command.query['fields'] = fields unless fields.nil?
|
3183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3184
|
+
execute_or_queue_command(command, &block)
|
3185
|
+
end
|
3186
|
+
|
2961
3187
|
# Sandbox only. Creates a test order.
|
2962
3188
|
# @param [Fixnum] merchant_id
|
2963
3189
|
# The ID of the account that should manage the order. This cannot be a multi-
|
@@ -3894,7 +4120,8 @@ module Google
|
|
3894
4120
|
# @param [String] product_id
|
3895
4121
|
# The REST ID of the product.
|
3896
4122
|
# @param [Fixnum] feed_id
|
3897
|
-
# The Content API Supplemental Feed ID.
|
4123
|
+
# The Content API Supplemental Feed ID. If present then product deletion applies
|
4124
|
+
# to the data in a supplemental feed. If absent, entire product will be deleted.
|
3898
4125
|
# @param [String] fields
|
3899
4126
|
# Selector specifying which fields to include in a partial response.
|
3900
4127
|
# @param [String] quota_user
|
@@ -3964,7 +4191,8 @@ module Google
|
|
3964
4191
|
# multi-client account.
|
3965
4192
|
# @param [Google::Apis::ContentV2_1::Product] product_object
|
3966
4193
|
# @param [Fixnum] feed_id
|
3967
|
-
# The Content API Supplemental Feed ID.
|
4194
|
+
# The Content API Supplemental Feed ID. If present then product insertion
|
4195
|
+
# applies to the data in a supplemental feed.
|
3968
4196
|
# @param [String] fields
|
3969
4197
|
# Selector specifying which fields to include in a partial response.
|
3970
4198
|
# @param [String] quota_user
|
@@ -4250,6 +4478,40 @@ module Google
|
|
4250
4478
|
execute_or_queue_command(command, &block)
|
4251
4479
|
end
|
4252
4480
|
|
4481
|
+
# Inserts a promotion for your Merchant Center account. If the promotion already
|
4482
|
+
# exists, then it will update the promotion instead.
|
4483
|
+
# @param [Fixnum] merchant_id
|
4484
|
+
# Required. The ID of the account that contains the collection.
|
4485
|
+
# @param [Google::Apis::ContentV2_1::Promotion] promotion_object
|
4486
|
+
# @param [String] fields
|
4487
|
+
# Selector specifying which fields to include in a partial response.
|
4488
|
+
# @param [String] quota_user
|
4489
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4490
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4491
|
+
# @param [Google::Apis::RequestOptions] options
|
4492
|
+
# Request-specific options
|
4493
|
+
#
|
4494
|
+
# @yield [result, err] Result & error if block supplied
|
4495
|
+
# @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
|
4496
|
+
# @yieldparam err [StandardError] error object if request failed
|
4497
|
+
#
|
4498
|
+
# @return [Google::Apis::ContentV2_1::Promotion]
|
4499
|
+
#
|
4500
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4501
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4502
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4503
|
+
def create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4504
|
+
command = make_simple_command(:post, '{merchantId}/promotions', options)
|
4505
|
+
command.request_representation = Google::Apis::ContentV2_1::Promotion::Representation
|
4506
|
+
command.request_object = promotion_object
|
4507
|
+
command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
|
4508
|
+
command.response_class = Google::Apis::ContentV2_1::Promotion
|
4509
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4510
|
+
command.query['fields'] = fields unless fields.nil?
|
4511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4512
|
+
execute_or_queue_command(command, &block)
|
4513
|
+
end
|
4514
|
+
|
4253
4515
|
# Retrieves a Merchant Center account's pubsub notification settings.
|
4254
4516
|
# @param [Fixnum] merchant_id
|
4255
4517
|
# The ID of the account for which to get pubsub notification settings.
|
@@ -5689,6 +5951,67 @@ module Google
|
|
5689
5951
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5690
5952
|
execute_or_queue_command(command, &block)
|
5691
5953
|
end
|
5954
|
+
|
5955
|
+
# Retrieves the status and review eligibility for the Shopping Ads program.
|
5956
|
+
# @param [Fixnum] merchant_id
|
5957
|
+
# Required. The ID of the account.
|
5958
|
+
# @param [String] fields
|
5959
|
+
# Selector specifying which fields to include in a partial response.
|
5960
|
+
# @param [String] quota_user
|
5961
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5962
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5963
|
+
# @param [Google::Apis::RequestOptions] options
|
5964
|
+
# Request-specific options
|
5965
|
+
#
|
5966
|
+
# @yield [result, err] Result & error if block supplied
|
5967
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus] parsed result object
|
5968
|
+
# @yieldparam err [StandardError] error object if request failed
|
5969
|
+
#
|
5970
|
+
# @return [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus]
|
5971
|
+
#
|
5972
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5973
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5974
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5975
|
+
def get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5976
|
+
command = make_simple_command(:get, '{merchantId}/shoppingadsprogram', options)
|
5977
|
+
command.response_representation = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus::Representation
|
5978
|
+
command.response_class = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus
|
5979
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5980
|
+
command.query['fields'] = fields unless fields.nil?
|
5981
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5982
|
+
execute_or_queue_command(command, &block)
|
5983
|
+
end
|
5984
|
+
|
5985
|
+
# Requests a review for Shopping Ads program in the provided country.
|
5986
|
+
# @param [Fixnum] merchant_id
|
5987
|
+
# Required. The ID of the account.
|
5988
|
+
# @param [Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest] request_review_shopping_ads_request_object
|
5989
|
+
# @param [String] fields
|
5990
|
+
# Selector specifying which fields to include in a partial response.
|
5991
|
+
# @param [String] quota_user
|
5992
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5993
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5994
|
+
# @param [Google::Apis::RequestOptions] options
|
5995
|
+
# Request-specific options
|
5996
|
+
#
|
5997
|
+
# @yield [result, err] Result & error if block supplied
|
5998
|
+
# @yieldparam result [NilClass] No result returned for this method
|
5999
|
+
# @yieldparam err [StandardError] error object if request failed
|
6000
|
+
#
|
6001
|
+
# @return [void]
|
6002
|
+
#
|
6003
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6004
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6005
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6006
|
+
def requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6007
|
+
command = make_simple_command(:post, '{merchantId}/shoppingadsprogram/requestreview', options)
|
6008
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest::Representation
|
6009
|
+
command.request_object = request_review_shopping_ads_request_object
|
6010
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
6011
|
+
command.query['fields'] = fields unless fields.nil?
|
6012
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6013
|
+
execute_or_queue_command(command, &block)
|
6014
|
+
end
|
5692
6015
|
|
5693
6016
|
protected
|
5694
6017
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-content_v2_1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.21.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|