Search public Google ads
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/search-public-google-ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advertiser_id": "<string>",
"async": false,
"engine": "google_ads_transparency_center",
"get_advertiser": false,
"output": "json"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/search-public-google-ads"
payload = {
"advertiser_id": "<string>",
"async": False,
"engine": "google_ads_transparency_center",
"get_advertiser": False,
"output": "json"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
advertiser_id: '<string>',
async: false,
engine: 'google_ads_transparency_center',
get_advertiser: false,
output: 'json'
})
};
fetch('https://api.aisa.one/apis/v1/serpapi/search-public-google-ads', 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/search-public-google-ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'advertiser_id' => '<string>',
'async' => false,
'engine' => 'google_ads_transparency_center',
'get_advertiser' => false,
'output' => 'json'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/search-public-google-ads"
payload := strings.NewReader("{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/search-public-google-ads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/search-public-google-ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}"
response = http.request(request)
puts response.read_bodySerpApi
Search public Google ads
Search public Google ads
POST
https://api.aisa.one
/
apis
/
v1
/
serpapi
/
search-public-google-ads
Search public Google ads
curl --request POST \
--url https://api.aisa.one/apis/v1/serpapi/search-public-google-ads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"advertiser_id": "<string>",
"async": false,
"engine": "google_ads_transparency_center",
"get_advertiser": false,
"output": "json"
}
'import requests
url = "https://api.aisa.one/apis/v1/serpapi/search-public-google-ads"
payload = {
"advertiser_id": "<string>",
"async": False,
"engine": "google_ads_transparency_center",
"get_advertiser": False,
"output": "json"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
advertiser_id: '<string>',
async: false,
engine: 'google_ads_transparency_center',
get_advertiser: false,
output: 'json'
})
};
fetch('https://api.aisa.one/apis/v1/serpapi/search-public-google-ads', 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/search-public-google-ads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'advertiser_id' => '<string>',
'async' => false,
'engine' => 'google_ads_transparency_center',
'get_advertiser' => false,
'output' => 'json'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/serpapi/search-public-google-ads"
payload := strings.NewReader("{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/serpapi/search-public-google-ads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/serpapi/search-public-google-ads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"advertiser_id\": \"<string>\",\n \"async\": false,\n \"engine\": \"google_ads_transparency_center\",\n \"get_advertiser\": false,\n \"output\": \"json\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/serpapi/search-public-google-ads
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/serpapi/search-public-google-ads
{
"operationId": "serpapi.search-public-google-ads",
"method": "POST",
"path": "/apis/v1/serpapi/search-public-google-ads",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"advertiser_id": {
"maxLength": 64,
"minLength": 3,
"pattern": "^AR[0-9]+$",
"type": "string"
},
"async": {
"enum": [
false
],
"type": "boolean"
},
"engine": {
"enum": [
"google_ads_transparency_center"
],
"type": "string"
},
"get_advertiser": {
"enum": [
false
],
"type": "boolean"
},
"num": {
"enum": [
100,
40
],
"maximum": 9223372036854775807,
"minimum": 0,
"type": "integer"
},
"output": {
"enum": [
"json"
],
"type": "string"
}
},
"required": [
"advertiser_id",
"async",
"engine",
"get_advertiser",
"num",
"output"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. A price estimate is not currently available. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Successful response. The payload schema has not been reviewed yet.