我尝试从以下位置执行以下脚本示例: https://developers.facebook.com/docs/marketing-api/reference/sdks/python/business/v2.5
from facebookads.objects import Business, Campaign, Ad, AdAccount, AsyncJob, Insights
business = Business('827904997241579')
insights = business.get_insights(fields=[
Insights.Field.campaign_id,
Insights.Field.unique_clicks,
Insights.Field.impressions,
], params={
'level': Insights.Level.ad,
'date_preset': Insights.Preset.yesterday,
})
print insights
但是,它返回一个空列表。可能是什么问题?
答案 0 :(得分:1)
我收到了Facebook的回复。
似乎不支持business.insights端点。
python SDK页面中的示例可能是错误。