Метод | Описание | |
---|---|---|
__construct ( integer $adGroupId ) | Constructor | |
createSubdivision ( ProductPartition $parent = null, ProductDimension $value = null ) : ProductPartition | Creates a subdivision node | |
createUnit ( ProductPartition $parent = null, ProductDimension $value = null, integer $bid_amount = null ) : ProductPartition | Creates a unit node. | |
getOperations ( ) : array | Returns the set of mutate operations needed to create the current tree. |
Метод | Описание | |
---|---|---|
createAddOperation ( AdGroupCriterion $criterion ) | Creates an AdGroupCriterionOperation for the given criterion |
public __construct ( integer $adGroupId ) | ||
$adGroupId | integer | The ID of the AdGroup that we wish to attach the partition tree to. |
public createSubdivision ( ProductPartition $parent = null, ProductDimension $value = null ) : ProductPartition | ||
$parent | ProductPartition | The node that should be this node's parent |
$value | ProductDimension | The value being partitioned on |
Результат | ProductPartition | A new subdivision node |
public createUnit ( ProductPartition $parent = null, ProductDimension $value = null, integer $bid_amount = null ) : ProductPartition | ||
$parent | ProductPartition | The node that should be this node's parent |
$value | ProductDimension | The value being partitioned on |
$bid_amount | integer | The amount to bid for matching products, in micros |
Результат | ProductPartition | A new unit node |
public getOperations ( ) : array | ||
Результат | array | The set of operations |