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 Ads API Team Feedback How was our support today? [2025-03-27 02:51:29Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vHD1V:ref" (ADR-00296855) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/adwords-api/9XS_S000000000000000000000000000000000000000000000STRH9T00DR4XEvGHRbGlCgiTxWy8Iw%40sfdc.net.
