filter adgroup by name

18 views
Skip to first unread message

Filipe

unread,
Jul 17, 2024, 1:18:02 PM7/17/24
to Google Ads API and AdWords API Forum
Hi

I need to filter the Adgroups by name

GAQL:

SELECT ad_group.id,  ad_group.name, ad_group.status  FROM ad_group WHERE ad_group.name LIKE '%AdgroupName%

This GAQL is returning 0 results even the AdgroupName exists in the account

Thanks



Google Ads API Forum Advisor

unread,
Jul 17, 2024, 4:49:13 PM7/17/24
to filipem...@gmail.com, adwor...@googlegroups.com
Hi,

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

Upon checking the query, I noticed that you provided an invalid query. I would suggest trying the query below:
SELECT ad_group.id, ad_group.name, ad_group.status FROM ad_group WHERE ad_group.name LIKE 'AdgroupName'
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 the issue persists even after trying with the provided suggestion, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end to better assist you further. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vDkJu:ref" (ADR-00252918)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Reply all
Reply to author
Forward
0 new messages