Facebook Marketing API : Get results and cost per result of a Campaign

Digital Marketing Facebook Marketing API 1 year ago

6.49K 1 0 0 1

_x000D_ _x000D_ I'm creating an application (using Facebook Business Java SDK) that can get all infomation of campaigns own by an Ad Account. Almost of my campaigns have same objective is APP_INSTALLS. I want to know how many time my app was installed, so I tried to request infomation like "Results" column and "Cost per Result" column in Adsmanager board : Adsmanager colums But when I added "results" and "cost_per_result" to APIRequestGetInsights's request fields, I got a FailRequestException : "{"error":{"message":"(#100) results, cost_per_result are not valid for fields param. please check https://developers.facebook.com/docs/marketing-api/reference/ads-insights/ for all valid values","type":"OAuthException","code":100,"fbtrace_id":"DnPCKyIGIqs"}}" I used an user access token with permissions below : - read_insights - manage_pages - pages_show_list - publish_pages - ads_management - ads_read - business_management I searched on google many times but nothing is useful. So someone here please tell me how to get "Results" and "Cost per Result" info of a campaign by Facebook api?

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago
_x000D_ As said in the comment, this information used to be available in the field cost_per_action_type, you could retrieve the value in the item where ad['action_type'] == 'mobile_app_install'. Unfortunately this is not longer available in 3.2, but you can calculate this value yourself: Make the query including the actions and spend fields. You'll find the total number of installs (in the item with the action_type == 'mobile_app_install'), then you can calculate the cost per install with cost_per_install = spend / install_count.
0 views
1 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum


Q

What are the best SEO tools for a personal website? What website or tools should I use to build and...

What are the best SEO tools for a personal website? What website or tools should I use to build and...
Q

Why is keyword research important?

Why is keyword research important?
Q

What is SEO ?

What is SEO ?