Google Ads API returning old value for Campaign Budget amount

32 views
Skip to first unread message

Cesar Augusto Espinosa

unread,
Jun 20, 2024, 12:28:31 PM6/20/24
to Google Ads API and AdWords API Forum
Hello!

We are using the Java SDK (com.google.api-ads:google-ads:28.0.0)  to query the current daily budget (campaign_budget.amount_micros) for a given campaign:


SearchGoogleAdsRequest.newBuilder()
  .setCustomerId(campaignId)
  .setQuery(
     """SELECT
       campaign_budget.amount_micros,
       campaign.status
       FROM campaign_budget
       WHERE
       campaign.id = $campaignId"""
)
.build()

But, for some campaigns we are getting a previous/old budget value., it is not the current value shown in the UI.  Can you help us to understand the cause?

Thanks!

This information may be confidential or privileged. Any unauthorized disclosure is strictly prohibited. Your data has been incorporated into our privacy system to manage your request. You can exercise your personal data rights and check our Privacy Policy here

Google Ads API Forum Advisor

unread,
Jun 20, 2024, 5:21:45 PM6/20/24
to adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

To check your issue from our end, kindly get back to us with the complete API logs (request and response with request-id and request header) generated at your end where you are observing the old campaign budget. Also, provide the uncropped UI screenshot of your Google Ads account, where you are able to see the current budget that you want to pull via the API.

Kindly note that you have to enable logging if you are using a client library. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via the Reply privately to the author option or a direct private reply to this email. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJPnj:ref" (ADR-00242910)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Reply all
Reply to author
Forward
0 new messages