PHP Класс ProductPartitionHelper, googleads-php-lib

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

Constructor
public __construct ( integer $adGroupId )
$adGroupId integer The ID of the AdGroup that we wish to attach the partition tree to.

createSubdivision() публичный Метод

Creates a subdivision node
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

createUnit() публичный Метод

Creates a unit 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

getOperations() публичный Метод

Returns the set of mutate operations needed to create the current tree.
public getOperations ( ) : array
Результат array The set of operations