Create a Adcreatives

POST https://us-central1-appgregator.cloudfunctions.net/facebook/adcreative/

Query Parameters

Name
Type
Description

name*

String

ft-4

connection_name*

String

fbads-01

adaccount_id*

String

act_1514519918873559

Headers

Name
Type
Description

x-api-key*

String

U2Fsd...

{
    "id": "23852150404470549"
}
Body JSON
{
    "name" : "Sample Promoted Post5",
    "object_story_id" : "1842784136033747_3218548395123974"
}
Example : Creating Page Like Ads
{
    "name" : "Sample Promoted Post13",
    "authorization_category" : "NONE",
    "object_story_spec" : 
        {
            "page_id" : "1842784136033747",
            "link_data" : 
                {
                    "image_hash" : "a710507a461b5d44ce4e1470a0c3f1df",
                    "link" : "https://facebook.com/1842784136033747",
                    "message" : "Creative message",
                    "call_to_action" : {
                        "type" : "LIKE_PAGE",
                        "value" : {
                            "page" : "1842784136033747"
                        }
                    }
                }

        }
}
// Some code

Last updated