Where are using php's adwords api in order to create and manage campaigns.

We can add some placements, 

foreach ($adGroupAdwordsIds as $adGroupAdwordsId) {
    // Placements
    $placement = new Placement();
    $placement->setUrl($url);
    $criteria[] = $placement;

    $placementCriterion = new BiddableAdGroupCriterion();
    $placementCriterion->setAdGroupId($adGroupAdwordsId);
    $placementCriterion->setCriterion($placement);

    // Create an ad group criterion operation and add it to the list.
    $placementCriterionOperation = new AdGroupCriterionOperation();
    $placementCriterionOperation->setOperand($placementCriterion);
    $placementCriterionOperation->setOperator(Operator::ADD);
    $operations[] = $placementCriterionOperation;
}
$aux = $adGroupService->mutate($operations); // ->getValue[0];


But when we check the Adwords account we see that the placements have been 
inserted as "observations" instead of "targets" so the campaign is not well 
segmeneted.

[image: Captura.PNG]


How can we achive this and  add those placements as "targets"?


Thanks.

Regards





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/45553680-dc5e-4bfd-a365-9a6e14618baf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to