diff --git a/api_names_out.yaml b/api_names_out.yaml index 067143ef921..ed740e55110 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 diff --git a/generated/google-apis-merchantapi_promotions_v1beta/CHANGELOG.md b/generated/google-apis-merchantapi_promotions_v1beta/CHANGELOG.md index cf9827b40dc..f342a95b506 100644 --- a/generated/google-apis-merchantapi_promotions_v1beta/CHANGELOG.md +++ b/generated/google-apis-merchantapi_promotions_v1beta/CHANGELOG.md @@ -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 diff --git a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/classes.rb b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/classes.rb index 3e3aef81c6e..71134bcd402 100644 --- a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/classes.rb +++ b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/classes.rb @@ -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 @@ -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] + 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 @@ -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) @@ -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) diff --git a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/gem_version.rb b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/gem_version.rb index 908183e1c7d..7b90142c7b2 100644 --- a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/gem_version.rb +++ b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/gem_version.rb @@ -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 diff --git a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/representations.rb b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/representations.rb index 5167121cd7a..3b091d5fcab 100644 --- a/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/representations.rb +++ b/generated/google-apis-merchantapi_promotions_v1beta/lib/google/apis/merchantapi_promotions_v1beta/representations.rb @@ -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' @@ -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'