In Python 3.7,
from facebookads.adobjects.adlabel import AdLabel
results in
Traceback (most recent call last):
File "/Users/mohan/growth-tools/facebook-experiment/main.py", line 4, in <module>
from facebookads.adobjects.adlabel import AdLabel
File "/Users/mohan/growth-tools/facebook-experiment/venv/lib/python3.7/site-packages/facebookads/adobjects/adlabel.py", line 22, in <module>
from facebookads.adobjects.abstractcrudobject import AbstractCrudObject
File "/Users/mohan/growth-tools/facebook-experiment/venv/lib/python3.7/site-packages/facebookads/adobjects/abstractcrudobject.py", line 564
params=None, async=False, include_summary=True,
^
SyntaxError: invalid syntax
The issue is, I think, that async has become a reserved keyword as of Python 3.7. Is there any workaround that would let me keep using this SDK?
Try
facebook_business
instead offacebookads
. See also this related answer.