Facebook Marketing Adindsight API中的字段“展示位置”

时间:2019-07-02 13:41:54

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

我对字段展示位置有误 展示位置字段不是国家/地区,而是Facebook受众群体,facebook和instagram之间的多元化...我的完整要求是:

    account = AdAccount('act_46605285454545442')
    ads = account.get_ads()
params = {
    'time_range': {
        'since':  "2019-06-01", 
        'until': "2019-06-26"
        }, 
    'fields': [
        AdsInsights.Field.campaign_id,
        AdsInsights.Field.campaign_name,
        AdsInsights.Field.adset_name,
        AdsInsights.Field.ad_name,
        AdsInsights.Field.spend,
        AdsInsights.Field.impressions,
        AdsInsights.Field.clicks,
        AdsInsights.Field.buying_type,
        AdsInsights.Field.objective,        
        AdsInsights.Field.actions,
        AdsInsights.Field.cpm,
        AdsInsights.Field.account_currency,
        AdsInsights.Field.placement,
     ],
    'level': 'ad',
    'time_increment': 'all_days',
}
async_job = account.get_insights_async(fields = params.get('fields'), params=params)

它给了我错误:“放置位置对于字段参数无效”

1 个答案:

答案 0 :(得分:0)

据我所知,“国家”不是一个字段,而是一个细分。听起来您请求中的位置错误。不过不能确定,因为您还没有发布任何其他详细信息。