---
title: "Generate Google Ads ad copy"
method: POST
path: "/api/apps/{app_id}/google-ads/ai/generate-copy"
---

# Generate Google Ads ad copy

`POST /api/apps/{app_id}/google-ads/ai/generate-copy`

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Writes headlines and descriptions for a campaign from a business name and description.

Nothing is saved. Take the fields you want and pass them to [Create campaign](/api-reference/create-google-ads-campaign), or to [Create campaign brief](/api-reference/create-google-ads-campaign-brief) to keep them for later.

Check `source` before you present this as generated copy. Anything other than `ai` means the model did not produce copy and the response is fallback text derived from what you sent, returned under a 200. `headlines` and `descriptions` can also come back empty.

<Note>This endpoint runs a language model and draws on a shared quota of 20 requests per minute per app, which every Google Ads AI endpoint debits. Enterprise workspaces get a higher quota. A 429 means the quota is spent, not that this endpoint has its own limit.</Note>

<Note>The copy is written in the language you send in the `Accept-Language` header. Omit the header and you get English — the app's own language is not consulted — so send it explicitly for a non-English app.</Note>

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>

## Path parameters

- `app_id` string, required — ID of the app you are planning a Google Ads campaign for.

## Headers

- `Accept-Language` string, nullable — Language to return generated text in, as a standard `Accept-Language` value. An unsupported language falls back to English.

## Request body

- GenerateCopyRequest
  - `business_name` string, required — Name of the business the ads are for.
  - `business_description` string — What the business sells, in a sentence or two. The more specific this is, the better the copy.
  - `keywords` string[] — Words the copy should lean on.
  - `landing_page_url` string — Page the ads send people to. Used as context for the copy.
  - `campaign_goal` string — What the campaign is for: `traffic`, `leads` or `sales`.

## Response `200`

Suggested headlines and descriptions.

- GoogleAdsAdCopy — Headlines and descriptions for a campaign's ads.
  - `headlines` string[], required — Suggested headlines, each within Google's 30-character limit.
  - `descriptions` string[], required — Suggested description lines, each within Google's 90-character limit.
  - `language` string, nullable — Two-letter code for the language the copy came back in, or `null` when the model did not report one. Pass it as `settings.language_code` on [Create campaign](/api-reference/create-google-ads-campaign) so the campaign's language matches its copy.
  - `source` string, required — `ai` when a language model wrote this copy. Any other value means it did not, and you are looking at fallback text built from the business details you sent.

## Other responses

- `401` — Missing or invalid credentials.
- `403` — You don't have access to this app, the app does not exist, or you used a workspace API key. A missing app and an app you cannot reach are deliberately the same answer.
- `422` — Validation Error
- `429` — The shared AI quota for this app is spent. Retry in a minute.

## Changes

- **2026-08-26** `f2727732ced1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/idealspot/apis/base44-app-management-api/changes/api/apps/:app_id/google-ads/ai/generate-copy/post.md)

---

[API](https://skmtc.dev/idealspot/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/idealspot/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/idealspot/base44-app-management-api/revisions/173e4e9c63c2/schema)
