Unable to use virtual ids for CampaignCriteriaService in BatchJobService

33 views
Skip to first unread message

Jefferson Cechinel

unread,
Aug 4, 2023, 12:08:05 PM8/4/23
to Google Ads API and AdWords API Forum
Hi there! I'm trying to create a complete campaign using the BatchJobService. I need to set a geo target location for each campaign. For this I'm setting the CampaignCriterion with the right settings. The problem is that I'm getting 'Resource was not found.' from the API response when using the campaign's virtual ids in its settings. 

For now I can create a complete campaign including adgroups, ads, keywords etc.. using virtual IDs but its failing to set the campaign criterion for geo target location. The only way I found to set the target location for a campaign is by sending a second request using the real campaign id instead of the virtual id.

Question: Does the CampaignCriterion works with virtual ids? Is there a way to create the campaign + target location in one go using the BatchJobService? 

Google Ads API Forum Advisor

unread,
Aug 4, 2023, 1:07:08 PM8/4/23
to jeff...@febacapital.com, adwor...@googlegroups.com

Hello,

Thanks for reaching out to the Google Ads API Team.

I understand that while using the BatchJobService, when you are trying to create a campaign and setting the criterion using the campaign’s virtual ID/temporary ID(https://developers.google.com/google-ads/api/docs/batch-processing/temporary-ids) you are getting a RESOURCE_NOT_FOUND error.

Can you please provide us with the complete logs(request and response with request ID) of this operation which you described is returning an error? I am asking for this so we can investigate further on why this is happening and provide recommendations.

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

If it helps, you may also refer to these API documentation for more information:

This message is in relation to case "ref:_00D1U1174p._5004Q2nb7ZE:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages