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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create responsive search ad

> Create a responsive search ad in an existing ad group.

Use `googleAds.createResponsiveSearchAd` to create a responsive search ad in an existing ad group.

## Example

```ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { googleAds } from "automate.ax/google-ads"

export default automation("Create responsive search ad", () => {
  onDashboardRun({ title: "Create responsive search ad" })

  googleAds.createResponsiveSearchAd({
    customerId: "1234567890",
    adGroup: "111",
    headlines: ["Book today", "Trusted local team", "Get a quote"],
    descriptions: ["Fast, dependable service.", "Request your quote today."],
    finalUrls: ["https://example.com"],
    status: "PAUSED",
  })
})
```

## Inputs

Set the customer and ad-group ID or resource name, 3–15 headlines, 2–4 descriptions, and at least one final URL. Optional paths are capped at 15 characters. All customer-scoped actions accept optional `loginCustomerId` for manager-account access and a named Google account binding.

## Output

Returns the created ad-group-ad resource name.
