I'm trying to use Facebook Ads API, but I'm getting the following error:
ImportError: No module named objects
This is my code:
from facebookads.objects import (
AdUser,
Campaign,
)
How can I fix this?
You need to use
pip install facebookads==2.5.0
The objects was deprecated from 2.6.0
. You can see header in the objects file
"""
DEPRECATED
This file is kept for backward compatibility.
Please use objects in adobjects folder instead.
"""
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.