Get Audiences List via http request

199 views
Skip to first unread message

Andrii Veretko

unread,
Aug 2, 2022, 6:22:49 AM8/2/22
to Google Ads API and AdWords API Forum
I need to get list of audience via REST interface. I haven't found any endpoint in v11 to make request like this.

But I have found GAQL query to make requests like this. How can I perform it via http call?

P. S. I can't use SDK because I need to implement it on Node.js. So do you maybe know the way to do it in Node.js? 

Google Ads API Forum Advisor

unread,
Aug 2, 2022, 7:31:00 AM8/2/22
to andr...@optimove.com, adwor...@googlegroups.com

Hi Andrii,

Thanks for reaching out to the Google Ads API Forum.

I understand that you are trying to get a list of audiences via the REST interface, and trying to use an Audience report. However, note that to get the list of users a customer may target, then you may need to use a user_list report.

For the REST, you may use the GoogleAdsService's search / searchStream method as an example provided here. You may also refer to our Query Cookbook guide which contains many reporting samples that correspond to some of the default Google Ads screens. Following are the two endpoints to fetch the objects from Google Ads:

 

search

POST /v11/customers/{customerId}/googleAds:search

Returns all rows that match the search query.

searchStream

POST /v11/customers/{customerId}/googleAds:searchStream

Returns all rows that match the search stream query.

 

I agree that you are unable to use SDK because you’re using Node.js. But you may use the REST API from your Node.js program.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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