Skip to content

Commit d5aebf1

Browse files
authored
Align the default version with Facebook business SDK (#18883)
1 parent 0a82a42 commit d5aebf1

File tree

1 file changed

+5
-4
lines changed
  • airflow/providers/facebook/ads/hooks

1 file changed

+5
-4
lines changed

airflow/providers/facebook/ads/hooks/ads.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""This module contains Facebook Ads Reporting hooks"""
1919
import time
2020
from enum import Enum
21-
from typing import Any, Dict, List
21+
from typing import Any, Dict, List, Optional
2222

2323
try:
2424
from functools import cached_property
@@ -53,8 +53,9 @@ class FacebookAdsReportingHook(BaseHook):
5353
5454
:param facebook_conn_id: Airflow Facebook Ads connection ID
5555
:type facebook_conn_id: str
56-
:param api_version: The version of Facebook API. Default to v6.0
57-
:type api_version: str
56+
:param api_version: The version of Facebook API. Default to None. If it is None,
57+
it will use the Facebook business SDK default version.
58+
:type api_version: Optional[str]
5859
5960
"""
6061

@@ -66,7 +67,7 @@ class FacebookAdsReportingHook(BaseHook):
6667
def __init__(
6768
self,
6869
facebook_conn_id: str = default_conn_name,
69-
api_version: str = "v6.0",
70+
api_version: Optional[str] = None,
7071
) -> None:
7172
super().__init__()
7273
self.facebook_conn_id = facebook_conn_id

0 commit comments

Comments
 (0)