Error while creating adcreatives using facebook marketing API in sandbox account

♀尐吖头ヾ 提交于 2020-05-17 05:11:06

问题


I am trying to create dynamic Facebook ads using marketing API in the sandbox account. I am following this document. Now I am unable to create adcreatives. I am getting this error "Ads creative post was created by an app that is in development mode. It must be in public to create this ad.".

Here is my code : try { $response = $fb->post( '/act_<SANDBOX_ACCOUNT_ID>/adcreatives', array ( 'name' => 'Sample Creative', 'object_story_spec' => '{ "link_data": { "image_hash": "5d9cdde5f43dffdec3165e06c1bc3f21", "link": "https://scontent.xx.fbcdn.net/v/t45.1600-4/82783061_120330000035086911_1622348699776581632_n.png?_nc_cat=102&_nc_ohc=np_jpbh2yzIAX8TX6Yt&_nc_ht=scontent.xx&oh=d3c2d425ab9d87154aad9f376eabe8fe&oe=5EC6F7EF", "message": "try it out" }, "page_id": "493348931012140"}' ), '{access-token}' ); }

来源:https://stackoverflow.com/questions/59835822/error-while-creating-adcreatives-using-facebook-marketing-api-in-sandbox-account

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