Closed afsalviz closed 4 years ago
The device_platform breakdown field is missing as well
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
SDK version: v7.0.0
engagement insight is queried with certain breakdown parameters like age, country, gender, etc. and this breakdown field is returned in the insight response as well. but the behavior has changed when queried through Java API v7.0
when I was trying to upgrade from v5.0 to v7.0 the class AdsInsights.java is not having those breakdown param class member variables anymore, the breakdown field getters (like getFieldAge(), getFieldCountry()..., etc) from AdsInsights class are removed as per following commit https://github.com/facebook/facebook-java-business-sdk/commit/7d3f1f8dfa4eb6780f5cc09c6156d1f79a4e0e62#diff-1bbe1352f250c4812271431dc9f55509. (File: src/main/java/com/facebook/ads/sdk/AdsInsights.java) but they are still returned if queried through curl / FB Explorer
was it done intentionally? (or) is there any alternate way of querying it through Java SDK
Steps/Sample code to reproduce the issue
call from Java SDK
the above call on
campaign.getInsights()
is returning the expected result, but when the mapping toAPINodeList<AdsInsights>
insightList ignores the breakdown("age") fieldObserved Results:
expecting the JSON response to AdInsights object mapping to have breakdown field(in this case it is age)
age
is ignored while mapping AdInsights objectExpected Results: