so far I have this code

    $adsched = new AdSchedule();
    $adsched->setId($ad_schedule_id);

    // Create a criterion with modified bid.
    $criterion = new CampaignCriterion();
    $criterion->setCampaignId($campaign_id);
    $criterion->setCriterion($adsched);

    // Create a campaign criterion operation and add it to the operations 
list.
    $operation = new CampaignCriterionOperation();
    $operation->setOperator(Operator::REMOVE);
    $operation->setOperand($criterion);
    $operations = [$operation];


Then I get this error

[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY @ 
operations[0]]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/ec46d12b-8688-4b3c-94b4-4572d78e7d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to remov... Ken Dan Tinio
    • Re: How... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • Re: How... Ken Dan Tinio
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • Re: How... Ken Dan Tinio
      • Re:... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
    • Re: How... Ken Dan Tinio

Reply via email to