Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdsInsights Object is Missing Fields. #11

Closed
bdiesenhaus opened this issue Mar 7, 2016 · 4 comments
Closed

AdsInsights Object is Missing Fields. #11

bdiesenhaus opened this issue Mar 7, 2016 · 4 comments

Comments

@bdiesenhaus
Copy link

Reference https://developers.facebook.com/docs/marketing-api/reference/ads-insights. The AdInsights Object is missing the estimated_ad_recall_rate and objective fields

@JiamingFB
Copy link
Contributor

Hi bdiesenhaus, just to unblock, you can read the raw json value of the object. In this way you can access the field if it is returned from server but missing in the object.
JsonParser parser = new JsonParser();
JsonObject rawJson = parser.parse(ad.getRawValue()).getAsJsonObject();
System.out.println(rawJson.get("adset_id"));

We'll update the sdk soon to add the new api response fields.

@bdiesenhaus
Copy link
Author

I found two additional fields that are missing on the AdInsights object, cpc and clicks:

https://developers.facebook.com/docs/marketing-api/reference/ads-insights

cpc -The average cost per click for these ads, calculated as the amount spent divided by the number of clicks received.

clicks - The total number of clicks on your ad. Depending on what you're promoting, this can include Page likes, event responses or app installs.

@JiamingFB
Copy link
Contributor

Hi bdiesenhaus,
These fields will be included in next release (~1 week). They were added after last sdk release and that was why they were not included.

@JiamingFB
Copy link
Contributor

These fields are added in the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants