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..

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/bb014754-34de-45cb-ace8-2d1d5958f73co%40googlegroups.com.

Reply via email to