Get Google Ads campaign metrics
Reads live performance figures for every campaign on the account over a date window, in one call.
This goes to Google directly rather than to Base44’s nightly copy, so the numbers include today. Use it to fill in a table you first drew from List campaigns with include_metrics=false.
metrics is keyed by the Google Ads campaign ID, not Base44’s campaign ID. Join on the google_campaign_id field from the list endpoint. A campaign that had no activity in the window does not appear as a zero row, it is simply absent.
When Google cannot be reached you get an empty metrics map with degraded set to true, under a 200. Treat that as “unknown” rather than “nothing happened”.
start_date and end_date are inclusive and must both be YYYY-MM-DD. Anything else is rejected with a 400.Authorizations
Personal API key.
Path Parameters
ID of the app whose Google Ads reporting you want to read.
Query Parameters
First day to include, as YYYY-MM-DD. Inclusive.
Last day to include, as YYYY-MM-DD. Inclusive.
Response
Metrics for each campaign with activity in the window.
Live metrics for every campaign on the account, keyed by Google's campaign ID.
One entry per campaign, keyed by the Google Ads campaign ID. This is the google_campaign_id field from List campaigns, not Base44's id, so join on that field. Campaigns with no activity in the window are left out entirely.
true when Google could not be reached and metrics is empty for that reason rather than because nothing ran. Always check this before showing zeros.
false