Facebook Marketing API sandbox mode

北慕城南 提交于 2020-05-27 16:32:35

问题


I'm trying to create adverts on the Facebook using marketing (ads) API, but after some rejected requests my account has been blocked. So, I tried to find out ways to testing my API requests via sandbox mode. Could you give me some tips about best practices of the creating adverts, campaigns and adsets on using facebook marketing (ads) API with sandbox accounts


回答1:


  • Enable Account from FB Dev->Marketing API->Tools->Sandbox Ad Account Management. Get Access Token from here.
  • Go to Graph API Explorer. Provide your Access Token
  • Create campaign/adset/ad using POST request. (Find api reference here)
  • Fetch data using GET request (check api ref)

I have worked this way. May be its not best practice, i couldn't find such thing in fb dev site,




回答2:


First of all you will need to get a sandbox account, you can go to developers.facebook.com and get your account id, token, etc.

There are no best practices as such, you can do anything with this ad account. Just remember they have fake data, which may or may not match the real world expectations. When reading insights, you might also get empty for most of the fields.

As far as creation is concerned there shouldn't be any problem.



来源:https://stackoverflow.com/questions/45463487/facebook-marketing-api-sandbox-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!