Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/serpapi/google-ads-transparency?async=false&engine=google_ads_transparency_center&output=json&zero_trace=false' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/serpapi/google-ads-transparency \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/serpapi/google-ads-transparency', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/serpapi/google-ads-transparency")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/google-ads-transparency")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodySerpApi
Google advertiser's running ads — Ads Transparency Center
answers arrive in `ad_creatives`. This is the one endpoint in the file whose query param is `text` rather than `q` — and it is optional, because you may identify the advertiser by id instead.
<!-- aisa-pricing:start -->
Usage-based billing; Default request estimate: $0.015 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ.
<!-- aisa-pricing:end -->
GET
https://api.aisa.one
/
apis
/
v1
/
serpapi
/
google-ads-transparency
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url 'https://api.aisa.one/apis/v1/serpapi/google-ads-transparency?async=false&engine=google_ads_transparency_center&output=json&zero_trace=false' \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/serpapi/google-ads-transparency \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/serpapi/google-ads-transparency', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/google-ads-transparency"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/serpapi/google-ads-transparency")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/google-ads-transparency")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: GET /apis/v1/serpapi/google-ads-transparency
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/serpapi/google-ads-transparency - advertiser_id: query; optional
- async: query; required
- creative_format: query; optional
- end_date: query; optional
- engine: query; required
- next_page_token: query; optional
- num: query; optional
- output: query; required
- platform: query; optional
- political_ads: query; optional
- region: query; optional
- start_date: query; optional
- text: query; optional
- zero_trace: query; required
- Runtime facts: 1d8d2010628130bd331b470b564dd1cd5784989899ccf3e384a8de02a69e0558
{
"operationId": "serpapi.google-ads-transparency",
"method": "GET",
"path": "/apis/v1/serpapi/google-ads-transparency",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"name": "advertiser_id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "a specific advertiser id, or several comma-separated"
}
},
{
"examples": {
"default": {
"value": false
},
"minimal": {
"value": false
}
},
"in": "query",
"name": "async",
"required": true,
"schema": {
"enum": [
false
],
"type": "boolean"
}
},
{
"name": "creative_format",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "text | image | video"
}
},
{
"name": "end_date",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "YYYYMMDD"
}
},
{
"examples": {
"default": {
"value": "google_ads_transparency_center"
},
"minimal": {
"value": "google_ads_transparency_center"
}
},
"in": "query",
"name": "engine",
"required": true,
"schema": {
"enum": [
"google_ads_transparency_center"
],
"minLength": 1,
"type": "string"
}
},
{
"name": "next_page_token",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "cursor from the previous response's serpapi_pagination"
}
},
{
"name": "num",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"description": "results to return; default 40. Unlike engine=google, `num` IS documented here",
"examples": [
10
]
}
},
{
"examples": {
"default": {
"value": "json"
},
"minimal": {
"value": "json"
}
},
"in": "query",
"name": "output",
"required": true,
"schema": {
"enum": [
"json"
],
"minLength": 1,
"type": "string"
}
},
{
"name": "platform",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "where the ad ran: PLAY | MAPS | SEARCH | SHOPPING | YOUTUBE"
}
},
{
"name": "political_ads",
"in": "query",
"required": false,
"schema": {
"type": "boolean",
"description": "restrict to political advertising; forces `region` to be set"
}
},
{
"name": "region",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "geographic region the search originates from. REQUIRED when political_ads is true"
}
},
{
"name": "start_date",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "YYYYMMDD"
}
},
{
"name": "text",
"in": "query",
"required": false,
"schema": {
"type": "string",
"description": "free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed",
"examples": [
"coffee"
]
}
},
{
"examples": {
"default": {
"value": false
},
"minimal": {
"value": false
}
},
"in": "query",
"name": "zero_trace",
"required": true,
"schema": {
"enum": [
false
],
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "response_units",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.015,
"estimate_source": "profile_seed",
"evidence_source": "response_header",
"unit": "provider_credit",
"unit_rate_usd": 1e-06
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based billing; Default request estimate: $0.015 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.015
- Declared unit rate (USD): 1e-06
- Billing unit: provider_credit
- Cost contract: response_units
- Published reference multiplier: 1.0
- Settlement evidence source: response_header
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
a specific advertiser id, or several comma-separated
Available options:
false text | image | video
YYYYMMDD
Available options:
google_ads_transparency_center Minimum string length:
1cursor from the previous response's serpapi_pagination
results to return; default 40. Unlike engine=google, num IS documented here
Example:
10
Available options:
json Minimum string length:
1where the ad ran: PLAY | MAPS | SEARCH | SHOPPING | YOUTUBE
restrict to political advertising; forces region to be set
geographic region the search originates from. REQUIRED when political_ads is true
YYYYMMDD
free-text advertiser or domain to search for. Supply either this OR advertiser_id — neither is individually mandatory but one is needed
Example:
"coffee"
Available options:
false Response
Successful response