PHP 클래스 ProductPartitionHelper, googleads-php-lib

파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 메소드들

메소드 설명
__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