如何使用Facebook分享受众群体API?
https://graph.facebook.com/{audienceid}/adaccounts
我尝试在图形api资源管理器中运行它我不知道需要提供和使用的属性。
答案 0 :(得分:1)
Add's Ad Account Ids provided in the below call
HTTP POST: https://graph.facebook.com/{audienceid}/adaccounts/
Post Params:
'adaccounts' = array('adActId1','adActId2')
Delete Ad Accounts from the Audience with below call
HTTP DELETE: https://graph.facebook.com/{audienceid}/adaccounts
参考:View This
答案 1 :(得分:1)
我试过这个工作正常!
import requests
import json
params = {'access_token': 'youraccess_token' ,'adaccounts': [youraddaccount]}
r = requests.post('https://graph.facebook.com/{audienceid}/adaccounts', data=params)
print r.json()
答案 2 :(得分:0)