public class ProductPartitionTree extends Object implements ProductPartitionTreeInterface<ProductPartitionNode,com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation>
ProductPartitionNode
that also handles
applying changes made to the tree under the root.Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableList<AdGroupCriterionField> |
REQUIRED_SELECTOR_FIELD_ENUMS
Required fields for any
Selector used to fetch AdGroupCriterion objects used by
an instance of this class. |
static com.google.common.collect.ImmutableList<String> |
REQUIRED_SELECTOR_FIELDS
Deprecated.
Use the
REQUIRED_SELECTOR_FIELD_ENUMS instead. |
Modifier and Type | Method and Description |
---|---|
static ProductPartitionTree |
createAdGroupTree(AdWordsServicesInterface services,
AdWordsSession session,
Long adGroupId)
Returns a new instance of this class by retrieving the product partitions of the
specified ad group.
|
static ProductPartitionTree |
createAdGroupTree(Long adGroupId,
com.google.api.ads.adwords.axis.v201809.cm.BiddingStrategyConfiguration biddingStrategyConfig,
List<com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterion> adGroupCriteria)
Returns a new instance of this class based on the collection of ad group criteria provided.
|
Long |
getAdGroupId()
Returns the ID of the ad group for this tree.
|
List<com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation> |
getMutateOperations()
Returns the
AdGroupCriterionOperation s that will apply the changes made to this tree. |
ProductPartitionNode |
getRoot()
Returns the root node of this tree.
|
String |
toString() |
public static final com.google.common.collect.ImmutableList<AdGroupCriterionField> REQUIRED_SELECTOR_FIELD_ENUMS
Selector
used to fetch AdGroupCriterion
objects used by
an instance of this class.@Deprecated public static final com.google.common.collect.ImmutableList<String> REQUIRED_SELECTOR_FIELDS
REQUIRED_SELECTOR_FIELD_ENUMS
instead.Selector
used to fetch AdGroupCriterion
objects used by
an instance of this class.public static ProductPartitionTree createAdGroupTree(AdWordsServicesInterface services, AdWordsSession session, Long adGroupId) throws com.google.api.ads.adwords.axis.v201809.cm.ApiException, RemoteException
com.google.api.ads.adwords.axis.v201809.cm.ApiException
RemoteException
public static ProductPartitionTree createAdGroupTree(Long adGroupId, com.google.api.ads.adwords.axis.v201809.cm.BiddingStrategyConfiguration biddingStrategyConfig, List<com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterion> adGroupCriteria)
NOTE: If retrieving existing criteria for use with this method, you must include all of the
fields in REQUIRED_SELECTOR_FIELD_ENUMS
in your Selector
.
adGroupId
- the ID of the ad groupbiddingStrategyConfig
- the BiddingStrategyConfiguration
for the ad groupadGroupCriteria
- the non-null (but possibly empty) list of ad group criteriaNullPointerException
- if any argument is null, any element in adGroupCriteria
is
null, or any required field from REQUIRED_SELECTOR_FIELD_ENUMS
is missing from an
element in adGroupCriteria
IllegalArgumentException
- if adGroupCriteria
does not include the root criterion
of the product partition treepublic Long getAdGroupId()
ProductPartitionTreeInterface
getAdGroupId
in interface ProductPartitionTreeInterface<ProductPartitionNode,com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation>
public ProductPartitionNode getRoot()
ProductPartitionTreeInterface
getRoot
in interface ProductPartitionTreeInterface<ProductPartitionNode,com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation>
public List<com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation> getMutateOperations()
ProductPartitionTreeInterface
AdGroupCriterionOperation
s that will apply the changes made to this tree.getMutateOperations
in interface ProductPartitionTreeInterface<ProductPartitionNode,com.google.api.ads.adwords.axis.v201809.cm.AdGroupCriterionOperation>
Copyright © 2019. All Rights Reserved.