google-apis-content_v2_1 0.18.0 → 0.19.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ed11960a935e807de41e5c8cb2469898e008abb2ff985972845c147de983f9d
4
- data.tar.gz: 999cb844f9a93a23f6f74b1dd39f4c0e0b5f85f812ab03a673f8b74aa93b49fa
3
+ metadata.gz: bb02d6a532b3edb7e150d9b05fe763ec7d4cc4cfd1ac97701f2ccdcc6dd8aa2c
4
+ data.tar.gz: ba910bb8cd525a5a7dc5b03522f73fc8de1c9d3f95ceee5eb0dae9a4e4acd7c6
5
5
  SHA512:
6
- metadata.gz: 81f52fa4c13d9b5295ae3fddc1736084ffca57b8f2ded1daa288193991a1c121f794f46b0820aa01333b65c7c1aeeb1abdc789c44dc263c6e378da0eea846ede
7
- data.tar.gz: cdcbe85b76f9f4ba63f89fa0edca5e80da965a843ed39f42ec0dd62371e357d84d8ee642804c89eb6ada0c0885e440758902e78d5bff06027da074fcc3c01da5
6
+ metadata.gz: 49c9049c7534429bb4e0086d30629d67bc1f1dc9a7c3bf8d98031860167c9ff1bcd9c7b493c65b3b374ad7507b69132438609d32c6549866a19ef8d80c7980cd
7
+ data.tar.gz: c5bcc7810c76e738925ef35bd3e30757595f092f132497514a6da05a6742e245cc1442fa2cb52e8f4881f95f149567f55f70224406fc528b40331d648dad2ec2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.19.0 (2021-07-27)
4
+
5
+ * Regenerated from discovery document revision 20210722
6
+
3
7
  ### v0.18.0 (2021-07-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20210715
@@ -3210,6 +3210,94 @@ module Google
3210
3210
  end
3211
3211
  end
3212
3212
 
3213
+ # Response message for GetFreeListingsProgramStatus.
3214
+ class FreeListingsProgramStatus
3215
+ include Google::Apis::Core::Hashable
3216
+
3217
+ # Status of the program in each region. Regions with the same status and review
3218
+ # eligibility are grouped together in `regionCodes`.
3219
+ # Corresponds to the JSON property `regionStatuses`
3220
+ # @return [Array<Google::Apis::ContentV2_1::FreeListingsProgramStatusRegionStatus>]
3221
+ attr_accessor :region_statuses
3222
+
3223
+ # If program is successfully onboarded for at least one region.
3224
+ # Corresponds to the JSON property `state`
3225
+ # @return [String]
3226
+ attr_accessor :state
3227
+
3228
+ def initialize(**args)
3229
+ update!(**args)
3230
+ end
3231
+
3232
+ # Update properties of this object
3233
+ def update!(**args)
3234
+ @region_statuses = args[:region_statuses] if args.key?(:region_statuses)
3235
+ @state = args[:state] if args.key?(:state)
3236
+ end
3237
+ end
3238
+
3239
+ # Status of program and region.
3240
+ class FreeListingsProgramStatusRegionStatus
3241
+ include Google::Apis::Core::Hashable
3242
+
3243
+ # Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It
3244
+ # will be present when `eligibility_status` is `WARNING`. Date will be provided
3245
+ # in ISO 8601 format i.e. YYYY-MM-DD
3246
+ # Corresponds to the JSON property `disapprovalDate`
3247
+ # @return [String]
3248
+ attr_accessor :disapproval_date
3249
+
3250
+ # Eligibility status of the standard free listing program.
3251
+ # Corresponds to the JSON property `eligibilityStatus`
3252
+ # @return [String]
3253
+ attr_accessor :eligibility_status
3254
+
3255
+ # Eligibility status of the enhanced free listing program.
3256
+ # Corresponds to the JSON property `enhancedEligibilityStatus`
3257
+ # @return [String]
3258
+ attr_accessor :enhanced_eligibility_status
3259
+
3260
+ # Reason if a program in a given country is not eligible for review. Populated
3261
+ # only if `review_eligibility_status` is `INELIGIBLE`.
3262
+ # Corresponds to the JSON property `ineligibilityReason`
3263
+ # @return [String]
3264
+ attr_accessor :ineligibility_reason
3265
+
3266
+ # The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-
3267
+ # 1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `
3268
+ # reviewEligibility`.
3269
+ # Corresponds to the JSON property `regionCodes`
3270
+ # @return [Array<String>]
3271
+ attr_accessor :region_codes
3272
+
3273
+ # If a program in a given country is eligible for review. It will be present
3274
+ # only if eligibility status is `DISAPPROVED`.
3275
+ # Corresponds to the JSON property `reviewEligibilityStatus`
3276
+ # @return [String]
3277
+ attr_accessor :review_eligibility_status
3278
+
3279
+ # These issues will be evaluated in review process. Fix all the issues before
3280
+ # requesting the review.
3281
+ # Corresponds to the JSON property `reviewIssues`
3282
+ # @return [Array<String>]
3283
+ attr_accessor :review_issues
3284
+
3285
+ def initialize(**args)
3286
+ update!(**args)
3287
+ end
3288
+
3289
+ # Update properties of this object
3290
+ def update!(**args)
3291
+ @disapproval_date = args[:disapproval_date] if args.key?(:disapproval_date)
3292
+ @eligibility_status = args[:eligibility_status] if args.key?(:eligibility_status)
3293
+ @enhanced_eligibility_status = args[:enhanced_eligibility_status] if args.key?(:enhanced_eligibility_status)
3294
+ @ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
3295
+ @region_codes = args[:region_codes] if args.key?(:region_codes)
3296
+ @review_eligibility_status = args[:review_eligibility_status] if args.key?(:review_eligibility_status)
3297
+ @review_issues = args[:review_issues] if args.key?(:review_issues)
3298
+ end
3299
+ end
3300
+
3213
3301
  #
3214
3302
  class GmbAccounts
3215
3303
  include Google::Apis::Core::Hashable
@@ -12355,6 +12443,67 @@ module Google
12355
12443
  end
12356
12444
  end
12357
12445
 
12446
+ # Request message for the RequestPhoneVerification method.
12447
+ class RequestPhoneVerificationRequest
12448
+ include Google::Apis::Core::Hashable
12449
+
12450
+ # Language code [IETF BCP 47 syntax](https://tools.ietf.org/html/bcp47) (for
12451
+ # example, en-US). Language code is used to provide localized `SMS` and `
12452
+ # PHONE_CALL`. Default language used is en-US if not provided.
12453
+ # Corresponds to the JSON property `languageCode`
12454
+ # @return [String]
12455
+ attr_accessor :language_code
12456
+
12457
+ # Phone number to be verified.
12458
+ # Corresponds to the JSON property `phoneNumber`
12459
+ # @return [String]
12460
+ attr_accessor :phone_number
12461
+
12462
+ # Required. Two letter country code for the phone number, for example `CA` for
12463
+ # Canadian numbers. See the [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/
12464
+ # ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned
12465
+ # codes.
12466
+ # Corresponds to the JSON property `phoneRegionCode`
12467
+ # @return [String]
12468
+ attr_accessor :phone_region_code
12469
+
12470
+ # Verification method to receive verification code.
12471
+ # Corresponds to the JSON property `phoneVerificationMethod`
12472
+ # @return [String]
12473
+ attr_accessor :phone_verification_method
12474
+
12475
+ def initialize(**args)
12476
+ update!(**args)
12477
+ end
12478
+
12479
+ # Update properties of this object
12480
+ def update!(**args)
12481
+ @language_code = args[:language_code] if args.key?(:language_code)
12482
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
12483
+ @phone_region_code = args[:phone_region_code] if args.key?(:phone_region_code)
12484
+ @phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method)
12485
+ end
12486
+ end
12487
+
12488
+ # Response message for the RequestPhoneVerification method.
12489
+ class RequestPhoneVerificationResponse
12490
+ include Google::Apis::Core::Hashable
12491
+
12492
+ # The verification ID to use in subsequent calls to `verifyphonenumber`.
12493
+ # Corresponds to the JSON property `verificationId`
12494
+ # @return [String]
12495
+ attr_accessor :verification_id
12496
+
12497
+ def initialize(**args)
12498
+ update!(**args)
12499
+ end
12500
+
12501
+ # Update properties of this object
12502
+ def update!(**args)
12503
+ @verification_id = args[:verification_id] if args.key?(:verification_id)
12504
+ end
12505
+ end
12506
+
12358
12507
  # Request message for the RequestReviewProgram method.
12359
12508
  class RequestReviewBuyOnGoogleProgramRequest
12360
12509
  include Google::Apis::Core::Hashable
@@ -12368,6 +12517,46 @@ module Google
12368
12517
  end
12369
12518
  end
12370
12519
 
12520
+ # Request message for the RequestReviewFreeListings Program method.
12521
+ class RequestReviewFreeListingsRequest
12522
+ include Google::Apis::Core::Hashable
12523
+
12524
+ # The code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
12525
+ # of the country for which review is to be requested.
12526
+ # Corresponds to the JSON property `regionCode`
12527
+ # @return [String]
12528
+ attr_accessor :region_code
12529
+
12530
+ def initialize(**args)
12531
+ update!(**args)
12532
+ end
12533
+
12534
+ # Update properties of this object
12535
+ def update!(**args)
12536
+ @region_code = args[:region_code] if args.key?(:region_code)
12537
+ end
12538
+ end
12539
+
12540
+ # Request message for the RequestReviewShoppingAds program method.
12541
+ class RequestReviewShoppingAdsRequest
12542
+ include Google::Apis::Core::Hashable
12543
+
12544
+ # The code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
12545
+ # of the country for which review is to be requested.
12546
+ # Corresponds to the JSON property `regionCode`
12547
+ # @return [String]
12548
+ attr_accessor :region_code
12549
+
12550
+ def initialize(**args)
12551
+ update!(**args)
12552
+ end
12553
+
12554
+ # Update properties of this object
12555
+ def update!(**args)
12556
+ @region_code = args[:region_code] if args.key?(:region_code)
12557
+ end
12558
+ end
12559
+
12371
12560
  # Return address resource.
12372
12561
  class ReturnAddress
12373
12562
  include Google::Apis::Core::Hashable
@@ -13308,7 +13497,9 @@ module Google
13308
13497
  attr_accessor :page_token
13309
13498
 
13310
13499
  # Required. Query that defines performance metrics to retrieve and dimensions
13311
- # according to which the metrics are to be segmented.
13500
+ # according to which the metrics are to be segmented. For details on how to
13501
+ # construct your query, see the [Query Language guide](https://developers.google.
13502
+ # com/shopping-content/guides/reports/query-language/overview).
13312
13503
  # Corresponds to the JSON property `query`
13313
13504
  # @return [String]
13314
13505
  attr_accessor :query
@@ -13365,27 +13556,37 @@ module Google
13365
13556
  # @return [String]
13366
13557
  attr_accessor :brand
13367
13558
 
13368
- # Product category (1st level) in Google's product taxonomy.
13559
+ # [Product category (1st level)](https://developers.google.com/shopping-content/
13560
+ # guides/reports/segmentation#category_and_product_type) in Google's product
13561
+ # taxonomy.
13369
13562
  # Corresponds to the JSON property `categoryL1`
13370
13563
  # @return [String]
13371
13564
  attr_accessor :category_l1
13372
13565
 
13373
- # Product category (2nd level) in Google's product taxonomy.
13566
+ # [Product category (2nd level)](https://developers.google.com/shopping-content/
13567
+ # guides/reports/segmentation#category_and_product_type) in Google's product
13568
+ # taxonomy.
13374
13569
  # Corresponds to the JSON property `categoryL2`
13375
13570
  # @return [String]
13376
13571
  attr_accessor :category_l2
13377
13572
 
13378
- # Product category (3rd level) in Google's product taxonomy.
13573
+ # [Product category (3rd level)](https://developers.google.com/shopping-content/
13574
+ # guides/reports/segmentation#category_and_product_type) in Google's product
13575
+ # taxonomy.
13379
13576
  # Corresponds to the JSON property `categoryL3`
13380
13577
  # @return [String]
13381
13578
  attr_accessor :category_l3
13382
13579
 
13383
- # Product category (4th level) in Google's product taxonomy.
13580
+ # [Product category (4th level)](https://developers.google.com/shopping-content/
13581
+ # guides/reports/segmentation#category_and_product_type) in Google's product
13582
+ # taxonomy.
13384
13583
  # Corresponds to the JSON property `categoryL4`
13385
13584
  # @return [String]
13386
13585
  attr_accessor :category_l4
13387
13586
 
13388
- # Product category (5th level) in Google's product taxonomy.
13587
+ # [Product category (5th level)](https://developers.google.com/shopping-content/
13588
+ # guides/reports/segmentation#category_and_product_type) in Google's product
13589
+ # taxonomy.
13389
13590
  # Corresponds to the JSON property `categoryL5`
13390
13591
  # @return [String]
13391
13592
  attr_accessor :category_l5
@@ -13439,27 +13640,37 @@ module Google
13439
13640
  # @return [String]
13440
13641
  attr_accessor :offer_id
13441
13642
 
13442
- # Product category (1st level) in merchant's own product taxonomy.
13643
+ # [Product type (1st level)](https://developers.google.com/shopping-content/
13644
+ # guides/reports/segmentation#category_and_product_type) in merchant's own
13645
+ # product taxonomy.
13443
13646
  # Corresponds to the JSON property `productTypeL1`
13444
13647
  # @return [String]
13445
13648
  attr_accessor :product_type_l1
13446
13649
 
13447
- # Product category (2nd level) in merchant's own product taxonomy.
13650
+ # [Product type (2nd level)](https://developers.google.com/shopping-content/
13651
+ # guides/reports/segmentation#category_and_product_type) in merchant's own
13652
+ # product taxonomy.
13448
13653
  # Corresponds to the JSON property `productTypeL2`
13449
13654
  # @return [String]
13450
13655
  attr_accessor :product_type_l2
13451
13656
 
13452
- # Product category (3rd level) in merchant's own product taxonomy.
13657
+ # [Product type (3rd level)](https://developers.google.com/shopping-content/
13658
+ # guides/reports/segmentation#category_and_product_type) in merchant's own
13659
+ # product taxonomy.
13453
13660
  # Corresponds to the JSON property `productTypeL3`
13454
13661
  # @return [String]
13455
13662
  attr_accessor :product_type_l3
13456
13663
 
13457
- # Product category (4th level) in merchant's own product taxonomy.
13664
+ # [Product type (4th level)](https://developers.google.com/shopping-content/
13665
+ # guides/reports/segmentation#category_and_product_type) in merchant's own
13666
+ # product taxonomy.
13458
13667
  # Corresponds to the JSON property `productTypeL4`
13459
13668
  # @return [String]
13460
13669
  attr_accessor :product_type_l4
13461
13670
 
13462
- # Product category (5th level) in merchant's own product taxonomy.
13671
+ # [Product type (5th level)](https://developers.google.com/shopping-content/
13672
+ # guides/reports/segmentation#category_and_product_type) in merchant's own
13673
+ # product taxonomy.
13463
13674
  # Corresponds to the JSON property `productTypeL5`
13464
13675
  # @return [String]
13465
13676
  attr_accessor :product_type_l5
@@ -14331,6 +14542,88 @@ module Google
14331
14542
  end
14332
14543
  end
14333
14544
 
14545
+ # Response message for GetShoppingAdsProgramStatus.
14546
+ class ShoppingAdsProgramStatus
14547
+ include Google::Apis::Core::Hashable
14548
+
14549
+ # Status of the program in each region. Regions with the same status and review
14550
+ # eligibility are grouped together in `regionCodes`.
14551
+ # Corresponds to the JSON property `regionStatuses`
14552
+ # @return [Array<Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus>]
14553
+ attr_accessor :region_statuses
14554
+
14555
+ # If program is successfully onboarded for at least one region.
14556
+ # Corresponds to the JSON property `state`
14557
+ # @return [String]
14558
+ attr_accessor :state
14559
+
14560
+ def initialize(**args)
14561
+ update!(**args)
14562
+ end
14563
+
14564
+ # Update properties of this object
14565
+ def update!(**args)
14566
+ @region_statuses = args[:region_statuses] if args.key?(:region_statuses)
14567
+ @state = args[:state] if args.key?(:state)
14568
+ end
14569
+ end
14570
+
14571
+ # Status of program and region.
14572
+ class ShoppingAdsProgramStatusRegionStatus
14573
+ include Google::Apis::Core::Hashable
14574
+
14575
+ # Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It
14576
+ # will be present when `eligibility_status` is `WARNING`. Date will be provided
14577
+ # in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format i.e. YYYY-MM-DD
14578
+ # Corresponds to the JSON property `disapprovalDate`
14579
+ # @return [String]
14580
+ attr_accessor :disapproval_date
14581
+
14582
+ # Eligibility status of the Shopping Ads program.
14583
+ # Corresponds to the JSON property `eligibilityStatus`
14584
+ # @return [String]
14585
+ attr_accessor :eligibility_status
14586
+
14587
+ # Reason if a program in a given country is not eligible for review. Populated
14588
+ # only if `review_eligibility_status` is `INELIGIBLE`.
14589
+ # Corresponds to the JSON property `ineligibilityReason`
14590
+ # @return [String]
14591
+ attr_accessor :ineligibility_reason
14592
+
14593
+ # The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-
14594
+ # 1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `
14595
+ # reviewEligibility`.
14596
+ # Corresponds to the JSON property `regionCodes`
14597
+ # @return [Array<String>]
14598
+ attr_accessor :region_codes
14599
+
14600
+ # If a program in a given country is eligible for review. It will be present
14601
+ # only if eligibility status is `DISAPPROVED`.
14602
+ # Corresponds to the JSON property `reviewEligibilityStatus`
14603
+ # @return [String]
14604
+ attr_accessor :review_eligibility_status
14605
+
14606
+ # These issues will be evaluated in review process. Fix all the issues before
14607
+ # requesting the review.
14608
+ # Corresponds to the JSON property `reviewIssues`
14609
+ # @return [Array<String>]
14610
+ attr_accessor :review_issues
14611
+
14612
+ def initialize(**args)
14613
+ update!(**args)
14614
+ end
14615
+
14616
+ # Update properties of this object
14617
+ def update!(**args)
14618
+ @disapproval_date = args[:disapproval_date] if args.key?(:disapproval_date)
14619
+ @eligibility_status = args[:eligibility_status] if args.key?(:eligibility_status)
14620
+ @ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
14621
+ @region_codes = args[:region_codes] if args.key?(:region_codes)
14622
+ @review_eligibility_status = args[:review_eligibility_status] if args.key?(:review_eligibility_status)
14623
+ @review_issues = args[:review_issues] if args.key?(:review_issues)
14624
+ end
14625
+ end
14626
+
14334
14627
  #
14335
14628
  class Table
14336
14629
  include Google::Apis::Core::Hashable
@@ -15016,6 +15309,56 @@ module Google
15016
15309
  end
15017
15310
  end
15018
15311
 
15312
+ # Request message for the VerifyPhoneNumber method.
15313
+ class VerifyPhoneNumberRequest
15314
+ include Google::Apis::Core::Hashable
15315
+
15316
+ # Verification method used to receive verification code.
15317
+ # Corresponds to the JSON property `phoneVerificationMethod`
15318
+ # @return [String]
15319
+ attr_accessor :phone_verification_method
15320
+
15321
+ # The verification code that was sent to the phone number for validation.
15322
+ # Corresponds to the JSON property `verificationCode`
15323
+ # @return [String]
15324
+ attr_accessor :verification_code
15325
+
15326
+ # The verification ID returned by `requestphoneverification`.
15327
+ # Corresponds to the JSON property `verificationId`
15328
+ # @return [String]
15329
+ attr_accessor :verification_id
15330
+
15331
+ def initialize(**args)
15332
+ update!(**args)
15333
+ end
15334
+
15335
+ # Update properties of this object
15336
+ def update!(**args)
15337
+ @phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method)
15338
+ @verification_code = args[:verification_code] if args.key?(:verification_code)
15339
+ @verification_id = args[:verification_id] if args.key?(:verification_id)
15340
+ end
15341
+ end
15342
+
15343
+ # Response message for the VerifyPhoneNumber method.
15344
+ class VerifyPhoneNumberResponse
15345
+ include Google::Apis::Core::Hashable
15346
+
15347
+ # Verified phone number if verification is successful.
15348
+ # Corresponds to the JSON property `verifiedPhoneNumber`
15349
+ # @return [String]
15350
+ attr_accessor :verified_phone_number
15351
+
15352
+ def initialize(**args)
15353
+ update!(**args)
15354
+ end
15355
+
15356
+ # Update properties of this object
15357
+ def update!(**args)
15358
+ @verified_phone_number = args[:verified_phone_number] if args.key?(:verified_phone_number)
15359
+ end
15360
+ end
15361
+
15019
15362
  #
15020
15363
  class WarehouseBasedDeliveryTime
15021
15364
  include Google::Apis::Core::Hashable
@@ -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.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210715"
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
 
@@ -3075,6 +3135,28 @@ module Google
3075
3135
  end
3076
3136
  end
3077
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
+
3078
3160
  class GmbAccounts
3079
3161
  # @private
3080
3162
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5529,12 +5611,43 @@ module Google
5529
5611
  end
5530
5612
  end
5531
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
+
5532
5631
  class RequestReviewBuyOnGoogleProgramRequest
5533
5632
  # @private
5534
5633
  class Representation < Google::Apis::Core::JsonRepresentation
5535
5634
  end
5536
5635
  end
5537
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
+
5538
5651
  class ReturnAddress
5539
5652
  # @private
5540
5653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6078,6 +6191,27 @@ module Google
6078
6191
  end
6079
6192
  end
6080
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
+
6081
6215
  class Table
6082
6216
  # @private
6083
6217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6271,6 +6405,22 @@ module Google
6271
6405
  end
6272
6406
  end
6273
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
+
6274
6424
  class WarehouseBasedDeliveryTime
6275
6425
  # @private
6276
6426
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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,44 @@ 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.
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
+
462
538
  # Uploads credentials for the Merchant Center account. If credentials already
463
539
  # exist for this Merchant Center account and purpose, this method updates them.
464
540
  # @param [Fixnum] account_id
@@ -1892,6 +1968,68 @@ module Google
1892
1968
  execute_or_queue_command(command, &block)
1893
1969
  end
1894
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
+
1895
2033
  # Retrieves and/or updates the LIA settings of multiple accounts in a single
1896
2034
  # request.
1897
2035
  # @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
@@ -5691,6 +5829,67 @@ module Google
5691
5829
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5692
5830
  execute_or_queue_command(command, &block)
5693
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
5694
5893
 
5695
5894
  protected
5696
5895
 
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.18.0
4
+ version: 0.19.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-07-26 00:00:00.000000000 Z
11
+ date: 2021-08-02 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.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.19.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: []