public interface AdGroupAdServiceInterface
Ad type and
are shown in the AdGroupAd.ad documentation. Here are some of the commonly
used ad types:
| Modifier and Type | Method and Description |
|---|---|
AdGroupAdPage |
get(Selector serviceSelector)
Returns a list of AdGroupAds.
|
AdGroupAdReturnValue |
mutate(List<AdGroupAdOperation> operations)
Applies the list of mutate operations (ie.
|
AdGroupAdLabelReturnValue |
mutateLabel(List<AdGroupAdLabelOperation> operations)
Adds labels to the AdGroupAd or removes labels from the AdGroupAd.
|
AdGroupAdPage |
query(String query)
Returns a list of AdGroupAds based on the query.
|
@RequestWrapper(localName="get", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfaceget") @ResponseWrapper(localName="getResponse", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacegetResponse") AdGroupAdPage get(Selector serviceSelector) throws ApiException_Exception
serviceSelector - The selector specifying the AdGroupAds to return.serviceSelector - ApiException - when there is at least one error with the request.ApiException_Exception@RequestWrapper(localName="mutate", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacemutate") @ResponseWrapper(localName="mutateResponse", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacemutateResponse") AdGroupAdReturnValue mutate(List<AdGroupAdOperation> operations) throws ApiException_Exception
Add - Creates a new ad group ad. The
adGroupId must
reference an existing ad group. The child Ad must be sufficiently
specified by constructing a concrete ad type (such as TextAd)
and setting its fields accordingly.
Set - Updates an ad group ad. Except for status,
ad group ad fields are not mutable. Status updates are
straightforward - the status of the ad group ad is updated as
specified. If any other field has changed, it will be ignored. If
you want to change any of the fields other than status, you must
make a new ad and then remove the old one.
Remove - Removes the link between the specified AdGroup and Ad.
operations - The operations to apply.operations - ApiException_Exception@RequestWrapper(localName="mutateLabel", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacemutateLabel") @ResponseWrapper(localName="mutateLabelResponse", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacemutateLabelResponse") AdGroupAdLabelReturnValue mutateLabel(List<AdGroupAdLabelOperation> operations) throws ApiException_Exception
Add - Apply an existing label to an existing ad group ad. The
adGroupId and adId must reference an existing
ad group ad. The labelId must reference an existing
label.
Remove - Removes the link between the specified ad group ad and label.
operations - The operations to apply.operations - ApiException - when there are one or more errors with the request.ApiException_Exception@RequestWrapper(localName="query", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacequery") @ResponseWrapper(localName="queryResponse", targetNamespace="https://adwords.google.com/api/adwords/cm/v201809", className="com.google.api.ads.adwords.jaxws.v201809.cm.AdGroupAdServiceInterfacequeryResponse") AdGroupAdPage query(String query) throws ApiException_Exception
query - The SQL-like AWQL query string.query - ApiException - if problems occur while parsing the query or fetching AdGroupAds.ApiException_ExceptionCopyright © 2023. All rights reserved.