Skip to content

Commit 898ad4d

Browse files
1 parent ec0fbc1 commit 898ad4d

File tree

56 files changed

+3864
-1160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3864
-1160
lines changed

clients/google-api-services-merchantapi/accounts_v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-merchantapi</artifactId>
25-
<version>accounts_v1-rev20251112-2.0.0</version>
25+
<version>accounts_v1-rev20251115-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251112-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1-rev20251115-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/Merchant.java

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12051,6 +12051,165 @@ public Patch set(String parameterName, Object value) {
1205112051
}
1205212052
}
1205312053

12054+
/**
12055+
* An accessor for creating requests from the Me collection.
12056+
*
12057+
* <p>The typical use is:</p>
12058+
* <pre>
12059+
* {@code Merchant merchantapi = new Merchant(...);}
12060+
* {@code Merchant.Me.List request = merchantapi.me().list(parameters ...)}
12061+
* </pre>
12062+
*
12063+
* @return the resource collection
12064+
*/
12065+
public Me me() {
12066+
return new Me();
12067+
}
12068+
12069+
/**
12070+
* The "me" collection of methods.
12071+
*/
12072+
public class Me {
12073+
12074+
/**
12075+
* Updates the user that is represented by the caller from pending to verified.
12076+
*
12077+
* Create a request for the method "me.verifySelf".
12078+
*
12079+
* This request holds the parameters needed by the merchantapi server. After setting any optional
12080+
* parameters, call the {@link VerifySelf#execute()} method to invoke the remote operation.
12081+
*
12082+
* @param account Required. The name of the account under which the caller is a user. Format: `accounts/{account}`
12083+
* @param content the {@link com.google.api.services.merchantapi.accounts_v1.model.VerifySelfRequest}
12084+
* @return the request
12085+
*/
12086+
public VerifySelf verifySelf(java.lang.String account, com.google.api.services.merchantapi.accounts_v1.model.VerifySelfRequest content) throws java.io.IOException {
12087+
VerifySelf result = new VerifySelf(account, content);
12088+
initialize(result);
12089+
return result;
12090+
}
12091+
12092+
public class VerifySelf extends MerchantRequest<com.google.api.services.merchantapi.accounts_v1.model.User> {
12093+
12094+
private static final String REST_PATH = "accounts/v1/{+account}/users/me:verifySelf";
12095+
12096+
private final java.util.regex.Pattern ACCOUNT_PATTERN =
12097+
java.util.regex.Pattern.compile("^accounts/[^/]+$");
12098+
12099+
/**
12100+
* Updates the user that is represented by the caller from pending to verified.
12101+
*
12102+
* Create a request for the method "me.verifySelf".
12103+
*
12104+
* This request holds the parameters needed by the the merchantapi server. After setting any
12105+
* optional parameters, call the {@link VerifySelf#execute()} method to invoke the remote
12106+
* operation. <p> {@link
12107+
* VerifySelf#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
12108+
* must be called to initialize this instance immediately after invoking the constructor. </p>
12109+
*
12110+
* @param account Required. The name of the account under which the caller is a user. Format: `accounts/{account}`
12111+
* @param content the {@link com.google.api.services.merchantapi.accounts_v1.model.VerifySelfRequest}
12112+
* @since 1.13
12113+
*/
12114+
protected VerifySelf(java.lang.String account, com.google.api.services.merchantapi.accounts_v1.model.VerifySelfRequest content) {
12115+
super(Merchant.this, "PATCH", REST_PATH, content, com.google.api.services.merchantapi.accounts_v1.model.User.class);
12116+
this.account = com.google.api.client.util.Preconditions.checkNotNull(account, "Required parameter account must be specified.");
12117+
if (!getSuppressPatternChecks()) {
12118+
com.google.api.client.util.Preconditions.checkArgument(ACCOUNT_PATTERN.matcher(account).matches(),
12119+
"Parameter account must conform to the pattern " +
12120+
"^accounts/[^/]+$");
12121+
}
12122+
}
12123+
12124+
@Override
12125+
public VerifySelf set$Xgafv(java.lang.String $Xgafv) {
12126+
return (VerifySelf) super.set$Xgafv($Xgafv);
12127+
}
12128+
12129+
@Override
12130+
public VerifySelf setAccessToken(java.lang.String accessToken) {
12131+
return (VerifySelf) super.setAccessToken(accessToken);
12132+
}
12133+
12134+
@Override
12135+
public VerifySelf setAlt(java.lang.String alt) {
12136+
return (VerifySelf) super.setAlt(alt);
12137+
}
12138+
12139+
@Override
12140+
public VerifySelf setCallback(java.lang.String callback) {
12141+
return (VerifySelf) super.setCallback(callback);
12142+
}
12143+
12144+
@Override
12145+
public VerifySelf setFields(java.lang.String fields) {
12146+
return (VerifySelf) super.setFields(fields);
12147+
}
12148+
12149+
@Override
12150+
public VerifySelf setKey(java.lang.String key) {
12151+
return (VerifySelf) super.setKey(key);
12152+
}
12153+
12154+
@Override
12155+
public VerifySelf setOauthToken(java.lang.String oauthToken) {
12156+
return (VerifySelf) super.setOauthToken(oauthToken);
12157+
}
12158+
12159+
@Override
12160+
public VerifySelf setPrettyPrint(java.lang.Boolean prettyPrint) {
12161+
return (VerifySelf) super.setPrettyPrint(prettyPrint);
12162+
}
12163+
12164+
@Override
12165+
public VerifySelf setQuotaUser(java.lang.String quotaUser) {
12166+
return (VerifySelf) super.setQuotaUser(quotaUser);
12167+
}
12168+
12169+
@Override
12170+
public VerifySelf setUploadType(java.lang.String uploadType) {
12171+
return (VerifySelf) super.setUploadType(uploadType);
12172+
}
12173+
12174+
@Override
12175+
public VerifySelf setUploadProtocol(java.lang.String uploadProtocol) {
12176+
return (VerifySelf) super.setUploadProtocol(uploadProtocol);
12177+
}
12178+
12179+
/**
12180+
* Required. The name of the account under which the caller is a user. Format:
12181+
* `accounts/{account}`
12182+
*/
12183+
@com.google.api.client.util.Key
12184+
private java.lang.String account;
12185+
12186+
/** Required. The name of the account under which the caller is a user. Format: `accounts/{account}`
12187+
*/
12188+
public java.lang.String getAccount() {
12189+
return account;
12190+
}
12191+
12192+
/**
12193+
* Required. The name of the account under which the caller is a user. Format:
12194+
* `accounts/{account}`
12195+
*/
12196+
public VerifySelf setAccount(java.lang.String account) {
12197+
if (!getSuppressPatternChecks()) {
12198+
com.google.api.client.util.Preconditions.checkArgument(ACCOUNT_PATTERN.matcher(account).matches(),
12199+
"Parameter account must conform to the pattern " +
12200+
"^accounts/[^/]+$");
12201+
}
12202+
this.account = account;
12203+
return this;
12204+
}
12205+
12206+
@Override
12207+
public VerifySelf set(String parameterName, Object value) {
12208+
return (VerifySelf) super.set(parameterName, value);
12209+
}
12210+
}
12211+
12212+
}
1205412213
}
1205512214
}
1205612215

clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/AccountService.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ public final class AccountService extends com.google.api.client.json.GenericJson
6868
@com.google.api.client.util.Key
6969
private CampaignsManagement campaignsManagement;
7070

71+
/**
72+
* Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service)
73+
* managing the account. See https://support.google.com/merchants/answer/12653197
74+
* The value may be {@code null}.
75+
*/
76+
@com.google.api.client.util.Key
77+
private ComparisonShopping comparisonShopping;
78+
7179
/**
7280
* Immutable. An optional, immutable identifier that Google uses to refer to this account when
7381
* communicating with the provider. This should be the unique account ID within the provider's
@@ -205,6 +213,25 @@ public AccountService setCampaignsManagement(CampaignsManagement campaignsManage
205213
return this;
206214
}
207215

216+
/**
217+
* Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service)
218+
* managing the account. See https://support.google.com/merchants/answer/12653197
219+
* @return value or {@code null} for none
220+
*/
221+
public ComparisonShopping getComparisonShopping() {
222+
return comparisonShopping;
223+
}
224+
225+
/**
226+
* Service type for comparison shopping. The provider is a CSS (Comparison Shopping Service)
227+
* managing the account. See https://support.google.com/merchants/answer/12653197
228+
* @param comparisonShopping comparisonShopping or {@code null} for none
229+
*/
230+
public AccountService setComparisonShopping(ComparisonShopping comparisonShopping) {
231+
this.comparisonShopping = comparisonShopping;
232+
return this;
233+
}
234+
208235
/**
209236
* Immutable. An optional, immutable identifier that Google uses to refer to this account when
210237
* communicating with the provider. This should be the unique account ID within the provider's

clients/google-api-services-merchantapi/accounts_v1/2.0.0/com/google/api/services/merchantapi/accounts_v1/model/AddAccountService.java

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,49 @@ public final class AddAccountService extends com.google.api.client.json.GenericJ
3737
@com.google.api.client.util.Key
3838
private AccountAggregation accountAggregation;
3939

40+
/**
41+
* The provider manages this account. Payload for service type Account Management.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private AccountManagement accountManagement;
46+
47+
/**
48+
* The provider manages campaigns for this account. Payload for service type campaigns management.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private CampaignsManagement campaignsManagement;
53+
54+
/**
55+
* The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type
56+
* Comparison Shopping.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private ComparisonShopping comparisonShopping;
61+
62+
/**
63+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when
64+
* communicating with the provider. This should be the unique account ID within the provider's
65+
* system (for example, your shop ID in Shopify). If you have multiple accounts with the same
66+
* provider - for instance, different accounts for various regions — the `external_account_id`
67+
* differentiates between them, ensuring accurate linking and integration between Google and the
68+
* provider. The external account ID must be specified for the campaigns management service type.
69+
* The external account ID must not be specified for the account aggregation service type. The
70+
* external account ID is optional / may be specified for all other service types.
71+
* The value may be {@code null}.
72+
*/
73+
@com.google.api.client.util.Key
74+
private java.lang.String externalAccountId;
75+
76+
/**
77+
* The provider manages products for this account. Payload for service type products management.
78+
* The value may be {@code null}.
79+
*/
80+
@com.google.api.client.util.Key
81+
private ProductsManagement productsManagement;
82+
4083
/**
4184
* Required. The provider of the service. Either the reference to an account such as
4285
* `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or
@@ -65,6 +108,107 @@ public AddAccountService setAccountAggregation(AccountAggregation accountAggrega
65108
return this;
66109
}
67110

111+
/**
112+
* The provider manages this account. Payload for service type Account Management.
113+
* @return value or {@code null} for none
114+
*/
115+
public AccountManagement getAccountManagement() {
116+
return accountManagement;
117+
}
118+
119+
/**
120+
* The provider manages this account. Payload for service type Account Management.
121+
* @param accountManagement accountManagement or {@code null} for none
122+
*/
123+
public AddAccountService setAccountManagement(AccountManagement accountManagement) {
124+
this.accountManagement = accountManagement;
125+
return this;
126+
}
127+
128+
/**
129+
* The provider manages campaigns for this account. Payload for service type campaigns management.
130+
* @return value or {@code null} for none
131+
*/
132+
public CampaignsManagement getCampaignsManagement() {
133+
return campaignsManagement;
134+
}
135+
136+
/**
137+
* The provider manages campaigns for this account. Payload for service type campaigns management.
138+
* @param campaignsManagement campaignsManagement or {@code null} for none
139+
*/
140+
public AddAccountService setCampaignsManagement(CampaignsManagement campaignsManagement) {
141+
this.campaignsManagement = campaignsManagement;
142+
return this;
143+
}
144+
145+
/**
146+
* The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type
147+
* Comparison Shopping.
148+
* @return value or {@code null} for none
149+
*/
150+
public ComparisonShopping getComparisonShopping() {
151+
return comparisonShopping;
152+
}
153+
154+
/**
155+
* The provider is a CSS (Comparison Shopping Service) of this account. Payload for service type
156+
* Comparison Shopping.
157+
* @param comparisonShopping comparisonShopping or {@code null} for none
158+
*/
159+
public AddAccountService setComparisonShopping(ComparisonShopping comparisonShopping) {
160+
this.comparisonShopping = comparisonShopping;
161+
return this;
162+
}
163+
164+
/**
165+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when
166+
* communicating with the provider. This should be the unique account ID within the provider's
167+
* system (for example, your shop ID in Shopify). If you have multiple accounts with the same
168+
* provider - for instance, different accounts for various regions — the `external_account_id`
169+
* differentiates between them, ensuring accurate linking and integration between Google and the
170+
* provider. The external account ID must be specified for the campaigns management service type.
171+
* The external account ID must not be specified for the account aggregation service type. The
172+
* external account ID is optional / may be specified for all other service types.
173+
* @return value or {@code null} for none
174+
*/
175+
public java.lang.String getExternalAccountId() {
176+
return externalAccountId;
177+
}
178+
179+
/**
180+
* Immutable. An optional, immutable identifier that Google uses to refer to this account when
181+
* communicating with the provider. This should be the unique account ID within the provider's
182+
* system (for example, your shop ID in Shopify). If you have multiple accounts with the same
183+
* provider - for instance, different accounts for various regions — the `external_account_id`
184+
* differentiates between them, ensuring accurate linking and integration between Google and the
185+
* provider. The external account ID must be specified for the campaigns management service type.
186+
* The external account ID must not be specified for the account aggregation service type. The
187+
* external account ID is optional / may be specified for all other service types.
188+
* @param externalAccountId externalAccountId or {@code null} for none
189+
*/
190+
public AddAccountService setExternalAccountId(java.lang.String externalAccountId) {
191+
this.externalAccountId = externalAccountId;
192+
return this;
193+
}
194+
195+
/**
196+
* The provider manages products for this account. Payload for service type products management.
197+
* @return value or {@code null} for none
198+
*/
199+
public ProductsManagement getProductsManagement() {
200+
return productsManagement;
201+
}
202+
203+
/**
204+
* The provider manages products for this account. Payload for service type products management.
205+
* @param productsManagement productsManagement or {@code null} for none
206+
*/
207+
public AddAccountService setProductsManagement(ProductsManagement productsManagement) {
208+
this.productsManagement = productsManagement;
209+
return this;
210+
}
211+
68212
/**
69213
* Required. The provider of the service. Either the reference to an account such as
70214
* `providers/123` or a well-known service provider (one of `providers/GOOGLE_ADS` or

0 commit comments

Comments
 (0)