facebook / facebook-java-business-sdk

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

Method AdsInsights.getFieldCountry() is missed #288

Closed AntonGabov closed 4 years ago

AntonGabov commented 4 years ago

Which SDK version are you using?

6.0.2

What's the issue?

Cannot get country from AdsInsights class. Method getFieldCountry() was removed in 6.0.2 version. Moreover, in changes (https://developers.facebook.com/docs/graph-api/changelog/breaking-changes) I have not found any reason, why this method was removed.

Steps/Sample code to reproduce the issue

  1. Get AdsInsights for required AdAccount with setting breakdown field 'country'. For instance:
    AdAccount.getInsights()
                .requestFields(List.of("campaign_id", "campaign_name", "adset_id", "adset_name", "ad_name", "ad_id", "clicks", "spend", "impressions", "actions"))
                .setLevel(AdsInsights.EnumLevel.VALUE_AD)
                .setBreakdowns(List.of(AdsInsights.EnumBreakdowns.VALUE_COUNTRY))
                .setParam("limit", 500)
                .execute();
  2. Call method AdsInsights.getFieldCountry()

    Observed Results:

    CompilationError:

    [Compiler] Compilation failure
    cannot find symbol
    symbol:   method getFieldCountry()
    location: variable insight of type com.facebook.ads.sdk.AdsInsights

    Expected Results:

    AdsInsights should contain the method getFieldCountry()

stale[bot] commented 4 years ago

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.

stale[bot] commented 4 years ago

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.