# Create a Adcreatives

<mark style="color:green;">`POST`</mark> `https://us-central1-appgregator.cloudfunctions.net/facebook/adcreative/`

#### Query Parameters

| Name                                               | Type   | Description           |
| -------------------------------------------------- | ------ | --------------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4                  |
| connection\_name<mark style="color:red;">\*</mark> | String | fbads-01              |
| adaccount\_id<mark style="color:red;">\*</mark>    | String | act\_1514519918873559 |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

{% tabs %}
{% tab title="201: Created Created" %}

```javascript
{
    "id": "23852150404470549"
}
```

{% endtab %}
{% endtabs %}

<details>

<summary>Body JSON</summary>

```shell
{
    "name" : "Sample Promoted Post5",
    "object_story_id" : "1842784136033747_3218548395123974"
}
```

</details>

<details>

<summary>Example :  Creating Page Like Ads</summary>

```shell
{
    "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"
                        }
                    }
                }

        }
}
```

</details>

{% tabs %}
{% tab title="cURL" %}

```
// Some code
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

{% endtab %}

{% tab title="PHP - cURL" %}

{% endtab %}
{% endtabs %}
