Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307401,6 +307401,7 @@
"/merchantapi:products_v1beta/merchantapi.accounts.products.list/parent": parent
"/merchantapi:products_v1beta/quotaUser": quota_user
"/merchantapi:promotions_v1beta/Attributes": attributes
"/merchantapi:promotions_v1beta/Attributes/audience": audience
"/merchantapi:promotions_v1beta/Attributes/brandExclusion": brand_exclusion
"/merchantapi:promotions_v1beta/Attributes/brandExclusion/brand_exclusion": brand_exclusion
"/merchantapi:promotions_v1beta/Attributes/brandInclusion": brand_inclusion
Expand Down Expand Up @@ -307443,6 +307444,8 @@
"/merchantapi:promotions_v1beta/Attributes/promotionEffectiveTimePeriod": promotion_effective_time_period
"/merchantapi:promotions_v1beta/Attributes/promotionUrl": promotion_url
"/merchantapi:promotions_v1beta/Attributes/redemptionRestriction": redemption_restriction
"/merchantapi:promotions_v1beta/Attributes/regionIdInclusion": region_id_inclusion
"/merchantapi:promotions_v1beta/Attributes/regionIdInclusion/region_id_inclusion": region_id_inclusion
"/merchantapi:promotions_v1beta/Attributes/storeApplicability": store_applicability
"/merchantapi:promotions_v1beta/Attributes/storeCodesExclusion": store_codes_exclusion
"/merchantapi:promotions_v1beta/Attributes/storeCodesExclusion/store_codes_exclusion": store_codes_exclusion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-merchantapi_promotions_v1beta

### v0.12.0 (2026-03-01)

* Regenerated from discovery document revision 20260224

### v0.11.0 (2026-02-08)

* Regenerated from discovery document revision 20260204
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ module MerchantapiPromotionsV1beta
class Attributes
include Google::Apis::Core::Hashable

# Optional. This field defines the audience a promotion will be visible to.
# Corresponds to the JSON property `audience`
# @return [String]
attr_accessor :audience

# Optional. Product filter by [brand exclusion](https://support.google.com/
# merchants/answer/13861679?ref_topic=13773355&sjid=17642868584668136159-NC) for
# the promotion. The product filter attributes only applies when the products
Expand Down Expand Up @@ -272,6 +277,13 @@ class Attributes
# @return [String]
attr_accessor :redemption_restriction

# Optional. A list of [regions](https://support.google.com/merchants/answer/
# 15406457?hl=en&sjid=8815806704218720187-NC#howregionswork) where the promotion
# is applicable. Must be set if `audience` is set to `LOCATION`.
# Corresponds to the JSON property `regionIdInclusion`
# @return [Array<String>]
attr_accessor :region_id_inclusion

# Optional. Whether the promotion applies to [all stores, or only specified
# stores](https://support.google.com/merchants/answer/13857563?sjid=
# 17642868584668136159-NC). Local Inventory ads promotions throw an error if no
Expand Down Expand Up @@ -309,6 +321,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@audience = args[:audience] if args.key?(:audience)
@brand_exclusion = args[:brand_exclusion] if args.key?(:brand_exclusion)
@brand_inclusion = args[:brand_inclusion] if args.key?(:brand_inclusion)
@coupon_value_type = args[:coupon_value_type] if args.key?(:coupon_value_type)
Expand Down Expand Up @@ -341,6 +354,7 @@ def update!(**args)
@promotion_effective_time_period = args[:promotion_effective_time_period] if args.key?(:promotion_effective_time_period)
@promotion_url = args[:promotion_url] if args.key?(:promotion_url)
@redemption_restriction = args[:redemption_restriction] if args.key?(:redemption_restriction)
@region_id_inclusion = args[:region_id_inclusion] if args.key?(:region_id_inclusion)
@store_applicability = args[:store_applicability] if args.key?(:store_applicability)
@store_codes_exclusion = args[:store_codes_exclusion] if args.key?(:store_codes_exclusion)
@store_codes_inclusion = args[:store_codes_inclusion] if args.key?(:store_codes_inclusion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module MerchantapiPromotionsV1beta
# Version of the google-apis-merchantapi_promotions_v1beta gem
GEM_VERSION = "0.11.0"
GEM_VERSION = "0.12.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20260204"
REVISION = "20260224"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
class Attributes
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :audience, as: 'audience'
collection :brand_exclusion, as: 'brandExclusion'
collection :brand_inclusion, as: 'brandInclusion'
property :coupon_value_type, as: 'couponValueType'
Expand Down Expand Up @@ -136,6 +137,7 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :promotion_url, as: 'promotionUrl'
property :redemption_restriction, as: 'redemptionRestriction'
collection :region_id_inclusion, as: 'regionIdInclusion'
property :store_applicability, as: 'storeApplicability'
collection :store_codes_exclusion, as: 'storeCodesExclusion'
collection :store_codes_inclusion, as: 'storeCodesInclusion'
Expand Down