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
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-realtimebidding</artifactId>
<version>v1-rev20260716-2.0.0</version>
<version>v1-rev20260914-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-realtimebidding:v1-rev20260716-2.0.0'
implementation 'com.google.apis:google-api-services-realtimebidding:v1-rev20260914-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4602,6 +4602,139 @@ public Creatives creatives() {
*/
public class Creatives {

/**
* Adds a list of deals to a creative, which submits the creative for publisher review. Returns the
* updated creative.
*
* Create a request for the method "creatives.addDeals".
*
* This request holds the parameters needed by the realtimebidding server. After setting any
* optional parameters, call the {@link AddDeals#execute()} method to invoke the remote operation.
*
* @param name Required. Name of the creative to add the deals to. See creative.name.
* @param content the {@link com.google.api.services.realtimebidding.v1.model.AddDealsRequest}
* @return the request
*/
public AddDeals addDeals(java.lang.String name, com.google.api.services.realtimebidding.v1.model.AddDealsRequest content) throws java.io.IOException {
AddDeals result = new AddDeals(name, content);
initialize(result);
return result;
}

public class AddDeals extends RealTimeBiddingRequest<com.google.api.services.realtimebidding.v1.model.Creative> {

private static final String REST_PATH = "v1/{+name}:addDeals";

private final java.util.regex.Pattern NAME_PATTERN =
java.util.regex.Pattern.compile("^buyers/[^/]+/creatives/[^/]+$");

/**
* Adds a list of deals to a creative, which submits the creative for publisher review. Returns
* the updated creative.
*
* Create a request for the method "creatives.addDeals".
*
* This request holds the parameters needed by the the realtimebidding server. After setting any
* optional parameters, call the {@link AddDeals#execute()} method to invoke the remote operation.
* <p> {@link
* AddDeals#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Required. Name of the creative to add the deals to. See creative.name.
* @param content the {@link com.google.api.services.realtimebidding.v1.model.AddDealsRequest}
* @since 1.13
*/
protected AddDeals(java.lang.String name, com.google.api.services.realtimebidding.v1.model.AddDealsRequest content) {
super(RealTimeBidding.this, "POST", REST_PATH, content, com.google.api.services.realtimebidding.v1.model.Creative.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^buyers/[^/]+/creatives/[^/]+$");
}
}

@Override
public AddDeals set$Xgafv(java.lang.String $Xgafv) {
return (AddDeals) super.set$Xgafv($Xgafv);
}

@Override
public AddDeals setAccessToken(java.lang.String accessToken) {
return (AddDeals) super.setAccessToken(accessToken);
}

@Override
public AddDeals setAlt(java.lang.String alt) {
return (AddDeals) super.setAlt(alt);
}

@Override
public AddDeals setCallback(java.lang.String callback) {
return (AddDeals) super.setCallback(callback);
}

@Override
public AddDeals setFields(java.lang.String fields) {
return (AddDeals) super.setFields(fields);
}

@Override
public AddDeals setKey(java.lang.String key) {
return (AddDeals) super.setKey(key);
}

@Override
public AddDeals setOauthToken(java.lang.String oauthToken) {
return (AddDeals) super.setOauthToken(oauthToken);
}

@Override
public AddDeals setPrettyPrint(java.lang.Boolean prettyPrint) {
return (AddDeals) super.setPrettyPrint(prettyPrint);
}

@Override
public AddDeals setQuotaUser(java.lang.String quotaUser) {
return (AddDeals) super.setQuotaUser(quotaUser);
}

@Override
public AddDeals setUploadType(java.lang.String uploadType) {
return (AddDeals) super.setUploadType(uploadType);
}

@Override
public AddDeals setUploadProtocol(java.lang.String uploadProtocol) {
return (AddDeals) super.setUploadProtocol(uploadProtocol);
}

/** Required. Name of the creative to add the deals to. See creative.name. */
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. Name of the creative to add the deals to. See creative.name.
*/
public java.lang.String getName() {
return name;
}

/** Required. Name of the creative to add the deals to. See creative.name. */
public AddDeals setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
"Parameter name must conform to the pattern " +
"^buyers/[^/]+/creatives/[^/]+$");
}
this.name = name;
return this;
}

@Override
public AddDeals set(String parameterName, Object value) {
return (AddDeals) super.set(parameterName, value);
}
}
/**
* Creates a creative.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.realtimebidding.v1.model;

/**
* A request to add deals to a creative resource.
*
* <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 Real-time Bidding API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AddDealsRequest extends com.google.api.client.json.GenericJson {

/**
* Required. The IDs of the deals to associate with the creative. This can include Programmatic
* Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can
* associate no more than 100 deal IDs per request.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> dealIds;

/**
* Required. The IDs of the deals to associate with the creative. This can include Programmatic
* Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can
* associate no more than 100 deal IDs per request.
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getDealIds() {
return dealIds;
}

/**
* Required. The IDs of the deals to associate with the creative. This can include Programmatic
* Guaranteed, Private Auction, Preferred Deal, and Marketplace Package deal IDs. You can
* associate no more than 100 deal IDs per request.
* @param dealIds dealIds or {@code null} for none
*/
public AddDealsRequest setDealIds(java.util.List<java.lang.String> dealIds) {
this.dealIds = dealIds;
return this;
}

@Override
public AddDealsRequest set(String fieldName, Object value) {
return (AddDealsRequest) super.set(fieldName, value);
}

@Override
public AddDealsRequest clone() {
return (AddDealsRequest) super.clone();
}

}
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-realtimebidding</artifactId>
<version>v1-rev20260716-2.0.0</version>
<name>Real-time Bidding API v1-rev20260716-2.0.0</name>
<version>v1-rev20260914-2.0.0</version>
<name>Real-time Bidding API v1-rev20260914-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-realtimebidding/v1/README.md
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-realtimebidding</artifactId>
<version>v1-rev20260716-2.0.0</version>
<version>v1-rev20260914-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-realtimebidding:v1-rev20260716-2.0.0'
implementation 'com.google.apis:google-api-services-realtimebidding:v1-rev20260914-2.0.0'
}
```

Expand Down
Loading