Home Facebook-marketing api - need access to type of creative format
Reply: 1

Facebook-marketing api - need access to type of creative format

parul Published in 2018-02-12 06:23:11Z

I have a requirement in which I need to access the creative format type for each adCreative. I explored the API and figured that this information is stored in Ad Creative Object Story Spec, however, I am not able to query this object.

This is the request I am making


This is not returning object_story_id and object_story_spec field only. What am I missing here?

Thanks in advance.

Patrick Lambe
Patrick Lambe Reply to 2018-02-12 13:53:46Z

Request those fields on the adcreative edge itself. ie your first call will return a list of adcreative ids.

{ "data": [ { "id": "23842732907210427" }, { "id": "23842732907020427" }]}

So you would call graph.facebook.com/23842732907210427?fields=object_story_id&access_token=USERACCESSTOKEN to retrieve the spec for that ad creative.

You can also nest queries so you may be able to retrieve the spec in a single call but I have been unsuccessful attempting this. https://developers.facebook.com/docs/graph-api/using-graph-api

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.442121 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO