Ad label data extraction

29 views
Skip to first unread message

Shivam Joshi

unread,
Mar 26, 2025, 7:22:52 PM3/26/25
to Google Ads API and AdWords API Forum
Hello Team,

I want to extract the ad label data along with date and cost using google ads api. How can i extract the same. Have attached a google ads reporting UI screenshot below:

Screenshot 2025-03-19 at 6.26.51 PM-20250319-125654.png

Also i want to extract the keyword label report as below

Screenshot 2025-03-18 at 6.25.52 PM-20250318-125555.png

Google Ads API Forum Advisor

unread,
Mar 26, 2025, 10:52:09 PM3/26/25
to shi...@devsatva.com, adwor...@googlegroups.com
Hi Shivam,

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

You can use the 'ad_group_ad_label' resource to extract the ad label data. Please note that, segments.date and cost metrics fields are only available in performance-based reporting resources like campaign, ad_group, ad_group_ad, etc. They are not available in ad_group_ad_label because this resource only stores the relationship between ads and labels. It does not track performance metrics like cost, impressions, clicks, or conversions over time, which is why segments.date and cost metrics are not relevant.​

Below is the query for your reference. Please replace 'xxxx' with the appropriate value based on your requirement. ​
Query:"SELECT ad_group.id, campaign.id, ad_group.name, campaign.name, label.name, ad_group_ad.labels, 
ad_group_ad_label.label, ad_group_ad_label.resource_name, ad_group_ad_label.ad_group_ad 
FROM ad_group_ad_label WHERE campaign.id IN (xxxx, xxxx) AND label.name = '"'"'xxxx'"'"'"
And for the second query regarding the keyword label, Our team has already made a feature request for this subject for review. Please note that the request is not a guarantee if this feature will be supported in the API soon. For now, please do follow our blog post and release notes for you to be updated when it will be supported.

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. 

I hope this helps.
 ​ ​ ​ ​ ​

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-27 02:51:29Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHD1V:ref" (ADR-00296855)



Shivam Joshi

unread,
Apr 1, 2025, 12:44:53 PM4/1/25
to Google Ads API and AdWords API Forum
Hello Team,

Thanks for the response we are validating the above logic, in the meantime can you help us find the keword(label) data?

Google Ads API Forum Advisor

unread,
Apr 1, 2025, 3:54:26 PM4/1/25
to shi...@devsatva.com, adwor...@googlegroups.com
Hi,

As mentioned earlier, please note that retrieving the labels at the keyword level or (Label (Keyword)) column is not yet supported in the Google Ads API. We have raised a request to add this feature to be available in the Google Ads API. We cannot provide a scheduled timeline for the availability of this feature in the Google Ads API. I would recommend you to follow our Release Notes and Blog Post for future updates. 
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-01 19:53:41Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHD1V:ref" (ADR-00296855)



Reply all
Reply to author
Forward
0 new messages