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

Facebook marketing API "You are calling a deprecated version of the Ads API. Please update to the latest version: v14.0" #13643

Closed
bigdatawonders opened this issue Jun 9, 2022 · 20 comments · Fixed by #15007

Comments

@bigdatawonders
Copy link

Environment

  • Airbyte version: example is 0.35.10-alpha
  • OS Version / Instance: AWS EC2
  • Deployment: example are Docker or Kubernetes deploy env
  • Source Connector and version: 0.2.50 Facebook Marketing
  • Destination Connector and version: 0.3.1 S3
  • When Syncing or testing I get this error message
    "You are calling a deprecated version of the Ads API. Please update to the latest version: v14.0"

Current Behavior

When Syncing or testing I get this error message
"You are calling a deprecated version of the Ads API. Please update to the latest version: v14.0"

Expected Behavior

I expect there should be no errors and data retrieved from API.

@bigdatawonders
Copy link
Author

This is quite urgent since I cannot retrieve clients facebook data anymore.

@bigdatawonders
Copy link
Author

I know that Facebook Marketing API is GA connector so I hope it will get fixed very soon. Thank you for your amazing tool!

@marcosmarxm marcosmarxm removed team/tse Technical Support Engineers autoteam labels Jun 13, 2022
@octavia-squidington-iii octavia-squidington-iii added autoteam team/tse Technical Support Engineers labels Jun 13, 2022
@marcosmarxm
Copy link
Member

We're waiting facebook/facebook-python-business-sdk#612 OR Facebook update the package with latest version.

@ghost
Copy link

ghost commented Jun 14, 2022

In the meantime, it is possible to call v13 and avoid the error. Go to your Facebook app's advanced settings and select the older version. Works for me to ingest 'ads_insight'. @bigdatawonders

@Qaisarg
Copy link

Qaisarg commented Jun 15, 2022

@cminnov Thanks for sharing this but in the Advanced Settings of the App, Facebook is now only showing the v14 it is not showing v13.

@Qaisarg
Copy link

Qaisarg commented Jun 15, 2022

Is there any other solution available right now to be used in Air byte Facebook (Open Source) connectors to avoid this error. I am using Airbyte using docker on Google Cloud @marcosmarxm

@ghost
Copy link

ghost commented Jun 15, 2022

@cminnov Thanks for sharing this but in the Advanced Settings of the App, Facebook is now only showing the v14 it is not showing v13.

If you start by selecting v13 on the left selection "Upgrade all calls" then save, v13 will then appear on the right selection "Upgrade Calls for App Roles". At least on my end...

Hope this can temporarily solve your issue.

@riceyrice
Copy link

riceyrice commented Jun 15, 2022

Building on @terrazasrj suggestion I did this in __init__py of my module which is executed before any existing imports from facebook_business

from facebook_business import apiconfig
apiconfig.ads_api_config['API_VERSION'] = 'v14.0'
for mod in list(sys.modules):
    if mod.startswith('facebook_business') and mod != 'facebook_business.apiconfig':
        del sys.modules[mod]

Obviously having a real v14 client would be much better!

@marcosmarxm
Copy link
Member

Zendesk ticket #1335 has been linked to this issue.

@marcosmarxm
Copy link
Member

Comment made from Zendesk by Marcos Marx on 2022-06-27 at 17:10:

See discussion here: #13643

@marcosmarxm
Copy link
Member

Comment made from Zendesk by Marcos Marx on 2022-06-28 at 05:36:

thank you after i follow those steps and i got this error @marcosmarxm

Response:
{
“error”: {
“message”: “(#17) User request limit reached”,
“type”: “OAuthException”,
“is_transient”: true,
“code”: 17,
“error_subcode”: 2446079,
“fbtrace_id”: “AKdqUYWyXuOh5TPVezTx0Vv”
}

[Discourse post]

@marcosmarxm
Copy link
Member

Comment made from Zendesk by Marcos Marx on 2022-06-28 at 12:00:

Did you follow Airbyte documentation to increase the quota?

@marcosmarxm
Copy link
Member

Comment made from Zendesk by Marcos Marx on 2022-06-29 at 06:43:

sure i already have an advanced access, but i use my token to get 3 facebookads account and get ads, ad_insight and campaign data in each

[Discourse post]

@marcosmarxm
Copy link
Member

Comment made from Zendesk by Marcos Marx on 2022-06-29 at 11:19:

Well, you need to ask Meta Support if they can increase even more your quota. This error is throw by their side and not Airbyte.

@juferafo
Copy link

juferafo commented Jul 5, 2022

Hello. I am also facing this issue. Are there any news on this topic?

Thanks!

@marcosmarxm
Copy link
Member

Hello. I am also facing this issue. Are there any news on this topic?

Thanks!

Waiting Facebook update the Python SDK

@bigdatawonders
Copy link
Author

I cannot create and test new connectors meanwhile, when I do test I get depreciated version error... Old connectors are working fine.

@OhnoOhnoOhnononononoo
Copy link

Same problem here, I can't test my new connection.

@theRoundGreek
Copy link

API_VERSION

How would i go about implementing this since api v.15 is required for new apps. New to airbyte and don't use python so i'm kinda grasping at straws here. Any help would be greatly appreciated

@haranesh
Copy link

haranesh commented Jun 1, 2023

Same issue for me now for v17.0

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

Successfully merging a pull request may close this issue.

10 participants