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

AdCreativeInsights the example from the code returns "(#100) Tried accessing nonexisting field #332

Closed juggernut closed 2 years ago

juggernut commented 3 years ago

Which SDK version are you using?

Using: facebook-business==9.0.2

What's the issue?

Just trying to get some stats about creatives. And while trying to replicate the example: "AdCreativeCreativeInsightsEdge.py" i get a super error: Response: { "error": { "message": "(#100) Tried accessing nonexisting field (creative_insights) on node type (AdCreative)", "type": "OAuthException", "code": 100, "fbtrace_id": "ALJXolz3ajov0D1GcifNV1r" } }

Steps/Sample code to reproduce the issue

print(AdCreative("<insert AdCreativeIdHere>").get_creative_insights(
                fields=[
                    'aesthetics'
                ],
                params={}

            )
        )

Observed Results:

You try the code from example and you get: (fun fact you can put whatever in the fields is the same ). Status: 400 Response:

    {
      "error": {
        "message": "(#100) Tried accessing nonexisting field (creative_insights) on node type (AdCreative)",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "A-LEZYgQWx6VybAJYNWFN16"
      }
    }

Expected Results:

To get an AdCreativeInsights type object.

stale[bot] commented 3 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 2 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.