# Google 广告透明度中心 广告素材 API (google_ads_transparency.ads)

- Canonical page: https://everyinfra.com/google-ads-transparency-api/ads
- Endpoint: POST /api/v1/social with {"platform": "google_ads_transparency", "action": "ads", "params": {...}}
- Price: $0.000681 per call ($0.68 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 100, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=google_ads_transparency&action=ads

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| advertiser | not declared | yes | not declared | 查谁的广告：域名（如 nike.com）或广告主 ID（AR 开头，如 AR01614014350098432001，也收透明度中心的广告主链接）。 |
| country | not declared | no | not declared | 只看在这个国家投放的广告，两位国家代码（如 us、gb）；不填看全部地区。 |
| end_date | not declared | no | not declared | 只要这天及以前首次投放的广告，YYYY-MM-DD。 |
| format | enum: image / text / video | no | not declared | 只看某种广告形式：text、image、video。 |
| start_date | not declared | no | not declared | 只要这天及以后首次投放的广告，YYYY-MM-DD。 |
| surface | not declared | no | not declared | 只看投在某个 Google 产品上的广告：search（搜索）、youtube、play、maps、shopping。 |
| limit | integer (1–100) | no | 100 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | 该广告在这次结果里的顺序，从 1 开始（大致按最近一次投放从新到旧）。 |
| ad_id | Google 广告透明度中心的广告创意 ID（CR 开头）。 |
| advertiser_id | 广告主 ID（AR 开头），可以当 advertiser 再查。 |
| advertiser_name | 广告主经 Google 验证的名称（可能是子公司或代理，如某品牌的加拿大公司）。 |
| domain | 广告关联的域名。 |
| format | 广告形式：text（文字）、image（图片）、video（视频）。 |
| first_shown_at | 这条广告第一次投放的时间，UTC，ISO 8601。 |
| last_shown_at | 这条广告最近一次投放的时间，UTC，ISO 8601。 |
| image_url | 广告预览图（Google 存档的创意截图）；部分文字广告没有。 |
| url | 这条广告在 Google 广告透明度中心的页面。 |
| advertiser_ads_estimate | 透明度中心估计这个广告主（在所选国家、形式下）一共有多少条广告，每行相同。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "google_ads_transparency",
  "action": "ads",
  "params": {
    "advertiser": "lululemon.com"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "google_ads_transparency",
        "action": "ads",
        "params": {
            "advertiser": "lululemon.com",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "google_ads_transparency",
  "action": "ads",
  "results": [
    {
      "rank": …,
      "ad_id": …,
      "advertiser_id": …,
      "advertiser_name": …,
      "domain": …,
      "format": …,
      "first_shown_at": …,
      "last_shown_at": …,
      "image_url": …,
      "url": …,
      "advertiser_ads_estimate": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=google_ads_transparency
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
