Hi Balazs, 

You will first need to create a batch job and then set the operations to 
that batch job. In your code snippet I see that you are performing a SET 
operator on the BatchJobService. This means you want to modify the batch 
job itself. For instance, cancel the Batch job. You can refer to this 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201710/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php>
 code 
sample in PHP where a complete campaign is being added via Batch job. You 
can remove the code corresponding to all other operations and just keep the 
one corresponding to the AdGroupCriterionService or AdGroupAdService. In 
the logic for buildAdGroupCriterionOperations function, you can update the 
operator to SET instead of ADD 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201710/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php#L263-L265>.
 
Could you give this a try and let me know if that works for you?

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/11f1d139-583c-42e8-b1c5-0c0dab7777f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • BatchJob... Prototype.co
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Prototype.co
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
          • ... Prototype.co
            • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to