# Remove Adgroup

<mark style="color:red;">`DELETE`</mark> `https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups/`

#### Query Parameters

| Name                                               | Type   | Description  |
| -------------------------------------------------- | ------ | ------------ |
| name<mark style="color:red;">\*</mark>             | String | ft-4         |
| connection\_name<mark style="color:red;">\*</mark> | String | ga-06        |
| customer\_id<mark style="color:red;">\*</mark>     | String | 8171576147   |
| adgroup\_id<mark style="color:red;">\*</mark>      | String | 146256167656 |

#### Headers

| Name                                                | Type   | Description                          |
| --------------------------------------------------- | ------ | ------------------------------------ |
| login-customer-id<mark style="color:red;">\*</mark> | String | 1894250756                           |
| client\_id<mark style="color:red;">\*</mark>        | String | XXXX-XXXX.apps.googleusercontent.com |
| client\_secret<mark style="color:red;">\*</mark>    | String | XXXX-XXXX                            |
| developer\_token<mark style="color:red;">\*</mark>  | String | XXXX                                 |
| x-api-key<mark style="color:red;">\*</mark>         | String | U2FsdG...                            |

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

```javascript
{
    "resource_name": "customers/8171576147/adGroups/146256167656"
}
```

{% endtab %}
{% endtabs %}

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

```javascript
var axios = require('axios');

var config = {
  method: 'delete',
  url: 'https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups?name=ft-4&connection_name=ga-06&customer_id=8171576147&adgroup_id=146256167656',
  headers: { 
    'login-customer-id': '1894250756', 
    'client_id': 'XXX', 
    'client_secret': 'XXX', 
    'developer_token': 'XXX', 
    'x-api-key': 'XXX'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="cURL" %}

```shell
curl --location --request DELETE 'https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups?name=ft-4&connection_name=ga-06&customer_id=8171576147&adgroup_id=146256167656' \
--header 'login-customer-id: 1894250756' \
--header 'client_id: XXX' \
--header 'client_secret: XXX' \
--header 'developer_token: XXX' \
--header 'x-api-key: XXX'
```

{% endtab %}

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

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups?name=ft-4&connection_name=ga-06&customer_id=8171576147&adgroup_id=146256167656',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'DELETE',
  CURLOPT_HTTPHEADER => array(
    'login-customer-id: 1894250756',
    'client_id: XXX',
    'client_secret: XXX',
    'developer_token: XXX',
    'x-api-key: XXX'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
