> ## Documentation Index
> Fetch the complete documentation index at: https://6f524b4-productmetrics.manicule.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://6f524b4-productmetrics.manicule.dev/docs/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://6f524b4-productmetrics.manicule.dev/docs/api/mcp.
> Every agent surface: https://6f524b4-productmetrics.manicule.dev/docs/.well-known/llms-manifest.json

# Create conversion actions (/docs/api/google-ads/create-conversion-actions)

<!-- agent-signals: reading_time_min: 4 · est_tokens: 2167 · updated: 2026-11-16 -->
Related: [Create customer lists](/docs/api/google-ads/create-customer-lists.md), [Connect a Google Ads account](/docs/api/google-ads/create-property-connection.md), [Disconnect a Google Ads account](/docs/api/google-ads/delete-property-connection.md), [Get conversion action readiness](/docs/api/google-ads/get-conversion-actions.md), [Get customer lists](/docs/api/google-ads/get-customer-lists.md), [Get plan results](/docs/api/google-ads/get-plan-results.md)

> Creates the eight conversion actions as secondary goals. Never edits or promotes existing actions.

`POST https://prod-backend.productmetrics.io/api/public/v1/properties/{propertyId}/google-ads/conversion-actions`

**Scope** `setup` · **Access** Changes data · **Operation id** `google_ads.create_conversion_actions`

## Try it

`productmetrics` runs after `productmetrics login`; curl needs `PM_TOKEN` (see [Authentication](/docs/api/overview#authentication)). Set `$PROPERTY_ID` first.



**productmetrics CLI:**

```bash
productmetrics google-ads create-conversion-actions \
  --property-id $PROPERTY_ID \
  --company-id 2a7d9b3c-1e4f-4a5b-8c6d-7e8f9a0b1c2d \
  --json
```

**curl:**

```bash
curl -X POST "https://prod-backend.productmetrics.io/api/public/v1/properties/$PROPERTY_ID/google-ads/conversion-actions" \
  -H "Authorization: Bearer $PM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"company_id":"2a7d9b3c-1e4f-4a5b-8c6d-7e8f9a0b1c2d"}'
```

## Response



API response (200):

```json
{
  "data": {
    "status": "complete",
    "results": [
      {
        "purpose": "CUSTOMER_NEW",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111111",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "CUSTOMER_NEW_PROFIT",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111112",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "CUSTOMER_RETURNING",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111113",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "CUSTOMER_RETURNING_PROFIT",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111114",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "ORDER_REVENUE",
        "status": "linked",
        "reconciliationState": "unchanged",
        "resourceName": "customers/1234567890/conversionActions/111111115",
        "linkChanged": false,
        "desiredRevision": "1"
      },
      {
        "purpose": "ORDER_PROFIT",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111116",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "CUSTOMER_REVENUE_LTV",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111117",
        "linkChanged": true,
        "desiredRevision": "1"
      },
      {
        "purpose": "CUSTOMER_PROFIT_LTV",
        "status": "linked",
        "reconciliationState": "created",
        "resourceName": "customers/1234567890/conversionActions/111111118",
        "linkChanged": true,
        "desiredRevision": "1"
      }
    ]
  },
  "request_id": "req_01JFTH03BD3HS68YRMHFGKJGEF"
}
```

One result per purpose, always eight. `unchanged` means the action already existed and was left as it was. A purpose that could not be created has `status: failed`, a `code` and `retryable`, and the overall `status` is `partial` or `failed`.

**CLI output:** `productmetrics google-ads create-conversion-actions --json` prints `{ "ok": true, "data": …, "request_id": "…" }` with the same `data`.

## Before you call

Requires an active store connection assigned to the property, a Google Ads connection, and company admin. Safe to repeat: actions already created are reported `unchanged`. Check the result with [`google_ads.get_conversion_actions`](/docs/api/google-ads/get-conversion-actions).

## Path parameters

| Name         | Type   | Description                                                                                                         |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------- |
| `propertyId` | string | The property id, from `productmetrics whoami` or [`properties.list`](/docs/api/account/properties-list) (`property_id`). |

## Body

| Name         | Type   | Required | Description                                                                                           |
| ------------ | ------ | -------- | ----------------------------------------------------------------------------------------------------- |
| `company_id` | string | Yes      | Your workspace id, from `productmetrics whoami` or [`properties.list`](/docs/api/account/properties-list). |

## Errors

A failure answers with its HTTP status and `{ error: { code, message, details? }, request_id }`. Branch on `code` (stable, lower_snake); show `message` to the person. The CLI prints the same `error` with `"ok": false`.

```json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This operation needs the setup scope; connect again and allow it.",
    "details": {
      "required_scope": "setup"
    }
  },
  "request_id": "req_01JE71C8P1MH1H3T11X4PWSW6K"
}
```

| Status | Code                                     | When                                                                                                                                                                 |
| ------ | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 400    | `invalid_request`                        | A path, query or body value does not match this page. `details.issues` lists each `location`, `path` and `message`.                                                  |
| 401    | `invalid_token`                          | The token is missing, expired or revoked: sign in again (`productmetrics login`). The `WWW-Authenticate` header says why.                                            |
| 403    | `insufficient_scope`                     | The token lacks the `setup` scope (`details.required_scope`): sign in again and allow it.                                                                            |
| 403    | `company_access_denied`                  | You are not an admin of the workspace.                                                                                                                               |
| 404    | `property_not_found`                     | The property does not exist in this workspace.                                                                                                                       |
| 404    | `commerce_source_not_found`              | No active store connection is assigned to the property: connect the store first ([`stores.connect`](/docs/api/stores-and-tracking/stores-connect)).                       |
| 404    | `destination_mapping_not_found`          | The property has no Google Ads tracking destination yet ([`tracking.set_scope_destination`](/docs/api/stores-and-tracking/tracking-set-scope-destination)).               |
| 409    | `google_authorization_required`          | The Google Ads connection is missing, inactive or lacks Google Ads access: connect Google again ([`google.get_connect_link`](/docs/api/account/google-get-connect-link)). |
| 409    | `google_account_authority_mismatch`      | The Google sign-in cannot act on this property's Google Ads account: another person's sign-in, or a manager (MCC) account.                                           |
| 409    | `commerce_source_authority_mismatch`     | The store connection assigned to the property belongs to another workspace or property.                                                                              |
| 409    | `destination_mapping_authority_mismatch` | The tracking destination belongs to another property or Google Ads account.                                                                                          |
| 429    | `rate_limited`                           | More than 600 requests a minute for this person: wait the `Retry-After` seconds (60) and retry.                                                                      |
| 503    | `internal_error`                         | Google Ads or Product Metrics could not be reached: retry later.                                                                                                     |

[All Google Ads operations](/docs/api/google-ads)
