Resumen de anuncios
Tráfico Click-to-WhatsApp agrupado por anuncio, con los nombres resueltos del anuncio, conjunto de anuncios y campaña, y la cantidad de leads de Meta Lead Ads que produjo cada anuncio (leadCount). Primero los más recientes y con más actividad: ordenado por conversations y luego lastAt.
Permiso: analytics:read, que tienen todos los roles del workspace, ANALYST incluido: es volumen, no contenido de conversaciones (compara con GET /v1/referrals/summary, que necesita chat:read y abarca un solo número). Alcance: una clave con alcance de número, o una credencial de toda la cuenta con x-whatsapp-number-id, reporta solo ese número; una credencial de toda la cuenta sin el encabezado reporta todo el workspace, y puede acotarlo con el parámetro de query whatsappNumberId.
conversations cuenta conversaciones distintas y messages cuenta mensajes, por separado. lastHeadline y lastSourceUrl (el texto del anuncio) son null para un anuncio visto solo en un número RELAY_ONLY; los conteos no se ven afectados. namesResolvedAt definido con todos los nombres en null significa que Pilot Status preguntó a Meta y no obtuvo nada (pide al anunciante el permiso de socio); null significa que todavía no se preguntó. Tope de 200 anuncios: truncated: true indica que la lista se cortó; acota con startDate/endDate. Un anuncio que produjo leads pero nunca una conversación no tiene fila aquí; consúltalo en GET /v1/leads.
curl --request GET \
--url https://pilotstatus.com.br/v1/ads/summary \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/ads/summary"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/ads/summary', 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://pilotstatus.com.br/v1/ads/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://pilotstatus.com.br/v1/ads/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/ads/summary")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/ads/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ads": [
{
"sourceId": "120249828053880703",
"sourceType": "ad",
"conversations": 37,
"messages": 214,
"firstAt": "2026-10-02T11:04:19.000Z",
"lastAt": "2026-10-20T22:41:07.000Z",
"lastSourceUrl": "https://fb.me/2bXyZ",
"lastHeadline": "Reforma com 70% de desconto",
"adName": "Ads 01 - Vídeo dos 70%",
"adsetId": "120249828053880001",
"adsetName": "[IG] [LL1% IG + VÍDEOS] - 35 a 50",
"campaignId": "120249828053870000",
"campaignName": "[CD-01] [LEADS] - MM Design - Sale 70%",
"namesResolvedAt": "2026-10-20T23:00:02.000Z",
"leadCount": 12
}
],
"total": 1,
"limit": 200,
"truncated": false
}{
"error": "startDate must be before or equal to endDate | Intervalo de datas inválido (use ISO 8601, startDate <= endDate)",
"code": "INVALID_DATE_RANGE"
}{
"error": "Unauthorized"
}{
"error": "This credential is not granted access to that WhatsApp number | Esta credencial não tem acesso a esse número de WhatsApp",
"code": "NUMBER_NOT_IN_GRANT"
}{
"error": "Internal server error | Erro interno do servidor",
"code": "INTERNAL_ERROR"
}Encabezados
Parámetros de consulta
Respuesta
Resumen por anuncio
¿Esta página le ayudó?
curl --request GET \
--url https://pilotstatus.com.br/v1/ads/summary \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/ads/summary"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/ads/summary', 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://pilotstatus.com.br/v1/ads/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://pilotstatus.com.br/v1/ads/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pilotstatus.com.br/v1/ads/summary")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/ads/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ads": [
{
"sourceId": "120249828053880703",
"sourceType": "ad",
"conversations": 37,
"messages": 214,
"firstAt": "2026-10-02T11:04:19.000Z",
"lastAt": "2026-10-20T22:41:07.000Z",
"lastSourceUrl": "https://fb.me/2bXyZ",
"lastHeadline": "Reforma com 70% de desconto",
"adName": "Ads 01 - Vídeo dos 70%",
"adsetId": "120249828053880001",
"adsetName": "[IG] [LL1% IG + VÍDEOS] - 35 a 50",
"campaignId": "120249828053870000",
"campaignName": "[CD-01] [LEADS] - MM Design - Sale 70%",
"namesResolvedAt": "2026-10-20T23:00:02.000Z",
"leadCount": 12
}
],
"total": 1,
"limit": 200,
"truncated": false
}{
"error": "startDate must be before or equal to endDate | Intervalo de datas inválido (use ISO 8601, startDate <= endDate)",
"code": "INVALID_DATE_RANGE"
}{
"error": "Unauthorized"
}{
"error": "This credential is not granted access to that WhatsApp number | Esta credencial não tem acesso a esse número de WhatsApp",
"code": "NUMBER_NOT_IN_GRANT"
}{
"error": "Internal server error | Erro interno do servidor",
"code": "INTERNAL_ERROR"
}