I have a question about SelectiveOptimization.
I coded as below and communicated with API, but there was an error.

$campaignService = $adWordsServices->get($session, CampaignService:::class);
$operations = [];
$campaign = new Campaign();
$campaign->setId ($campaignId);

for($i=0;$i<count($rows->selectiveOptimizationCheck);$i++){
     $selectiveOptimizationCheck[$i] = 
$rows->selectiveOptimizationCheck[$i];
}
$selectiveOptimization = new SelectiveOptimization();
$selectiveOptimization->setConversionTypeIds ($selectiveOptimizationCheck);
$selectiveOptimization->setConversionTypeIdsOps(null);
$campaign->setSelectiveOptimization ($selectiveOptimization);

$operation = new CampaignOperation();
$operation->setOperand ($campaign);
$operator->setOperator;
$operations[] = $operation;
$result = $campaignService->mute ($operations);

I want you to tell me how to solve it.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0d75ca58-cc99-4d4c-81bf-34bb2a62d503n%40googlegroups.com.

Reply via email to