# Google Ad Library — Ad Details

Get Google AD data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by ScrapeCreators, pass parameters such as url, and retrieve structured data including returned advertiser id field, returned creative id field, returned region code field, returned region name field, and returned credits charged field for content research and account lookup, and integration reference.

Documentation: https://openany.si/google/google-ad/8b19732e-5be2-42b8-b117-bbce3c57e3d9/
API ID: 8b19732e-5be2-42b8-b117-bbce3c57e3d9
Provider: scrapecreators
Contract revision: 6
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/google/ad
Page update time: 2026-12-03T02:53:21.479Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:16.572Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Google Ad Library — Ad Details API

Retrieve detailed information about a specific Google ad including advertiserId, creativeId, format, firstShown, lastShown, and overallImpressions. Provide url in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `advertiserId` | Returned advertiser id field |
| `creativeId` | Returned creative id field |
| `creativeRegions[].regionCode` | Returned region code field |
| `creativeRegions[].regionName` | Returned region name field |
| `credits_charged` | Returned credits charged field |
| `credits_remaining` | Returned credits remaining field |
| `firstShown` | Returned first shown value (nullable in the reference) |
| `format` | Returned format field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Google Ad Library — Ad Details request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The url of the ad"
        },
        "cache_max_age": {
          "type": "string",
          "description": "If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with \"cached\": true and a \"cached_at\" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.](https://docs.scrapecreators.com/caching)",
          "enum": [
            "1d",
            "3d",
            "7d",
            "14d",
            "30d"
          ]
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "advertiserId": {
      "type": "string"
    },
    "creativeId": {
      "type": "string"
    },
    "creativeRegions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "regionCode": {
            "type": "string"
          },
          "regionName": {
            "type": "string"
          }
        }
      }
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "firstShown": {
      "type": "null"
    },
    "format": {
      "type": "string"
    },
    "lastShown": {
      "type": "string"
    },
    "overallImpressions": {
      "type": "object",
      "properties": {
        "max": {
          "type": "string"
        },
        "min": {
          "type": "string"
        }
      }
    },
    "regionStats": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "firstShown": {
            "type": "null"
          },
          "impressions": {
            "type": "object",
            "properties": {
              "lower": {
                "type": "string"
              },
              "upper": {
                "type": "string"
              }
            }
          },
          "lastShown": {
            "type": "string"
          },
          "platformImpressions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "impressions": {
                  "type": "object",
                  "properties": {
                    "lower": {
                      "type": "string"
                    },
                    "upper": {
                      "type": "string"
                    }
                  }
                },
                "platform": {
                  "type": "string"
                }
              }
            }
          },
          "regionCode": {
            "type": "string"
          },
          "regionName": {
            "type": "string"
          }
        }
      }
    },
    "spend": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "lower": {
          "type": "string"
        },
        "upper": {
          "type": "string"
        }
      }
    },
    "success": {
      "type": "boolean"
    },
    "targeting": {
      "type": "object",
      "properties": {
        "age": {
          "type": "object",
          "properties": {
            "excluded": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "included": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "gender": {
          "type": "object",
          "properties": {
            "excluded": {
              "type": "array",
              "items": {}
            },
            "included": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "location": {
          "type": "object",
          "properties": {
            "excluded": {
              "type": "array",
              "items": {}
            },
            "included": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "countryCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "criterionId": {
                    "type": "string"
                  },
                  "fullName": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "variations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/google/ad?url=https%3A%2F%2Fadstransparency.google.com%2Fadvertiser%2FAR01614014350098432001%2Fcreative%2FCR10449491775734153217' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "advertiserId": "AR01614014350098432001",
  "creativeId": "CR07443539616616939521",
  "creativeRegions": [
    {
      "regionCode": "US",
      "regionName": "United States"
    }
  ],
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "firstShown": null,
  "format": "text",
  "lastShown": "2025-06-18T18:09:00.000Z",
  "overallImpressions": {
    "max": "300000",
    "min": "250000"
  },
  "regionStats": [
    {
      "firstShown": null,
      "impressions": {
        "lower": "1000",
        "upper": "4999"
      },
      "lastShown": "2025-06-18T05:00:00.000Z",
      "platformImpressions": [
        {
          "impressions": {
            "lower": "100",
            "upper": "999"
          },
          "platform": "Google Search"
        }
      ],
      "regionCode": "US",
      "regionName": "United States"
    }
  ],
  "spend": {
    "currency": "USD",
    "lower": "5000",
    "upper": "6000"
  },
  "success": true,
  "targeting": {
    "age": {
      "excluded": [
        "18-24"
      ],
      "included": [
        "25-34"
      ]
    },
    "gender": {
      "excluded": [],
      "included": [
        "unknown"
      ]
    },
    "location": {
      "excluded": [],
      "included": [
        {
          "countryCodes": [
            "US"
          ],
          "criterionId": "1015229",
          "fullName": "West Palm Beach, Florida, United States",
          "name": "West Palm Beach"
        }
      ]
    }
  },
  "variations": [
    {
      "images": [
        "https://tpc.googlesyndication.com/archive/simgad/2201045439314643090"
      ]
    }
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide url in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which values can I use for cache_max_age?
The selected schema accepts 1d, 3d, 7d, 14d, 30d. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- anyapi: https://openany.si/google/google-ad/038adc9c-597d-4a9c-b329-5f535daebc67/
- anyapi: https://openany.si/google/google-ad/2a2d2c49-10fb-411c-8d3c-58c41fe249c1/
- anyapi: https://openany.si/google/google-ad/9fb7f316-b6ea-4390-8191-93d7103d7f08/
- anyapi: https://openany.si/google/google-ad/ee029b8f-c98a-47e7-8878-fb9e43120994/
- litescrape: https://openany.si/google/google-ad/4d5313da-27ba-4b85-b28d-43338fc405e1/
- scrapecreators: https://openany.si/google/google-ad/1f7257dd-d9c6-4def-8ff9-500773ec5c43/
- scrapecreators: https://openany.si/google/google-ad/8b19732e-5be2-42b8-b117-bbce3c57e3d9/
- scrapecreators: https://openany.si/google/google-ad/e30afaff-180c-4d43-be26-52b094f79b55/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
