Total Cost of a each Campaign and Adgroup

386 views
Skip to first unread message

Suvigya Agrawal

unread,
Jun 14, 2023, 3:23:53 AM6/14/23
to Google Ads API and AdWords API Forum
1. How can I get the "Total Cost" data of a campaign and adgroup (tell for each case).
Some are suggesting to use "metrics.cost_micros", but if this is the case then what is the currency of the value returned by this.

2. How can I get the segment name of my campaign.
For example- the segment name of some campaigns are - "Capital Markets", "Mutual Funds", "Corporate Issuer" etc.

3. How can I pull the "Platform" field form my campaign.
Although each campaign on google ads has the "Google" platform only, but is there any query to pull this specific information.

Please provide query for each case. 
A quick reply will be really helpful.

Thanks.

Google Ads API Forum Advisor

unread,
Jun 16, 2023, 6:38:43 AM6/16/23
to suvigyaa...@gmail.com, adwor...@googlegroups.com

Hello,

Greetings from the Google Ads API Support team.

Allow me to address your concerns below:

1. How can I get the "Total Cost" data of a campaign and adgroup (tell for each case). Some are suggesting to use "metrics.cost_micros", but if this is the case then what is the currency of the value returned by this.

2. How can I get the segment name of my campaign. For example- the segment name of some campaigns are - "Capital Markets", "Mutual Funds", "Corporate Issuer" etc.

3. How can I pull the "Platform" field form my campaign. Although each campaign on google ads has the "Google" platform only, but is there any query to pull this specific information.

  • For questions 2 and 3 can you please provide us with an uncropped screenshot of the Google Ads UI that shows the data you are trying to obtain based on these descriptions, so we can provide precise guidance and recommendations? Please also note that the Google Ads UI and API mimic each other's behavior.

I hope some information was helpful, I look forward to hearing back from you.

This message is in relation to case "ref:_00D1U1174p._5004Q2mCo7b:ref"

Thanks,
 
Google Logo Google Ads API Team


Suvigya Agrawal

unread,
Jun 19, 2023, 1:51:20 AM6/19/23
to Google Ads API and AdWords API Forum
Here is the screenshot for "Platform", "Channel" and "Segment" field we need to pull from Google Ads API-
SEM Sample.png
Display Sample.png

Google Ads API Forum Advisor

unread,
Jun 21, 2023, 6:30:37 AM6/21/23
to suvigyaa...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for responding back.

I understand that the screenshots you provided contain the fields you want to pull via API. However, as requested in our previous response, would you be able to share a screenshot of the Google Ads UI or dashboard showing the customer ID and data that you want to retrieve? Asking this since the API mirrors the UI and so we could provide more appropriate guidance on the corresponding report or query for pulling the data.

You may send the full non-redacted screenshot via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Looking forward to your response. 

Reply all
Reply to author
Forward
0 new messages