facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
393 stars 324 forks source link

There is no Summary attribute on Insights and Campaigns #455

Open eheinen opened 2 months ago

eheinen commented 2 months ago

Which SDK version are you using?

v19.0.3

What's the issue?

The insights and Campaigns POJO don't have the Summary attribute, Although, it has the param to set the Summary and its fields.

Steps/Sample code to reproduce the issue

Get Insights or Get Campaigns:

adAccount.getInsights()
                    .setTimeRange(timeRange)
                    .setLevel(AdsInsights.EnumLevel.VALUE_CAMPAIGN)
                    .setSummary(INSIGHT_SUMMARY_FIELDS)
                    .requestFields(INSIGHT_FIELDS)
                    .execute()
                    .withAutoPaginationIterator(true);

Observed Results:

Expected Results:

To have an attribute called summary to do: getSummary() and get the total values, such as in the Graph API.