facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.29k stars 635 forks source link

getCustomAudiences().requestAllFields() returning nulls for non-ID fields #478

Closed nick-sonamine closed 6 years ago

nick-sonamine commented 6 years ago

Hi,

Am using java sdk v3.

I'm attempting to obtain all custom audiences and the associated names.

APINodeList audiences = account.getCustomAudiences() .requestAllFields() .execute(); for(CustomAudience audience : audiences) { System.out.println(audience.getFieldId()+":"+audience.getFieldName().toString()); }

Getting NPE, when debugging, discovered that all the non-ID custom audience fields are coming back as null. The IDs are populated and can be accessed.

Thanks