google-apis-content_v2_1 0.18.0 → 0.22.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 +775 -22
- data/lib/google/apis/content_v2_1/gem_version.rb +2 -2
- data/lib/google/apis/content_v2_1/representations.rb +282 -0
- data/lib/google/apis/content_v2_1/service.rb +336 -10
- metadata +3 -3
@@ -144,8 +144,9 @@ module Google
|
|
144
144
|
class AccountAddress
|
145
145
|
include Google::Apis::Core::Hashable
|
146
146
|
|
147
|
-
# CLDR country code (e.g. "US").
|
148
|
-
#
|
147
|
+
# CLDR country code (e.g. "US"). All MCA sub-accounts inherit the country of
|
148
|
+
# their parent MCA by default, however the country can be updated for individual
|
149
|
+
# sub-accounts.
|
149
150
|
# Corresponds to the JSON property `country`
|
150
151
|
# @return [String]
|
151
152
|
attr_accessor :country
|
@@ -234,6 +235,13 @@ module Google
|
|
234
235
|
# @return [Google::Apis::ContentV2_1::AccountCustomerService]
|
235
236
|
attr_accessor :customer_service
|
236
237
|
|
238
|
+
# The 10-digit [Korean business registration number](https://support.google.com/
|
239
|
+
# merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX.
|
240
|
+
# This field will only be updated if explicitly set.
|
241
|
+
# Corresponds to the JSON property `koreanBusinessRegistrationNumber`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :korean_business_registration_number
|
244
|
+
|
237
245
|
# The phone number of the business.
|
238
246
|
# Corresponds to the JSON property `phoneNumber`
|
239
247
|
# @return [String]
|
@@ -247,6 +255,7 @@ module Google
|
|
247
255
|
def update!(**args)
|
248
256
|
@address = args[:address] if args.key?(:address)
|
249
257
|
@customer_service = args[:customer_service] if args.key?(:customer_service)
|
258
|
+
@korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
|
250
259
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
251
260
|
end
|
252
261
|
end
|
@@ -1137,6 +1146,11 @@ module Google
|
|
1137
1146
|
# @return [String]
|
1138
1147
|
attr_accessor :action
|
1139
1148
|
|
1149
|
+
# Additional information required for E_COMMERCE_PLATFORM link type.
|
1150
|
+
# Corresponds to the JSON property `eCommercePlatformLinkInfo`
|
1151
|
+
# @return [Google::Apis::ContentV2_1::ECommercePlatformLinkInfo]
|
1152
|
+
attr_accessor :e_commerce_platform_link_info
|
1153
|
+
|
1140
1154
|
# Type of the link between the two accounts. Acceptable values are: - "`
|
1141
1155
|
# channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
|
1142
1156
|
# Corresponds to the JSON property `linkType`
|
@@ -1167,6 +1181,7 @@ module Google
|
|
1167
1181
|
# Update properties of this object
|
1168
1182
|
def update!(**args)
|
1169
1183
|
@action = args[:action] if args.key?(:action)
|
1184
|
+
@e_commerce_platform_link_info = args[:e_commerce_platform_link_info] if args.key?(:e_commerce_platform_link_info)
|
1170
1185
|
@link_type = args[:link_type] if args.key?(:link_type)
|
1171
1186
|
@linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
|
1172
1187
|
@payment_service_provider_link_info = args[:payment_service_provider_link_info] if args.key?(:payment_service_provider_link_info)
|
@@ -1651,7 +1666,7 @@ module Google
|
|
1651
1666
|
class BusinessDayConfig
|
1652
1667
|
include Google::Apis::Core::Hashable
|
1653
1668
|
|
1654
|
-
# Regular business days. May not be empty.
|
1669
|
+
# Regular business days, such as '"monday"'. May not be empty.
|
1655
1670
|
# Corresponds to the JSON property `businessDays`
|
1656
1671
|
# @return [Array<String>]
|
1657
1672
|
attr_accessor :business_days
|
@@ -1670,17 +1685,59 @@ module Google
|
|
1670
1685
|
class BuyOnGoogleProgramStatus
|
1671
1686
|
include Google::Apis::Core::Hashable
|
1672
1687
|
|
1673
|
-
# The
|
1688
|
+
# The business models in which merchant participates.
|
1689
|
+
# Corresponds to the JSON property `businessModel`
|
1690
|
+
# @return [Array<String>]
|
1691
|
+
attr_accessor :business_model
|
1692
|
+
|
1693
|
+
# The customer service pending email. After verification this field becomes
|
1694
|
+
# empty.
|
1674
1695
|
# Corresponds to the JSON property `customerServicePendingEmail`
|
1675
1696
|
# @return [String]
|
1676
1697
|
attr_accessor :customer_service_pending_email
|
1677
1698
|
|
1678
|
-
# The
|
1699
|
+
# The pending phone number specified for BuyOnGoogle program. It might be
|
1700
|
+
# different than account level phone number. In order to update this field the
|
1701
|
+
# customer_service_pending_phone_region_code must also be set. After
|
1702
|
+
# verification this field becomes empty.
|
1703
|
+
# Corresponds to the JSON property `customerServicePendingPhoneNumber`
|
1704
|
+
# @return [String]
|
1705
|
+
attr_accessor :customer_service_pending_phone_number
|
1706
|
+
|
1707
|
+
# Two letter country code for the pending phone number, for example `CA` for
|
1708
|
+
# Canadian numbers. See the [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/
|
1709
|
+
# ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned
|
1710
|
+
# codes. In order to update this field the customer_service_pending_phone_number
|
1711
|
+
# must also be set. After verification this field becomes empty.
|
1712
|
+
# Corresponds to the JSON property `customerServicePendingPhoneRegionCode`
|
1713
|
+
# @return [String]
|
1714
|
+
attr_accessor :customer_service_pending_phone_region_code
|
1715
|
+
|
1716
|
+
# Output only. The customer service verified email.
|
1679
1717
|
# Corresponds to the JSON property `customerServiceVerifiedEmail`
|
1680
1718
|
# @return [String]
|
1681
1719
|
attr_accessor :customer_service_verified_email
|
1682
1720
|
|
1683
|
-
# The
|
1721
|
+
# Output only. The verified phone number specified for BuyOnGoogle program. It
|
1722
|
+
# might be different than account level phone number.
|
1723
|
+
# Corresponds to the JSON property `customerServiceVerifiedPhoneNumber`
|
1724
|
+
# @return [String]
|
1725
|
+
attr_accessor :customer_service_verified_phone_number
|
1726
|
+
|
1727
|
+
# Output only. Two letter country code for the verified phone number, for
|
1728
|
+
# example `CA` for Canadian numbers. See the [ISO 3166-1 alpha-2](https://
|
1729
|
+
# wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
|
1730
|
+
# officially assigned codes.
|
1731
|
+
# Corresponds to the JSON property `customerServiceVerifiedPhoneRegionCode`
|
1732
|
+
# @return [String]
|
1733
|
+
attr_accessor :customer_service_verified_phone_region_code
|
1734
|
+
|
1735
|
+
# The channels through which the merchant is selling.
|
1736
|
+
# Corresponds to the JSON property `onlineSalesChannel`
|
1737
|
+
# @return [String]
|
1738
|
+
attr_accessor :online_sales_channel
|
1739
|
+
|
1740
|
+
# Output only. The current participation stage for the program.
|
1684
1741
|
# Corresponds to the JSON property `participationStage`
|
1685
1742
|
# @return [String]
|
1686
1743
|
attr_accessor :participation_stage
|
@@ -1691,12 +1748,51 @@ module Google
|
|
1691
1748
|
|
1692
1749
|
# Update properties of this object
|
1693
1750
|
def update!(**args)
|
1751
|
+
@business_model = args[:business_model] if args.key?(:business_model)
|
1694
1752
|
@customer_service_pending_email = args[:customer_service_pending_email] if args.key?(:customer_service_pending_email)
|
1753
|
+
@customer_service_pending_phone_number = args[:customer_service_pending_phone_number] if args.key?(:customer_service_pending_phone_number)
|
1754
|
+
@customer_service_pending_phone_region_code = args[:customer_service_pending_phone_region_code] if args.key?(:customer_service_pending_phone_region_code)
|
1695
1755
|
@customer_service_verified_email = args[:customer_service_verified_email] if args.key?(:customer_service_verified_email)
|
1756
|
+
@customer_service_verified_phone_number = args[:customer_service_verified_phone_number] if args.key?(:customer_service_verified_phone_number)
|
1757
|
+
@customer_service_verified_phone_region_code = args[:customer_service_verified_phone_region_code] if args.key?(:customer_service_verified_phone_region_code)
|
1758
|
+
@online_sales_channel = args[:online_sales_channel] if args.key?(:online_sales_channel)
|
1696
1759
|
@participation_stage = args[:participation_stage] if args.key?(:participation_stage)
|
1697
1760
|
end
|
1698
1761
|
end
|
1699
1762
|
|
1763
|
+
# Request message for the CaptureOrder method.
|
1764
|
+
class CaptureOrderRequest
|
1765
|
+
include Google::Apis::Core::Hashable
|
1766
|
+
|
1767
|
+
def initialize(**args)
|
1768
|
+
update!(**args)
|
1769
|
+
end
|
1770
|
+
|
1771
|
+
# Update properties of this object
|
1772
|
+
def update!(**args)
|
1773
|
+
end
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
# Response message for the CaptureOrder method.
|
1777
|
+
class CaptureOrderResponse
|
1778
|
+
include Google::Apis::Core::Hashable
|
1779
|
+
|
1780
|
+
# The status of the execution. Only defined if the request was successful.
|
1781
|
+
# Acceptable values are: * "duplicate" * "executed"
|
1782
|
+
# Corresponds to the JSON property `executionStatus`
|
1783
|
+
# @return [String]
|
1784
|
+
attr_accessor :execution_status
|
1785
|
+
|
1786
|
+
def initialize(**args)
|
1787
|
+
update!(**args)
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
# Update properties of this object
|
1791
|
+
def update!(**args)
|
1792
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1793
|
+
end
|
1794
|
+
end
|
1795
|
+
|
1700
1796
|
#
|
1701
1797
|
class CarrierRate
|
1702
1798
|
include Google::Apis::Core::Hashable
|
@@ -3148,6 +3244,25 @@ module Google
|
|
3148
3244
|
end
|
3149
3245
|
end
|
3150
3246
|
|
3247
|
+
# Additional information required for E_COMMERCE_PLATFORM link type.
|
3248
|
+
class ECommercePlatformLinkInfo
|
3249
|
+
include Google::Apis::Core::Hashable
|
3250
|
+
|
3251
|
+
# The id used by the third party service provider to identify the merchant.
|
3252
|
+
# Corresponds to the JSON property `externalAccountId`
|
3253
|
+
# @return [String]
|
3254
|
+
attr_accessor :external_account_id
|
3255
|
+
|
3256
|
+
def initialize(**args)
|
3257
|
+
update!(**args)
|
3258
|
+
end
|
3259
|
+
|
3260
|
+
# Update properties of this object
|
3261
|
+
def update!(**args)
|
3262
|
+
@external_account_id = args[:external_account_id] if args.key?(:external_account_id)
|
3263
|
+
end
|
3264
|
+
end
|
3265
|
+
|
3151
3266
|
# An error returned by the API.
|
3152
3267
|
class Error
|
3153
3268
|
include Google::Apis::Core::Hashable
|
@@ -3210,6 +3325,94 @@ module Google
|
|
3210
3325
|
end
|
3211
3326
|
end
|
3212
3327
|
|
3328
|
+
# Response message for GetFreeListingsProgramStatus.
|
3329
|
+
class FreeListingsProgramStatus
|
3330
|
+
include Google::Apis::Core::Hashable
|
3331
|
+
|
3332
|
+
# Status of the program in each region. Regions with the same status and review
|
3333
|
+
# eligibility are grouped together in `regionCodes`.
|
3334
|
+
# Corresponds to the JSON property `regionStatuses`
|
3335
|
+
# @return [Array<Google::Apis::ContentV2_1::FreeListingsProgramStatusRegionStatus>]
|
3336
|
+
attr_accessor :region_statuses
|
3337
|
+
|
3338
|
+
# If program is successfully onboarded for at least one region.
|
3339
|
+
# Corresponds to the JSON property `state`
|
3340
|
+
# @return [String]
|
3341
|
+
attr_accessor :state
|
3342
|
+
|
3343
|
+
def initialize(**args)
|
3344
|
+
update!(**args)
|
3345
|
+
end
|
3346
|
+
|
3347
|
+
# Update properties of this object
|
3348
|
+
def update!(**args)
|
3349
|
+
@region_statuses = args[:region_statuses] if args.key?(:region_statuses)
|
3350
|
+
@state = args[:state] if args.key?(:state)
|
3351
|
+
end
|
3352
|
+
end
|
3353
|
+
|
3354
|
+
# Status of program and region.
|
3355
|
+
class FreeListingsProgramStatusRegionStatus
|
3356
|
+
include Google::Apis::Core::Hashable
|
3357
|
+
|
3358
|
+
# Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It
|
3359
|
+
# will be present when `eligibility_status` is `WARNING`. Date will be provided
|
3360
|
+
# in ISO 8601 format i.e. YYYY-MM-DD
|
3361
|
+
# Corresponds to the JSON property `disapprovalDate`
|
3362
|
+
# @return [String]
|
3363
|
+
attr_accessor :disapproval_date
|
3364
|
+
|
3365
|
+
# Eligibility status of the standard free listing program.
|
3366
|
+
# Corresponds to the JSON property `eligibilityStatus`
|
3367
|
+
# @return [String]
|
3368
|
+
attr_accessor :eligibility_status
|
3369
|
+
|
3370
|
+
# Eligibility status of the enhanced free listing program.
|
3371
|
+
# Corresponds to the JSON property `enhancedEligibilityStatus`
|
3372
|
+
# @return [String]
|
3373
|
+
attr_accessor :enhanced_eligibility_status
|
3374
|
+
|
3375
|
+
# Reason if a program in a given country is not eligible for review. Populated
|
3376
|
+
# only if `review_eligibility_status` is `INELIGIBLE`.
|
3377
|
+
# Corresponds to the JSON property `ineligibilityReason`
|
3378
|
+
# @return [String]
|
3379
|
+
attr_accessor :ineligibility_reason
|
3380
|
+
|
3381
|
+
# The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-
|
3382
|
+
# 1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `
|
3383
|
+
# reviewEligibility`.
|
3384
|
+
# Corresponds to the JSON property `regionCodes`
|
3385
|
+
# @return [Array<String>]
|
3386
|
+
attr_accessor :region_codes
|
3387
|
+
|
3388
|
+
# If a program in a given country is eligible for review. It will be present
|
3389
|
+
# only if eligibility status is `DISAPPROVED`.
|
3390
|
+
# Corresponds to the JSON property `reviewEligibilityStatus`
|
3391
|
+
# @return [String]
|
3392
|
+
attr_accessor :review_eligibility_status
|
3393
|
+
|
3394
|
+
# These issues will be evaluated in review process. Fix all the issues before
|
3395
|
+
# requesting the review.
|
3396
|
+
# Corresponds to the JSON property `reviewIssues`
|
3397
|
+
# @return [Array<String>]
|
3398
|
+
attr_accessor :review_issues
|
3399
|
+
|
3400
|
+
def initialize(**args)
|
3401
|
+
update!(**args)
|
3402
|
+
end
|
3403
|
+
|
3404
|
+
# Update properties of this object
|
3405
|
+
def update!(**args)
|
3406
|
+
@disapproval_date = args[:disapproval_date] if args.key?(:disapproval_date)
|
3407
|
+
@eligibility_status = args[:eligibility_status] if args.key?(:eligibility_status)
|
3408
|
+
@enhanced_eligibility_status = args[:enhanced_eligibility_status] if args.key?(:enhanced_eligibility_status)
|
3409
|
+
@ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
|
3410
|
+
@region_codes = args[:region_codes] if args.key?(:region_codes)
|
3411
|
+
@review_eligibility_status = args[:review_eligibility_status] if args.key?(:review_eligibility_status)
|
3412
|
+
@review_issues = args[:review_issues] if args.key?(:review_issues)
|
3413
|
+
end
|
3414
|
+
end
|
3415
|
+
|
3213
3416
|
#
|
3214
3417
|
class GmbAccounts
|
3215
3418
|
include Google::Apis::Core::Hashable
|
@@ -5375,7 +5578,7 @@ module Google
|
|
5375
5578
|
# "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`
|
5376
5579
|
# paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "`
|
5377
5580
|
# shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`
|
5378
|
-
# unsupportedPoBoxAddress`"
|
5581
|
+
# unsupportedPoBoxAddress`" - "`failedToCaptureFunds`"
|
5379
5582
|
# Corresponds to the JSON property `reason`
|
5380
5583
|
# @return [String]
|
5381
5584
|
attr_accessor :reason
|
@@ -7663,7 +7866,8 @@ module Google
|
|
7663
7866
|
# The reason for the cancellation. Acceptable values are: - "`
|
7664
7867
|
# customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
|
7665
7868
|
# "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
|
7666
|
-
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
|
7869
|
+
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
|
7870
|
+
# `failedToCaptureFunds`"
|
7667
7871
|
# Corresponds to the JSON property `reason`
|
7668
7872
|
# @return [String]
|
7669
7873
|
attr_accessor :reason
|
@@ -7727,7 +7931,8 @@ module Google
|
|
7727
7931
|
# The reason for the cancellation. Acceptable values are: - "`
|
7728
7932
|
# customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
|
7729
7933
|
# "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
|
7730
|
-
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
|
7934
|
+
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
|
7935
|
+
# `failedToCaptureFunds`"
|
7731
7936
|
# Corresponds to the JSON property `reason`
|
7732
7937
|
# @return [String]
|
7733
7938
|
attr_accessor :reason
|
@@ -10203,16 +10408,40 @@ module Google
|
|
10203
10408
|
# @return [Array<Google::Apis::ContentV2_1::ProductProductDetail>]
|
10204
10409
|
attr_accessor :product_details
|
10205
10410
|
|
10411
|
+
# The height of the product in the units provided. The value must be between 0 (
|
10412
|
+
# exclusive) and 3000 (inclusive).
|
10413
|
+
# Corresponds to the JSON property `productHeight`
|
10414
|
+
# @return [Google::Apis::ContentV2_1::ProductDimension]
|
10415
|
+
attr_accessor :product_height
|
10416
|
+
|
10206
10417
|
# Bullet points describing the most relevant highlights of a product.
|
10207
10418
|
# Corresponds to the JSON property `productHighlights`
|
10208
10419
|
# @return [Array<String>]
|
10209
10420
|
attr_accessor :product_highlights
|
10210
10421
|
|
10422
|
+
# The length of the product in the units provided. The value must be between 0 (
|
10423
|
+
# exclusive) and 3000 (inclusive).
|
10424
|
+
# Corresponds to the JSON property `productLength`
|
10425
|
+
# @return [Google::Apis::ContentV2_1::ProductDimension]
|
10426
|
+
attr_accessor :product_length
|
10427
|
+
|
10211
10428
|
# Categories of the item (formatted as in products data specification).
|
10212
10429
|
# Corresponds to the JSON property `productTypes`
|
10213
10430
|
# @return [Array<String>]
|
10214
10431
|
attr_accessor :product_types
|
10215
10432
|
|
10433
|
+
# The weight of the product in the units provided. The value must be between 0 (
|
10434
|
+
# exclusive) and 2000 (inclusive).
|
10435
|
+
# Corresponds to the JSON property `productWeight`
|
10436
|
+
# @return [Google::Apis::ContentV2_1::ProductWeight]
|
10437
|
+
attr_accessor :product_weight
|
10438
|
+
|
10439
|
+
# The width of the product in the units provided. The value must be between 0 (
|
10440
|
+
# exclusive) and 3000 (inclusive).
|
10441
|
+
# Corresponds to the JSON property `productWidth`
|
10442
|
+
# @return [Google::Apis::ContentV2_1::ProductDimension]
|
10443
|
+
attr_accessor :product_width
|
10444
|
+
|
10216
10445
|
# The unique ID of a promotion.
|
10217
10446
|
# Corresponds to the JSON property `promotionIds`
|
10218
10447
|
# @return [Array<String>]
|
@@ -10404,8 +10633,12 @@ module Google
|
|
10404
10633
|
@pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
|
10405
10634
|
@price = args[:price] if args.key?(:price)
|
10406
10635
|
@product_details = args[:product_details] if args.key?(:product_details)
|
10636
|
+
@product_height = args[:product_height] if args.key?(:product_height)
|
10407
10637
|
@product_highlights = args[:product_highlights] if args.key?(:product_highlights)
|
10638
|
+
@product_length = args[:product_length] if args.key?(:product_length)
|
10408
10639
|
@product_types = args[:product_types] if args.key?(:product_types)
|
10640
|
+
@product_weight = args[:product_weight] if args.key?(:product_weight)
|
10641
|
+
@product_width = args[:product_width] if args.key?(:product_width)
|
10409
10642
|
@promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
|
10410
10643
|
@sale_price = args[:sale_price] if args.key?(:sale_price)
|
10411
10644
|
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
|
@@ -10463,6 +10696,32 @@ module Google
|
|
10463
10696
|
end
|
10464
10697
|
end
|
10465
10698
|
|
10699
|
+
#
|
10700
|
+
class ProductDimension
|
10701
|
+
include Google::Apis::Core::Hashable
|
10702
|
+
|
10703
|
+
# Required. The length units. Acceptable values are: - "`in`" - "`cm`"
|
10704
|
+
# Corresponds to the JSON property `unit`
|
10705
|
+
# @return [String]
|
10706
|
+
attr_accessor :unit
|
10707
|
+
|
10708
|
+
# Required. The length value represented as a number. The value can have a
|
10709
|
+
# maximum precision of four decimal places.
|
10710
|
+
# Corresponds to the JSON property `value`
|
10711
|
+
# @return [Float]
|
10712
|
+
attr_accessor :value
|
10713
|
+
|
10714
|
+
def initialize(**args)
|
10715
|
+
update!(**args)
|
10716
|
+
end
|
10717
|
+
|
10718
|
+
# Update properties of this object
|
10719
|
+
def update!(**args)
|
10720
|
+
@unit = args[:unit] if args.key?(:unit)
|
10721
|
+
@value = args[:value] if args.key?(:value)
|
10722
|
+
end
|
10723
|
+
end
|
10724
|
+
|
10466
10725
|
#
|
10467
10726
|
class ProductProductDetail
|
10468
10727
|
include Google::Apis::Core::Hashable
|
@@ -10953,6 +11212,33 @@ module Google
|
|
10953
11212
|
end
|
10954
11213
|
end
|
10955
11214
|
|
11215
|
+
#
|
11216
|
+
class ProductWeight
|
11217
|
+
include Google::Apis::Core::Hashable
|
11218
|
+
|
11219
|
+
# Required. The weight unit. Acceptable values are: - "`g`" - "`kg`" - "`oz`" - "
|
11220
|
+
# `lb`"
|
11221
|
+
# Corresponds to the JSON property `unit`
|
11222
|
+
# @return [String]
|
11223
|
+
attr_accessor :unit
|
11224
|
+
|
11225
|
+
# Required. The weight represented as a number. The weight can have a maximum
|
11226
|
+
# precision of four decimal places.
|
11227
|
+
# Corresponds to the JSON property `value`
|
11228
|
+
# @return [Float]
|
11229
|
+
attr_accessor :value
|
11230
|
+
|
11231
|
+
def initialize(**args)
|
11232
|
+
update!(**args)
|
11233
|
+
end
|
11234
|
+
|
11235
|
+
# Update properties of this object
|
11236
|
+
def update!(**args)
|
11237
|
+
@unit = args[:unit] if args.key?(:unit)
|
11238
|
+
@value = args[:value] if args.key?(:value)
|
11239
|
+
end
|
11240
|
+
end
|
11241
|
+
|
10956
11242
|
#
|
10957
11243
|
class ProductsCustomBatchRequest
|
10958
11244
|
include Google::Apis::Core::Hashable
|
@@ -11006,8 +11292,8 @@ module Google
|
|
11006
11292
|
# @return [Google::Apis::ContentV2_1::Product]
|
11007
11293
|
attr_accessor :product
|
11008
11294
|
|
11009
|
-
# The ID of the product to get or
|
11010
|
-
# `
|
11295
|
+
# The ID of the product to get or mutate. Only defined if the method is `get`, `
|
11296
|
+
# delete`, or `update`.
|
11011
11297
|
# Corresponds to the JSON property `productId`
|
11012
11298
|
# @return [String]
|
11013
11299
|
attr_accessor :product_id
|
@@ -11304,6 +11590,217 @@ module Google
|
|
11304
11590
|
end
|
11305
11591
|
end
|
11306
11592
|
|
11593
|
+
# Represents a promotion. (1) https://support.google.com/merchants/answer/
|
11594
|
+
# 2906014 (2) https://support.google.com/merchants/answer/10146130 (3) https://
|
11595
|
+
# support.google.com/merchants/answer/9173673
|
11596
|
+
class Promotion
|
11597
|
+
include Google::Apis::Core::Hashable
|
11598
|
+
|
11599
|
+
# Product filter by brand for the promotion.
|
11600
|
+
# Corresponds to the JSON property `brand`
|
11601
|
+
# @return [Array<String>]
|
11602
|
+
attr_accessor :brand
|
11603
|
+
|
11604
|
+
# Product filter by brand exclusion for the promotion.
|
11605
|
+
# Corresponds to the JSON property `brandExclusion`
|
11606
|
+
# @return [Array<String>]
|
11607
|
+
attr_accessor :brand_exclusion
|
11608
|
+
|
11609
|
+
# Required. The content language used as part of the unique identifier.
|
11610
|
+
# Corresponds to the JSON property `contentLanguage`
|
11611
|
+
# @return [String]
|
11612
|
+
attr_accessor :content_language
|
11613
|
+
|
11614
|
+
# Required. Coupon value type for the promotion.
|
11615
|
+
# Corresponds to the JSON property `couponValueType`
|
11616
|
+
# @return [String]
|
11617
|
+
attr_accessor :coupon_value_type
|
11618
|
+
|
11619
|
+
# Free gift description for the promotion.
|
11620
|
+
# Corresponds to the JSON property `freeGiftDescription`
|
11621
|
+
# @return [String]
|
11622
|
+
attr_accessor :free_gift_description
|
11623
|
+
|
11624
|
+
# Free gift item id for the promotion.
|
11625
|
+
# Corresponds to the JSON property `freeGiftItemId`
|
11626
|
+
# @return [String]
|
11627
|
+
attr_accessor :free_gift_item_id
|
11628
|
+
|
11629
|
+
# The price represented as a number and currency.
|
11630
|
+
# Corresponds to the JSON property `freeGiftValue`
|
11631
|
+
# @return [Google::Apis::ContentV2_1::PriceAmount]
|
11632
|
+
attr_accessor :free_gift_value
|
11633
|
+
|
11634
|
+
# Generic redemption code for the promotion. To be used with the above field.
|
11635
|
+
# Corresponds to the JSON property `genericRedemptionCode`
|
11636
|
+
# @return [String]
|
11637
|
+
attr_accessor :generic_redemption_code
|
11638
|
+
|
11639
|
+
# The number of items discounted in the promotion.
|
11640
|
+
# Corresponds to the JSON property `getThisQuantityDiscounted`
|
11641
|
+
# @return [Fixnum]
|
11642
|
+
attr_accessor :get_this_quantity_discounted
|
11643
|
+
|
11644
|
+
# Required. Output only. The REST promotion id to uniquely identify the
|
11645
|
+
# promotion. Content API methods that operate on promotions take this as their
|
11646
|
+
# promotionId parameter.
|
11647
|
+
# Corresponds to the JSON property `id`
|
11648
|
+
# @return [String]
|
11649
|
+
attr_accessor :id
|
11650
|
+
|
11651
|
+
# Product filter by item group id for the promotion.
|
11652
|
+
# Corresponds to the JSON property `itemGroupId`
|
11653
|
+
# @return [Array<String>]
|
11654
|
+
attr_accessor :item_group_id
|
11655
|
+
|
11656
|
+
# Product filter by item group id exclusion for the promotion.
|
11657
|
+
# Corresponds to the JSON property `itemGroupIdExclusion`
|
11658
|
+
# @return [Array<String>]
|
11659
|
+
attr_accessor :item_group_id_exclusion
|
11660
|
+
|
11661
|
+
# Product filter by item id for the promotion.
|
11662
|
+
# Corresponds to the JSON property `itemId`
|
11663
|
+
# @return [Array<String>]
|
11664
|
+
attr_accessor :item_id
|
11665
|
+
|
11666
|
+
# Product filter by item id exclusion for the promotion.
|
11667
|
+
# Corresponds to the JSON property `itemIdExclusion`
|
11668
|
+
# @return [Array<String>]
|
11669
|
+
attr_accessor :item_id_exclusion
|
11670
|
+
|
11671
|
+
# Maximum purchase quantity for the promotion.
|
11672
|
+
# Corresponds to the JSON property `limitQuantity`
|
11673
|
+
# @return [Fixnum]
|
11674
|
+
attr_accessor :limit_quantity
|
11675
|
+
|
11676
|
+
# The price represented as a number and currency.
|
11677
|
+
# Corresponds to the JSON property `limitValue`
|
11678
|
+
# @return [Google::Apis::ContentV2_1::PriceAmount]
|
11679
|
+
attr_accessor :limit_value
|
11680
|
+
|
11681
|
+
# Long title for the promotion.
|
11682
|
+
# Corresponds to the JSON property `longTitle`
|
11683
|
+
# @return [String]
|
11684
|
+
attr_accessor :long_title
|
11685
|
+
|
11686
|
+
# The price represented as a number and currency.
|
11687
|
+
# Corresponds to the JSON property `minimumPurchaseAmount`
|
11688
|
+
# @return [Google::Apis::ContentV2_1::PriceAmount]
|
11689
|
+
attr_accessor :minimum_purchase_amount
|
11690
|
+
|
11691
|
+
# Minimum purchase quantity for the promotion.
|
11692
|
+
# Corresponds to the JSON property `minimumPurchaseQuantity`
|
11693
|
+
# @return [Fixnum]
|
11694
|
+
attr_accessor :minimum_purchase_quantity
|
11695
|
+
|
11696
|
+
# The price represented as a number and currency.
|
11697
|
+
# Corresponds to the JSON property `moneyBudget`
|
11698
|
+
# @return [Google::Apis::ContentV2_1::PriceAmount]
|
11699
|
+
attr_accessor :money_budget
|
11700
|
+
|
11701
|
+
# The price represented as a number and currency.
|
11702
|
+
# Corresponds to the JSON property `moneyOffAmount`
|
11703
|
+
# @return [Google::Apis::ContentV2_1::PriceAmount]
|
11704
|
+
attr_accessor :money_off_amount
|
11705
|
+
|
11706
|
+
# Required. Type of the promotion.
|
11707
|
+
# Corresponds to the JSON property `offerType`
|
11708
|
+
# @return [String]
|
11709
|
+
attr_accessor :offer_type
|
11710
|
+
|
11711
|
+
# Order limit for the promotion.
|
11712
|
+
# Corresponds to the JSON property `orderLimit`
|
11713
|
+
# @return [Fixnum]
|
11714
|
+
attr_accessor :order_limit
|
11715
|
+
|
11716
|
+
# The percentage discount offered in the promotion.
|
11717
|
+
# Corresponds to the JSON property `percentOff`
|
11718
|
+
# @return [Fixnum]
|
11719
|
+
attr_accessor :percent_off
|
11720
|
+
|
11721
|
+
# Required. Applicability of the promotion to either all products or only
|
11722
|
+
# specific products.
|
11723
|
+
# Corresponds to the JSON property `productApplicability`
|
11724
|
+
# @return [String]
|
11725
|
+
attr_accessor :product_applicability
|
11726
|
+
|
11727
|
+
# Destination ID for the promotion.
|
11728
|
+
# Corresponds to the JSON property `promotionDestinationIds`
|
11729
|
+
# @return [Array<String>]
|
11730
|
+
attr_accessor :promotion_destination_ids
|
11731
|
+
|
11732
|
+
# String representation of the promotion display dates.
|
11733
|
+
# Corresponds to the JSON property `promotionDisplayDates`
|
11734
|
+
# @return [String]
|
11735
|
+
attr_accessor :promotion_display_dates
|
11736
|
+
|
11737
|
+
# Required. String representation of the promotion effective dates.
|
11738
|
+
# Corresponds to the JSON property `promotionEffectiveDates`
|
11739
|
+
# @return [String]
|
11740
|
+
attr_accessor :promotion_effective_dates
|
11741
|
+
|
11742
|
+
# Required. The user provided promotion id to uniquely identify the promotion.
|
11743
|
+
# Corresponds to the JSON property `promotionId`
|
11744
|
+
# @return [String]
|
11745
|
+
attr_accessor :promotion_id
|
11746
|
+
|
11747
|
+
# Required. Redemption channel for the promotion. At least one channel is
|
11748
|
+
# required.
|
11749
|
+
# Corresponds to the JSON property `redemptionChannel`
|
11750
|
+
# @return [Array<String>]
|
11751
|
+
attr_accessor :redemption_channel
|
11752
|
+
|
11753
|
+
# Shipping service names for thse promotion.
|
11754
|
+
# Corresponds to the JSON property `shippingServiceNames`
|
11755
|
+
# @return [Array<String>]
|
11756
|
+
attr_accessor :shipping_service_names
|
11757
|
+
|
11758
|
+
# Required. The target country used as part of the unique identifier.
|
11759
|
+
# Corresponds to the JSON property `targetCountry`
|
11760
|
+
# @return [String]
|
11761
|
+
attr_accessor :target_country
|
11762
|
+
|
11763
|
+
def initialize(**args)
|
11764
|
+
update!(**args)
|
11765
|
+
end
|
11766
|
+
|
11767
|
+
# Update properties of this object
|
11768
|
+
def update!(**args)
|
11769
|
+
@brand = args[:brand] if args.key?(:brand)
|
11770
|
+
@brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
|
11771
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
11772
|
+
@coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
|
11773
|
+
@free_gift_description = args[:free_gift_description] if args.key?(:free_gift_description)
|
11774
|
+
@free_gift_item_id = args[:free_gift_item_id] if args.key?(:free_gift_item_id)
|
11775
|
+
@free_gift_value = args[:free_gift_value] if args.key?(:free_gift_value)
|
11776
|
+
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
|
11777
|
+
@get_this_quantity_discounted = args[:get_this_quantity_discounted] if args.key?(:get_this_quantity_discounted)
|
11778
|
+
@id = args[:id] if args.key?(:id)
|
11779
|
+
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
11780
|
+
@item_group_id_exclusion = args[:item_group_id_exclusion] if args.key?(:item_group_id_exclusion)
|
11781
|
+
@item_id = args[:item_id] if args.key?(:item_id)
|
11782
|
+
@item_id_exclusion = args[:item_id_exclusion] if args.key?(:item_id_exclusion)
|
11783
|
+
@limit_quantity = args[:limit_quantity] if args.key?(:limit_quantity)
|
11784
|
+
@limit_value = args[:limit_value] if args.key?(:limit_value)
|
11785
|
+
@long_title = args[:long_title] if args.key?(:long_title)
|
11786
|
+
@minimum_purchase_amount = args[:minimum_purchase_amount] if args.key?(:minimum_purchase_amount)
|
11787
|
+
@minimum_purchase_quantity = args[:minimum_purchase_quantity] if args.key?(:minimum_purchase_quantity)
|
11788
|
+
@money_budget = args[:money_budget] if args.key?(:money_budget)
|
11789
|
+
@money_off_amount = args[:money_off_amount] if args.key?(:money_off_amount)
|
11790
|
+
@offer_type = args[:offer_type] if args.key?(:offer_type)
|
11791
|
+
@order_limit = args[:order_limit] if args.key?(:order_limit)
|
11792
|
+
@percent_off = args[:percent_off] if args.key?(:percent_off)
|
11793
|
+
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
|
11794
|
+
@promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
|
11795
|
+
@promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
|
11796
|
+
@promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
|
11797
|
+
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
|
11798
|
+
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
|
11799
|
+
@shipping_service_names = args[:shipping_service_names] if args.key?(:shipping_service_names)
|
11800
|
+
@target_country = args[:target_country] if args.key?(:target_country)
|
11801
|
+
end
|
11802
|
+
end
|
11803
|
+
|
11307
11804
|
# Settings for Pub/Sub notifications, all methods require that the caller is a
|
11308
11805
|
# direct user of the merchant center account.
|
11309
11806
|
class PubsubNotificationSettings
|
@@ -12355,6 +12852,67 @@ module Google
|
|
12355
12852
|
end
|
12356
12853
|
end
|
12357
12854
|
|
12855
|
+
# Request message for the RequestPhoneVerification method.
|
12856
|
+
class RequestPhoneVerificationRequest
|
12857
|
+
include Google::Apis::Core::Hashable
|
12858
|
+
|
12859
|
+
# Language code [IETF BCP 47 syntax](https://tools.ietf.org/html/bcp47) (for
|
12860
|
+
# example, en-US). Language code is used to provide localized `SMS` and `
|
12861
|
+
# PHONE_CALL`. Default language used is en-US if not provided.
|
12862
|
+
# Corresponds to the JSON property `languageCode`
|
12863
|
+
# @return [String]
|
12864
|
+
attr_accessor :language_code
|
12865
|
+
|
12866
|
+
# Phone number to be verified.
|
12867
|
+
# Corresponds to the JSON property `phoneNumber`
|
12868
|
+
# @return [String]
|
12869
|
+
attr_accessor :phone_number
|
12870
|
+
|
12871
|
+
# Required. Two letter country code for the phone number, for example `CA` for
|
12872
|
+
# Canadian numbers. See the [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/
|
12873
|
+
# ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned
|
12874
|
+
# codes.
|
12875
|
+
# Corresponds to the JSON property `phoneRegionCode`
|
12876
|
+
# @return [String]
|
12877
|
+
attr_accessor :phone_region_code
|
12878
|
+
|
12879
|
+
# Verification method to receive verification code.
|
12880
|
+
# Corresponds to the JSON property `phoneVerificationMethod`
|
12881
|
+
# @return [String]
|
12882
|
+
attr_accessor :phone_verification_method
|
12883
|
+
|
12884
|
+
def initialize(**args)
|
12885
|
+
update!(**args)
|
12886
|
+
end
|
12887
|
+
|
12888
|
+
# Update properties of this object
|
12889
|
+
def update!(**args)
|
12890
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
12891
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
12892
|
+
@phone_region_code = args[:phone_region_code] if args.key?(:phone_region_code)
|
12893
|
+
@phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method)
|
12894
|
+
end
|
12895
|
+
end
|
12896
|
+
|
12897
|
+
# Response message for the RequestPhoneVerification method.
|
12898
|
+
class RequestPhoneVerificationResponse
|
12899
|
+
include Google::Apis::Core::Hashable
|
12900
|
+
|
12901
|
+
# The verification ID to use in subsequent calls to `verifyphonenumber`.
|
12902
|
+
# Corresponds to the JSON property `verificationId`
|
12903
|
+
# @return [String]
|
12904
|
+
attr_accessor :verification_id
|
12905
|
+
|
12906
|
+
def initialize(**args)
|
12907
|
+
update!(**args)
|
12908
|
+
end
|
12909
|
+
|
12910
|
+
# Update properties of this object
|
12911
|
+
def update!(**args)
|
12912
|
+
@verification_id = args[:verification_id] if args.key?(:verification_id)
|
12913
|
+
end
|
12914
|
+
end
|
12915
|
+
|
12358
12916
|
# Request message for the RequestReviewProgram method.
|
12359
12917
|
class RequestReviewBuyOnGoogleProgramRequest
|
12360
12918
|
include Google::Apis::Core::Hashable
|
@@ -12368,6 +12926,46 @@ module Google
|
|
12368
12926
|
end
|
12369
12927
|
end
|
12370
12928
|
|
12929
|
+
# Request message for the RequestReviewFreeListings Program method.
|
12930
|
+
class RequestReviewFreeListingsRequest
|
12931
|
+
include Google::Apis::Core::Hashable
|
12932
|
+
|
12933
|
+
# The code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
12934
|
+
# of the country for which review is to be requested.
|
12935
|
+
# Corresponds to the JSON property `regionCode`
|
12936
|
+
# @return [String]
|
12937
|
+
attr_accessor :region_code
|
12938
|
+
|
12939
|
+
def initialize(**args)
|
12940
|
+
update!(**args)
|
12941
|
+
end
|
12942
|
+
|
12943
|
+
# Update properties of this object
|
12944
|
+
def update!(**args)
|
12945
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
12946
|
+
end
|
12947
|
+
end
|
12948
|
+
|
12949
|
+
# Request message for the RequestReviewShoppingAds program method.
|
12950
|
+
class RequestReviewShoppingAdsRequest
|
12951
|
+
include Google::Apis::Core::Hashable
|
12952
|
+
|
12953
|
+
# The code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
12954
|
+
# of the country for which review is to be requested.
|
12955
|
+
# Corresponds to the JSON property `regionCode`
|
12956
|
+
# @return [String]
|
12957
|
+
attr_accessor :region_code
|
12958
|
+
|
12959
|
+
def initialize(**args)
|
12960
|
+
update!(**args)
|
12961
|
+
end
|
12962
|
+
|
12963
|
+
# Update properties of this object
|
12964
|
+
def update!(**args)
|
12965
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
12966
|
+
end
|
12967
|
+
end
|
12968
|
+
|
12371
12969
|
# Return address resource.
|
12372
12970
|
class ReturnAddress
|
12373
12971
|
include Google::Apis::Core::Hashable
|
@@ -13308,7 +13906,9 @@ module Google
|
|
13308
13906
|
attr_accessor :page_token
|
13309
13907
|
|
13310
13908
|
# Required. Query that defines performance metrics to retrieve and dimensions
|
13311
|
-
# according to which the metrics are to be segmented.
|
13909
|
+
# according to which the metrics are to be segmented. For details on how to
|
13910
|
+
# construct your query, see the [Query Language guide](https://developers.google.
|
13911
|
+
# com/shopping-content/guides/reports/query-language/overview).
|
13312
13912
|
# Corresponds to the JSON property `query`
|
13313
13913
|
# @return [String]
|
13314
13914
|
attr_accessor :query
|
@@ -13365,27 +13965,37 @@ module Google
|
|
13365
13965
|
# @return [String]
|
13366
13966
|
attr_accessor :brand
|
13367
13967
|
|
13368
|
-
# Product category (1st level)
|
13968
|
+
# [Product category (1st level)](https://developers.google.com/shopping-content/
|
13969
|
+
# guides/reports/segmentation#category_and_product_type) in Google's product
|
13970
|
+
# taxonomy.
|
13369
13971
|
# Corresponds to the JSON property `categoryL1`
|
13370
13972
|
# @return [String]
|
13371
13973
|
attr_accessor :category_l1
|
13372
13974
|
|
13373
|
-
# Product category (2nd level)
|
13975
|
+
# [Product category (2nd level)](https://developers.google.com/shopping-content/
|
13976
|
+
# guides/reports/segmentation#category_and_product_type) in Google's product
|
13977
|
+
# taxonomy.
|
13374
13978
|
# Corresponds to the JSON property `categoryL2`
|
13375
13979
|
# @return [String]
|
13376
13980
|
attr_accessor :category_l2
|
13377
13981
|
|
13378
|
-
# Product category (3rd level)
|
13982
|
+
# [Product category (3rd level)](https://developers.google.com/shopping-content/
|
13983
|
+
# guides/reports/segmentation#category_and_product_type) in Google's product
|
13984
|
+
# taxonomy.
|
13379
13985
|
# Corresponds to the JSON property `categoryL3`
|
13380
13986
|
# @return [String]
|
13381
13987
|
attr_accessor :category_l3
|
13382
13988
|
|
13383
|
-
# Product category (4th level)
|
13989
|
+
# [Product category (4th level)](https://developers.google.com/shopping-content/
|
13990
|
+
# guides/reports/segmentation#category_and_product_type) in Google's product
|
13991
|
+
# taxonomy.
|
13384
13992
|
# Corresponds to the JSON property `categoryL4`
|
13385
13993
|
# @return [String]
|
13386
13994
|
attr_accessor :category_l4
|
13387
13995
|
|
13388
|
-
# Product category (5th level)
|
13996
|
+
# [Product category (5th level)](https://developers.google.com/shopping-content/
|
13997
|
+
# guides/reports/segmentation#category_and_product_type) in Google's product
|
13998
|
+
# taxonomy.
|
13389
13999
|
# Corresponds to the JSON property `categoryL5`
|
13390
14000
|
# @return [String]
|
13391
14001
|
attr_accessor :category_l5
|
@@ -13439,27 +14049,37 @@ module Google
|
|
13439
14049
|
# @return [String]
|
13440
14050
|
attr_accessor :offer_id
|
13441
14051
|
|
13442
|
-
# Product
|
14052
|
+
# [Product type (1st level)](https://developers.google.com/shopping-content/
|
14053
|
+
# guides/reports/segmentation#category_and_product_type) in merchant's own
|
14054
|
+
# product taxonomy.
|
13443
14055
|
# Corresponds to the JSON property `productTypeL1`
|
13444
14056
|
# @return [String]
|
13445
14057
|
attr_accessor :product_type_l1
|
13446
14058
|
|
13447
|
-
# Product
|
14059
|
+
# [Product type (2nd level)](https://developers.google.com/shopping-content/
|
14060
|
+
# guides/reports/segmentation#category_and_product_type) in merchant's own
|
14061
|
+
# product taxonomy.
|
13448
14062
|
# Corresponds to the JSON property `productTypeL2`
|
13449
14063
|
# @return [String]
|
13450
14064
|
attr_accessor :product_type_l2
|
13451
14065
|
|
13452
|
-
# Product
|
14066
|
+
# [Product type (3rd level)](https://developers.google.com/shopping-content/
|
14067
|
+
# guides/reports/segmentation#category_and_product_type) in merchant's own
|
14068
|
+
# product taxonomy.
|
13453
14069
|
# Corresponds to the JSON property `productTypeL3`
|
13454
14070
|
# @return [String]
|
13455
14071
|
attr_accessor :product_type_l3
|
13456
14072
|
|
13457
|
-
# Product
|
14073
|
+
# [Product type (4th level)](https://developers.google.com/shopping-content/
|
14074
|
+
# guides/reports/segmentation#category_and_product_type) in merchant's own
|
14075
|
+
# product taxonomy.
|
13458
14076
|
# Corresponds to the JSON property `productTypeL4`
|
13459
14077
|
# @return [String]
|
13460
14078
|
attr_accessor :product_type_l4
|
13461
14079
|
|
13462
|
-
# Product
|
14080
|
+
# [Product type (5th level)](https://developers.google.com/shopping-content/
|
14081
|
+
# guides/reports/segmentation#category_and_product_type) in merchant's own
|
14082
|
+
# product taxonomy.
|
13463
14083
|
# Corresponds to the JSON property `productTypeL5`
|
13464
14084
|
# @return [String]
|
13465
14085
|
attr_accessor :product_type_l5
|
@@ -14331,6 +14951,88 @@ module Google
|
|
14331
14951
|
end
|
14332
14952
|
end
|
14333
14953
|
|
14954
|
+
# Response message for GetShoppingAdsProgramStatus.
|
14955
|
+
class ShoppingAdsProgramStatus
|
14956
|
+
include Google::Apis::Core::Hashable
|
14957
|
+
|
14958
|
+
# Status of the program in each region. Regions with the same status and review
|
14959
|
+
# eligibility are grouped together in `regionCodes`.
|
14960
|
+
# Corresponds to the JSON property `regionStatuses`
|
14961
|
+
# @return [Array<Google::Apis::ContentV2_1::ShoppingAdsProgramStatusRegionStatus>]
|
14962
|
+
attr_accessor :region_statuses
|
14963
|
+
|
14964
|
+
# If program is successfully onboarded for at least one region.
|
14965
|
+
# Corresponds to the JSON property `state`
|
14966
|
+
# @return [String]
|
14967
|
+
attr_accessor :state
|
14968
|
+
|
14969
|
+
def initialize(**args)
|
14970
|
+
update!(**args)
|
14971
|
+
end
|
14972
|
+
|
14973
|
+
# Update properties of this object
|
14974
|
+
def update!(**args)
|
14975
|
+
@region_statuses = args[:region_statuses] if args.key?(:region_statuses)
|
14976
|
+
@state = args[:state] if args.key?(:state)
|
14977
|
+
end
|
14978
|
+
end
|
14979
|
+
|
14980
|
+
# Status of program and region.
|
14981
|
+
class ShoppingAdsProgramStatusRegionStatus
|
14982
|
+
include Google::Apis::Core::Hashable
|
14983
|
+
|
14984
|
+
# Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It
|
14985
|
+
# will be present when `eligibility_status` is `WARNING`. Date will be provided
|
14986
|
+
# in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format i.e. YYYY-MM-DD
|
14987
|
+
# Corresponds to the JSON property `disapprovalDate`
|
14988
|
+
# @return [String]
|
14989
|
+
attr_accessor :disapproval_date
|
14990
|
+
|
14991
|
+
# Eligibility status of the Shopping Ads program.
|
14992
|
+
# Corresponds to the JSON property `eligibilityStatus`
|
14993
|
+
# @return [String]
|
14994
|
+
attr_accessor :eligibility_status
|
14995
|
+
|
14996
|
+
# Reason if a program in a given country is not eligible for review. Populated
|
14997
|
+
# only if `review_eligibility_status` is `INELIGIBLE`.
|
14998
|
+
# Corresponds to the JSON property `ineligibilityReason`
|
14999
|
+
# @return [String]
|
15000
|
+
attr_accessor :ineligibility_reason
|
15001
|
+
|
15002
|
+
# The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-
|
15003
|
+
# 1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `
|
15004
|
+
# reviewEligibility`.
|
15005
|
+
# Corresponds to the JSON property `regionCodes`
|
15006
|
+
# @return [Array<String>]
|
15007
|
+
attr_accessor :region_codes
|
15008
|
+
|
15009
|
+
# If a program in a given country is eligible for review. It will be present
|
15010
|
+
# only if eligibility status is `DISAPPROVED`.
|
15011
|
+
# Corresponds to the JSON property `reviewEligibilityStatus`
|
15012
|
+
# @return [String]
|
15013
|
+
attr_accessor :review_eligibility_status
|
15014
|
+
|
15015
|
+
# These issues will be evaluated in review process. Fix all the issues before
|
15016
|
+
# requesting the review.
|
15017
|
+
# Corresponds to the JSON property `reviewIssues`
|
15018
|
+
# @return [Array<String>]
|
15019
|
+
attr_accessor :review_issues
|
15020
|
+
|
15021
|
+
def initialize(**args)
|
15022
|
+
update!(**args)
|
15023
|
+
end
|
15024
|
+
|
15025
|
+
# Update properties of this object
|
15026
|
+
def update!(**args)
|
15027
|
+
@disapproval_date = args[:disapproval_date] if args.key?(:disapproval_date)
|
15028
|
+
@eligibility_status = args[:eligibility_status] if args.key?(:eligibility_status)
|
15029
|
+
@ineligibility_reason = args[:ineligibility_reason] if args.key?(:ineligibility_reason)
|
15030
|
+
@region_codes = args[:region_codes] if args.key?(:region_codes)
|
15031
|
+
@review_eligibility_status = args[:review_eligibility_status] if args.key?(:review_eligibility_status)
|
15032
|
+
@review_issues = args[:review_issues] if args.key?(:review_issues)
|
15033
|
+
end
|
15034
|
+
end
|
15035
|
+
|
14334
15036
|
#
|
14335
15037
|
class Table
|
14336
15038
|
include Google::Apis::Core::Hashable
|
@@ -15016,6 +15718,57 @@ module Google
|
|
15016
15718
|
end
|
15017
15719
|
end
|
15018
15720
|
|
15721
|
+
# Request message for the VerifyPhoneNumber method.
|
15722
|
+
class VerifyPhoneNumberRequest
|
15723
|
+
include Google::Apis::Core::Hashable
|
15724
|
+
|
15725
|
+
# Verification method used to receive verification code.
|
15726
|
+
# Corresponds to the JSON property `phoneVerificationMethod`
|
15727
|
+
# @return [String]
|
15728
|
+
attr_accessor :phone_verification_method
|
15729
|
+
|
15730
|
+
# The verification code that was sent to the phone number for validation.
|
15731
|
+
# Corresponds to the JSON property `verificationCode`
|
15732
|
+
# @return [String]
|
15733
|
+
attr_accessor :verification_code
|
15734
|
+
|
15735
|
+
# The verification ID returned by `requestphoneverification`.
|
15736
|
+
# Corresponds to the JSON property `verificationId`
|
15737
|
+
# @return [String]
|
15738
|
+
attr_accessor :verification_id
|
15739
|
+
|
15740
|
+
def initialize(**args)
|
15741
|
+
update!(**args)
|
15742
|
+
end
|
15743
|
+
|
15744
|
+
# Update properties of this object
|
15745
|
+
def update!(**args)
|
15746
|
+
@phone_verification_method = args[:phone_verification_method] if args.key?(:phone_verification_method)
|
15747
|
+
@verification_code = args[:verification_code] if args.key?(:verification_code)
|
15748
|
+
@verification_id = args[:verification_id] if args.key?(:verification_id)
|
15749
|
+
end
|
15750
|
+
end
|
15751
|
+
|
15752
|
+
# Response message for the VerifyPhoneNumber method.
|
15753
|
+
class VerifyPhoneNumberResponse
|
15754
|
+
include Google::Apis::Core::Hashable
|
15755
|
+
|
15756
|
+
# Verified phone number if verification is successful. This phone number can
|
15757
|
+
# only be replaced by another verified phone number.
|
15758
|
+
# Corresponds to the JSON property `verifiedPhoneNumber`
|
15759
|
+
# @return [String]
|
15760
|
+
attr_accessor :verified_phone_number
|
15761
|
+
|
15762
|
+
def initialize(**args)
|
15763
|
+
update!(**args)
|
15764
|
+
end
|
15765
|
+
|
15766
|
+
# Update properties of this object
|
15767
|
+
def update!(**args)
|
15768
|
+
@verified_phone_number = args[:verified_phone_number] if args.key?(:verified_phone_number)
|
15769
|
+
end
|
15770
|
+
end
|
15771
|
+
|
15019
15772
|
#
|
15020
15773
|
class WarehouseBasedDeliveryTime
|
15021
15774
|
include Google::Apis::Core::Hashable
|