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

> Create a Google Ads conversion action used for measurement and uploads.

Use `googleAds.createConversionAction` to create a Google Ads conversion action used for measurement and uploads.

## Example

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

export default automation("Create conversion action", () => {
  onDashboardRun({ title: "Create conversion action" })

  googleAds.createConversionAction({
    customerId: "1234567890",
    name: "Qualified lead",
    type: "UPLOAD_CLICKS",
    category: "QUALIFIED_LEAD",
  })
})
```

## Inputs

Set `customerId`, `name`, and a supported conversion type. Optional fields configure category, counting, goal priority, look-back window, and default value. Click-through look-back windows can be up to 60 days for `AD_CALL` and `WEBSITE_CALL`, and up to 30 days for other supported types. Call conversions can't set `alwaysUseDefaultValue` to `false`. All customer-scoped actions accept optional `loginCustomerId` for manager-account access and a named Google Account binding.

## Output

Returns the created conversion-action resource name.
