Get keyword label

28 views
Skip to first unread message

Harshad Khanapure

unread,
Oct 11, 2020, 4:49:50 AM10/11/20
to AdWords API and Google Ads API Forum
Hi,

I am trying to get  "Label" of keyword using following query,

query = """
    SELECT
      ad_group_criterion_label.label

    FROM ad_group_criterion_label
    
    LIMIT 10
    """


But it returns 

{'Keyword_Label': [value: "customers/9987799870/labels/3946634442", value: "customers/9987799870/labels/3946634442", value: "customers/9987799870/labels/3946634442", value: "customers/9987799870/labels/3946634442", value: "customers/9987799870/labels/3946634442", value: "customers/9987799870/labels/3947330156", value: "customers/9987799870/labels/3947330156", value: "customers/9987799870/labels/3947330156", value: "customers/9987799870/labels/3947330165", value: "customers/9987799870/labels/3947330165"]}


What I intent to get is the actual "labels" not "ids". Can you let me know correct way to do ( correct resources in "SELECT" and "FROM" clause

Google Ads API Forum Advisor Prod

unread,
Oct 11, 2020, 9:26:58 PM10/11/20
to harshadk...@papertrue.com, adwor...@googlegroups.com
Hi Harshad,

Thanks for posting your concern.

Could you try adding the label.name field in the report? Let me know how it goes after trying the provided suggestion.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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