Hello,

Adding each keyword will consider as one operation and BatchJobService.
mutate 
<https://developers.google.com/adwords/api/docs/reference/v201601/BatchJobService#mutate>
 operation 
(with ADD operator) takes array of BatchJobOperation 
<https://developers.google.com/adwords/api/docs/reference/v201601/BatchJobService.BatchJobOperation>
 (using 
loop you could add multiple CampaignCriterionOperation 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService.CampaignCriterionOperation>
 as 
described in the AddKeywordsInBulk 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-php-lib%2Fblob%2Fmaster%2Fexamples%2FAdWords%2Fv201601%2FCampaignManagement%2FAddKeywordsInBulk.php&sa=D&sntz=1&usg=AFQjCNGItrXQPrC4F4L9bs6HRxc6vCpjOA>
 example) 
and return type will be BatchJobReturnValue 
<https://developers.google.com/adwords/api/docs/reference/v201601/BatchJobService.BatchJobReturnValue>(return
 
values from the BatchJobService). As per the rate sheet guide 
<https://developers.google.com/adwords/api/docs/ratesheet#api-operations> each 
mutate operation count as one operation. 

To update the negative keywords at campaign level in bulk using 
BatchJobService.mutate 
<https://developers.google.com/adwords/api/docs/reference/v201601/BatchJobService#mutate>
 operation, 
you could use CampaignCriterionOperation.operand 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService.CampaignCriterionOperation#operand>
 as NegativeCampaignCriterion 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService.NegativeCampaignCriterion>
 and 
the operator 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService.CampaignCriterionOperation#operator>
 as SET 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService.CampaignCriterionOperation#operator>.
 
We don't have example code for update keywords using BatchJobService. 
However, you could refer UpdateKeyword 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201601/BasicOperations/UpdateKeyword.php>(which
 
uses CampaignCriterionService.mutate 
<https://developers.google.com/adwords/api/docs/reference/v201601/CampaignCriterionService#mutate>
 operation) PHP 
example code from the client library and use similar approach for 
CampaignCriterionOperation for the BatchJobService to update negative 
keywords in bulk. 

Thanks,
Umesh, 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/13609639-0a7d-46c8-a872-d940a2e4802d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to