1、访问 广告管理工具 确认自己登陆的账号下面能看到户。

2、使用 图谱Api探索工具 生成用户短期口令

3、get请求(或者浏览器直接打开)访问:

https://graph.facebook.com/v19.0/me?fields=id,name, email&access_token={上一步生成的口令}

4、短期口令延长为长期口令:

https://graph.facebook.com/v19.0/oauth/access_token?grant_type=fb_exchange_token&client_id={应用id}&client_secret={应用密钥}&fb_exchange_token={上一步生成的短期口令}

注:应用id和密钥在这里获取 https://developers.facebook.com/apps 

5、用第四步生成的口令获取广告户:

6、查询该户花了多少钱:

https://graph.facebook.com/v10.0/{第5步获取的id}/insights?fields=spend,actions&access_token={第4步获取的token}


查询户下面的广告系列:

https://graph.facebook.com/v10.0/{第5步获取的id}/campaigns?access_token={第4步获取的token}&fields=name,updated_time,status,objective,cost_per_action_type,spend,actions&limit=500

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐