campaign.labels does not return labels in GAQL query

35 views
Skip to first unread message

Hamza Ansari

unread,
Aug 5, 2022, 11:06:57 AM8/5/22
to Google Ads API and AdWords API Forum
I have been trying to retrieve a list of campaigns using the below GAQL query but it does not return labels of the campaigns. 

'SELECT campaign.id, campaign.name, campaign.status, campaign_budget.amount_micros, campaign.labels, metrics.cost_micros FROM campaign WHERE campaign.status IN ("ENABLED","PAUSED") AND segments.date DURING TODAY'

I wanted to know if is it a bug or if there is any other way arround?
 Thanks for your help

Google Ads API Forum Advisor

unread,
Aug 5, 2022, 11:28:52 AM8/5/22
to hamx...@gmail.com, adwor...@googlegroups.com
Hi Hamza,

To assist you, could you send us a 'DEBUG' log level request and response log of raw API communications of the report that doesn't show the expected labels?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


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