Python Facebook营销广告无效

时间:2017-03-10 13:28:52

标签: python asp.net-mvc facebook-graph-api facebook-marketing-api

我们已经在我们的dot项目中集成了python facebook marketing Ads api来创建fb标记广告,并且它在本地和&amp ;;测试环境,但不在实时服务器上工作。每当我们尝试创建广告时,我们都会遇到不同类型的错误。以下是错误详情:

File "e:\5ac3b64c-c498-4468-a191-ed4e2e5430f3.py", line 90, in <module>
File "C:\Python34\lib\site-packages\facebookads\adobjects\abstractcrudobject.py", line 290, in remote_create
File "C:\Python34\lib\site-packages\facebookads\api.py", line 658, in execute
File "C:\Python34\lib\site-packages\facebookads\api.py", line 325, in call
facebookads.exceptions.FacebookRequestError: 
Message: Call was not successful
Path:    https://graph.facebook.com/v2.8/act_108119133030423/ads
Response:
"error": {
"error_subcode": 1815460,
"message": "Fatal",
"code": -1,
"error_user_msg": "This account has been created too recently, or spends too little to be eligible for CPA ad creation"
 }

有时我们会遇到以下错误:

File "e:\d633ae30-c809-47e4-8d45-e50db6277b08.py", line 66, in <module>
File "C:\Python34\lib\site-packages\facebookads\adobjects\abstractcrudobject.py", line 290, in remote_create
File "C:\Python34\lib\site-packages\facebookads\api.py", line 658, in execute
File "C:\Python34\lib\site-packages\facebookads\api.py", line 325, in call
facebookads.exceptions.FacebookRequestError: 
Message: Call was not successful
Path:    https://graph.facebook.com/v2.8/act_108119133030423/adsets
Response:
"error": {
"type": "OAuthException",
"blame_field": "targeting"
"is_transient": false,
"code": 100,
"error_user_title": "Incorrect Location Format",
     }

有时我们也会遇到以下错误:

File "e:\639d2c5c-2fe9-4b53-833c-41342cf14df9.py", line 72, in <module>
File "C:\Python34\lib\site-packages\facebookads\adobjects\abstractcrudobject.py", line 290, in remote_create
File "C:\Python34\lib\site-packages\facebookads\api.py", line 658, in execute
File "C:\Python34\lib\site-packages\facebookads\api.py", line 325, in call
facebookads.exceptions.FacebookRequestError: 
Message: Call was not successful
Path:    https://graph.facebook.com/v2.8/act_108119133030423/adcreatives
Response:
"error": {
"error_subcode": 1885516,
"error_user_title": "Link Data Caption is Not an Url",
"error_data": {
           [
"link_data",
           ]
       },
"type": "OAuthException",
     }

所以每次我们变得与众不同。请帮我解决这个错误。

提前致谢。

1 个答案:

答案 0 :(得分:0)

我们已经解决了这个问题。问题是由于我们的fb帐户未启用CTC广告。为了解决此问题,我们从fb帐户中花费了50挪威克朗(通过从https://www.facebook.com/ads/manager页面创建fb广告)。一旦支出金额达到50挪威克朗,CTC广告就会启用,我们也可以通过我们的代码制作广告。

由于