Does ads API provide historical data for campaign_budget?

61 views
Skip to first unread message

Mrinal Pant

unread,
Apr 15, 2024, 2:46:57 AM4/15/24
to Google Ads API and AdWords API Forum
Hello, 

we are trying to visualize our phases of marketing campaign wise, our phases are Testing(budget<200), Optimisation(200<=budget<700) and Scaling(budget>=700)

but when we pull data using "campaign_budget.amount_micros" it shows only the present budget, no sign of historical budget metric, attaching some screen shots.

Consider a campaign name bestfriendshipquiz_romania_ro, for the same i have updated the budget on 11th of April 2024 to 300 from 200. but the data against the date less then 11th april 2024 ads api shows 300 for all the entries.
Screenshot 2024-04-15 at 12.11.41 PM.png
image.png
Message has been deleted

Zweitze

unread,
Apr 15, 2024, 4:57:16 AM4/15/24
to Google Ads API and AdWords API Forum
You don't share the actual query that was use for "image.png", I assume you queried resource "campaign".
When you do so, all fields listed as "attribute" will contain the last known value.

Two reports exist that report the campaign changes over time: resources "change_event" and -I think- "change_status". Check these out.

Google Ads API Forum Advisor

unread,
Apr 15, 2024, 7:23:15 PM4/15/24
to zwe...@gmail.com, adwor...@googlegroups.com
Hi,

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

Upon checking your concern, I understand that you have made budget changes to your campaign ID "21104182496" and you want to retrieve these changes from the Google Ads API. I would recommend you to kindly refer to the change_event resource to retrieve the campaign budget changes from the Google Ads API. Kindly note that the list of changes must be filtered by date. The date range must be within the past 30 days. Please find the sample GAQL query as per your requirement:
SELECT change_event.campaign, change_event.change_date_time, 
change_event.change_resource_name, change_event.change_resource_type, 
change_event.changed_fields, change_event.resource_name, 
change_event.resource_change_operation, campaign.id, campaign.name, 
campaign.campaign_budget FROM change_event WHERE campaign.id = 21104182496 AND 
change_event.change_date_time BETWEEN '2024-03-01' AND '2024-04-14' AND 
change_event.change_resource_type = 'CAMPAIGN_BUDGET' ORDER BY 
change_event.change_date_time DESC LIMIT 5
Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tP5xV:ref" (ADR-00231137)

Thanks,
 
Google Logo Google Ads API Team


Google Ads API Forum Advisor

unread,
Apr 15, 2024, 7:38:39 PM4/15/24
to pantmr...@gmail.com, adwor...@googlegroups.com
Hi,

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

I notice that you've already raised this concern in another thread titled 'Does ads API provide historical data for campaign_budget?'. We've already provided a response there regarding this issue. To streamline communication and avoid redundancy, please refer back to that thread for any updates or further discussions on this topic.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tP5o4:ref" (ADR-00231119)


Thanks,
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages