Issue creating a campaign budget-- operation.done returning false despite object being successfully created

55 views
Skip to first unread message

Paul Lockhart

unread,
Mar 21, 2022, 4:51:55 PM3/21/22
to Google Ads API and AdWords API Forum
Hello,

I'm trying to create a campaign budget via the google ads api, using the Google Ads Ruby Gem (I believe this issue is with the api rather than the library, which is why I am posting here)

When I attempt to create a campaign budget through the api by running a batch job containing an operation containing a new campaign budget object, the campaign budget created by my code appears in the Google Ads UI and can be queried through the API with GAQL. However, when querying the operation object returned by BatchJobService.RunBatchJob, .done returns false. What could be causing this?

Paul Lockhart

unread,
Mar 22, 2022, 10:15:09 AM3/22/22
to Google Ads API and AdWords API Forum

I'd like to add that I get a valid response from BatchJobService.ListBatchJobResults as well, meaning that the operation completed successfully. The operation response object alone is the issue here.

Google Ads API Forum Advisor

unread,
Mar 22, 2022, 11:33:22 AM3/22/22
to ploc...@roirevolution.com, adwor...@googlegroups.com
Hi Paul,

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2Yq4Rz:ref

Paul Lockhart

unread,
Mar 22, 2022, 12:53:28 PM3/22/22
to Google Ads API and AdWords API Forum
Hi Nirmita,

Please let me know if you got my response-- I'm not very familiar with the Google Groups system and it doesn't seem like there's anywhere that I can see the sent private message!

Google Ads API Forum Advisor

unread,
Mar 23, 2022, 4:30:31 AM3/23/22
to ploc...@roirevolution.com, adwor...@googlegroups.com
Hi Paul,

This is to confirm that we have received your private email. I have also sent a private response for us to continue our discussions there for now.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Yq4Rz:ref

Paul Lockhart

unread,
Apr 20, 2022, 12:08:24 PM4/20/22
to Google Ads API and AdWords API Forum
Just wanted to post the problem I was having and the solution we determined, in case anyone finds this thread in a search:

when calling .done? on the operation response object in the google ads ruby gem, you need to first call .reload! in order to sync the response object with the API and check whether there have been any status updates.

Reply all
Reply to author
Forward
0 new messages