我正在使用官方Facebook API Java SDK来检索特定广告定位中使用的每个兴趣的统计信息(如https://developers.facebook.com/docs/marketing-api/reference/ad-keyword-stats中所述) . 在Graph Explorer中尝试调用时,它运行正常,但我在Java中得到一个空响应 . 我已经使用SDK获取广告系列,广告集和广告的见解,因此常规设置正常运行 . 这是我现在的代码:

APINodeList<AdKeywordStats> stats = new Ad(adId, CONTEXT).getKeywordStats()
    .requestAllFields().execute();
System.out.println(stats);

编辑:

经过一番挖掘后,我想我找到了问题的原因,希望这个公关应该解决它:https://github.com/facebook/facebook-java-ads-sdk/pull/149