# Export Google Search Ad Copy and Headlines

**Use case:** 

The words of a brand's Google Search text ads: headline, description, display URL, sitelinks and business name, for every A/B variation. Ads that Google keeps only as a picture are read with OCR inside the run. Build a swipe file of a competitor's search ads in one table.

## Input

```json
{
  "queries": [
    "zocdoc.com"
  ],
  "resultType": "ads",
  "region": "US",
  "adPlatforms": [
    "SEARCH"
  ],
  "creativeFormat": "TEXT",
  "politicalAds": false,
  "maxAdsPerSearch": 50,
  "maxAdvertisersPerQuery": 5,
  "includeDetails": true,
  "includeAdText": true,
  "ocr": true,
  "ocrAllVariations": true,
  "landingPages": false,
  "onlyNewAds": false,
  "monitorStoreName": "google-ads-library-monitor",
  "notifyWhen": "ads",
  "skipDuplicateAds": true,
  "includeErrorRows": true,
  "fastMode": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "failIfAllInputsFail": false,
  "strictInput": false
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Ad",
    "format": "string"
  },
  "advertiserName": {
    "label": "Advertiser",
    "format": "string"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "headline": {
    "label": "Headline",
    "format": "string"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "displayUrl": {
    "label": "Display URL",
    "format": "string"
  },
  "firstShown": {
    "label": "First shown",
    "format": "string"
  },
  "lastShown": {
    "label": "Last shown",
    "format": "string"
  },
  "daysShown": {
    "label": "Days",
    "format": "integer"
  },
  "regionCount": {
    "label": "Countries",
    "format": "integer"
  },
  "youtubeVideoId": {
    "label": "YouTube",
    "format": "string"
  },
  "adUrl": {
    "label": "Link",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Google Ads Library Scraper — Google Ads Transparency Center Actor is ready to run with the inputs already set for "Export Google Search Ad Copy and Headlines". [Sign up or log in](https://console.apify.com/create-task-from-example/7CPQkKmpRdoji0zhl) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Google Search Ad Copy and Headlines" task

The Google Ads Library Scraper — Google Ads Transparency Center Actor will start running based on the input automatically. You can also change all the input fields, like brands, websites, advertiser ids or links, what to return, and more, to match your specific use case.

### 3. Receive the "Export Google Search Ad Copy and Headlines" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as ad, advertiser, format, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Export Google Search Ad Copy and Headlines" task via API](https://apify.com/anuarbakty/google-ads-library-scraper.md).

## FAQ

### How are the words read when Google keeps the ad as a picture?

With Tesseract OCR inside the run, no AI and no outside service. The row says textSource "ocr", and the headline, description and display URL are split by the layout of the ad.

### Do I get every A/B variation?

Yes. Every variation is listed in variations with its own headline, description and picture.

## About this Actor

This example demonstrates how to use [Google Ads Library Scraper — Google Ads Transparency Center](https://apify.com/anuarbakty/google-ads-library-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/anuarbakty/google-ads-library-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/anuarbakty/google-ads-library-scraper.md

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`).
