0
facebook 2.8から2.10に更新しました。それから、廃止されたすべてのフィールドを通過して取り出しました。今すぐコードを実行しています。100エラーを取得し、私はfacebook apiで電話を受ける
Message: Call was not successful
Method: GET
Path: https://graph.facebook.com/v2.10/{pageid}/insights
Params: {'fields': '["ad_id","ad_name","adset_id","adset_name","campaign_id","campaign_name","account_id","account_name","buying_type","relevance_score","spend","reach","impressions","clicks","social_reach","social_impressions","unique_clicks","social_clicks","unique_social_clicks","call_to_action_clicks","inline_link_clicks","unique_inline_link_clicks","inline_post_engagement","objective","total_actions","total_unique_actions"]', 'level': 'ad', 'time_ranges': '[{"since":"2017-08-03","until":"2017-08-03"}]'}
Status: 400
Response:
{
"error": {
"message": "Unsupported get request.",
"code": 100,
"type": "GraphMethodException",
"fbtrace_id": "AStcsafetT"
}
}
私はこのAPIを調べており、これらのデータ型に変更はありません。私のpythonスクリプトを実行すると、私の出力はcmdになります。
TypeError: 'NoneType' object has no attribute '__getitem__'
私が戻ってきたのは確かです。だから私は空の文字列を返していますか?
ありがとう
フィールドを少なく指定すると、そのエラーは消えますか?そして、あなたはどんな洞察力を求めていますか? – CBroe
私はこれを今行っていますが、クリック数、インプレッション数、費用は重要なものです – oharr
ad_idを持ってきてもそのエラーが発生するようです。 – oharr