Hi,
Please see my earlier reply from June 9th
<https://groups.google.com/d/msg/adwords-api/P6DYn6N3XTU/URoOTS5xGIUJ> --
when removing the tree your mutate operations should just contain a *single*
REMOVE
operation where the *operand* is the *root* of the current ProductPartition
tree. You could achieve this in your code by only capturing the criterion
ID of the ProductPartition with a null parentCriterionId
<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.ProductPartition#parentCriterionId>
(in
other words, the root node).
for($varPPCount=0;$varPPCount<$varProductPartitionCount;$varPPCount++)
{
* // Only do the next line if
$result->entries[$varPPCount]->criterion->parentCriterionId is null*
$arrCriterionIds[] = $result->entries[$varPPCount]->criterion->id;
}
Cheers,
Josh, AdWords API Team
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.