[Google Ads API V6] [Java Client Lib] Access Complete campaign created in BatchJobOperation

21 views
Skip to first unread message

Pradnya Nanaware

unread,
Feb 24, 2021, 5:13:08 AM2/24/21
to AdWords API and Google Ads API Forum
Hello,

I am performing a complete campaign upload with a budget, Adgroup, Criteria using batch job processing.

 I would like to retrieve detailed information of campaigns (eg. campaign budget, adgroup, criteria) on the successful completion of batch processing. I am now using batch job result's MutateOperationResponse to access newly created campaign information using the below methods,  

batchJobResult.getMutateOperationResponse().getCampaignResult()
batchJobResult.getMutateOperationResponse().getCampaignBudgetResult()
batchJobResult.getMutateOperationResponse().getCampaignCriterionResult()

However, for all the above calls​ 'null' ​value returned and I cannot access complete information of campaigns created.  How can I retrieve complete campaign information from the batch job result processing?

Google Ads API Forum Advisor Prod

unread,
Feb 24, 2021, 12:35:03 PM2/24/21
to adwor...@googlegroups.com

Hi Pradnya,

Thank you for reaching out. The BatchJob entity does not contain the details of the campaign or other objects uploaded. You would need to query the reports to check their details if they have already been successfully uploaded.

Thanks and regards,
Xiaoming, Google Ads API Team
 


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DIVwX:ref
Reply all
Reply to author
Forward
0 new messages