What is the correct GAQL query to retrieve a reponsive search ad's headlines and texts?

25 views
Skip to first unread message

MS

unread,
Sep 1, 2025, 5:15:55 AM (4 days ago) Sep 1
to Google Ads API and AdWords API Forum
I'm trying to retrieve a list of responsive search ads' headlines and descriptions using this query:

  SELECT
    ad_group_ad.ad.responsive_search_ad.descriptions
  , ad_group_ad.ad.responsive_search_ad.headlines
  FROM ad_group_ad
  WHERE ad_group_ad.ad.responsive_search_ad.headlines IS NOT NULL

Unfortunately, the WHERE clause seems invalid.

How would I correctly retrieve all responsive search ad's headlines and descriptions? Is there another resource I could use for retrieving this data?

Your answer is appreciated.

Google Ads API Forum Advisor

unread,
Sep 1, 2025, 8:46:45 AM (4 days ago) Sep 1
to axe...@axeldahmen.de, adwor...@googlegroups.com

Hi,

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

By reviewing your query, I understand that you want to retrieve a list of responsive search ads headlines and descriptions through the Google Ads API. Please use the below sample GAQL query to retrieve the list of responsive search ads details from ad_group_ad resource.

SELECT ad_group_ad.ad.responsive_search_ad.headlines, ad_group_ad.ad.responsive_search_ad.descriptions FROM ad_group_ad

You can use the search or searchStream methods in making the API calls while retrieving the data. 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. If you are still facing an issue, please provide the uncropped UI screenshot by highlighting the data that you are trying to retrieve along with the Google Ads customer ID for further investigation.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-09-01 12:46:00Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5aR8:ref" (ADR-00331505)



MS

unread,
Sep 2, 2025, 7:31:53 PM (2 days ago) Sep 2
to Google Ads API and AdWords API Forum
Hi,

thank you for your reply.

You actually repeated my own GAQL query. That's the one I already wrote.

I was asking what the WHERE clause whould be to only return rows with basically

  WHERE ad_group_ad.ad.responsive_search_ad.headlines IS NOT NULL
  OR ad_group_ad.ad.responsive_search_ad.descriptions IS NOT NULL

What is the correct WHERE clause in GAQL that yielded the expected result?

Google Ads API Forum Advisor

unread,
Sep 3, 2025, 12:10:07 AM (2 days ago) Sep 3
to axe...@axeldahmen.de, adwor...@googlegroups.com
Hi,

Kindly note that filtering based on these fields i.e,  ad_group_ad.ad.responsive_search_ad.headlines, ad_group_ad.ad.responsive_search_ad.descriptions are not available or not selectable from the Ad_group_ ad resource. I would suggest to verify your query, before executing by utilizing the Google Ads Query Builder and Query Validator. In order to retrieve the Responsive Search Ads, please use the sample query below:
SELECT
  ad_group.id,
  ad_group_ad.ad.id,
  ad_group_ad.ad.responsive_search_ad.headlines,
  ad_group_ad.ad.responsive_search_ad.descriptions,
  ad_group_ad.status
FROM ad_group_ad
WHERE ad_group_ad.ad.type = RESPONSIVE_SEARCH_AD
As requested earlier, if still this is not feasible to you please provide us with the uncropped UI screenshot with a visible customer Id by highlighting the fields that you are trying to retrieve using the Google Ads API. 

You can send the details via Reply privately to the author option, or direct private reply to this email.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-09-03 04:09:21Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u5aR8:ref" (ADR-00331505)



Reply all
Reply to author
Forward
0 new messages