Getting attribute list for a single resourse

62 views
Skip to first unread message

omanovich

unread,
Jul 26, 2021, 4:22:55 PM7/26/21
to AdWords API and Google Ads API Forum
Hello, i am studying Google Ads Api and have a question. While getting list of metrics and segments (artifacts) for a resource is simple but how do i get a list of resource fields (attributes)? For now i am using a query with a "where" clause "category = 'ATTRIBUTE'"  but it returns 1400 attributes, which i assume is an entire pull. Any way to optimize it?

Google Ads API Forum Advisor

unread,
Jul 27, 2021, 2:40:56 AM7/27/21
to adwor...@googlegroups.com
Hi,

Thank you for your question.

When retrieving objects using the reports or the GoogleAdsService (search / searchStream), you would need to specify each resource field to pull them in a single report.

However, if you will be using specific services, such as for example a campaign, then you may perform a CampaignService.getCampaign request. This should then return the Campaign resource along with its supported attributes.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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