Fetching the list of Ads With Google Ads Api

35 views
Skip to first unread message

Bikram Bhuyan

unread,
Apr 3, 2022, 2:54:05 AM4/3/22
to Google Ads API and AdWords API Forum
Hello,

In the old way when using the Google AdWords Api, below is the query we are using to fetch the list of Ads based on a AdGroup Id.

query = "SELECT Id, Url, DisplayUrl, Type, Status, Description, Description1, Description2, " +
"Headline, ShortHeadline, LongHeadline, HeadlinePart1, HeadlinePart2 " +
"WHERE AdGroupId = " + groupId + " AND AdType IN ['TEXT_AD', 'EXPANDED_TEXT_AD', 'IMAGE_AD', 'TEMPLATE_AD', 'RESPONSIVE_DISPLAY_AD'] " +
"AND Status IN ['ENABLED', 'PAUSED'] ORDER BY Id";


Could you please suggest how should we modify the query to get the results in the new way using Google Ads Api. I am not finding a suitable example based on the sample code. So any reference will be very helpful.

Thanks,
Bikram.

Google Ads API Forum Advisor

unread,
Apr 4, 2022, 3:34:23 AM4/4/22
to bikram...@gmail.com, adwor...@googlegroups.com

Hi Bikram,

Thanks for reaching out to the Google Ads API Forum.

To translate AWQL queries into GAQL, you may use this Query Migration Tool. However, note that exact results may differ for a number of reasons as mentioned in this guide. In addition, you may see this guide for AdWords API reports to the corresponding Google Ads API resources.

Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 

 



ref:_00D1U1174p._5004Q2ZJGO3:ref
Reply all
Reply to author
Forward
0 new messages