我使用facebook's java api创建了自定义受众群体,并上传了包含android mobile_adv_ids的数据。
CustomAudience customAudience = new AdAccount(ACCOUNT_ID, context).createCustomAudience()
.setName("My new CA")
.setSubtype(CustomAudience.EnumSubtype.VALUE_CUSTOM)
.setDescription("People who bought from my website")
.execute();
User user = new CustomAudience(customAudience.getId(), context).createUser()
.setPayload("{\"schema\":\"MOBILE_ADVERTISER_ID\"," + payload.toString().substring(1, payload.toString().length()))
.execute();
我可以看到数据已成功上传到
https://www.facebook.com/ads/manager/audiences/manage/?act=xxxxxxx&pid=p1
和
的见解https://www.facebook.com/ads/audience-insights/people?act=xxxxxxx&age=18- 但我找不到api来阅读代码中的见解。
这是https://developers.facebook.com/docs/marketing-api/reference/custom-audience/上可供阅读的代码。
但是,如何将观众见解数据作为男/女和其他领域的百分比来阅读?
CustomAudience customAudience2 = new CustomAudience("xxxxxxxxx", context).get().execute();
感谢。
答案 0 :(得分:0)
相应的API称为受众调查https://developers.facebook.com/docs/marketing-api/audience-insights-api/audience-studies/v2.9
但是,它尚未在Java SDK中本机支持,您必须自己构建请求。请参阅https://github.com/facebook/facebook-java-ads-sdk/blob/master/examples/AdhocAPIRequestExample.java
中的示例