# Responsive Search Ad

<mark style="color:blue;">`GET`</mark> `https://us-central1-appgregator.cloudfunctions.net/googleads/ads/`

#### 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  |

#### Headers

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

{% tabs %}
{% tab title="200: OK Success" %}

```javascript
[
    {
        "resourceName": "customers/8171576147/ads/645029550642",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645033335241",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 Signup pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645082313713",
        "AdGroupAdStatus": 3,
        "Headlines": "\ttextAsset1 pinned to HEADLINE_1.\n\tBest Space Cruise Line pinned to UNSPECIFIED.\n\tExperience the Stars pinned to UNSPECIFIED.\n",
        "Descriptions": "\tBuy your tickets now pinned to UNSPECIFIED.\n\tVisit the Red Planet pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645083410021",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 Signup pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645147437912",
        "AdGroupAdStatus": 3,
        "Headlines": "\ttextAsset1 pinned to HEADLINE_1.\n\tBest Space Cruise Line pinned to UNSPECIFIED.\n\tExperience the Stars pinned to UNSPECIFIED.\n",
        "Descriptions": "\tBuy your tickets now pinned to UNSPECIFIED.\n\tVisit the Red Planet pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645147452357",
        "AdGroupAdStatus": 3,
        "Headlines": "\ttextAsset1 pinned to HEADLINE_1.\n\tBest Space Cruise Line pinned to UNSPECIFIED.\n\tExperience the Stars pinned to UNSPECIFIED.\n",
        "Descriptions": "\tBuy your tickets now pinned to UNSPECIFIED.\n\tVisit the Red Planet pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645147582404",
        "AdGroupAdStatus": 3,
        "Headlines": "\ttextAsset2 pinned to HEADLINE_1.\n\tBest Space Cruise Line pinned to UNSPECIFIED.\n\tExperience the Stars pinned to UNSPECIFIED.\n",
        "Descriptions": "\tBuy your tickets now pinned to UNSPECIFIED.\n\tVisit the Red Planet pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645147659750",
        "AdGroupAdStatus": 3,
        "Headlines": "\ttextAsset3 pinned to HEADLINE_1.\n\tBest Space Cruise Line pinned to UNSPECIFIED.\n\tExperience the Stars pinned to UNSPECIFIED.\n",
        "Descriptions": "\tBuy your tickets now pinned to UNSPECIFIED.\n\tVisit the Red Planet pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645277729335",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 dashboard pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645317734213",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 Login pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645381816926",
        "AdGroupAdStatus": 3,
        "Headlines": "\theadline1 Signup pinned to HEADLINE_1.\n\theadline2 pinned to UNSPECIFIED.\n\theadline3 pinned to UNSPECIFIED.\n",
        "Descriptions": "\tdescription1 pinned to UNSPECIFIED.\n\tdescriptions2 pinned to UNSPECIFIED.\n"
    },
    {
        "resourceName": "customers/8171576147/ads/645831590046",
        "AdGroupAdStatus": 2,
        "Headlines": "\tAppgregator pinned to UNSPECIFIED.\n\tGet Lifetime Access pinned to UNSPECIFIED.\n\tGet Access to Hundreds Apps pinned to UNSPECIFIED.\n\tCreate New Apps Faster pinned to UNSPECIFIED.\n\tAppgregtor pinned to UNSPECIFIED.\n",
        "Descriptions": "\tTrusted by over 6,000 Blues. Appgregator by Categories pinned to UNSPECIFIED.\n\tGet Things Done Faster Through Our Appgregator pinned to UNSPECIFIED.\n\tCreate New Apps Faster Then Ever pinned to UNSPECIFIED.\n"
    }
]
```

{% endtab %}
{% endtabs %}

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

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

var config = {
  method: 'get',
  url: 'https://us-central1-appgregator.cloudfunctions.net/googleads/ads?name=ft-4&connection_name=ga-06&customer_id=8171576147',
  headers: { 
    'login-customer-id': '1894250756', 
    'client_id': 'XXX-XXX.apps.googleusercontent.com', 
    'client_secret': 'XXX-XXX', 
    'developer_token': 'XXXX', 
    'x-api-key': 'U2Fsd...'
  }
};

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 GET 'https://us-central1-appgregator.cloudfunctions.net/googleads/ads?name=ft-4&connection_name=ga-06&customer_id=8171576147' \
--header 'login-customer-id: 1894250756' \
--header 'client_id: XXX-XXX.apps.googleusercontent.com' \
--header 'client_secret: XXX-XXX' \
--header 'developer_token: XXXX' \
--header 'x-api-key: U2Fsd...'
```

{% endtab %}

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

```php
<?php

$curl = curl_init();

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

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
