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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3690,6 +3690,183 @@ public List set(String parameterName, Object value) {
return (List) super.set(parameterName, value);
}
}
/**
* Searches for media planner accounts matching the given DSP seat ID.
*
* Create a request for the method "mediaPlanners.search".
*
* This request holds the parameters needed by the curationpartners server. After setting any
* optional parameters, call the {@link Search#execute()} method to invoke the remote operation.
*
* @return the request
*/
public Search search() throws java.io.IOException {
Search result = new Search();
initialize(result);
return result;
}

public class Search extends CurationPartnersRequest<com.google.api.services.curationpartners.v1.model.SearchMediaPlannersResponse> {

private static final String REST_PATH = "v1/mediaPlanners:search";

/**
* Searches for media planner accounts matching the given DSP seat ID.
*
* Create a request for the method "mediaPlanners.search".
*
* This request holds the parameters needed by the the curationpartners server. After setting any
* optional parameters, call the {@link Search#execute()} method to invoke the remote operation.
* <p> {@link
* Search#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. </p>
*
* @since 1.13
*/
protected Search() {
super(CurationPartners.this, "GET", REST_PATH, null, com.google.api.services.curationpartners.v1.model.SearchMediaPlannersResponse.class);
}

@Override
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
return super.executeUsingHead();
}

@Override
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
return super.buildHttpRequestUsingHead();
}

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

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

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

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

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

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

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

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

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

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

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

/**
* Required. The DSP seat ID to search for. The DSP seat ID is provided by the media planner.
*/
@com.google.api.client.util.Key
private java.lang.String dspSeatId;

/** Required. The DSP seat ID to search for. The DSP seat ID is provided by the media planner.
*/
public java.lang.String getDspSeatId() {
return dspSeatId;
}

/**
* Required. The DSP seat ID to search for. The DSP seat ID is provided by the media planner.
*/
public Search setDspSeatId(java.lang.String dspSeatId) {
this.dspSeatId = dspSeatId;
return this;
}

/**
* Optional. The maximum number of media planners to return. If unspecified, at most 100 media
* planners will be returned. The maximum value is 500; values above 500 will be coerced to
* 500.
*/
@com.google.api.client.util.Key
private java.lang.Integer pageSize;

/** Optional. The maximum number of media planners to return. If unspecified, at most 100 media
planners will be returned. The maximum value is 500; values above 500 will be coerced to 500.
*/
public java.lang.Integer getPageSize() {
return pageSize;
}

/**
* Optional. The maximum number of media planners to return. If unspecified, at most 100 media
* planners will be returned. The maximum value is 500; values above 500 will be coerced to
* 500.
*/
public Search setPageSize(java.lang.Integer pageSize) {
this.pageSize = pageSize;
return this;
}

/**
* Optional. A token identifying a page of results the server should return. This value is
* received from a previous `SearchMediaPlanners` call in
* SearchMediaPlannersResponse.nextPageToken.
*/
@com.google.api.client.util.Key
private java.lang.String pageToken;

/** Optional. A token identifying a page of results the server should return. This value is received
from a previous `SearchMediaPlanners` call in SearchMediaPlannersResponse.nextPageToken.
*/
public java.lang.String getPageToken() {
return pageToken;
}

/**
* Optional. A token identifying a page of results the server should return. This value is
* received from a previous `SearchMediaPlanners` call in
* SearchMediaPlannersResponse.nextPageToken.
*/
public Search setPageToken(java.lang.String pageToken) {
this.pageToken = pageToken;
return this;
}

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

}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* 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.curationpartners.v1.model;

/**
* A response containing media planner account information from a search.
*
* <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 Curation Partners 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 SearchMediaPlannersResponse extends com.google.api.client.json.GenericJson {

/**
* List of media planners matching the search criteria.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<MediaPlanner> mediaPlanners;

static {
// hack to force ProGuard to consider MediaPlanner used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(MediaPlanner.class);
}

/**
* A token which can be passed to a subsequent call to the SearchMediaPlanners method to retrieve
* the next page of results in SearchMediaPlannersRequest.page_token.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String nextPageToken;

/**
* List of media planners matching the search criteria.
* @return value or {@code null} for none
*/
public java.util.List<MediaPlanner> getMediaPlanners() {
return mediaPlanners;
}

/**
* List of media planners matching the search criteria.
* @param mediaPlanners mediaPlanners or {@code null} for none
*/
public SearchMediaPlannersResponse setMediaPlanners(java.util.List<MediaPlanner> mediaPlanners) {
this.mediaPlanners = mediaPlanners;
return this;
}

/**
* A token which can be passed to a subsequent call to the SearchMediaPlanners method to retrieve
* the next page of results in SearchMediaPlannersRequest.page_token.
* @return value or {@code null} for none
*/
public java.lang.String getNextPageToken() {
return nextPageToken;
}

/**
* A token which can be passed to a subsequent call to the SearchMediaPlanners method to retrieve
* the next page of results in SearchMediaPlannersRequest.page_token.
* @param nextPageToken nextPageToken or {@code null} for none
*/
public SearchMediaPlannersResponse setNextPageToken(java.lang.String nextPageToken) {
this.nextPageToken = nextPageToken;
return this;
}

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

@Override
public SearchMediaPlannersResponse clone() {
return (SearchMediaPlannersResponse) 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-curationpartners</artifactId>
<version>v1-rev20260901-2.0.0</version>
<name>Curation Partners API v1-rev20260901-2.0.0</name>
<version>v1-rev20261020-2.0.0</version>
<name>Curation Partners API v1-rev20261020-2.0.0</name>
<packaging>jar</packaging>

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

Expand Down
Loading