How to find all the queryable fields of a resource?

12 views
Skip to first unread message

苑栋杰

unread,
Jul 1, 2019, 11:07:03 AM7/1/19
to AdWords API and Google Ads API Forum
I call 
GoogleAdsFieldServiceClient->getGoogleAdsField('googleAdsFields/campaign');
I get the data for metrics and segments, 
but I want to get data like campaign.id;campaign.name;campaign.labels, 
what should I do to get it?

Google Ads API Forum Advisor Prod

unread,
Jul 2, 2019, 2:22:32 PM7/2/19
to 9101...@qq.com, adwor...@googlegroups.com
Hello, 

You will need to pass the Google Ads Query to the GoogleAdsService.Search interface. Please find the example available here which will help you get started. The code samples are also available in the guide as a reference. Let me know if you have any questions. 

Thanks,
Bharani, Google Ads API Team

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