通过遵循https://developers.facebook.com/docs/marketing-api/audiences-api,我能够使用cURL向定制的受众添加几个用户(移动广告客户ID)。但是,由于我的目标是进行批量加载(数万次),我转而使用pythonsdk。在
我得到了以下错误,这是我在cUrl中调用的模式。在
audience.add_users(CustomAudience.Schema.MOBILE_ADVERTISER_ID, users)
AttributeError: type object 'Schema' has no attribute 'MOBILE_ADVERTISER_ID'
这是我的密码
^{pr2}$另外,在cUrl中,我必须传入ACCESS_TOKEN,但是在Python示例代码中,根本没有提到它,为什么呢?在
我认为应该用小写字母:}。在
mobile_advertiser_id
而不是{对于身份验证:
参考号:https://github.com/facebook/facebook-python-ads-sdk
相关问题 更多 >
编程相关推荐