53736

Facebook Marketing API Select Fields

Question:

i want to get only offiste conversions within this marketing api call:

https://graph.facebook.com/v2.8/<ad_id>/insights?fields=actions{"action_type":{"offsite_conversion"}}&access_token=<token>

but i get all fields in "actions". any idea what i'm doing wrong?

Answer1:

You can use parameter:<strong>"filtering"</strong>

<a href="https://graph.facebook.com/v2.8/" rel="nofollow">https://graph.facebook.com/v2.8/</a><strong>ad_id</strong>/insights?<br /> &fields=actions&action_breakdowns=action_type<br /> &filtering={{"field":"action_type","operator":"CONTAIN","value":"offsite_conversion.fb_pixel_complete_registration"}]&access_token=<strong>token</strong>

Recommend

  • nested table insertion data through procedure in pl/sql
  • How to use fluent nhibernate to map a value type collection?
  • PyPlot Error in Julia: type PyObject has no field set_yscale
  • convert flip lambda into SKI terms
  • How to create a complex JSON using HashMap in android?
  • can i call java method from native code?if so how?
  • match two columns and display values from 3rd column using vlookup
  • operations with different int types
  • Combining multiple functions
  • HTML 5 video within iPhone image frame
  • Where does the JLS specify that the result of an addition is int if its operands are of smaller type
  • Oracle Type Casting
  • Not a valid month in oracle when add_months is used
  • Windows Mercurial global keychain
  • ASP.Net check if user is internal or external
  • add user define properties to a domain class
  • Branch.io redirects to app store only though app is already present in device
  • CSS Columns not Stacking Correctly
  • Is there ever a reason to use is versus as? [duplicate]
  • Int to char conversion rule in C when int is outside the range of char
  • XMPPConnection Error in android
  • How to Update model and database with code first approach in Asp.net MVC
  • Should I optimize around reads or CPU time in Google App Engine
  • Why is it ambiguous to call overloaded ambig(long) and ambig(unsigned long) with an integer literal?
  • Transpose table then set and rename index
  • ConfigurationBuilder not working in azure function
  • Unable to play media with vlc ocx
  • android google indoor map
  • rspec simple example getting error on request variable in integration test
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • Can Jackson SerializationFeature be overridden per field or class?
  • how does django model after text[] in postgresql [duplicate]
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal