广告Insights API网站转化不可用

时间:2017-12-15 05:37:50

标签: php facebook facebook-graph-api facebook-ads-api

我通过Marketing API v2.11获取Facebook Ads Insights数据

API终点:https://graph.facebook.com/v2.11/act_XXXXXXX/insights

XXXXXXX是广告帐户ID

但是我无法获取“网站转化次数”数据。我也没有在见解字段列表中看到此字段https://developers.facebook.com/docs/marketing-api/insights/fields/v2.11

那么如何通过api获取这些数据?

谢谢!

1 个答案:

答案 0 :(得分:1)

&#34;网站转换&#34;字段action_valuesactions上提供的数据。它返回list<AdsActionStats>,其中包含action_type和value的列表。

// extracts of action_type

offsite_conversion.add_to_cart: Adds to Cart
offsite_conversion.checkout: Checkouts
offsite_conversion.custom.<custom_conv_id>: Custom Conversions defined by the advertiser
offsite_conversion.fb_pixel_add_payment_info: Adds Payment Info
offsite_conversion.fb_pixel_add_to_cart: Adds To Cart
offsite_conversion.fb_pixel_add_to_wishlist: Adds To Wishlist
offsite_conversion.fb_pixel_complete_registration: Completed Registration
offsite_conversion.fb_pixel_custom: Custom pixel events defined by the advertiser
offsite_conversion.fb_pixel_initiate_checkout: Initiates Checkout
offsite_conversion.fb_pixel_lead: Leads
offsite_conversion.fb_pixel_purchase: Purchases
offsite_conversion.fb_pixel_search: Searchs
offsite_conversion.fb_pixel_view_content: Views Content
offsite_conversion.key_page_view: Key Page Views
offsite_conversion.lead: Leads
offsite_conversion.other: Other Website Conversions
offsite_conversion.registration: Registrations
onsite_conversion.flow_complete: On-Facebook Workflow Completions
onsite_conversion.messaging_block: Blocked Messaging Conversations
onsite_conversion.messaging_first_reply: New Messaging Conversations
onsite_conversion.messaging_reply: Messaging Replies
onsite_conversion.purchase: On-Facebook Purchases