Get Campaign Label from Google Ads API

34 views
Skip to first unread message

sanketta...@gmail.com

unread,
Sep 11, 2020, 9:44:35 AM9/11/20
to AdWords API and Google Ads API Forum
Hi,

I'm fetching data Campaign data from Google Ads API. I'm using 'v2' version of Google Ads API. I'm passing query to the Search Stream. While fetching Campaign Label from Campaign table I receive a link type response `customers/{customer_id}/labels/{label_id}` as value in label list. 

For this I have to take out the label_Id from the link received in response and then write another SearchStream  which queries Label table with WHERE condition of Label.id and fetch Label name.

Is this the right approach to fetch the Label name or am I taking a long route? Please guide me if there is any other way to keep my code short and optimal in performance.

Appreciate your help in this.

Thanks,
Sanket Tandalekar

Google Ads API Forum Advisor Prod

unread,
Sep 11, 2020, 4:22:07 PM9/11/20
to sanketta...@gmail.com, adwor...@googlegroups.com

Hi Sanket,

Thank you for reaching out. You are actually on the right track. There is no other better way to query the Label name.

Thanks and regards,
Xiaoming, Google Ads API Team




Google Logo
Xiaoming
Google Ads API Team
 


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