Generate Google Ads ad copy
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, or to Create 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.
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.Authorizations
Personal API key.
Headers
Language to return generated text in, as a standard Accept-Language value. An unsupported language falls back to English.
Path Parameters
ID of the app you are planning a Google Ads campaign for.
Body
Name of the business the ads are for.
"Nordwind Furniture"
What the business sells, in a sentence or two. The more specific this is, the better the copy.
"Handmade solid oak dining tables, built to order in San Francisco."
Words the copy should lean on.
Page the ads send people to. Used as context for the copy.
"https://nordwind-furniture.com"
What the campaign is for: traffic, leads or sales.
"traffic"
Response
Suggested headlines and descriptions.
Headlines and descriptions for a campaign's ads.
Suggested headlines, each within Google's 30-character limit.
Suggested description lines, each within Google's 90-character limit.
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.
"ai"
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 so the campaign's language matches its copy.
"en"