Hello all,
I'm using v201809 adwords API / PHP and get all Criteria through the CampaignCriterionService.
I can see all placement criteria (the ID's) but i am not able to see the url of a Placement CriterionType..
Snippet:
if (CriterionType::KEYWORD === $campaignCriterion->getCriterion()->getType()) {
$keyword = $campaignCriterion->getCriterion();
printf(
"Negative keyword with ID %d and text '%s' was found.\n",
$keyword->getId(),
$keyword->getText()
);
} elseif (CriterionType::PLACEMENT === $campaignCriterion->getCriterion()->getType()) {
$placement = $campaignCriterion->getCriterion();
printf(
"Negative placement with ID %d and URL '%s' was found.\n",
$placement->getId(),
$placement->getUrl()
);
} else {
$criterion = $campaignCriterion->getCriterion();
printf(
"Criterion with ID %d was found with type %s.\n",
$criterion->getId(),
$criterion->getType()
);
}
The $placement->getUrl() always is empty...
Thanks for any help..