我想使用Facebook发布的页面帖子创建广告。对于此过程,我能够通过图形API(page_id / posts)获取页面的所有已发布帖子。另外,我可以创建广告素材以及Post_Id。但是,当我在广告创建过程中使用此创建的ad_creative ID时,会出现此错误“无效参数:广告素材未使用有效链接”。对于Doc ...参考:https://developers.facebook.com/docs/marketing-api/reference/ad-creative#obtaining_pp我也使用这种方法来生成广告。广告= ad_account.ads.create({名称:“通过邮寄广告*”,adset_id:under_adset_id,广告素材:{creative_id:post_creative_id,},状态:“ PAUSED”,})
向请求添加“链接”字段
creative: { creative_id: post_creative_id, link: "https://stackoverflow.com/"},