Ads API .NET library
|
A node in a tree of ProductPartitions. Used to construct AdGroupCriterion objects for shopping campaigns. More...
Public Member Functions | |
ProductPartitionNode (ProductPartitionNode parentNode, ProductDimension dimension) | |
Initializes a new instance of the ProductPartitionNode class. More... | |
ProductPartitionNode (ProductPartitionNode parentNode, ProductDimension dimension, long productPartitionId) | |
Initializes a new instance of the ProductPartitionNode class. More... | |
ProductPartitionNode (ProductPartitionNode parentNode, ProductDimension dimension, long productPartitionId, IEqualityComparer< ProductDimension > comparer) | |
Initializes a new instance of the ProductPartitionNode class. More... | |
ProductPartitionNode | AsSubdivision () |
Modifies this node to be a SUBDIVISION node. More... | |
ProductPartitionNode | GetChild (ProductDimension dimension) |
Returns the child node with the specified ProductDimension. More... | |
bool | HasChild (ProductDimension dimension) |
Determines whether this node has a child with the specified dimension. More... | |
ProductPartitionNode | AddChild (ProductDimension childDimension) |
Adds a NEW child for More... | |
ProductPartitionNode | AddChild (ProductPartitionNode childNode) |
Adds the childNode as a child under this node. More... | |
ProductPartitionNode | RemoveChild (ProductPartitionNode childNode) |
Removes a child node that has matching dimension with the child node. More... | |
ProductPartitionNode | RemoveChild (ProductDimension childDimension) |
Removes the child with the specified dimension. More... | |
ProductPartitionNode | RemoveAllChildren () |
Removes all children of this node. More... | |
ProductPartitionNode | AsExcludedUnit () |
Removes all children from this node and modifies this node to be a UNIT node excluded from bidding. More... | |
ProductPartitionNode | AsBiddableUnit () |
Removes all children from this node and modifies this node to be a UNIT node that is biddable. More... | |
override string | ToString () |
Returns a System.String that represents this instance. More... | |
Static Public Member Functions | |
static ProductPartitionNode | CopyProperties (ProductPartitionNode fromNode, ProductPartitionNode toNode) |
Performs a shallow copy of properties from fromNode to toNode . More... | |
Properties | |
long | ProductPartitionId [get, set] |
Gets or sets the product partition ID. More... | |
ProductDimension | Dimension [get] |
Gets the product dimension. More... | |
bool | IsSubdivision [get] |
Returns true if this node's partition type is SUBDIVISION, false otherwise. More... | |
bool | IsUnit [get] |
Returns true if this node's partition type is UNIT, false otherwise. More... | |
IEnumerable< ProductPartitionNode > | Children [get] |
Gets all the children of this node. More... | |
ProductPartitionNode | Parent [get] |
Returns the parent node of this node. The returned node will be More... | |
bool | IsBiddableUnit [get] |
Returns true if this node's partition type is UNIT and is biddable (not excluded), false otherwise. More... | |
bool | IsExcludedUnit [get] |
Returns true if this node's partition type is UNIT and is excluded (not biddable), false otherwise. More... | |
long | CpcBid [get, set] |
Gets or sets the bid. More... | |
bool | CpcBidSpecified [get, set] |
Gets or sets a value indicating whether bid is specified. More... | |
A node in a tree of ProductPartitions. Used to construct AdGroupCriterion objects for shopping campaigns.
|
inline |
Initializes a new instance of the ProductPartitionNode class.
parentNode | The parent node. |
dimension | The product dimension that this node wraps. |
|
inline |
Initializes a new instance of the ProductPartitionNode class.
parentNode | The parent node. |
dimension | The product dimension that this node wraps. |
productPartitionId | The product partition ID. |
|
inline |
Initializes a new instance of the ProductPartitionNode class.
parentNode | The parent node. |
dimension | The product dimension that this node wraps. |
productPartitionId | The product partition ID. |
comparer | The comparer for comparing instances of this product dimension. |
|
inline |
Adds a NEW child for
childDimension
under this node.
childDimension | The ProductDimension for the new child |
|
inline |
Adds the childNode as a child under this node.
childNode | The child node. |
System.ArgumentException | if the parent node already contains the child node's dimension. |
References Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.Dimension.
|
inline |
Removes all children from this node and modifies this node to be a UNIT node that is biddable.
|
inline |
Removes all children from this node and modifies this node to be a UNIT node excluded from bidding.
|
inline |
Modifies this node to be a SUBDIVISION node.
|
inlinestatic |
Performs a shallow copy of properties from fromNode to toNode .
fromNode | The node to copy from. |
toNode | The node to copy to. |
Does not change the parent node of toNode .
References Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.CpcBidSpecified.
|
inline |
Returns the child node with the specified ProductDimension.
dimension | The product dimension. |
|
inline |
Determines whether this node has a child with the specified dimension.
dimension | The child dimension. |
|
inline |
Removes all children of this node.
|
inline |
Removes a child node that has matching dimension with the child node.
childNode | The child node. |
References Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.Dimension.
|
inline |
Removes the child with the specified dimension.
childDimension | The child dimension. |
|
inline |
Returns a System.String that represents this instance.
|
get |
Gets all the children of this node.
|
getset |
Gets or sets the bid.
|
getset |
Gets or sets a value indicating whether bid is specified.
Referenced by Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.CopyProperties().
|
get |
Gets the product dimension.
Referenced by Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.AddChild(), and Google.Api.Ads.AdWords.Util.Shopping.v201809.ProductPartitionNode.RemoveChild().
|
get |
Returns true if this node's partition type is UNIT and is biddable (not excluded), false otherwise.
|
get |
Returns true if this node's partition type is UNIT and is excluded (not biddable), false otherwise.
|
get |
Returns true if this node's partition type is SUBDIVISION, false otherwise.
|
get |
Returns true if this node's partition type is UNIT, false otherwise.
|
get |
Returns the parent node of this node. The returned node will be
null
if this is the root node.
|
getset |
Gets or sets the product partition ID.