# AI Ad Copywriter (`cottony_variation/ai-ad-copywriter`) Actor

Generate conversion-focused Meta and Google ad campaigns with AI. Research products, verify claims and create ad copy, headlines, keywords and strategic recommendations.

- **URL**: https://apify.com/cottony_variation/ai-ad-copywriter.md
- **Developed by:** [Manuel Fonseca](https://apify.com/cottony_variation) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 ad campaign reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Ad Copywriter

**AI-powered advertising research and copywriting for Meta Ads and Google Ads.**

AI Ad Copywriter researches your business, understands your product and target audience, and generates persuasive advertising variations tailored to your campaign objectives.

### What it does

1. Collects your business and campaign information.
2. Researches your business, product, benefits and competitors using Tavily Search.
3. Uses OpenAI GPT-5 mini to create advertising copy based on your brief and available research.
4. Generates campaign-ready advertising variations.
5. Provides three strategic recommendations to improve your campaign.

### Advertising formats

#### Meta Ads

When Meta Ads is selected, the Actor generates exactly 5 variations.

Each variation includes:

- Campaign angle
- Headline
- Primary text
- Description
- Call to action
- Target audience
- Creative concept (visual suggestion)

#### Google Ads

When Google Ads is selected, the Actor generates exactly 5 variations.

Each variation includes:

- Campaign angle
- 3 headlines
- 2 descriptions
- Call to action
- Suggested keywords

#### Both platforms

When Both (Meta + Google) is selected, the Actor generates:

- 5 Meta Ads variations
- 5 Google Ads variations
- 3 strategic recommendations

### Input

| Field | Description |
|---|---|
| OpenAI API Key | Your OpenAI API key |
| Tavily API Key | Your Tavily Search API key |
| Business Name | Name of your business |
| Website URL | Public business website |
| Product / Service | Description of the offer |
| Target Audience | Intended customers |
| Main Advertising Objective | Main campaign goal |
| Advertising Platform | Meta Ads, Google Ads or both |
| Additional Information | Optional campaign details |

### Output

The Actor returns a structured dataset containing:

- Business and campaign details
- Selected advertising platform
- Generated campaign report
- Research summary
- Research sources and URLs
- Generation timestamp

### Setup

1. Open the Actor on Apify.
2. Enter your OpenAI API key.
3. Enter your Tavily API key.
4. Complete the business and campaign brief.
5. Select your advertising platform.
6. Run the Actor.
7. Open the default dataset to access your campaign report.

### API Keys

Users must provide their own API keys:

- OpenAI: https://platform.openai.com/api-keys
- Tavily: https://app.tavily.com/

API keys are supplied as secret Actor inputs. The Actor does not include its own API credentials.

### Research and accuracy

The Actor uses public web search results to support its advertising recommendations.

Search results may be incomplete, outdated or inaccurate. The generated advertising copy should therefore be reviewed before use.

The Actor does not automatically verify:

- Product availability
- Prices and discounts
- Legal or regulatory compliance
- Advertising platform approval
- Actual campaign performance

Never use unsupported product claims, fabricated statistics or unverified guarantees in published advertisements.

### Limitations

- Research is based on the public information returned by Tavily.
- The Actor does not access private business accounts or advertising dashboards.
- It does not create, publish or manage advertising campaigns.
- It generates copy and recommendations only.

### Best practices

For better results:

- Describe your product or service clearly.
- Be specific about your target audience.
- Define one clear advertising objective.
- Include relevant offers and brand guidelines in Additional Information.
- Review all claims before launching a campaign.

***

**AI Ad Copywriter — Research smarter. Write better ads. Build stronger campaigns.**

# Actor input Schema

## `openaiApiKey` (type: `string`):

Your OpenAI API key.

## `tavilyApiKey` (type: `string`):

Your Tavily Search API key.

## `businessName` (type: `string`):

Name of the business being advertised.

## `websiteUrl` (type: `string`):

Public website of the business.

## `productService` (type: `string`):

Describe the product or service being advertised.

## `targetAudience` (type: `string`):

Describe the intended customers.

## `advertisingObjective` (type: `string`):

What should the campaign achieve?

## `advertisingPlatform` (type: `string`):

Choose which advertising formats to generate.

## `additionalInformation` (type: `string`):

Optional details such as budget, offer, brand voice, restrictions or campaign context.

## Actor input object example

```json
{
  "advertisingPlatform": "Both (Meta + Google)"
}
```

# Actor output Schema

## `results` (type: `string`):

Open the dataset to view the complete advertising campaign and copy variations.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("cottony_variation/ai-ad-copywriter").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("cottony_variation/ai-ad-copywriter").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call cottony_variation/ai-ad-copywriter --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cottony_variation/ai-ad-copywriter"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HTpNn2jzxtKaW6Mgk/builds/ItFYopc4gaLLdJoYO/openapi.json
