google-apis-content_v2_1 0.15.0 → 0.19.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 +17 -0
- data/lib/google/apis/content_v2_1/classes.rb +533 -170
- data/lib/google/apis/content_v2_1/gem_version.rb +3 -3
- data/lib/google/apis/content_v2_1/representations.rb +152 -0
- data/lib/google/apis/content_v2_1/service.rb +213 -4
- metadata +5 -5
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContentV2_1
|
18
18
|
# Version of the google-apis-content_v2_1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210722"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -502,6 +502,18 @@ module Google
|
|
502
502
|
include Google::Apis::Core::JsonObjectSupport
|
503
503
|
end
|
504
504
|
|
505
|
+
class FreeListingsProgramStatus
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
+
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
509
|
+
end
|
510
|
+
|
511
|
+
class FreeListingsProgramStatusRegionStatus
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
505
517
|
class GmbAccounts
|
506
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
519
|
|
@@ -1810,12 +1822,36 @@ module Google
|
|
1810
1822
|
include Google::Apis::Core::JsonObjectSupport
|
1811
1823
|
end
|
1812
1824
|
|
1825
|
+
class RequestPhoneVerificationRequest
|
1826
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1827
|
+
|
1828
|
+
include Google::Apis::Core::JsonObjectSupport
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
class RequestPhoneVerificationResponse
|
1832
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1833
|
+
|
1834
|
+
include Google::Apis::Core::JsonObjectSupport
|
1835
|
+
end
|
1836
|
+
|
1813
1837
|
class RequestReviewBuyOnGoogleProgramRequest
|
1814
1838
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1815
1839
|
|
1816
1840
|
include Google::Apis::Core::JsonObjectSupport
|
1817
1841
|
end
|
1818
1842
|
|
1843
|
+
class RequestReviewFreeListingsRequest
|
1844
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1845
|
+
|
1846
|
+
include Google::Apis::Core::JsonObjectSupport
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
class RequestReviewShoppingAdsRequest
|
1850
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1851
|
+
|
1852
|
+
include Google::Apis::Core::JsonObjectSupport
|
1853
|
+
end
|
1854
|
+
|
1819
1855
|
class ReturnAddress
|
1820
1856
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1821
1857
|
|
@@ -2104,6 +2140,18 @@ module Google
|
|
2104
2140
|
include Google::Apis::Core::JsonObjectSupport
|
2105
2141
|
end
|
2106
2142
|
|
2143
|
+
class ShoppingAdsProgramStatus
|
2144
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2145
|
+
|
2146
|
+
include Google::Apis::Core::JsonObjectSupport
|
2147
|
+
end
|
2148
|
+
|
2149
|
+
class ShoppingAdsProgramStatusRegionStatus
|
2150
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2151
|
+
|
2152
|
+
include Google::Apis::Core::JsonObjectSupport
|
2153
|
+
end
|
2154
|
+
|
2107
2155
|
class Table
|
2108
2156
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2109
2157
|
|
@@ -2200,6 +2248,18 @@ module Google
|
|
2200
2248
|
include Google::Apis::Core::JsonObjectSupport
|
2201
2249
|
end
|
2202
2250
|
|
2251
|
+
class VerifyPhoneNumberRequest
|
2252
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2253
|
+
|
2254
|
+
include Google::Apis::Core::JsonObjectSupport
|
2255
|
+
end
|
2256
|
+
|
2257
|
+
class VerifyPhoneNumberResponse
|
2258
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2259
|
+
|
2260
|
+
include Google::Apis::Core::JsonObjectSupport
|
2261
|
+
end
|
2262
|
+
|
2203
2263
|
class WarehouseBasedDeliveryTime
|
2204
2264
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2205
2265
|
|
@@ -2215,6 +2275,7 @@ module Google
|
|
2215
2275
|
class Account
|
2216
2276
|
# @private
|
2217
2277
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2278
|
+
property :account_management, as: 'accountManagement'
|
2218
2279
|
collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation
|
2219
2280
|
|
2220
2281
|
property :adult_content, as: 'adultContent'
|
@@ -2329,6 +2390,7 @@ module Google
|
|
2329
2390
|
property :account_id, as: 'accountId'
|
2330
2391
|
collection :account_level_issues, as: 'accountLevelIssues', class: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue, decorator: Google::Apis::ContentV2_1::AccountStatusAccountLevelIssue::Representation
|
2331
2392
|
|
2393
|
+
property :account_management, as: 'accountManagement'
|
2332
2394
|
property :kind, as: 'kind'
|
2333
2395
|
collection :products, as: 'products', class: Google::Apis::ContentV2_1::AccountStatusProducts, decorator: Google::Apis::ContentV2_1::AccountStatusProducts::Representation
|
2334
2396
|
|
@@ -3073,6 +3135,28 @@ module Google
|
|
3073
3135
|
end
|
3074
3136
|
end
|
3075
3137
|
|
3138
|
+
class FreeListingsProgramStatus
|
3139
|
+
# @private
|
3140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3141
|
+
collection :region_statuses, as: 'regionStatuses', class: Google::Apis::ContentV2_1::FreeListingsProgramStatusRegionStatus, decorator: Google::Apis::ContentV2_1::FreeListingsProgramStatusRegionStatus::Representation
|
3142
|
+
|
3143
|
+
property :state, as: 'state'
|
3144
|
+
end
|
3145
|
+
end
|
3146
|
+
|
3147
|
+
class FreeListingsProgramStatusRegionStatus
|
3148
|
+
# @private
|
3149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3150
|
+
property :disapproval_date, as: 'disapprovalDate'
|
3151
|
+
property :eligibility_status, as: 'eligibilityStatus'
|
3152
|
+
property :enhanced_eligibility_status, as: 'enhancedEligibilityStatus'
|
3153
|
+
property :ineligibility_reason, as: 'ineligibilityReason'
|
3154
|
+
collection :region_codes, as: 'regionCodes'
|
3155
|
+
property :review_eligibility_status, as: 'reviewEligibilityStatus'
|
3156
|
+
collection :review_issues, as: 'reviewIssues'
|
3157
|
+
end
|
3158
|
+
end
|
3159
|
+
|
3076
3160
|
class GmbAccounts
|
3077
3161
|
# @private
|
3078
3162
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5527,12 +5611,43 @@ module Google
|
|
5527
5611
|
end
|
5528
5612
|
end
|
5529
5613
|
|
5614
|
+
class RequestPhoneVerificationRequest
|
5615
|
+
# @private
|
5616
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5617
|
+
property :language_code, as: 'languageCode'
|
5618
|
+
property :phone_number, as: 'phoneNumber'
|
5619
|
+
property :phone_region_code, as: 'phoneRegionCode'
|
5620
|
+
property :phone_verification_method, as: 'phoneVerificationMethod'
|
5621
|
+
end
|
5622
|
+
end
|
5623
|
+
|
5624
|
+
class RequestPhoneVerificationResponse
|
5625
|
+
# @private
|
5626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5627
|
+
property :verification_id, as: 'verificationId'
|
5628
|
+
end
|
5629
|
+
end
|
5630
|
+
|
5530
5631
|
class RequestReviewBuyOnGoogleProgramRequest
|
5531
5632
|
# @private
|
5532
5633
|
class Representation < Google::Apis::Core::JsonRepresentation
|
5533
5634
|
end
|
5534
5635
|
end
|
5535
5636
|
|
5637
|
+
class RequestReviewFreeListingsRequest
|
5638
|
+
# @private
|
5639
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5640
|
+
property :region_code, as: 'regionCode'
|
5641
|
+
end
|
5642
|
+
end
|
5643
|
+
|
5644
|
+
class RequestReviewShoppingAdsRequest
|
5645
|
+
# @private
|
5646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5647
|
+
property :region_code, as: 'regionCode'
|
5648
|
+
end
|
5649
|
+
end
|
5650
|
+
|
5536
5651
|
class ReturnAddress
|
5537
5652
|
# @private
|
5538
5653
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6076,6 +6191,27 @@ module Google
|
|
6076
6191
|
end
|
6077
6192
|
end
|
6078
6193
|
|
6194
|
+
class ShoppingAdsProgramStatus
|
6195
|
+
# @private
|
6196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6197
|
+
collection :region_statuses, as: 'regionStatuses', class: Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus, decorator: Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus::Representation
|
6198
|
+
|
6199
|
+
property :state, as: 'state'
|
6200
|
+
end
|
6201
|
+
end
|
6202
|
+
|
6203
|
+
class ShoppingAdsProgramStatusRegionStatus
|
6204
|
+
# @private
|
6205
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6206
|
+
property :disapproval_date, as: 'disapprovalDate'
|
6207
|
+
property :eligibility_status, as: 'eligibilityStatus'
|
6208
|
+
property :ineligibility_reason, as: 'ineligibilityReason'
|
6209
|
+
collection :region_codes, as: 'regionCodes'
|
6210
|
+
property :review_eligibility_status, as: 'reviewEligibilityStatus'
|
6211
|
+
collection :review_issues, as: 'reviewIssues'
|
6212
|
+
end
|
6213
|
+
end
|
6214
|
+
|
6079
6215
|
class Table
|
6080
6216
|
# @private
|
6081
6217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6269,6 +6405,22 @@ module Google
|
|
6269
6405
|
end
|
6270
6406
|
end
|
6271
6407
|
|
6408
|
+
class VerifyPhoneNumberRequest
|
6409
|
+
# @private
|
6410
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6411
|
+
property :phone_verification_method, as: 'phoneVerificationMethod'
|
6412
|
+
property :verification_code, as: 'verificationCode'
|
6413
|
+
property :verification_id, as: 'verificationId'
|
6414
|
+
end
|
6415
|
+
end
|
6416
|
+
|
6417
|
+
class VerifyPhoneNumberResponse
|
6418
|
+
# @private
|
6419
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6420
|
+
property :verified_phone_number, as: 'verifiedPhoneNumber'
|
6421
|
+
end
|
6422
|
+
end
|
6423
|
+
|
6272
6424
|
class WarehouseBasedDeliveryTime
|
6273
6425
|
# @private
|
6274
6426
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -301,6 +301,9 @@ module Google
|
|
301
301
|
# given ID.
|
302
302
|
# @param [Fixnum] max_results
|
303
303
|
# The maximum number of accounts to return in the response, used for paging.
|
304
|
+
# @param [String] name
|
305
|
+
# If set, only the accounts with the given name (case sensitive) will be
|
306
|
+
# returned.
|
304
307
|
# @param [String] page_token
|
305
308
|
# The token returned by the previous request.
|
306
309
|
# @param [String] view
|
@@ -323,13 +326,14 @@ module Google
|
|
323
326
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
324
327
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
328
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
|
-
def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
329
|
+
def list_accounts(merchant_id, label: nil, max_results: nil, name: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
330
|
command = make_simple_command(:get, '{merchantId}/accounts', options)
|
328
331
|
command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
|
329
332
|
command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
|
330
333
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
331
334
|
command.query['label'] = label unless label.nil?
|
332
335
|
command.query['maxResults'] = max_results unless max_results.nil?
|
336
|
+
command.query['name'] = name unless name.nil?
|
333
337
|
command.query['pageToken'] = page_token unless page_token.nil?
|
334
338
|
command.query['view'] = view unless view.nil?
|
335
339
|
command.query['fields'] = fields unless fields.nil?
|
@@ -380,6 +384,44 @@ module Google
|
|
380
384
|
execute_or_queue_command(command, &block)
|
381
385
|
end
|
382
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
|
+
|
383
425
|
# Updates a Merchant Center account. Any fields that are not provided are
|
384
426
|
# deleted from the resource.
|
385
427
|
# @param [Fixnum] merchant_id
|
@@ -455,6 +497,44 @@ module Google
|
|
455
497
|
execute_or_queue_command(command, &block)
|
456
498
|
end
|
457
499
|
|
500
|
+
# Validates verification code to verify phone number for the account.
|
501
|
+
# @param [Fixnum] merchant_id
|
502
|
+
# Required. The ID of the managing account. If this parameter is not the same as
|
503
|
+
# accountId, then this account must be a multi-client account and accountId must
|
504
|
+
# be the ID of a sub-account of this account.
|
505
|
+
# @param [Fixnum] account_id
|
506
|
+
# Required. The ID of the account.
|
507
|
+
# @param [Google::Apis::ContentV2_1::VerifyPhoneNumberRequest] verify_phone_number_request_object
|
508
|
+
# @param [String] fields
|
509
|
+
# Selector specifying which fields to include in a partial response.
|
510
|
+
# @param [String] quota_user
|
511
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
512
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
513
|
+
# @param [Google::Apis::RequestOptions] options
|
514
|
+
# Request-specific options
|
515
|
+
#
|
516
|
+
# @yield [result, err] Result & error if block supplied
|
517
|
+
# @yieldparam result [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse] parsed result object
|
518
|
+
# @yieldparam err [StandardError] error object if request failed
|
519
|
+
#
|
520
|
+
# @return [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse]
|
521
|
+
#
|
522
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
523
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
524
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
525
|
+
def verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
526
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/verifyphonenumber', options)
|
527
|
+
command.request_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberRequest::Representation
|
528
|
+
command.request_object = verify_phone_number_request_object
|
529
|
+
command.response_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse::Representation
|
530
|
+
command.response_class = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse
|
531
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
532
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
533
|
+
command.query['fields'] = fields unless fields.nil?
|
534
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
+
execute_or_queue_command(command, &block)
|
536
|
+
end
|
537
|
+
|
458
538
|
# Uploads credentials for the Merchant Center account. If credentials already
|
459
539
|
# exist for this Merchant Center account and purpose, this method updates them.
|
460
540
|
# @param [Fixnum] account_id
|
@@ -843,6 +923,9 @@ module Google
|
|
843
923
|
# @param [Fixnum] max_results
|
844
924
|
# The maximum number of account statuses to return in the response, used for
|
845
925
|
# paging.
|
926
|
+
# @param [String] name
|
927
|
+
# If set, only the accounts with the given name (case sensitive) will be
|
928
|
+
# returned.
|
846
929
|
# @param [String] page_token
|
847
930
|
# The token returned by the previous request.
|
848
931
|
# @param [String] fields
|
@@ -862,13 +945,14 @@ module Google
|
|
862
945
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
863
946
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
864
947
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
865
|
-
def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
948
|
+
def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
866
949
|
command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
|
867
950
|
command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
|
868
951
|
command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
|
869
952
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
870
953
|
command.query['destinations'] = destinations unless destinations.nil?
|
871
954
|
command.query['maxResults'] = max_results unless max_results.nil?
|
955
|
+
command.query['name'] = name unless name.nil?
|
872
956
|
command.query['pageToken'] = page_token unless page_token.nil?
|
873
957
|
command.query['fields'] = fields unless fields.nil?
|
874
958
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1884,6 +1968,68 @@ module Google
|
|
1884
1968
|
execute_or_queue_command(command, &block)
|
1885
1969
|
end
|
1886
1970
|
|
1971
|
+
# Retrieves the status and review eligibility for the free listing program.
|
1972
|
+
# @param [Fixnum] merchant_id
|
1973
|
+
# Required. The ID of the account.
|
1974
|
+
# @param [String] fields
|
1975
|
+
# Selector specifying which fields to include in a partial response.
|
1976
|
+
# @param [String] quota_user
|
1977
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1978
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1979
|
+
# @param [Google::Apis::RequestOptions] options
|
1980
|
+
# Request-specific options
|
1981
|
+
#
|
1982
|
+
# @yield [result, err] Result & error if block supplied
|
1983
|
+
# @yieldparam result [Google::Apis::ContentV2_1::FreeListingsProgramStatus] parsed result object
|
1984
|
+
# @yieldparam err [StandardError] error object if request failed
|
1985
|
+
#
|
1986
|
+
# @return [Google::Apis::ContentV2_1::FreeListingsProgramStatus]
|
1987
|
+
#
|
1988
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1989
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1990
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1991
|
+
def get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
1992
|
+
command = make_simple_command(:get, '{merchantId}/freelistingsprogram', options)
|
1993
|
+
command.response_representation = Google::Apis::ContentV2_1::FreeListingsProgramStatus::Representation
|
1994
|
+
command.response_class = Google::Apis::ContentV2_1::FreeListingsProgramStatus
|
1995
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1996
|
+
command.query['fields'] = fields unless fields.nil?
|
1997
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1998
|
+
execute_or_queue_command(command, &block)
|
1999
|
+
end
|
2000
|
+
|
2001
|
+
# Requests a review for Free Listings program in the provided region. Important:
|
2002
|
+
# This method is only whitelisted for selected merchants.
|
2003
|
+
# @param [Fixnum] merchant_id
|
2004
|
+
# Required. The ID of the account.
|
2005
|
+
# @param [Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest] request_review_free_listings_request_object
|
2006
|
+
# @param [String] fields
|
2007
|
+
# Selector specifying which fields to include in a partial response.
|
2008
|
+
# @param [String] quota_user
|
2009
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2010
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2011
|
+
# @param [Google::Apis::RequestOptions] options
|
2012
|
+
# Request-specific options
|
2013
|
+
#
|
2014
|
+
# @yield [result, err] Result & error if block supplied
|
2015
|
+
# @yieldparam result [NilClass] No result returned for this method
|
2016
|
+
# @yieldparam err [StandardError] error object if request failed
|
2017
|
+
#
|
2018
|
+
# @return [void]
|
2019
|
+
#
|
2020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2023
|
+
def requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2024
|
+
command = make_simple_command(:post, '{merchantId}/freelistingsprogram/requestreview', options)
|
2025
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest::Representation
|
2026
|
+
command.request_object = request_review_free_listings_request_object
|
2027
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2028
|
+
command.query['fields'] = fields unless fields.nil?
|
2029
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2030
|
+
execute_or_queue_command(command, &block)
|
2031
|
+
end
|
2032
|
+
|
1887
2033
|
# Retrieves and/or updates the LIA settings of multiple accounts in a single
|
1888
2034
|
# request.
|
1889
2035
|
# @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
|
@@ -3886,7 +4032,8 @@ module Google
|
|
3886
4032
|
# @param [String] product_id
|
3887
4033
|
# The REST ID of the product.
|
3888
4034
|
# @param [Fixnum] feed_id
|
3889
|
-
# The Content API Supplemental Feed ID.
|
4035
|
+
# The Content API Supplemental Feed ID. If present then product deletion applies
|
4036
|
+
# to the data in a supplemental feed. If absent, entire product will be deleted.
|
3890
4037
|
# @param [String] fields
|
3891
4038
|
# Selector specifying which fields to include in a partial response.
|
3892
4039
|
# @param [String] quota_user
|
@@ -3956,7 +4103,8 @@ module Google
|
|
3956
4103
|
# multi-client account.
|
3957
4104
|
# @param [Google::Apis::ContentV2_1::Product] product_object
|
3958
4105
|
# @param [Fixnum] feed_id
|
3959
|
-
# The Content API Supplemental Feed ID.
|
4106
|
+
# The Content API Supplemental Feed ID. If present then product insertion
|
4107
|
+
# applies to the data in a supplemental feed.
|
3960
4108
|
# @param [String] fields
|
3961
4109
|
# Selector specifying which fields to include in a partial response.
|
3962
4110
|
# @param [String] quota_user
|
@@ -5681,6 +5829,67 @@ module Google
|
|
5681
5829
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5682
5830
|
execute_or_queue_command(command, &block)
|
5683
5831
|
end
|
5832
|
+
|
5833
|
+
# Retrieves the status and review eligibility for the Shopping Ads program.
|
5834
|
+
# @param [Fixnum] merchant_id
|
5835
|
+
# Required. The ID of the account.
|
5836
|
+
# @param [String] fields
|
5837
|
+
# Selector specifying which fields to include in a partial response.
|
5838
|
+
# @param [String] quota_user
|
5839
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5840
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5841
|
+
# @param [Google::Apis::RequestOptions] options
|
5842
|
+
# Request-specific options
|
5843
|
+
#
|
5844
|
+
# @yield [result, err] Result & error if block supplied
|
5845
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus] parsed result object
|
5846
|
+
# @yieldparam err [StandardError] error object if request failed
|
5847
|
+
#
|
5848
|
+
# @return [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus]
|
5849
|
+
#
|
5850
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5851
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5852
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5853
|
+
def get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5854
|
+
command = make_simple_command(:get, '{merchantId}/shoppingadsprogram', options)
|
5855
|
+
command.response_representation = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus::Representation
|
5856
|
+
command.response_class = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus
|
5857
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5858
|
+
command.query['fields'] = fields unless fields.nil?
|
5859
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5860
|
+
execute_or_queue_command(command, &block)
|
5861
|
+
end
|
5862
|
+
|
5863
|
+
# Requests a review for Shopping Ads program in the provided country.
|
5864
|
+
# @param [Fixnum] merchant_id
|
5865
|
+
# Required. The ID of the account.
|
5866
|
+
# @param [Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest] request_review_shopping_ads_request_object
|
5867
|
+
# @param [String] fields
|
5868
|
+
# Selector specifying which fields to include in a partial response.
|
5869
|
+
# @param [String] quota_user
|
5870
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5871
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5872
|
+
# @param [Google::Apis::RequestOptions] options
|
5873
|
+
# Request-specific options
|
5874
|
+
#
|
5875
|
+
# @yield [result, err] Result & error if block supplied
|
5876
|
+
# @yieldparam result [NilClass] No result returned for this method
|
5877
|
+
# @yieldparam err [StandardError] error object if request failed
|
5878
|
+
#
|
5879
|
+
# @return [void]
|
5880
|
+
#
|
5881
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5882
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5883
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5884
|
+
def requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5885
|
+
command = make_simple_command(:post, '{merchantId}/shoppingadsprogram/requestreview', options)
|
5886
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest::Representation
|
5887
|
+
command.request_object = request_review_shopping_ads_request_object
|
5888
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5889
|
+
command.query['fields'] = fields unless fields.nil?
|
5890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5891
|
+
execute_or_queue_command(command, &block)
|
5892
|
+
end
|
5684
5893
|
|
5685
5894
|
protected
|
5686
5895
|
|