Aller au contenu principal
Reporting GAM REST

Usar campos Analytics, AdSense y Ad Exchange vinculados via GAM REST

OrbiAds no se conecta a GA4 ni a Google Ads en este workflow. El asistente usa solo los campos que Google Ad Manager devuelve en reporting REST cuando el enlace o la fuente esta activa en GAM.

OA
OrbiAds Engineering
Publicado el 9 de junio de 2026 - 7 min

Empezar por el limite real

La herramienta MCP permanece en run_custom_report con api="rest" y report_type="HISTORICAL". No hay GA4 property ID, Google Ads account ID, spend import, bids ni report keyword en este caso.

Si falta PAGE_PATH, SESSIONS, ADSENSE_REVENUE o AD_EXCHANGE_REVENUE, la explicacion correcta es disponibilidad del enlace o de datos en GAM.

  • Acciones permitidas: get_report_dimensions, get_report_metrics, run_custom_report, get_report_result.
  • Scope requerido: cuenta Google autorizada para Google Ad Manager reporting.
  • Condicion: enlace Analytics o fuente demanda activa en GAM.

Campos Analytics si el enlace GAM esta activo

Primero valida el catalogo de campos; despues ejecuta un informe historico con DATE, PAGE_PATH y PAGE_TITLE_AND_SCREEN_NAME.

Linea esperada: /news/live | 2026-06-08 | 18.420 sessions | 22.814 views | EUR 1.284 Analytics revenue.

  • Prompt: "Con GAM REST solamente, muestra page paths con sessions y Analytics revenue de los ultimos 30 dias."
  • Dimensions: ["DATE","PAGE_PATH","PAGE_TITLE_AND_SCREEN_NAME"].
  • Metrics: ["SESSIONS","ACTIVE_USERS","GOOGLE_ANALYTICS_VIEWS","GOOGLE_ANALYTICS_REVENUE"].

Campos demanda AdSense y Ad Exchange

Usa DEMAND_CHANNEL_NAME con metrics AdSense y Ad Exchange para separar ingresos sin llamar Google Ads API.

Linea util: Ad Exchange | Sports/Home | 244.180 impressions | EUR 942 revenue | EUR 3,86 average eCPM.

  • Prompt: "Compara AdSense y Ad Exchange por ad unit en los ultimos 7 dias via GAM REST."
  • Dimensions: ["DATE","AD_UNIT_NAME","DEMAND_CHANNEL_NAME"].
  • Metrics: ["ADSENSE_IMPRESSIONS","ADSENSE_REVENUE","AD_EXCHANGE_IMPRESSIONS","AD_EXCHANGE_REVENUE","AD_EXCHANGE_AVERAGE_ECPM"].

Guardrail de skill

Anade: "Usa solo campos GAM REST. Valida nombres con el catalogo. Si un campo vinculado no esta disponible, explica que el enlace o fuente puede no estar activo en GAM."

Asi el asistente produce reporting AdOps sin inventar una integracion GA4 Data API o Google Ads API.

  • Nota final: Son campos vinculados GAM REST; no se llamo GA4 Data API ni Google Ads API.
  • Fallo correcto: PAGE_PATH no esta disponible; comprobar el enlace Analytics en GAM.
  • Siguiente paso: revisar catalogos de dimensiones y metrics.