PHP Class ProductPartition, googleads-php-lib

Inner nodes of a product partition hierarchy are always subdivisions. Each child is linked to the subdivision via the {@code parentCriterionId} and defines a {@code caseValue}. For all children of the same subdivision, the {@code caseValue}s must be mutually different but instances of the same class. To create a subdivision and child node in the same API request, they should refer to each other using temporary criterion IDs in the {@code parentCriterionId} of the child, and ID field of the subdivision. Temporary IDs are specified by using any negative integer. Temporary IDs only exist within the scope of a single API request. The API will assign real criterion IDs, and replace the temporary values, and the API response will reflect this. This is disabled for AdX when it is contained within Operators: ADD, SET.

Inheritance: extends Criterion
Show file Open project: googleads/googleads-php-lib

Public Properties

Property Type Description
$caseValue ProductDimension
$parentCriterionId integer
$partitionType tnsProductPartitionType

Public Methods

Method Description
__construct ( $partitionType = null, $parentCriterionId = null, $caseValue = null, $id = null, $type = null, $CriterionType = null )
getNamespace ( ) : string Gets the namesapce of this class
getXsiTypeName ( ) : string Gets the xsi:type name of this class

Method Details

__construct() public method

public __construct ( $partitionType = null, $parentCriterionId = null, $caseValue = null, $id = null, $type = null, $CriterionType = null )

getNamespace() public method

Gets the namesapce of this class
public getNamespace ( ) : string
return string the namespace of this class

getXsiTypeName() public method

Gets the xsi:type name of this class
public getXsiTypeName ( ) : string
return string the xsi:type name of this class

Property Details

$caseValue public property

public ProductDimension $caseValue
return ProductDimension

$parentCriterionId public property

public int $parentCriterionId
return integer

$partitionType public property

public tnsProductPartitionType $partitionType
return tnsProductPartitionType