Written a script to export data from the Google Analytics Data API to MySQL. Works like a charm. Now I wanted to add adCost as a metric, but it doesn't show up in the list of metrics in the documentation. Also nothing like it (searched for things with 'spend' and 'cost'). In the old (Reporting) API it has always been available.
Doesn't Google offer this metric in the new API or is it just that it's not in the list. And if so, what would be the exact name for it?
question from:https://stackoverflow.com/questions/66067084/how-to-get-adcost-from-the-new-google-analytics-data-api-ga4