| GitHub Repository | Product Reference |
Service Description: Provides methods for handling Proposal objects.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
ProposalName name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]");
Proposal response = proposalServiceClient.getProposal(name);
}
Note: close() needs to be called on the ProposalServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
GetProposal |
Retrieves a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListProposals |
Lists |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateProposal |
Creates a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchCreateProposals |
Creates |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateProposal |
Updates a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchUpdateProposals |
Batch updates |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchArchiveProposals |
Archives |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchUnarchiveProposals |
Unarchives |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchPauseProposals |
Pauses |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchResumeProposals |
Resumes |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchRequestBuyerReviewProposals |
Requests buyer review for |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchRequestBuyerAcceptProposals |
Requests buyer acceptance for |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchReserveProposals |
Reserves inventory for |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchRedraftProposals |
Redrafts |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchDiscardDraftProposals |
Discards drafts, or revert local modifications, of |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchTerminateProposals |
Terminates negotiation on |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchPushToOrderProposals |
Push changes on |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
FetchMarketplaceComments |
Fetches MarketplaceComments made on |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of ProposalServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProposalServiceSettings proposalServiceSettings =
ProposalServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
ProposalServiceClient proposalServiceClient =
ProposalServiceClient.create(proposalServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProposalServiceSettings proposalServiceSettings =
ProposalServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
ProposalServiceClient proposalServiceClient =
ProposalServiceClient.create(proposalServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final ProposalServiceClient create()Constructs an instance of ProposalServiceClient with default settings.
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(ProposalServiceSettings settings)
public static final ProposalServiceClient create(ProposalServiceSettings settings)Constructs an instance of ProposalServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
ProposalServiceSettings |
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(ProposalServiceStub stub)
public static final ProposalServiceClient create(ProposalServiceStub stub)Constructs an instance of ProposalServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(ProposalServiceSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
ProposalServiceStub |
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient |
|
Constructors
ProposalServiceClient(ProposalServiceSettings settings)
protected ProposalServiceClient(ProposalServiceSettings settings)Constructs an instance of ProposalServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
ProposalServiceSettings |
ProposalServiceClient(ProposalServiceStub stub)
protected ProposalServiceClient(ProposalServiceStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
ProposalServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
batchArchiveProposals(@Nullable NetworkName parent, List<String> names)
public final BatchArchiveProposalsResponse batchArchiveProposals(@Nullable NetworkName parent, List<String> names)Archives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchArchiveProposalsResponse response =
proposalServiceClient.batchArchiveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be archived. Format:
|
names |
List<String>Required. The resource names of the Proposals to archive. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchArchiveProposalsResponse |
|
batchArchiveProposals(BatchArchiveProposalsRequest request)
public final BatchArchiveProposalsResponse batchArchiveProposals(BatchArchiveProposalsRequest request)Archives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchArchiveProposalsRequest request =
BatchArchiveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchArchiveProposalsResponse response = proposalServiceClient.batchArchiveProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchArchiveProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchArchiveProposalsResponse |
|
batchArchiveProposals(String parent, List<String> names)
public final BatchArchiveProposalsResponse batchArchiveProposals(String parent, List<String> names)Archives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchArchiveProposalsResponse response =
proposalServiceClient.batchArchiveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be archived. Format:
|
names |
List<String>Required. The resource names of the Proposals to archive. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchArchiveProposalsResponse |
|
batchArchiveProposalsCallable()
public final UnaryCallable<BatchArchiveProposalsRequest,BatchArchiveProposalsResponse> batchArchiveProposalsCallable()Archives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchArchiveProposalsRequest request =
BatchArchiveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchArchiveProposalsResponse> future =
proposalServiceClient.batchArchiveProposalsCallable().futureCall(request);
// Do something.
BatchArchiveProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchArchiveProposalsRequest,BatchArchiveProposalsResponse> |
|
batchCreateProposals(@Nullable NetworkName parent, List<CreateProposalRequest> requests)
public final BatchCreateProposalsResponse batchCreateProposals(@Nullable NetworkName parent, List<CreateProposalRequest> requests)Creates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<CreateProposalRequest> requests = new ArrayList<>();
BatchCreateProposalsResponse response =
proposalServiceClient.batchCreateProposals(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where |
requests |
List<CreateProposalRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchCreateProposalsResponse |
|
batchCreateProposals(BatchCreateProposalsRequest request)
public final BatchCreateProposalsResponse batchCreateProposals(BatchCreateProposalsRequest request)Creates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchCreateProposalsRequest request =
BatchCreateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<CreateProposalRequest>())
.build();
BatchCreateProposalsResponse response = proposalServiceClient.batchCreateProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchCreateProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchCreateProposalsResponse |
|
batchCreateProposals(String parent, List<CreateProposalRequest> requests)
public final BatchCreateProposalsResponse batchCreateProposals(String parent, List<CreateProposalRequest> requests)Creates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<CreateProposalRequest> requests = new ArrayList<>();
BatchCreateProposalsResponse response =
proposalServiceClient.batchCreateProposals(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where |
requests |
List<CreateProposalRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchCreateProposalsResponse |
|
batchCreateProposalsCallable()
public final UnaryCallable<BatchCreateProposalsRequest,BatchCreateProposalsResponse> batchCreateProposalsCallable()Creates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchCreateProposalsRequest request =
BatchCreateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<CreateProposalRequest>())
.build();
ApiFuture<BatchCreateProposalsResponse> future =
proposalServiceClient.batchCreateProposalsCallable().futureCall(request);
// Do something.
BatchCreateProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchCreateProposalsRequest,BatchCreateProposalsResponse> |
|
batchDiscardDraftProposals(@Nullable NetworkName parent, List<String> names)
public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(@Nullable NetworkName parent, List<String> names)Discards drafts, or revert local modifications, of Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchDiscardDraftProposalsResponse response =
proposalServiceClient.batchDiscardDraftProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be discarded. Format:
|
names |
List<String>Required. The resource names of the Proposals to discard. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchDiscardDraftProposalsResponse |
|
batchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request)
public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(BatchDiscardDraftProposalsRequest request)Discards drafts, or revert local modifications, of Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchDiscardDraftProposalsRequest request =
BatchDiscardDraftProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchDiscardDraftProposalsResponse response =
proposalServiceClient.batchDiscardDraftProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchDiscardDraftProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchDiscardDraftProposalsResponse |
|
batchDiscardDraftProposals(String parent, List<String> names)
public final BatchDiscardDraftProposalsResponse batchDiscardDraftProposals(String parent, List<String> names)Discards drafts, or revert local modifications, of Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchDiscardDraftProposalsResponse response =
proposalServiceClient.batchDiscardDraftProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be discarded. Format:
|
names |
List<String>Required. The resource names of the Proposals to discard. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchDiscardDraftProposalsResponse |
|
batchDiscardDraftProposalsCallable()
public final UnaryCallable<BatchDiscardDraftProposalsRequest,BatchDiscardDraftProposalsResponse> batchDiscardDraftProposalsCallable()Discards drafts, or revert local modifications, of Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchDiscardDraftProposalsRequest request =
BatchDiscardDraftProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchDiscardDraftProposalsResponse> future =
proposalServiceClient.batchDiscardDraftProposalsCallable().futureCall(request);
// Do something.
BatchDiscardDraftProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchDiscardDraftProposalsRequest,BatchDiscardDraftProposalsResponse> |
|
batchPauseProposals(@Nullable NetworkName parent, List<String> names, String reason)
public final BatchPauseProposalsResponse batchPauseProposals(@Nullable NetworkName parent, List<String> names, String reason)Pauses Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
String reason = "reason-934964668";
BatchPauseProposalsResponse response =
proposalServiceClient.batchPauseProposals(parent, names, reason);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be paused. Format:
|
names |
List<String>Required. The resource names of the Proposals to pause. Format:
|
reason |
StringRequired. The reason for pausing the Proposals. |
| Returns | |
|---|---|
| Type | Description |
BatchPauseProposalsResponse |
|
batchPauseProposals(BatchPauseProposalsRequest request)
public final BatchPauseProposalsResponse batchPauseProposals(BatchPauseProposalsRequest request)Pauses Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchPauseProposalsRequest request =
BatchPauseProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setReason("reason-934964668")
.build();
BatchPauseProposalsResponse response = proposalServiceClient.batchPauseProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchPauseProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchPauseProposalsResponse |
|
batchPauseProposals(String parent, List<String> names, String reason)
public final BatchPauseProposalsResponse batchPauseProposals(String parent, List<String> names, String reason)Pauses Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
String reason = "reason-934964668";
BatchPauseProposalsResponse response =
proposalServiceClient.batchPauseProposals(parent, names, reason);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be paused. Format:
|
names |
List<String>Required. The resource names of the Proposals to pause. Format:
|
reason |
StringRequired. The reason for pausing the Proposals. |
| Returns | |
|---|---|
| Type | Description |
BatchPauseProposalsResponse |
|
batchPauseProposalsCallable()
public final UnaryCallable<BatchPauseProposalsRequest,BatchPauseProposalsResponse> batchPauseProposalsCallable()Pauses Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchPauseProposalsRequest request =
BatchPauseProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setReason("reason-934964668")
.build();
ApiFuture<BatchPauseProposalsResponse> future =
proposalServiceClient.batchPauseProposalsCallable().futureCall(request);
// Do something.
BatchPauseProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchPauseProposalsRequest,BatchPauseProposalsResponse> |
|
batchPushToOrderProposals(@Nullable NetworkName parent, List<String> names)
public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(@Nullable NetworkName parent, List<String> names)Push changes on Proposals to corresponding Orders, after negotiations have been finalized.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchPushToOrderProposalsResponse response =
proposalServiceClient.batchPushToOrderProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be pushed to order. Format:
|
names |
List<String>Required. The resource names of the Proposals to push to order. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchPushToOrderProposalsResponse |
|
batchPushToOrderProposals(BatchPushToOrderProposalsRequest request)
public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(BatchPushToOrderProposalsRequest request)Push changes on Proposals to corresponding Orders, after negotiations have been finalized.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchPushToOrderProposalsRequest request =
BatchPushToOrderProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchPushToOrderProposalsResponse response =
proposalServiceClient.batchPushToOrderProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchPushToOrderProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchPushToOrderProposalsResponse |
|
batchPushToOrderProposals(String parent, List<String> names)
public final BatchPushToOrderProposalsResponse batchPushToOrderProposals(String parent, List<String> names)Push changes on Proposals to corresponding Orders, after negotiations have been finalized.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchPushToOrderProposalsResponse response =
proposalServiceClient.batchPushToOrderProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be pushed to order. Format:
|
names |
List<String>Required. The resource names of the Proposals to push to order. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchPushToOrderProposalsResponse |
|
batchPushToOrderProposalsCallable()
public final UnaryCallable<BatchPushToOrderProposalsRequest,BatchPushToOrderProposalsResponse> batchPushToOrderProposalsCallable()Push changes on Proposals to corresponding Orders, after negotiations have been finalized.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchPushToOrderProposalsRequest request =
BatchPushToOrderProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchPushToOrderProposalsResponse> future =
proposalServiceClient.batchPushToOrderProposalsCallable().futureCall(request);
// Do something.
BatchPushToOrderProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchPushToOrderProposalsRequest,BatchPushToOrderProposalsResponse> |
|
batchRedraftProposals(@Nullable NetworkName parent, List<String> names)
public final BatchRedraftProposalsResponse batchRedraftProposals(@Nullable NetworkName parent, List<String> names)Redrafts Proposal objects for negotiation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchRedraftProposalsResponse response =
proposalServiceClient.batchRedraftProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be redrafted. Format:
|
names |
List<String>Required. The resource names of the Proposals to redraft. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRedraftProposalsResponse |
|
batchRedraftProposals(BatchRedraftProposalsRequest request)
public final BatchRedraftProposalsResponse batchRedraftProposals(BatchRedraftProposalsRequest request)Redrafts Proposal objects for negotiation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRedraftProposalsRequest request =
BatchRedraftProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchRedraftProposalsResponse response = proposalServiceClient.batchRedraftProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchRedraftProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchRedraftProposalsResponse |
|
batchRedraftProposals(String parent, List<String> names)
public final BatchRedraftProposalsResponse batchRedraftProposals(String parent, List<String> names)Redrafts Proposal objects for negotiation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchRedraftProposalsResponse response =
proposalServiceClient.batchRedraftProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be redrafted. Format:
|
names |
List<String>Required. The resource names of the Proposals to redraft. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRedraftProposalsResponse |
|
batchRedraftProposalsCallable()
public final UnaryCallable<BatchRedraftProposalsRequest,BatchRedraftProposalsResponse> batchRedraftProposalsCallable()Redrafts Proposal objects for negotiation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRedraftProposalsRequest request =
BatchRedraftProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchRedraftProposalsResponse> future =
proposalServiceClient.batchRedraftProposalsCallable().futureCall(request);
// Do something.
BatchRedraftProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchRedraftProposalsRequest,BatchRedraftProposalsResponse> |
|
batchRequestBuyerAcceptProposals(@Nullable NetworkName parent, List<String> names)
public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(@Nullable NetworkName parent, List<String> names)Requests buyer acceptance for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchRequestBuyerAcceptProposalsResponse response =
proposalServiceClient.batchRequestBuyerAcceptProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be accepted. Format:
|
names |
List<String>Required. The resource names of the Proposals to request buyer accept. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerAcceptProposalsResponse |
|
batchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request)
public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(BatchRequestBuyerAcceptProposalsRequest request)Requests buyer acceptance for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRequestBuyerAcceptProposalsRequest request =
BatchRequestBuyerAcceptProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setOverbookingAllowed(true)
.build();
BatchRequestBuyerAcceptProposalsResponse response =
proposalServiceClient.batchRequestBuyerAcceptProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchRequestBuyerAcceptProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerAcceptProposalsResponse |
|
batchRequestBuyerAcceptProposals(String parent, List<String> names)
public final BatchRequestBuyerAcceptProposalsResponse batchRequestBuyerAcceptProposals(String parent, List<String> names)Requests buyer acceptance for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchRequestBuyerAcceptProposalsResponse response =
proposalServiceClient.batchRequestBuyerAcceptProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be accepted. Format:
|
names |
List<String>Required. The resource names of the Proposals to request buyer accept. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerAcceptProposalsResponse |
|
batchRequestBuyerAcceptProposalsCallable()
public final UnaryCallable<BatchRequestBuyerAcceptProposalsRequest,BatchRequestBuyerAcceptProposalsResponse> batchRequestBuyerAcceptProposalsCallable()Requests buyer acceptance for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRequestBuyerAcceptProposalsRequest request =
BatchRequestBuyerAcceptProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setOverbookingAllowed(true)
.build();
ApiFuture<BatchRequestBuyerAcceptProposalsResponse> future =
proposalServiceClient.batchRequestBuyerAcceptProposalsCallable().futureCall(request);
// Do something.
BatchRequestBuyerAcceptProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchRequestBuyerAcceptProposalsRequest,BatchRequestBuyerAcceptProposalsResponse> |
|
batchRequestBuyerReviewProposals(@Nullable NetworkName parent, List<String> names)
public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(@Nullable NetworkName parent, List<String> names)Requests buyer review for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchRequestBuyerReviewProposalsResponse response =
proposalServiceClient.batchRequestBuyerReviewProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be reviewed. Format:
|
names |
List<String>Required. The resource names of the Proposals to request buyer review. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerReviewProposalsResponse |
|
batchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request)
public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(BatchRequestBuyerReviewProposalsRequest request)Requests buyer review for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRequestBuyerReviewProposalsRequest request =
BatchRequestBuyerReviewProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchRequestBuyerReviewProposalsResponse response =
proposalServiceClient.batchRequestBuyerReviewProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchRequestBuyerReviewProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerReviewProposalsResponse |
|
batchRequestBuyerReviewProposals(String parent, List<String> names)
public final BatchRequestBuyerReviewProposalsResponse batchRequestBuyerReviewProposals(String parent, List<String> names)Requests buyer review for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchRequestBuyerReviewProposalsResponse response =
proposalServiceClient.batchRequestBuyerReviewProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be reviewed. Format:
|
names |
List<String>Required. The resource names of the Proposals to request buyer review. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchRequestBuyerReviewProposalsResponse |
|
batchRequestBuyerReviewProposalsCallable()
public final UnaryCallable<BatchRequestBuyerReviewProposalsRequest,BatchRequestBuyerReviewProposalsResponse> batchRequestBuyerReviewProposalsCallable()Requests buyer review for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchRequestBuyerReviewProposalsRequest request =
BatchRequestBuyerReviewProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchRequestBuyerReviewProposalsResponse> future =
proposalServiceClient.batchRequestBuyerReviewProposalsCallable().futureCall(request);
// Do something.
BatchRequestBuyerReviewProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchRequestBuyerReviewProposalsRequest,BatchRequestBuyerReviewProposalsResponse> |
|
batchReserveProposals(@Nullable NetworkName parent, List<String> names)
public final BatchReserveProposalsResponse batchReserveProposals(@Nullable NetworkName parent, List<String> names)Reserves inventory for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchReserveProposalsResponse response =
proposalServiceClient.batchReserveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be reserved. Format:
|
names |
List<String>Required. The resource names of the Proposals to reserve. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchReserveProposalsResponse |
|
batchReserveProposals(BatchReserveProposalsRequest request)
public final BatchReserveProposalsResponse batchReserveProposals(BatchReserveProposalsRequest request)Reserves inventory for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchReserveProposalsRequest request =
BatchReserveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setOverbookingAllowed(true)
.build();
BatchReserveProposalsResponse response = proposalServiceClient.batchReserveProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchReserveProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchReserveProposalsResponse |
|
batchReserveProposals(String parent, List<String> names)
public final BatchReserveProposalsResponse batchReserveProposals(String parent, List<String> names)Reserves inventory for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchReserveProposalsResponse response =
proposalServiceClient.batchReserveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be reserved. Format:
|
names |
List<String>Required. The resource names of the Proposals to reserve. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchReserveProposalsResponse |
|
batchReserveProposalsCallable()
public final UnaryCallable<BatchReserveProposalsRequest,BatchReserveProposalsResponse> batchReserveProposalsCallable()Reserves inventory for Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchReserveProposalsRequest request =
BatchReserveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setOverbookingAllowed(true)
.build();
ApiFuture<BatchReserveProposalsResponse> future =
proposalServiceClient.batchReserveProposalsCallable().futureCall(request);
// Do something.
BatchReserveProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchReserveProposalsRequest,BatchReserveProposalsResponse> |
|
batchResumeProposals(@Nullable NetworkName parent, List<String> names)
public final BatchResumeProposalsResponse batchResumeProposals(@Nullable NetworkName parent, List<String> names)Resumes Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchResumeProposalsResponse response =
proposalServiceClient.batchResumeProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be resumed. Format:
|
names |
List<String>Required. The resource names of the Proposals to resume. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchResumeProposalsResponse |
|
batchResumeProposals(BatchResumeProposalsRequest request)
public final BatchResumeProposalsResponse batchResumeProposals(BatchResumeProposalsRequest request)Resumes Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchResumeProposalsRequest request =
BatchResumeProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchResumeProposalsResponse response = proposalServiceClient.batchResumeProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchResumeProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchResumeProposalsResponse |
|
batchResumeProposals(String parent, List<String> names)
public final BatchResumeProposalsResponse batchResumeProposals(String parent, List<String> names)Resumes Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchResumeProposalsResponse response =
proposalServiceClient.batchResumeProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be resumed. Format:
|
names |
List<String>Required. The resource names of the Proposals to resume. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchResumeProposalsResponse |
|
batchResumeProposalsCallable()
public final UnaryCallable<BatchResumeProposalsRequest,BatchResumeProposalsResponse> batchResumeProposalsCallable()Resumes Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchResumeProposalsRequest request =
BatchResumeProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchResumeProposalsResponse> future =
proposalServiceClient.batchResumeProposalsCallable().futureCall(request);
// Do something.
BatchResumeProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchResumeProposalsRequest,BatchResumeProposalsResponse> |
|
batchTerminateProposals(@Nullable NetworkName parent, List<String> names)
public final BatchTerminateProposalsResponse batchTerminateProposals(@Nullable NetworkName parent, List<String> names)Terminates negotiation on Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchTerminateProposalsResponse response =
proposalServiceClient.batchTerminateProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be terminated. Format:
|
names |
List<String>Required. The resource names of the Proposals to terminate. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchTerminateProposalsResponse |
|
batchTerminateProposals(BatchTerminateProposalsRequest request)
public final BatchTerminateProposalsResponse batchTerminateProposals(BatchTerminateProposalsRequest request)Terminates negotiation on Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchTerminateProposalsRequest request =
BatchTerminateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchTerminateProposalsResponse response =
proposalServiceClient.batchTerminateProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchTerminateProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchTerminateProposalsResponse |
|
batchTerminateProposals(String parent, List<String> names)
public final BatchTerminateProposalsResponse batchTerminateProposals(String parent, List<String> names)Terminates negotiation on Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchTerminateProposalsResponse response =
proposalServiceClient.batchTerminateProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be terminated. Format:
|
names |
List<String>Required. The resource names of the Proposals to terminate. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchTerminateProposalsResponse |
|
batchTerminateProposalsCallable()
public final UnaryCallable<BatchTerminateProposalsRequest,BatchTerminateProposalsResponse> batchTerminateProposalsCallable()Terminates negotiation on Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchTerminateProposalsRequest request =
BatchTerminateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchTerminateProposalsResponse> future =
proposalServiceClient.batchTerminateProposalsCallable().futureCall(request);
// Do something.
BatchTerminateProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchTerminateProposalsRequest,BatchTerminateProposalsResponse> |
|
batchUnarchiveProposals(@Nullable NetworkName parent, List<String> names)
public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(@Nullable NetworkName parent, List<String> names)Unarchives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchUnarchiveProposalsResponse response =
proposalServiceClient.batchUnarchiveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where proposals will be unarchived. Format:
|
names |
List<String>Required. The resource names of the Proposals to unarchive. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchUnarchiveProposalsResponse |
|
batchUnarchiveProposals(BatchUnarchiveProposalsRequest request)
public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(BatchUnarchiveProposalsRequest request)Unarchives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchUnarchiveProposalsRequest request =
BatchUnarchiveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchUnarchiveProposalsResponse response =
proposalServiceClient.batchUnarchiveProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchUnarchiveProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchUnarchiveProposalsResponse |
|
batchUnarchiveProposals(String parent, List<String> names)
public final BatchUnarchiveProposalsResponse batchUnarchiveProposals(String parent, List<String> names)Unarchives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchUnarchiveProposalsResponse response =
proposalServiceClient.batchUnarchiveProposals(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where proposals will be unarchived. Format:
|
names |
List<String>Required. The resource names of the Proposals to unarchive. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchUnarchiveProposalsResponse |
|
batchUnarchiveProposalsCallable()
public final UnaryCallable<BatchUnarchiveProposalsRequest,BatchUnarchiveProposalsResponse> batchUnarchiveProposalsCallable()Unarchives Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchUnarchiveProposalsRequest request =
BatchUnarchiveProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchUnarchiveProposalsResponse> future =
proposalServiceClient.batchUnarchiveProposalsCallable().futureCall(request);
// Do something.
BatchUnarchiveProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchUnarchiveProposalsRequest,BatchUnarchiveProposalsResponse> |
|
batchUpdateProposals(@Nullable NetworkName parent, List<UpdateProposalRequest> requests)
public final BatchUpdateProposalsResponse batchUpdateProposals(@Nullable NetworkName parent, List<UpdateProposalRequest> requests)Batch updates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<UpdateProposalRequest> requests = new ArrayList<>();
BatchUpdateProposalsResponse response =
proposalServiceClient.batchUpdateProposals(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where |
requests |
List<UpdateProposalRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateProposalsResponse |
|
batchUpdateProposals(BatchUpdateProposalsRequest request)
public final BatchUpdateProposalsResponse batchUpdateProposals(BatchUpdateProposalsRequest request)Batch updates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchUpdateProposalsRequest request =
BatchUpdateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<UpdateProposalRequest>())
.build();
BatchUpdateProposalsResponse response = proposalServiceClient.batchUpdateProposals(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchUpdateProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateProposalsResponse |
|
batchUpdateProposals(String parent, List<UpdateProposalRequest> requests)
public final BatchUpdateProposalsResponse batchUpdateProposals(String parent, List<UpdateProposalRequest> requests)Batch updates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<UpdateProposalRequest> requests = new ArrayList<>();
BatchUpdateProposalsResponse response =
proposalServiceClient.batchUpdateProposals(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where |
requests |
List<UpdateProposalRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateProposalsResponse |
|
batchUpdateProposalsCallable()
public final UnaryCallable<BatchUpdateProposalsRequest,BatchUpdateProposalsResponse> batchUpdateProposalsCallable()Batch updates Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
BatchUpdateProposalsRequest request =
BatchUpdateProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<UpdateProposalRequest>())
.build();
ApiFuture<BatchUpdateProposalsResponse> future =
proposalServiceClient.batchUpdateProposalsCallable().futureCall(request);
// Do something.
BatchUpdateProposalsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchUpdateProposalsRequest,BatchUpdateProposalsResponse> |
|
close()
public final void close()createProposal(@Nullable NetworkName parent, Proposal proposal)
public final Proposal createProposal(@Nullable NetworkName parent, Proposal proposal)Creates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
Proposal proposal = Proposal.newBuilder().build();
Proposal response = proposalServiceClient.createProposal(parent, proposal);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where this |
proposal |
ProposalRequired. The |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
createProposal(CreateProposalRequest request)
public final Proposal createProposal(CreateProposalRequest request)Creates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
CreateProposalRequest request =
CreateProposalRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setProposal(Proposal.newBuilder().build())
.build();
Proposal response = proposalServiceClient.createProposal(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateProposalRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
createProposal(String parent, Proposal proposal)
public final Proposal createProposal(String parent, Proposal proposal)Creates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
Proposal proposal = Proposal.newBuilder().build();
Proposal response = proposalServiceClient.createProposal(parent, proposal);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this |
proposal |
ProposalRequired. The |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
createProposalCallable()
public final UnaryCallable<CreateProposalRequest,Proposal> createProposalCallable()Creates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
CreateProposalRequest request =
CreateProposalRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setProposal(Proposal.newBuilder().build())
.build();
ApiFuture<Proposal> future =
proposalServiceClient.createProposalCallable().futureCall(request);
// Do something.
Proposal response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateProposalRequest,Proposal> |
|
fetchMarketplaceComments(@Nullable NetworkName parent, List<String> names)
public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(@Nullable NetworkName parent, List<String> names)Fetches MarketplaceComments made on Proposals.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
for (MarketplaceComment element :
proposalServiceClient.fetchMarketplaceComments(parent, names).iterateAll()) {
// doThingsWith(element);
}
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where MarketplaceComments will be fetched from.
Format: |
names |
List<String>Required. The resource names of the Proposals for which to fetch marketplace
comments. A maximum of 50 proposal names can be specified. Format:
|
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse |
|
fetchMarketplaceComments(FetchMarketplaceCommentsRequest request)
public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(FetchMarketplaceCommentsRequest request)Fetches MarketplaceComments made on Proposals.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
FetchMarketplaceCommentsRequest request =
FetchMarketplaceCommentsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setSkip(3532159)
.build();
for (MarketplaceComment element :
proposalServiceClient.fetchMarketplaceComments(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
FetchMarketplaceCommentsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse |
|
fetchMarketplaceComments(String parent, List<String> names)
public final ProposalServiceClient.FetchMarketplaceCommentsPagedResponse fetchMarketplaceComments(String parent, List<String> names)Fetches MarketplaceComments made on Proposals.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
for (MarketplaceComment element :
proposalServiceClient.fetchMarketplaceComments(parent, names).iterateAll()) {
// doThingsWith(element);
}
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where MarketplaceComments will be fetched from.
Format: |
names |
List<String>Required. The resource names of the Proposals for which to fetch marketplace
comments. A maximum of 50 proposal names can be specified. Format:
|
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.FetchMarketplaceCommentsPagedResponse |
|
fetchMarketplaceCommentsCallable()
public final UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsResponse> fetchMarketplaceCommentsCallable()Fetches MarketplaceComments made on Proposals.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
FetchMarketplaceCommentsRequest request =
FetchMarketplaceCommentsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setSkip(3532159)
.build();
while (true) {
FetchMarketplaceCommentsResponse response =
proposalServiceClient.fetchMarketplaceCommentsCallable().call(request);
for (MarketplaceComment element : response.getMarketplaceCommentsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsResponse> |
|
fetchMarketplaceCommentsPagedCallable()
public final UnaryCallable<FetchMarketplaceCommentsRequest,ProposalServiceClient.FetchMarketplaceCommentsPagedResponse> fetchMarketplaceCommentsPagedCallable()Fetches MarketplaceComments made on Proposals.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
FetchMarketplaceCommentsRequest request =
FetchMarketplaceCommentsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setSkip(3532159)
.build();
ApiFuture<MarketplaceComment> future =
proposalServiceClient.fetchMarketplaceCommentsPagedCallable().futureCall(request);
// Do something.
for (MarketplaceComment element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<FetchMarketplaceCommentsRequest,FetchMarketplaceCommentsPagedResponse> |
|
getProposal(@Nullable ProposalName name)
public final Proposal getProposal(@Nullable ProposalName name)Retrieves a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
ProposalName name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]");
Proposal response = proposalServiceClient.getProposal(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.ProposalNameRequired. The resource name of the Proposal. Format:
|
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
getProposal(GetProposalRequest request)
public final Proposal getProposal(GetProposalRequest request)Retrieves a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
GetProposalRequest request =
GetProposalRequest.newBuilder()
.setName(ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString())
.build();
Proposal response = proposalServiceClient.getProposal(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetProposalRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
getProposal(String name)
public final Proposal getProposal(String name)Retrieves a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String name = ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString();
Proposal response = proposalServiceClient.getProposal(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the Proposal. Format:
|
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
getProposalCallable()
public final UnaryCallable<GetProposalRequest,Proposal> getProposalCallable()Retrieves a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
GetProposalRequest request =
GetProposalRequest.newBuilder()
.setName(ProposalName.of("[NETWORK_CODE]", "[PROPOSAL]").toString())
.build();
ApiFuture<Proposal> future = proposalServiceClient.getProposalCallable().futureCall(request);
// Do something.
Proposal response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetProposalRequest,Proposal> |
|
getSettings()
public final @Nullable ProposalServiceSettings getSettings()| Returns | |
|---|---|
| Type | Description |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.ProposalServiceSettings |
|
getStub()
public ProposalServiceStub getStub()| Returns | |
|---|---|
| Type | Description |
ProposalServiceStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listProposals(@Nullable NetworkName parent)
public final ProposalServiceClient.ListProposalsPagedResponse listProposals(@Nullable NetworkName parent)Lists Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
for (Proposal element : proposalServiceClient.listProposals(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent, which owns this collection of Proposals. Format:
|
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.ListProposalsPagedResponse |
|
listProposals(ListProposalsRequest request)
public final ProposalServiceClient.ListProposalsPagedResponse listProposals(ListProposalsRequest request)Lists Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
ListProposalsRequest request =
ListProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
for (Proposal element : proposalServiceClient.listProposals(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListProposalsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.ListProposalsPagedResponse |
|
listProposals(String parent)
public final ProposalServiceClient.ListProposalsPagedResponse listProposals(String parent)Lists Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
for (Proposal element : proposalServiceClient.listProposals(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of Proposals. Format:
|
| Returns | |
|---|---|
| Type | Description |
ProposalServiceClient.ListProposalsPagedResponse |
|
listProposalsCallable()
public final UnaryCallable<ListProposalsRequest,ListProposalsResponse> listProposalsCallable()Lists Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
ListProposalsRequest request =
ListProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
while (true) {
ListProposalsResponse response =
proposalServiceClient.listProposalsCallable().call(request);
for (Proposal element : response.getProposalsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListProposalsRequest,ListProposalsResponse> |
|
listProposalsPagedCallable()
public final UnaryCallable<ListProposalsRequest,ProposalServiceClient.ListProposalsPagedResponse> listProposalsPagedCallable()Lists Proposal objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
ListProposalsRequest request =
ListProposalsRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
ApiFuture<Proposal> future =
proposalServiceClient.listProposalsPagedCallable().futureCall(request);
// Do something.
for (Proposal element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListProposalsRequest,ListProposalsPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateProposal(Proposal proposal, FieldMask updateMask)
public final Proposal updateProposal(Proposal proposal, FieldMask updateMask)Updates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
Proposal proposal = Proposal.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Proposal response = proposalServiceClient.updateProposal(proposal, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
proposal |
ProposalRequired. The The |
updateMask |
FieldMaskOptional. The list of fields to update. |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
updateProposal(UpdateProposalRequest request)
public final Proposal updateProposal(UpdateProposalRequest request)Updates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
UpdateProposalRequest request =
UpdateProposalRequest.newBuilder()
.setProposal(Proposal.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Proposal response = proposalServiceClient.updateProposal(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateProposalRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
Proposal |
|
updateProposalCallable()
public final UnaryCallable<UpdateProposalRequest,Proposal> updateProposalCallable()Updates a Proposal object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ProposalServiceClient proposalServiceClient = ProposalServiceClient.create()) {
UpdateProposalRequest request =
UpdateProposalRequest.newBuilder()
.setProposal(Proposal.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Proposal> future =
proposalServiceClient.updateProposalCallable().futureCall(request);
// Do something.
Proposal response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateProposalRequest,Proposal> |
|