如何在 Facebook Marketing API 上检查 AdAccount 的付款方式?

How to check for a payment method on an AdAccount on Facebook Marketing API?

尝试通过营销 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"

我在这里 error_subcode 找不到任何额外信息 https://developers.facebook.com/docs/marketing-api/error-reference,主要错误代码“100 - 参数无效”几乎没有任何帮助。

注意:我不打算手动将付款方式添加到“...facebook.com/ads/manager/billing/transactions/...”的帐户,以便这条路。

编辑:有没有办法检查用户是否在广告帐户上设置了付款方式?

Is there a way to check if the user has a payment method setup on the Ad Account?

查看广告帐户对象的字段 funding_sourcefunding_source_details – 使用这些您应该能够确定是否为该帐户设置了付款方式(加上其他详细信息,如果必要的。)

https://developers.facebook.com/docs/marketing-api/reference/ad-account