Domanda collegata dentro GAM
Campi AdSense e Ad Exchange in GAM REST
Usa metriche AdSense e Ad Exchange che Google Ad Manager espone nei report HISTORICAL quando queste fonti domanda sono collegate e attive.
"In GAM REST, confronta revenue AdSense e Ad Exchange degli ultimi 7 giorni per DATE, AD_UNIT_NAME e DEMAND_CHANNEL_NAME. Includi ADSENSE_IMPRESSIONS, ADSENSE_REVENUE, AD_EXCHANGE_IMPRESSIONS, AD_EXCHANGE_REVENUE e AD_EXCHANGE_AVERAGE_ECPM."
Una lettura delle fonti domanda da GAM REST che separa AdSense e Ad Exchange senza usare Google Ads API.
Flusso agente
- 01
Controllare che le metriche AdSense o Ad Exchange richieste esistano in get_report_metrics per REST/HISTORICAL.
- 02
Eseguire run_custom_report su GAM REST con dimensioni demand-channel.
- 03
Segnalare metriche domanda non disponibili come limiti di collegamento GAM o permessi account.
Funzioni MCP
Chiamata MCP parent mostrata con l'azione reporting.
| Funzione | Costo | Uso |
|---|---|---|
reporting(action="get_report_dimensions") | 0 cr | Controlla dimensioni domanda GAM. |
reporting(action="get_report_metrics") | 0 cr | Controlla metriche AdSense e Ad Exchange esposte da GAM. |
reporting(action="run_custom_report") | 0.5 cr | Esegue il report domanda GAM REST. |
Payload JSON
{
"tool": "reporting",
"arguments": {
"action": "run_custom_report",
"params": {
"api": "rest",
"report_type": "HISTORICAL",
"date_range_type": "LAST_7_DAYS",
"dimensions": [
"DATE",
"AD_UNIT_NAME",
"DEMAND_CHANNEL_NAME"
],
"metrics": [
"ADSENSE_IMPRESSIONS",
"ADSENSE_REVENUE",
"AD_EXCHANGE_IMPRESSIONS",
"AD_EXCHANGE_REVENUE",
"AD_EXCHANGE_AVERAGE_ECPM"
]
}
}
}Output rappresentativo
- DATE=2026-06-08 | AD_UNIT_NAME=Sports/Home | DEMAND_CHANNEL_NAME=Ad Exchange | AD_EXCHANGE_REVENUE=EUR 1.284,20.
- DATE=2026-06-08 | AD_UNIT_NAME=Sports/Home | DEMAND_CHANNEL_NAME=AdSense | ADSENSE_REVENUE=EUR 342,10.
- Azione: rivedere ad unit dove eCPM Ad Exchange cala mentre le requests GAM restano stabili.
Dimensioni e metriche
| Name | Fonte | Descrizione |
|---|---|---|
| DATE | GAM | Giorno report |
| AD_UNIT_NAME | GAM | Placement inventario |
| DEMAND_CHANNEL_NAME | GAM | Canale domanda esposto da GAM |
| Name | Fonte | Descrizione |
|---|---|---|
| ADSENSE_IMPRESSIONS | GAM | Impression AdSense in GAM reporting |
| ADSENSE_REVENUE | GAM | Revenue AdSense in GAM reporting |
| AD_EXCHANGE_IMPRESSIONS | GAM | Impression Ad Exchange in GAM reporting |
| AD_EXCHANGE_REVENUE | GAM | Revenue Ad Exchange in GAM reporting |
| AD_EXCHANGE_AVERAGE_ECPM | GAM | eCPM medio Ad Exchange in GAM reporting |
Limiti
- Le righe AdSense e Ad Exchange dipendono dalla configurazione GAM publisher e dalla disponibilita della domanda collegata.
- Non e reporting Google Ads: nessuno spend campagna, keyword, bid o metrica account Google Ads.
- Usare solo campi restituiti da GAM REST; cambiare campi se il network non ne espone uno.
- Usare get_report_result per leggere il risultato completo in cache quando la risposta inline e troncata.
Usa la guida editoriale per il contesto audience, poi torna qui per azioni MCP, campi e payload esatti.
