public class ProductPartitionTree extends Object
ProductPartitionNode
that also handles
applying changes made to the tree under the root.Modifier and Type | Field and Description |
---|---|
static List<AdGroupCriterionField> |
REQUIRED_SELECTOR_FIELD_ENUMS
Required fields for any
Selector used to fetch AdGroupCriterion objects used by
an instance of this class. |
static List<String> |
REQUIRED_SELECTOR_FIELDS
Deprecated.
Use the
REQUIRED_SELECTOR_FIELD_ENUMS instead. |
Modifier and Type | Method and Description |
---|---|
static ProductPartitionTree |
createAdGroupTree(AdWordsServices 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.v201409.cm.BiddingStrategyConfiguration biddingStrategyConfig,
List<com.google.api.ads.adwords.axis.v201409.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.v201409.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 List<AdGroupCriterionField> REQUIRED_SELECTOR_FIELD_ENUMS
Selector
used to fetch AdGroupCriterion
objects used by
an instance of this class.@Deprecated public static final List<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(AdWordsServices services, AdWordsSession session, Long adGroupId) throws com.google.api.ads.adwords.axis.v201409.cm.ApiException, RemoteException
com.google.api.ads.adwords.axis.v201409.cm.ApiException
RemoteException
public static ProductPartitionTree createAdGroupTree(Long adGroupId, com.google.api.ads.adwords.axis.v201409.cm.BiddingStrategyConfiguration biddingStrategyConfig, List<com.google.api.ads.adwords.axis.v201409.cm.AdGroupCriterion> adGroupCriteria)
NOTE: If retrieving existing criteria for use with this method, you must include all of the
fields in REQUIRED_SELECTOR_FIELDS
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_FIELDS
is missing from an
element in adGroupCriteria
IllegalArgumentException
- if adGroupCriteria
does not include the root criterion
of the product partition treepublic Long getAdGroupId()
public ProductPartitionNode getRoot()
public List<com.google.api.ads.adwords.axis.v201409.cm.AdGroupCriterionOperation> getMutateOperations()
AdGroupCriterionOperation
s that will apply the changes made to this tree.Copyright © 2015. All Rights Reserved.