Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: You are calling a deprecated version of the Ads API. Please update to the latest version: v5.0 #77

Open
jim-barlow opened this issue Nov 28, 2019 · 9 comments

Comments

@jim-barlow
Copy link

jim-barlow commented Nov 28, 2019

I am testing this using a sandbox account (therefore don't mind sharing the details here). I have created the following config file called facebook_tap_config.json:

{"start_date":"2019-01-01", "account_id":"1014179965585963", "access_token": REDACTED}

I have validated that this token works via the Python SDK. However, when I try and run the tap in discovery mode with the following command:

tap-facebook --config facebook_tap_config.json --discover

I receive the following error:

ERROR 
  Message: Call was not successful
  Method:  GET
  Path:    https://graph.facebook.com/v4.0/me/adaccounts
  Params:  {'summary': 'true'}

  Status:  400
  Response:
    {
      "error": {
        "message": "(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v5.0.",
        "type": "OAuthException",
        "code": 2635,
        "fbtrace_id": "Ab_nkbQIV95DvMiJHEA2mGK"
      }
    }

Is there a way of changing the API version/base URL? Thanks!

@zenkay
Copy link

zenkay commented Dec 3, 2019

The only way I found was to manually update the library here:
https://github.com/singer-io/tap-facebook/blob/master/setup.py#L16

Using the last version 'facebook_business==5.0.2' works for me.

@luandy64
Copy link
Contributor

luandy64 commented Dec 3, 2019

The only way I found was to add a parameter api_version='v5.0' to this line

@kayvink
Copy link

kayvink commented Jan 5, 2020

@luandy64 any plans to update this from the stitch side?

tsrivishnu added a commit to tsrivishnu/tap-facebook that referenced this issue Jan 10, 2020
@aaabuabat
Copy link

I am facing the same problem, and @luandy64 solution did not work with me. Any suggestion?

@luandy64
Copy link
Contributor

luandy64 commented Mar 2, 2020

@kayvink @aaabuabat I have a PR open currently with a bump to V6 of the API, I would love to see if that fixes your problem. See #88

@Bhumikanj
Copy link

Hey @luandy64 I am getting same error '(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version: v6.0'. My api version is v6.0 and facebook_business is 6.0.1
Any suggestion?

@luandy64
Copy link
Contributor

luandy64 commented Mar 9, 2020

@Bhumikanj are you running your own version or v1.9.0?

@raoufboussa
Copy link

if you are working with facebook_business sdk, so install the version 'facebook_business==5.0' or above, that's work for me.

@ygafoor
Copy link

ygafoor commented May 28, 2020

if you are working with facebook_business sdk, so install the version 'facebook_business==5.0' or above, that's work for me.

I tried this, I still have an error even though i installed v5.0, v5.0.2, v6
Please help @luandy64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants