我试图使用来自 facebook 业务 SDK API 的 Targetting search API。
ImportError:没有名为 facebookads.adobjects.targetingsearch 的模块
使用 Python 2.7.12 ~
试图执行这段代码:
from facebookads.adobjects.targetingsearch import TargetingSearch
params = {
'q': 'un',
'type': 'adgeolocation',
'location_types': ['country'],
}
resp = TargetingSearch.search(params=params)
print(resp)
实际结果 :
Traceback (most recent call last):
File "test.py", line 2, in <module>
from facebookads.adobjects.targetingsearch import TargetingSearch
ImportError: No module named facebookads.adobjects.targetingsearch