2
我正在创建一个管理,用于查找与我的商家帐户关联的Facebook广告系列的展示次数,点击次数和销售线索。 对于展示次数和点击次数,没有问题,但我无法找到潜在客户。 这是试图计算链接到Facebook广告系列的每个广告的主角的功能代码(取自Facebook开发人员)。 通过制出打印的值是:facebook广告系列广告的潜在客户列表始终为空
SIZE:0, LIST:[]
public void getTotalLeads(Campaign campaignFB) throws APIException {
APINodeList<Ad> ads = campaignFB.getAds().execute();
for (Ad ad : ads) {
Ad adFb = new Ad(ad.getId(), context);
APINodeList<Lead> listLeads = adFb.getLeads().execute();
System.out.println("SIZE: " + listLeads.size());
System.out.println("LIST: " + listLeads);
}
}