Removing a Campaign's Negative Keywords with a batchjob. Returned value doesnt display the new status.

21 views
Skip to first unread message

J.D.

unread,
Dec 14, 2016, 11:17:38 AM12/14/16
to AdWords API Forum
Hi,

I've got a question regarding changes made to Negative Keywords on the Campaign level with a batchjob. (this problem also occurs with campaign locations)
It appears that the new status of the excluded criteria (removed, active and such) isn't being returned by the batchjob. 
I am not allowed to set it myself before sending. If I do that, I get this error: 
"CampaignCriterionError.CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA".

What I would like to know is this:
While working with a batchjob, how can I see if an operation that deletes a Campain's Negative Keyword was succesful?

Thanks in advance,
J.D.


Vishal Vinayak (Adwords API Team)

unread,
Dec 14, 2016, 3:49:01 PM12/14/16
to AdWords API Forum
Hi,

With a batch job, once you upload the operations, you can poll the status of the job until it is DONE or CANCELED. If the status is DONE you can download the results from the downloadUrl. In that case, the index in the result element can be used to correlate the result to the corresponding operation in your upload. However, if the status of the batch job is CANCELED, you can inspect the processingErrors and check if your operation succeeded (using the same process using downloadUrl). The errorList attribute of the result can return one or more error elements in that case. More information on the same topic can be found here.

Regards,
Vishal, AdWords API Team
Reply all
Reply to author
Forward
0 new messages