> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DataForSEO: Serp Google Ads Search Live Advanced

> Find the ads an advertiser or domain runs on Google, from the Ads Transparency Center, by location, platform and date. DataForSEO Serp Google Ads Search Live.

Find the ads an advertiser or domain runs on Google, from the Ads Transparency Center, by location, platform and date.

> [!NOTE]
>
> Tool ID: `dataforseo_serp_google_ads_search_live_advanced`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'dataforseo_serp_google_ads_search_live_advanced',
  {
    "location_code": 123,
    "depth": 123,
    "target": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute dataforseo_serp_google_ads_search_live_advanced --input '{
  "location_code": 123,
  "depth": 123,
  "target": "example"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "version": "example",
  "status_code": 123,
  "status_message": "example",
  "time": "example",
  "tasks_count": 123,
  "tasks_error": 123,
  "tasks": [
    {}
  ]
}
```

Use `deepline describe dataforseo_serp_google_ads_search_live_advanced --json` for the latest machine-readable contract.

## Input reference

Google Ads Search provides information on ads that are run by advertisers on Google Ads. Information is based on the Ads Transparency platform and adapted for the convenience of DataForSEO users.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.location_code` | `integer` | No | — | search engine location code optional field if you use this field, you don't need to specify location\_name or location\_coordinate you can receive the list of available locations of the search engines with their location\_code by making a separate request to the [https://api.dataforseo.com/v3/serp/google/ads\_search/locations](https://api.dataforseo.com/v3/serp/google/ads_search/locations) example: 2840 Note: if you don't specify location\_name , location\_code , or location\_coordinate , the ads will be searched across all the available locations |
| `payload.depth` | `integer` | No | — | parsing depth optional field number of results in SERP default value: 40 max value: 120 Your account will be billed per each SERP containing up to 40 results. Setting depth above 40 may result in additional charges if the search engine returns more than 40 results . The cost can be calculated on the Pricing page. |
| `payload.target` | `string` | No | — | domain name required field if advertiser\_ids is not specified domain name associated with an advertiser account |
| `payload.advertiser_ids` | `array` | No | — | advertiser identifiers required field if target is not specified you can specify the maximum of 25 values in this array. advertiser\_ids values for this parameter can be found in the Google Ads Advertisers endpoint. |
| `payload.priority` | `integer` | No | — | task priority optional field can take the following values: 1 – normal execution priority (set by default) 2 – high execution priority You will be additionally charged for the tasks with high execution priority. The cost can be calculated on the Pricing page. |
| `payload.location_name` | `string` | No | — | full name of search engine location optional field if you use this field, you don't need to specify location\_code or location\_coordinate you can receive the list of available locations of the search engine with their location\_name by making a separate request to the [https://api.dataforseo.com/v3/serp/google/ads\_search/locations](https://api.dataforseo.com/v3/serp/google/ads_search/locations) example: London,England,United Kingdom Note: if you don't specify location\_name , location\_code , or location\_coordinate , the ads will be searched across all the See the live schema for the complete constraint. |
| `payload.tag` | `string` | No | — | user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response |
| `payload.location_coordinate` | `string` | No | — | GPS coordinates of a location optional field if you use this field, you don't need to specify location\_name or location\_code example: 52.6178549,-155.352142 Note: if you don't specify location\_name , location\_code , or location\_coordinate , the ads will be searched across all the available locations |
| `payload.platform` | `string` | No | — | advertising platform optional field possible values: all , google\_play , google\_maps , google\_search , google\_shopping , youtube default value: all |
| `payload.format` | `string` | No | — | ad format optional field possible values: all , text , image , video |
| `payload.date_from` | `string` | No | — | starting date of the time range optional field required field if date\_to is specified. date format: "yyyy-mm-dd" minimum value: 2018-05-31 maximum value: today's date example: "2020-01-01" |
| `payload.date_to` | `string` | No | — | ending date of the time range optional field required field if date\_from is specified. date format: "yyyy-mm-dd" minimum value: 2018-05-31 maximum value: today's date example: "2020-01-01" |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Google Ads Search provides information on ads that are run by advertisers on Google Ads. Information is based on the Ads Transparency platform and adapted for the convenience of DataForSEO users.",
    "properties": {
      "location_code": {
        "type": "integer",
        "description": "search engine location code optional field if you use this field, you don't need to specify location_name or location_coordinate you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/ads_search/locations example: 2840 Note: if you don't specify location_name , location_code , or location_coordinate , the ads will be searched across all the available locations"
      },
      "depth": {
        "type": "integer",
        "description": "parsing depth optional field number of results in SERP default value: 40 max value: 120 Your account will be billed per each SERP containing up to 40 results; Setting depth above 40 may result in additional charges if the search engine returns more than 40 results ; The cost can be calculated on the Pricing page."
      },
      "target": {
        "type": "string",
        "description": "domain name required field if advertiser_ids is not specified domain name associated with an advertiser account"
      },
      "advertiser_ids": {
        "type": "array",
        "description": "advertiser identifiers required field if target is not specified you can specify the maximum of 25 values in this array; advertiser_ids values for this parameter can be found in the Google Ads Advertisers endpoint;",
        "items": {}
      },
      "priority": {
        "type": "integer",
        "description": "task priority optional field can take the following values: 1 – normal execution priority (set by default) 2 – high execution priority You will be additionally charged for the tasks with high execution priority. The cost can be calculated on the Pricing page."
      },
      "location_name": {
        "type": "string",
        "description": "full name of search engine location optional field if you use this field, you don't need to specify location_code or location_coordinate you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/ads_search/locations example: London,England,United Kingdom Note: if you don't specify location_name , location_code , or location_coordinate , the ads will be searched across all the available locations"
      },
      "tag": {
        "type": "string",
        "description": "user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response"
      },
      "location_coordinate": {
        "type": "string",
        "description": "GPS coordinates of a location optional field if you use this field, you don't need to specify location_name or location_code example: 52.6178549,-155.352142 Note: if you don't specify location_name , location_code , or location_coordinate , the ads will be searched across all the available locations"
      },
      "platform": {
        "type": "string",
        "description": "advertising platform optional field possible values: all , google_play , google_maps , google_search , google_shopping , youtube default value: all"
      },
      "format": {
        "type": "string",
        "description": "ad format optional field possible values: all , text , image , video"
      },
      "date_from": {
        "type": "string",
        "description": "starting date of the time range optional field required field if date_to is specified; date format: \"yyyy-mm-dd\" minimum value: 2018-05-31 maximum value: today's date example: \"2020-01-01\""
      },
      "date_to": {
        "type": "string",
        "description": "ending date of the time range optional field required field if date_from is specified; date format: \"yyyy-mm-dd\" minimum value: 2018-05-31 maximum value: today's date example: \"2020-01-01\""
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Top-level response envelope for dataforseo\_serp\_google\_ads\_search\_live\_advanced.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.version` | `string` | Yes | — | the current version of the API |
| `result.status_code` | `integer` | Yes | — | general status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions |
| `result.status_message` | `string` | Yes | — | general informational message you can find the full list of general informational messages here |
| `result.time` | `string` | Yes | — | execution time, seconds |
| `result.tasks_count` | `integer` | Yes | — | the number of tasks in the tasks array |
| `result.tasks_error` | `integer` | Yes | — | the number of tasks in the tasks array returned with an error |
| `result.tasks` | `array` | Yes | — | array of tasks |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Top-level response envelope for dataforseo_serp_google_ads_search_live_advanced.",
    "properties": {
      "version": {
        "type": "string",
        "description": "the current version of the API"
      },
      "status_code": {
        "type": "integer",
        "description": "general status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions"
      },
      "status_message": {
        "type": "string",
        "description": "general informational message you can find the full list of general informational messages here"
      },
      "time": {
        "type": "string",
        "description": "execution time, seconds"
      },
      "tasks_count": {
        "type": "integer",
        "description": "the number of tasks in the tasks array"
      },
      "tasks_error": {
        "type": "integer",
        "description": "the number of tasks in the tasks array returned with an error"
      },
      "tasks": {
        "type": "array",
        "description": "array of tasks",
        "items": {}
      }
    },
    "required": [
      "version",
      "status_code",
      "status_message",
      "time",
      "tasks_count",
      "tasks_error",
      "tasks"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0.03` per pricing unit.

## Related documentation

* [DataForSEO provider guide](https://deepline.com/docs/providers/dataforseo/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.