Selector Fields class for Report fields?

39 views
Skip to first unread message

joel

unread,
Aug 16, 2017, 9:14:15 AM8/16/17
to AdWords API Forum
I'm a big fan of the selector Field enums (https://github.com/googleads/googleads-java-lib/tree/master/modules/ads_lib/src/main/java/com/google/api/ads/adwords/lib/selectorfields/v201708/cm) that encode the values allowed in Selectors. Are there Field classes that similarly support Reporting though? (Report Definition fields?). I haven't found any, so if not, could you please consider adding those enums to the client library? Thanks,

Joel

Shwetha Vastrad (AdWords API Team)

unread,
Aug 16, 2017, 11:37:08 AM8/16/17
to AdWords API Forum
Hi Joel,

There aren't any enum types in the Java client library for fields in a Report definition at the moment. I'll pass this feedback on to the team. You could also consider creating an new thread on the library's issue tracker. Meanwhile, you can use ReportDefinitionService.getReportFields() method to get the available report fields for a given report type. The GetReportFields Java example shows how to use this service.

Regards,
Shwetha, AdWords API Team.

joel

unread,
Aug 16, 2017, 1:26:40 PM8/16/17
to AdWords API Forum
Thank you. I also have a follow-up regarding the Selector Fields. It seems like they are missing some of the allowed Predicate values. For example, https://github.com/googleads/googleads-java-lib/blob/master/modules/ads_lib/src/main/java/com/google/api/ads/adwords/lib/selectorfields/v201708/cm/AdGroupCriterionField.java for the AdGroupCriterion service is missing "AdGroupStatus, "CampaignStatus". The reference document also excludes these. Yet I'm able to successfully use these as Predicate values. Could these be updated to include all the allowed Predicates?

Joel

Shwetha Vastrad (AdWords API Team)

unread,
Aug 16, 2017, 4:07:34 PM8/16/17
to AdWords API Forum
Hi Joel, 

Thank you for bringing this to our notice. I'll get in touch with the team regarding the missing fields and update you once I have more information. 

joel

unread,
Sep 7, 2017, 9:26:15 AM9/7/17
to AdWords API Forum
Hi Shwetha, I wanted to follow-up on this to see if you had more information about this? Can the documentation and selector fields be updated to include all allowed values? Thanks,

Joel

Shwetha Vastrad (AdWords API Team)

unread,
Sep 7, 2017, 1:42:10 PM9/7/17
to AdWords API Forum
Hi Joel, 

I'm afraid I don't have any updates at the moment. I'll let you know once I have more details. 
Reply all
Reply to author
Forward
0 new messages