Hia,

We are trying to add some Placements when creating a campaign via Php Api.

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];



The placements are added but as "observations" instead  of "segmentation"


[image: Captura.PNG]


How can we get these placements added as real segmentation "targets" ?


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/baca2ecd-4bc0-465d-ae91-472feb1c2b1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... carlos . salvador
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to