当我试图通过Marketing API创建广告时,出现以下错误:
error_subcode: 1359101
error_user_msg: "You need to have a valid payment method associated with your ad account before you can create ads."
error_user_title: "Add Payment Method"
我在此处找不到有关此错误子代码的任何额外信息https://developers.facebook.com/docs/marketing-api/error-reference,而主要错误代码"100-Invalid parameter"几乎没有任何帮助。
注意:我不想手动向"…facebook.com/ads/manager/billing/transactions/…"上的帐户添加支付方式来实现这一点。
编辑:有没有办法检查用户是否在广告账户上设置了付款方式?
有没有办法检查用户是否在广告账户上设置了付款方式?
查看Ad Account对象的字段funding_source
和funding_source_details
–使用这些字段,您应该能够确定是否为帐户设置了付款方式(如有必要,还可以添加其他详细信息)
https://developers.facebook.com/docs/marketing-api/reference/ad-account