public class ProductPartitionNode extends Object
ProductPartition
s. Used to construct AdGroupCriterion
objects
for shopping campaigns.Modifier and Type | Method and Description |
---|---|
ProductPartitionNode |
addChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension childDimension)
Adds a NEW child for
childDimension under this node. |
ProductPartitionNode |
asBiddableUnit()
Removes all children from this node and modifies this node to be a UNIT node that is biddable.
|
ProductPartitionNode |
asExcludedUnit()
Removes all children from this node and modifies this node to be a UNIT node excluded from
bidding.
|
ProductPartitionNode |
asSubdivision()
Modifies this node to be a SUBDIVISION node.
|
Long |
getBid()
Returns the bid (in micros) for this node, or null if
isExcludedUnit() . |
ProductPartitionNode |
getChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
Returns the child node with the specified ProductDimension.
|
Iterable<ProductPartitionNode> |
getChildren()
Returns an Iterable of a shallow copy of all children of this node.
|
com.google.api.ads.adwords.axis.v201502.cm.ProductDimension |
getDimension()
Returns a copy of this node's
ProductDimension . |
ProductPartitionNode |
getParent()
Returns the parent node of this node.
|
Long |
getProductPartitionId()
Returns the product partition ID of this node.
|
boolean |
hasChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
Returns true if this node has a child with the specified dimension.
|
boolean |
isBiddableUnit()
Returns true if this node's partition type is UNIT and is biddable (not excluded).
|
boolean |
isExcludedUnit()
Returns true if this node's partition type is UNIT and is excluded (not biddable).
|
boolean |
isSubdivision()
Returns true if this node's partition type is SUBDIVISION.
|
boolean |
isUnit()
Returns true if this node's partition type is UNIT.
|
ProductPartitionNode |
removeAllChildren()
Removes all children of this node.
|
ProductPartitionNode |
removeChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension childDimension)
Removes the child with the specified dimension.
|
ProductPartitionNode |
setBid(Long bidInMicros)
Sets the bid for this node.
|
String |
toDetailedString()
Returns a String representation of this node and all of its children.
|
String |
toString()
Returns a simple String representation of this node.
|
static String |
toString(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
Convenience method for producing a meaningful String representation of a
ProductDimension . |
public com.google.api.ads.adwords.axis.v201502.cm.ProductDimension getDimension()
ProductDimension
.@Nullable public Long getProductPartitionId()
public boolean isSubdivision()
public boolean isUnit()
public ProductPartitionNode asSubdivision()
public Iterable<ProductPartitionNode> getChildren()
public ProductPartitionNode getChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
IllegalArgumentException
- if no such direct child node exists.public boolean hasChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
dimension
- required - the child dimension@Nullable public Long getBid()
isExcludedUnit()
.public boolean isBiddableUnit()
public boolean isExcludedUnit()
public String toString()
public String toDetailedString()
public static String toString(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension dimension)
ProductDimension
.public ProductPartitionNode getParent()
null
if this is the
root node.public ProductPartitionNode addChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension childDimension)
childDimension
under this node.childDimension
- required - the ProductDimension
for the new childpublic ProductPartitionNode removeChild(com.google.api.ads.adwords.axis.v201502.cm.ProductDimension childDimension)
childDimension
- required - the child dimensionIllegalArgumentException
- if no such child existspublic ProductPartitionNode removeAllChildren()
public ProductPartitionNode asExcludedUnit()
IllegalStateException
- if this node is the root nodepublic ProductPartitionNode asBiddableUnit()
public ProductPartitionNode setBid(@Nullable Long bidInMicros)
bidInMicros
- a null or positive longIllegalArgumentException
- if bidInMicros < 0L
IllegalStateException
- if this node is not a biddable UNIT nodeCopyright © 2015. All Rights Reserved.