Thank you for your prompt reply! I tried this method before asking the question, but the data pulled by this method did not match the data I saw in google ads.
How do I pull the total spending at the ad level? In fact, if I see the total expenditure of the ad level, I can calculate the ad series on my own 在2022年11月24日星期四 UTC+8 18:48:43<adsapi> 写道: > Hi Keji, > > Thank you for getting back to us. I hope that you are doing well today. > > To get the total spend of your campaigns and ad_groups, you may use the > campaign > <https://developers.google.com/google-ads/api/fields/v12/campaign> report > and ad_group > <https://developers.google.com/google-ads/api/fields/v12/ad_group> report. > And you may include the metrics.cost_micros > <https://developers.google.com/google-ads/api/fields/v12/metrics#metrics.cost_micros> > to > get the total spend of your campaigns and ad_group. You may check this > guide > <https://developers.google.com/google-ads/api/docs/reporting/overview> on > how to execute a report. You may try the query below to get the total spend > of the campaigns: > > - {query: "SELECT campaign.id, campaign.name, campaign.resource_name, > metrics.cost_micros FROM campaign", > "summaryRowSetting":"SUMMARY_ROW_WITH_RESULTS"} > > Please let us know if this works for you, and if not, please provide us > the full screenshot of the UI, where you can see the actual report that you > want to fetch using the API. You can provide it via Reply privately to the > author option. If this option is not available, then send it instead on > this email address *googleadsa...@google.com*. > > > Kind regards, > [image: Google Logo] > Sherwin Vincent > Google Ads API Team > > > ref:_00D1U1174p._5004Q2gQJyU:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b83c0457-14e1-460c-a7d4-63ff20a4ead2n%40googlegroups.com.