ageofneil edited a comment on pull request #18883:
URL: https://github.com/apache/airflow/pull/18883#issuecomment-943607246


   Are we sure this is working as intended? 
   
   ```
   
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/models/taskinstance.py",
 line 1157, in _run_raw_task
       self._prepare_and_execute_task_with_callbacks(context, task)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/models/taskinstance.py",
 line 1331, in _prepare_and_execute_task_with_callbacks
       result = self._execute_task(context, task_copy)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/models/taskinstance.py",
 line 1361, in _execute_task
       result = task_copy.execute(context=context)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/providers/google/cloud/transfers/facebook_ads_to_gcs.py",
 line 111, in execute
       rows = service.bulk_facebook_report(params=self.params, 
fields=self.fields)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/airflow/providers/facebook/ads/hooks/ads.py",
 line 125, in bulk_facebook_report
       _async = ad_account.get_insights(params=params, fields=fields, 
is_async=True)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/facebook_business/adobjects/adaccount.py",
 line 2732, in get_insights
       return self.get_insights_async(fields, params, batch, success, failure, 
pending)
     File 
"/home/airflow/.local/lib/python3.6/site-packages/facebook_business/adobjects/adaccount.py",
 line 2851, in get_insights_async
       return request.execute()
     File 
"/home/airflow/.local/lib/python3.6/site-packages/facebook_business/api.py", 
line 687, in execute
       api_version=self._api_version,
     File 
"/home/airflow/.local/lib/python3.6/site-packages/facebook_business/api.py", 
line 350, in call
       raise fb_response.error()
   facebook_business.exceptions.FacebookRequestError: 
   
     Message: Call was not successful
     Method:  POST
     Path:    https://graph.facebook.com/v6.0/*****/insights
     Params:  {'level': 'ad', 'date_preset': 'yesterday', 'fields': 
'["campaign_name","campaign_id","ad_id","clicks","impressions"]'}
   
     Status:  400
     Response:
       {
         "error": {
           "message": "(#2635) You are calling a deprecated version of the Ads 
API. Please update to the latest version: v11.0.",
           "type": "OAuthException",
           "code": 2635,
           "fbtrace_id": "ADTlqAD1sH_MY6I2macc2Hy"
         }
       }
   
   ```
   
   I'm running this code: 
https://airflow.apache.org/docs/apache-airflow-providers-google/stable/_modules/airflow/providers/google/cloud/example_dags/example_facebook_ads_to_gcs.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to