Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1-rev20251120-2.0.0</version>
<version>accounts_v1-rev20260203-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251120-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20260203-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@

/**
* Represents a geographic region that you can use as a target with both the `RegionalInventory` and
* `ShippingSettings` services. You can define regions as collections of either postal codes or, in
* some countries, using predefined geotargets. For more information, see [Set up regions
* ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more
* information.
* `ShippingSettings` services. You can define regions as collections of either postal codes, radius
* areas or, in some countries, using predefined geotargets. A region must be defined by specifying
* exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see
* [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-
* region) for more information.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1-rev20251120-2.0.0</version>
<name>Merchant API accounts_v1-rev20251120-2.0.0</name>
<version>accounts_v1-rev20260203-2.0.0</version>
<name>Merchant API accounts_v1-rev20260203-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1-rev20251120-2.0.0</version>
<version>accounts_v1-rev20260203-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251120-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20260203-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1beta-rev20251120-2.0.0</version>
<version>accounts_v1beta-rev20260203-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20251120-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20260203-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@

/**
* Represents a geographic region that you can use as a target with both the `RegionalInventory` and
* `ShippingSettings` services. You can define regions as collections of either postal codes or, in
* some countries, using predefined geotargets. For more information, see [Set up regions
* ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more
* information.
* `ShippingSettings` services. You can define regions as collections of either postal codes, radius
* areas or, in some countries, using predefined geotargets. A region must be defined by specifying
* exactly one of `postal_code_area`, `geotarget_area`, or `radius_area`. For more information, see
* [Set up regions ](https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-
* region) for more information.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Merchant API. For a detailed explanation see:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1beta-rev20251120-2.0.0</version>
<name>Merchant API accounts_v1beta-rev20251120-2.0.0</name>
<version>accounts_v1beta-rev20260203-2.0.0</version>
<name>Merchant API accounts_v1beta-rev20260203-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>accounts_v1beta-rev20251120-2.0.0</version>
<version>accounts_v1beta-rev20260203-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20251120-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20260203-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>promotions_v1-rev20250805-2.0.0</version>
<version>promotions_v1-rev20260204-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20250805-2.0.0'
implementation 'com.google.apis:google-api-services-merchantapi:promotions_v1-rev20260204-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,25 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String couponValueType;

/**
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
* field is set to `CUSTOM`, this field must be set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String customRedemptionRestriction;

/**
* Optional. Event applicability for this promotion. When present, this field indicates you are
* creating a [sales
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
* must be set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String eventApplicability;

/**
* Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi
* c=13773355&sjid=17642868584668136159-NC) for the promotion.
Expand Down Expand Up @@ -89,6 +108,16 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long getThisQuantityDiscounted;

/**
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
* eligible values for product categories, checkout the `google_product_category` attribute in the
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> googleProductCategories;

/**
* Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729
* 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies
Expand Down Expand Up @@ -142,6 +171,14 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String longTitle;

/**
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
* only supported with the `Percent off` coupon value type.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Price maxDiscountAmount;

/**
* Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to
* pic=13773355&sjid=17642868584668136159-NC) for the promotion.
Expand Down Expand Up @@ -183,6 +220,9 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
private java.lang.Long percentOff;

/**
* Optional. Applicability of the promotion to either all products or [only specific products](htt
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -242,6 +282,13 @@ public final class Attributes extends com.google.api.client.json.GenericJson {
@com.google.api.client.util.Key
private java.lang.String promotionUrl;

/**
* Optional. A restriction customers must meet before they can redeem the promotion.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String redemptionRestriction;

/**
* Optional. Whether the promotion applies to [all stores, or only specified
* stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC).
Expand Down Expand Up @@ -325,6 +372,50 @@ public Attributes setCouponValueType(java.lang.String couponValueType) {
return this;
}

/**
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
* field is set to `CUSTOM`, this field must be set.
* @return value or {@code null} for none
*/
public java.lang.String getCustomRedemptionRestriction() {
return customRedemptionRestriction;
}

/**
* Optional. The custom redemption restriction for the promotion. If the `redemption_restriction`
* field is set to `CUSTOM`, this field must be set.
* @param customRedemptionRestriction customRedemptionRestriction or {@code null} for none
*/
public Attributes setCustomRedemptionRestriction(java.lang.String customRedemptionRestriction) {
this.customRedemptionRestriction = customRedemptionRestriction;
return this;
}

/**
* Optional. Event applicability for this promotion. When present, this field indicates you are
* creating a [sales
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
* must be set.
* @return value or {@code null} for none
*/
public java.lang.String getEventApplicability() {
return eventApplicability;
}

/**
* Optional. Event applicability for this promotion. When present, this field indicates you are
* creating a [sales
* event](https://support.google.com/merchants/answer/15523289?hl=en&sjid=11099988466404504696-NC)
* and not a product promotion. Exactly one of `product_applicability` or `event_applicability`
* must be set.
* @param eventApplicability eventApplicability or {@code null} for none
*/
public Attributes setEventApplicability(java.lang.String eventApplicability) {
this.eventApplicability = eventApplicability;
return this;
}

/**
* Optional. [Free gift description](https://support.google.com/merchants/answer/13847245?ref_topi
* c=13773355&sjid=17642868584668136159-NC) for the promotion.
Expand Down Expand Up @@ -416,6 +507,29 @@ public Attributes setGetThisQuantityDiscounted(java.lang.Long getThisQuantityDis
return this;
}

/**
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
* eligible values for product categories, checkout the `google_product_category` attribute in the
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getGoogleProductCategories() {
return googleProductCategories;
}

/**
* Optional. A list of Google product categories for this promotion. Set if `EventApplicability`
* is `SPECIFIC_CATEGORIES`. Up to 5 product categories can be specified. For more details on
* eligible values for product categories, checkout the `google_product_category` attribute in the
* [Promotion data specification](https://support.google.com/merchants/answer/2906014?hl=en).
* @param googleProductCategories googleProductCategories or {@code null} for none
*/
public Attributes setGoogleProductCategories(java.util.List<java.lang.String> googleProductCategories) {
this.googleProductCategories = googleProductCategories;
return this;
}

/**
* Optional. Product filter by [item group ID](https://support.google.com/merchants/answer/1383729
* 8?ref_topic=13773355&sjid=17642868584668136159-NC). The product filter attributes only applies
Expand Down Expand Up @@ -543,6 +657,25 @@ public Attributes setLongTitle(java.lang.String longTitle) {
return this;
}

/**
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
* only supported with the `Percent off` coupon value type.
* @return value or {@code null} for none
*/
public Price getMaxDiscountAmount() {
return maxDiscountAmount;
}

/**
* Optional. The maximum monetary discount a customer can receive for the promotion. This field is
* only supported with the `Percent off` coupon value type.
* @param maxDiscountAmount maxDiscountAmount or {@code null} for none
*/
public Attributes setMaxDiscountAmount(Price maxDiscountAmount) {
this.maxDiscountAmount = maxDiscountAmount;
return this;
}

/**
* Optional. [Minimum purchase amount](https://support.google.com/merchants/answer/13837705?ref_to
* pic=13773355&sjid=17642868584668136159-NC) for the promotion.
Expand Down Expand Up @@ -639,13 +772,19 @@ public Attributes setPercentOff(java.lang.Long percentOff) {
}

/**
* Optional. Applicability of the promotion to either all products or [only specific products](htt
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
* @return value or {@code null} for none
*/
public java.lang.String getProductApplicability() {
return productApplicability;
}

/**
* Optional. Applicability of the promotion to either all products or [only specific products](htt
* ps://support.google.com/merchants/answer/6396257?ref_topic=6396150&sjid=17642868584668136159-NC
* ). Exactly one of `product_applicability` or `event_applicability` must be set.
* @param productApplicability productApplicability or {@code null} for none
*/
public Attributes setProductApplicability(java.lang.String productApplicability) {
Expand Down Expand Up @@ -779,6 +918,23 @@ public Attributes setPromotionUrl(java.lang.String promotionUrl) {
return this;
}

/**
* Optional. A restriction customers must meet before they can redeem the promotion.
* @return value or {@code null} for none
*/
public java.lang.String getRedemptionRestriction() {
return redemptionRestriction;
}

/**
* Optional. A restriction customers must meet before they can redeem the promotion.
* @param redemptionRestriction redemptionRestriction or {@code null} for none
*/
public Attributes setRedemptionRestriction(java.lang.String redemptionRestriction) {
this.redemptionRestriction = redemptionRestriction;
return this;
}

/**
* Optional. Whether the promotion applies to [all stores, or only specified
* stores](https://support.google.com/merchants/answer/13857563?sjid=17642868584668136159-NC).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-merchantapi</artifactId>
<version>promotions_v1-rev20250805-2.0.0</version>
<name>Merchant API promotions_v1-rev20250805-2.0.0</name>
<version>promotions_v1-rev20260204-2.0.0</version>
<name>Merchant API promotions_v1-rev20260204-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Loading