Skip to main content
A ChatGPT ad is a chat card: an image, a short title and a body line, linking to your landing page. Ads are made in ad groups, matching OpenAI Ads Manager: every ad in a group shares its landing page, price, context hints and negative phrases. The API offers the same choices as the ChatGPT Ads page. Each ad costs 1 credit. Rewriting copy or targeting is free.

Before you start

You need:
  • an API key with chatgpt_ads:generate, chatgpt_ads:read, and chatgpt_ads:update to rename groups
  • a product in LocalAds
  • one credit per ad

Create an ad group

LocalAds returns 202 Accepted with the group. Its id is the ad group ID.

Retrieve the ads

Poll with backoff until status is completed or failed. title, body, context_hints and negative_phrases are filled in once the copy is written.

Generate more ads in a group

New ads join the group and reuse its landing page, price, direction, name and targeting, so only the count is chosen:

Edit a group

Rename it:
Rewrite its context hints (hints) or negative phrases (phrases) for every ad at once:
Rewrite one ad’s title and body:
Each returns the updated group.

Errors

Last modified on September 24, 2026