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

# Google Ads Audiences: Sync Audience Members

> Add or replace the people in a Google Ads Customer Match audience from emails, phones or addresses, hashed before upload.

Add or replace the people in a Google Ads Customer Match audience from emails, phones or addresses, hashed before upload.

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

## 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(
  'google_ads_audiences_sync_audience_members',
  {
    "audience_id": "audience_123",
    "rows": [
      {
        "email": "jane.doe@example.com",
        "email_sha256": "jane.doe@example.comxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "phone": "+14155550123"
      }
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute google_ads_audiences_sync_audience_members --input '{
  "audience_id": "audience_123",
  "rows": [
    {
      "email": "jane.doe@example.com",
      "email_sha256": "jane.doe@example.comxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "phone": "+14155550123"
    }
  ]
}' --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"]}}
{
  "data": {
    "audience_id": "audience_123",
    "mode": "append",
    "uploaded_count": 123,
    "invalid_count": 123,
    "invalid_rows": [
      {
        "originalIndex": 123,
        "reason": "example"
      }
    ],
    "request_ids": [
      "request_123"
    ]
  }
}
```

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

## Input reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.account_id` | `string` | No | — | Data Manager account ID (e.g. Google Ads customer ID, no formatting). Optional: defaults to the workspace default account, or the sole enabled account when only one exists. Minimum length: 1. |
| `payload.account_type` | `"GOOGLE_ADS" \| "DISPLAY_VIDEO_PARTNER" \| "DISPLAY_VIDEO_ADVERTISER" \| "DATA_PARTNER" \| "GOOGLE_ANALYTICS_PROPERTY" \| "GOOGLE_AD_MANAGER_AUDIENCE_LINK"` | No | `"GOOGLE_ADS"` | Allowed: `GOOGLE_ADS`, `DISPLAY_VIDEO_PARTNER`, `DISPLAY_VIDEO_ADVERTISER`, `DATA_PARTNER`, `GOOGLE_ANALYTICS_PROPERTY`, `GOOGLE_AD_MANAGER_AUDIENCE_LINK`. |
| `payload.login_account_id` | `string` | No | — | Optional manager-account ID used as the login account when the token belongs to an MCC user. Minimum length: 1. |
| `payload.login_account_type` | `"GOOGLE_ADS" \| "DISPLAY_VIDEO_PARTNER" \| "DISPLAY_VIDEO_ADVERTISER" \| "DATA_PARTNER" \| "GOOGLE_ANALYTICS_PROPERTY" \| "GOOGLE_AD_MANAGER_AUDIENCE_LINK"` | No | — | Allowed: `GOOGLE_ADS`, `DISPLAY_VIDEO_PARTNER`, `DISPLAY_VIDEO_ADVERTISER`, `DATA_PARTNER`, `GOOGLE_ANALYTICS_PROPERTY`, `GOOGLE_AD_MANAGER_AUDIENCE_LINK`. |
| `payload.audience_id` | `string` | Yes | — | Minimum length: 1. |
| `payload.mode` | `"append" \| "replace"` | No | `"append"` | Allowed: `append`, `replace`. |
| `payload.rows` | `array` | Yes | — | Audience member rows to upload. Most platforms accept much smaller per-request batches, so Deepline automatically chunks requests. Minimum items: 1. Maximum items: 300000. |
| `payload.consent` | `object` | No | — | — |
| `payload.encoding` | `"HEX" \| "BASE64"` | No | `"HEX"` | Allowed: `HEX`, `BASE64`. |
| `payload.validate_only` | `boolean` | No | `false` | — |
| `payload.terms_of_service_accepted` | `boolean` | No | `true` | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "account_id": {
        "type": "string",
        "description": "Data Manager account ID (e.g. Google Ads customer ID, no formatting). Optional: defaults to the workspace default account, or the sole enabled account when only one exists.",
        "minLength": 1
      },
      "account_type": {
        "type": "string",
        "default": "GOOGLE_ADS",
        "enum": [
          "GOOGLE_ADS",
          "DISPLAY_VIDEO_PARTNER",
          "DISPLAY_VIDEO_ADVERTISER",
          "DATA_PARTNER",
          "GOOGLE_ANALYTICS_PROPERTY",
          "GOOGLE_AD_MANAGER_AUDIENCE_LINK"
        ]
      },
      "login_account_id": {
        "type": "string",
        "description": "Optional manager-account ID used as the login account when the token belongs to an MCC user.",
        "minLength": 1
      },
      "login_account_type": {
        "type": "string",
        "enum": [
          "GOOGLE_ADS",
          "DISPLAY_VIDEO_PARTNER",
          "DISPLAY_VIDEO_ADVERTISER",
          "DATA_PARTNER",
          "GOOGLE_ANALYTICS_PROPERTY",
          "GOOGLE_AD_MANAGER_AUDIENCE_LINK"
        ]
      },
      "audience_id": {
        "type": "string",
        "minLength": 1
      },
      "mode": {
        "type": "string",
        "default": "append",
        "enum": [
          "append",
          "replace"
        ]
      },
      "rows": {
        "type": "array",
        "description": "Audience member rows to upload. Most platforms accept much smaller per-request batches, so Deepline automatically chunks requests.",
        "minItems": 1,
        "maxItems": 300000,
        "items": {
          "type": "object",
          "description": "One audience member source row. Deepline normalizes and hashes supported identifiers before sending them to each destination.",
          "properties": {
            "email": {
              "type": "string",
              "minLength": 1
            },
            "email_sha256": {
              "type": "string",
              "minLength": 64,
              "maxLength": 64
            },
            "phone": {
              "type": "string",
              "minLength": 1
            },
            "phone_sha256": {
              "type": "string",
              "minLength": 64,
              "maxLength": 64
            },
            "first_name": {
              "type": "string",
              "minLength": 1
            },
            "last_name": {
              "type": "string",
              "minLength": 1
            },
            "country_code": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "postal_code": {
              "type": "string",
              "minLength": 1
            },
            "company_name": {
              "type": "string",
              "minLength": 1
            },
            "title": {
              "type": "string",
              "minLength": 1
            },
            "company_domain": {
              "type": "string",
              "minLength": 1
            },
            "company_website": {
              "type": "string",
              "minLength": 1
            },
            "company_linkedin_url": {
              "type": "string",
              "minLength": 1
            },
            "person_linkedin_url": {
              "type": "string",
              "minLength": 1
            },
            "external_id": {
              "type": "string",
              "minLength": 1
            }
          },
          "additionalProperties": false
        }
      },
      "consent": {
        "type": "object",
        "properties": {
          "ad_user_data": {
            "type": "string",
            "enum": [
              "GRANTED",
              "DENIED"
            ]
          },
          "ad_personalization": {
            "type": "string",
            "enum": [
              "GRANTED",
              "DENIED"
            ]
          }
        },
        "additionalProperties": false
      },
      "encoding": {
        "type": "string",
        "default": "HEX",
        "enum": [
          "HEX",
          "BASE64"
        ]
      },
      "validate_only": {
        "type": "boolean",
        "default": false
      },
      "terms_of_service_accepted": {
        "type": "boolean",
        "default": true
      }
    },
    "required": [
      "audience_id",
      "rows"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | — |
| `result.data.audience_id` | `string` | Yes | — | — |
| `result.data.mode` | `"append" \| "replace"` | Yes | — | Allowed: `append`, `replace`. |
| `result.data.uploaded_count` | `integer` | Yes | — | Minimum: 0. |
| `result.data.invalid_count` | `integer` | Yes | — | Minimum: 0. |
| `result.data.invalid_rows` | `array` | Yes | — | — |
| `result.data.invalid_rows[].originalIndex` | `integer` | Yes | — | Minimum: 0. |
| `result.data.invalid_rows[].reason` | `string` | Yes | — | — |
| `result.data.request_ids` | `array` | Yes | — | — |
| `result.meta` | `record` | No | — | — |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "data": {
        "type": "object",
        "properties": {
          "audience_id": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "append",
              "replace"
            ]
          },
          "uploaded_count": {
            "type": "integer",
            "minimum": 0
          },
          "invalid_count": {
            "type": "integer",
            "minimum": 0
          },
          "invalid_rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "originalIndex": {
                  "type": "integer",
                  "minimum": 0
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "originalIndex",
                "reason"
              ],
              "additionalProperties": false
            }
          },
          "request_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "audience_id",
          "mode",
          "uploaded_count",
          "invalid_count",
          "invalid_rows",
          "request_ids"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [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.