Skip to content

Commit 3f27c77

Browse files
feat: Automated regeneration of merchantapi promotions_v1beta client (googleapis#25834)
Auto-created at 2026-03-01 09:55:48 +0000 using the toys pull request generator.
1 parent 97e54c0 commit 3f27c77

5 files changed

Lines changed: 25 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307450,6 +307450,7 @@
307450307450
"/merchantapi:products_v1beta/merchantapi.accounts.products.list/parent": parent
307451307451
"/merchantapi:products_v1beta/quotaUser": quota_user
307452307452
"/merchantapi:promotions_v1beta/Attributes": attributes
307453+
"/merchantapi:promotions_v1beta/Attributes/audience": audience
307453307454
"/merchantapi:promotions_v1beta/Attributes/brandExclusion": brand_exclusion
307454307455
"/merchantapi:promotions_v1beta/Attributes/brandExclusion/brand_exclusion": brand_exclusion
307455307456
"/merchantapi:promotions_v1beta/Attributes/brandInclusion": brand_inclusion
@@ -307492,6 +307493,8 @@
307492307493
"/merchantapi:promotions_v1beta/Attributes/promotionEffectiveTimePeriod": promotion_effective_time_period
307493307494
"/merchantapi:promotions_v1beta/Attributes/promotionUrl": promotion_url
307494307495
"/merchantapi:promotions_v1beta/Attributes/redemptionRestriction": redemption_restriction
307496+
"/merchantapi:promotions_v1beta/Attributes/regionIdInclusion": region_id_inclusion
307497+
"/merchantapi:promotions_v1beta/Attributes/regionIdInclusion/region_id_inclusion": region_id_inclusion
307495307498
"/merchantapi:promotions_v1beta/Attributes/storeApplicability": store_applicability
307496307499
"/merchantapi:promotions_v1beta/Attributes/storeCodesExclusion": store_codes_exclusion
307497307500
"/merchantapi:promotions_v1beta/Attributes/storeCodesExclusion/store_codes_exclusion": store_codes_exclusion

generated/google-apis-merchantapi_promotions_v1beta/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-merchantapi_promotions_v1beta
22

3+
### v0.12.0 (2026-03-01)
4+
5+
* Regenerated from discovery document revision 20260224
6+
37
### v0.11.0 (2026-02-08)
48

59
* Regenerated from discovery document revision 20260204

generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/classes.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ module MerchantapiPromotionsV1beta
2626
class Attributes
2727
include Google::Apis::Core::Hashable
2828

29+
# Optional. This field defines the audience a promotion will be visible to.
30+
# Corresponds to the JSON property `audience`
31+
# @return [String]
32+
attr_accessor :audience
33+
2934
# Optional. Product filter by [brand exclusion](https://support.google.com/
3035
# merchants/answer/13861679?ref_topic=13773355&sjid=17642868584668136159-NC) for
3136
# the promotion. The product filter attributes only applies when the products
@@ -272,6 +277,13 @@ class Attributes
272277
# @return [String]
273278
attr_accessor :redemption_restriction
274279

280+
# Optional. A list of [regions](https://support.google.com/merchants/answer/
281+
# 15406457?hl=en&sjid=8815806704218720187-NC#howregionswork) where the promotion
282+
# is applicable. Must be set if `audience` is set to `LOCATION`.
283+
# Corresponds to the JSON property `regionIdInclusion`
284+
# @return [Array<String>]
285+
attr_accessor :region_id_inclusion
286+
275287
# Optional. Whether the promotion applies to [all stores, or only specified
276288
# stores](https://support.google.com/merchants/answer/13857563?sjid=
277289
# 17642868584668136159-NC). Local Inventory ads promotions throw an error if no
@@ -309,6 +321,7 @@ def initialize(**args)
309321

310322
# Update properties of this object
311323
def update!(**args)
324+
@audience = args[:audience] if args.key?(:audience)
312325
@brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
313326
@brand_inclusion = args[:brand_inclusion] if args.key?(:brand_inclusion)
314327
@coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
@@ -341,6 +354,7 @@ def update!(**args)
341354
@promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
342355
@promotion_url = args[:promotion_url] if args.key?(:promotion_url)
343356
@redemption_restriction = args[:redemption_restriction] if args.key?(:redemption_restriction)
357+
@region_id_inclusion = args[:region_id_inclusion] if args.key?(:region_id_inclusion)
344358
@store_applicability = args[:store_applicability] if args.key?(:store_applicability)
345359
@store_codes_exclusion = args[:store_codes_exclusion] if args.key?(:store_codes_exclusion)
346360
@store_codes_inclusion = args[:store_codes_inclusion] if args.key?(:store_codes_inclusion)

generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MerchantapiPromotionsV1beta
1818
# Version of the google-apis-merchantapi_promotions_v1beta gem
19-
GEM_VERSION = "0.11.0"
19+
GEM_VERSION = "0.12.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260204"
25+
REVISION = "20260224"
2626
end
2727
end
2828
end

generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
9797
class Attributes
9898
# @private
9999
class Representation < Google::Apis::Core::JsonRepresentation
100+
property :audience, as: 'audience'
100101
collection :brand_exclusion, as: 'brandExclusion'
101102
collection :brand_inclusion, as: 'brandInclusion'
102103
property :coupon_value_type, as: 'couponValueType'
@@ -136,6 +137,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
136137

137138
property :promotion_url, as: 'promotionUrl'
138139
property :redemption_restriction, as: 'redemptionRestriction'
140+
collection :region_id_inclusion, as: 'regionIdInclusion'
139141
property :store_applicability, as: 'storeApplicability'
140142
collection :store_codes_exclusion, as: 'storeCodesExclusion'
141143
collection :store_codes_inclusion, as: 'storeCodesInclusion'

0 commit comments

Comments
 (0)