Herramienta MCP
Analizar rendimiento publicitario
sosoapi_ads_performance_analyzeAnaliza un informe limitado de publicidad pagada proporcionado por el cliente, con atribución explícita y hash exacto de origen. Sin acceso a la plataforma ni afirmaciones de rentabilidad causal.
Leer en MarkdownPerfiles y transportes
Perfiles: full · Transportes: stdio, http
Elige core o full para controlar qué herramientas ve tu cliente; no cambia sus permisos. La carga de archivos locales requiere stdio y no está disponible por HTTP. Establece SOSOAPI_OUTPUT_SCHEMAS=1 para incluir esquemas de salida en la detección. Las herramientas devuelven resultados estructurados con o sin esa opción.
Permisos y efectos secundarios
Las anotaciones ayudan a los clientes a describir una herramienta. Cada llamada sigue comprobando la autenticación, el rol, el acceso al recurso y los permisos de capacidades del usuario.
{
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}- /advertising-api/performance/analyze: agent:advertising_read · synchronous_http_response
Campos de entrada
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
workspace_id | stringObligatorio en el objeto principal |
|
source_kind | stringObligatorio en el objeto principal |
|
source_id | stringObligatorio en el objeto principal |
|
provider_api_version | stringObligatorio en el objeto principal |
|
provider_account_id | stringObligatorio en el objeto principal |
|
currency | stringObligatorio en el objeto principal |
|
timezone | stringObligatorio en el objeto principal |
|
level | stringObligatorio en el objeto principal |
|
start_date | stringObligatorio en el objeto principal |
|
end_date | stringObligatorio en el objeto principal |
|
action_attribution_windows | arrayObligatorio en el objeto principal |
|
action_attribution_windows[] | stringOpcional / elemento |
|
action_report_time | stringObligatorio en el objeto principal |
|
conversion_action_type | stringObligatorio en el objeto principal |
|
revenue_action_type | stringObligatorio en el objeto principal |
|
complete | booleanObligatorio en el objeto principal | — |
rows | arrayObligatorio en el objeto principal |
|
rows[] | objectOpcional / elemento |
|
rows[].account_id | stringObligatorio en el objeto principal |
|
rows[].account_currency | stringObligatorio en el objeto principal |
|
rows[].campaign_id | stringObligatorio en el objeto principal |
|
rows[].campaign_name | stringOpcional / elemento |
|
rows[].adset_id | stringOpcional / elemento |
|
rows[].ad_id | stringOpcional / elemento |
|
rows[].date_start | stringObligatorio en el objeto principal |
|
rows[].date_stop | stringObligatorio en el objeto principal |
|
rows[].spend | stringOpcional / elemento |
|
rows[].clicks | stringOpcional / elemento |
|
rows[].actions | arrayOpcional / elemento |
|
rows[].actions[] | objectOpcional / elemento |
|
rows[].actions[].action_type | stringObligatorio en el objeto principal |
|
rows[].actions[].value | stringOpcional / elemento |
|
rows[].actions[].1d_click | stringOpcional / elemento |
|
rows[].actions[].7d_click | stringOpcional / elemento |
|
rows[].actions[].1d_view | stringOpcional / elemento |
|
rows[].action_values | arrayOpcional / elemento |
|
rows[].action_values[] | objectOpcional / elemento |
|
rows[].action_values[].action_type | stringObligatorio en el objeto principal |
|
rows[].action_values[].value | stringOpcional / elemento |
|
rows[].action_values[].1d_click | stringOpcional / elemento |
|
rows[].action_values[].7d_click | stringOpcional / elemento |
|
rows[].action_values[].1d_view | stringOpcional / elemento |
|
JSON Schema completo
{
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"format": "uuid"
},
"source_kind": {
"type": "string",
"enum": [
"customer_import",
"official_meta_api"
]
},
"source_id": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"provider_api_version": {
"type": "string",
"enum": [
"v26.0"
]
},
"provider_account_id": {
"$ref": "#/$defs/s1"
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"level": {
"type": "string",
"enum": [
"campaign",
"adset",
"ad"
]
},
"start_date": {
"$ref": "#/$defs/s2"
},
"end_date": {
"$ref": "#/$defs/s2"
},
"action_attribution_windows": {
"minItems": 1,
"maxItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"1d_click",
"7d_click",
"1d_view"
]
}
},
"action_report_time": {
"type": "string",
"enum": [
"impression",
"conversion"
]
},
"conversion_action_type": {
"$ref": "#/$defs/s3"
},
"revenue_action_type": {
"$ref": "#/$defs/s3"
},
"complete": {
"type": "boolean"
},
"rows": {
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"account_id": {
"$ref": "#/$defs/s1"
},
"account_currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"campaign_id": {
"$ref": "#/$defs/s1"
},
"campaign_name": {
"type": "string",
"maxLength": 200
},
"adset_id": {
"$ref": "#/$defs/s1"
},
"ad_id": {
"$ref": "#/$defs/s1"
},
"date_start": {
"$ref": "#/$defs/s2"
},
"date_stop": {
"$ref": "#/$defs/s2"
},
"spend": {
"type": "string",
"pattern": "^\\d{1,12}(?:\\.\\d{1,6})?$"
},
"clicks": {
"type": "string",
"pattern": "^\\d{1,15}$"
},
"actions": {
"$ref": "#/$defs/s0"
},
"action_values": {
"$ref": "#/$defs/s0"
}
},
"required": [
"account_id",
"account_currency",
"campaign_id",
"date_start",
"date_stop"
],
"additionalProperties": false
}
}
},
"required": [
"workspace_id",
"source_kind",
"source_id",
"provider_api_version",
"provider_account_id",
"currency",
"timezone",
"level",
"start_date",
"end_date",
"action_attribution_windows",
"action_report_time",
"conversion_action_type",
"revenue_action_type",
"complete",
"rows"
],
"additionalProperties": false,
"$defs": {
"s0": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"action_type": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.]{0,99}$"
},
"value": {
"type": "string",
"pattern": "^\\d{1,12}(?:\\.\\d{1,6})?$"
},
"1d_click": {
"type": "string",
"pattern": "^\\d{1,12}(?:\\.\\d{1,6})?$"
},
"7d_click": {
"type": "string",
"pattern": "^\\d{1,12}(?:\\.\\d{1,6})?$"
},
"1d_view": {
"type": "string",
"pattern": "^\\d{1,12}(?:\\.\\d{1,6})?$"
}
},
"required": [
"action_type"
],
"additionalProperties": false
}
},
"s1": {
"type": "string",
"pattern": "^[1-9]\\d{1,24}$"
},
"s2": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"s3": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.]{0,99}$"
}
}
}Salida estructurada
Este esquema describe structuredContent en un resultado exitoso de herramienta. La respuesta MCP también incluye content y puede establecer isError si falla una llamada. Para publicación, consulta el resultado final de la publicación en vez de considerar una solicitud aceptada o una respuesta de texto como confirmación. La operación API enlazada explica los permisos y las reglas de reintento.
Obligatorio significa obligatorio dentro del objeto principal y la rama elegida. Un campo secundario obligatorio no convierte en obligatorio un objeto principal opcional. Las reglas y nombres de campos siguientes se copian del contrato.
| Campo / rama | Tipo / obligatorio | Restricciones |
|---|---|---|
$ | objectObligatorio en el objeto principal |
|
contract_version | stringObligatorio en el objeto principal |
|
source_id | stringObligatorio en el objeto principal |
|
source_sha256 | stringObligatorio en el objeto principal |
|
identity_verification | stringObligatorio en el objeto principal |
|
currency | stringObligatorio en el objeto principal |
|
timezone | stringObligatorio en el objeto principal |
|
selection | objectObligatorio en el objeto principal |
|
selection.provider_api_version | stringObligatorio en el objeto principal |
|
selection.provider_account_id | stringObligatorio en el objeto principal |
|
selection.currency | stringObligatorio en el objeto principal |
|
selection.timezone | stringObligatorio en el objeto principal |
|
selection.level | stringObligatorio en el objeto principal |
|
selection.start_date | stringObligatorio en el objeto principal |
|
selection.end_date | stringObligatorio en el objeto principal |
|
selection.action_attribution_windows | arrayObligatorio en el objeto principal |
|
selection.action_attribution_windows[] | stringOpcional / elemento |
|
selection.action_report_time | stringObligatorio en el objeto principal |
|
selection.conversion_action_type | stringObligatorio en el objeto principal |
|
selection.revenue_action_type | stringObligatorio en el objeto principal |
|
complete | booleanObligatorio en el objeto principal | — |
rows | arrayObligatorio en el objeto principal |
|
rows[] | objectOpcional / elemento |
|
rows[].row_id | stringObligatorio en el objeto principal |
|
rows[].metrics | objectObligatorio en el objeto principal |
|
rows[].metrics.spend | objectObligatorio en el objeto principal |
|
rows[].metrics.spend.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.spend.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.spend.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.spend.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.spend.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.spend.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.spend.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.spend.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.spend.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.spend.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.clicks | objectObligatorio en el objeto principal |
|
rows[].metrics.clicks.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.clicks.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.clicks.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.clicks.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.clicks.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.clicks.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.clicks.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.clicks.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.clicks.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.clicks.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.conversions | objectObligatorio en el objeto principal |
|
rows[].metrics.conversions.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.conversions.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.conversions.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.conversions.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.conversions.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.conversions.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.conversions.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.conversions.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.conversions.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.conversions.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.attributed_revenue | objectObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_revenue.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_revenue.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_revenue.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_revenue.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.attributed_revenue.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.cpc | objectObligatorio en el objeto principal |
|
rows[].metrics.cpc.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.cpc.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.cpc.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.cpc.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.cpc.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.cpc.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.cpc.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.cpc.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.cpc.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.cpc.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.cpa | objectObligatorio en el objeto principal |
|
rows[].metrics.cpa.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.cpa.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.cpa.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.cpa.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.cpa.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.cpa.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.cpa.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.cpa.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.cpa.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.cpa.input_refs[] | stringOpcional / elemento |
|
rows[].metrics.attributed_roas | objectObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.value | string | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_roas.valueanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.valueanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_roas.unit | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.availability | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.reason | string | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_roas.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
rows[].metrics.attributed_roas.input_refs | arrayObligatorio en el objeto principal |
|
rows[].metrics.attributed_roas.input_refs[] | stringOpcional / elemento |
|
totals | objectObligatorio en el objeto principal |
|
totals.spend | objectObligatorio en el objeto principal |
|
totals.spend.value | string | nullObligatorio en el objeto principal | — |
totals.spend.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.spend.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.spend.unit | stringObligatorio en el objeto principal |
|
totals.spend.availability | stringObligatorio en el objeto principal |
|
totals.spend.reason | string | nullObligatorio en el objeto principal | — |
totals.spend.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.spend.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.spend.input_refs | arrayObligatorio en el objeto principal |
|
totals.spend.input_refs[] | stringOpcional / elemento |
|
totals.clicks | objectObligatorio en el objeto principal |
|
totals.clicks.value | string | nullObligatorio en el objeto principal | — |
totals.clicks.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.clicks.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.clicks.unit | stringObligatorio en el objeto principal |
|
totals.clicks.availability | stringObligatorio en el objeto principal |
|
totals.clicks.reason | string | nullObligatorio en el objeto principal | — |
totals.clicks.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.clicks.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.clicks.input_refs | arrayObligatorio en el objeto principal |
|
totals.clicks.input_refs[] | stringOpcional / elemento |
|
totals.conversions | objectObligatorio en el objeto principal |
|
totals.conversions.value | string | nullObligatorio en el objeto principal | — |
totals.conversions.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.conversions.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.conversions.unit | stringObligatorio en el objeto principal |
|
totals.conversions.availability | stringObligatorio en el objeto principal |
|
totals.conversions.reason | string | nullObligatorio en el objeto principal | — |
totals.conversions.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.conversions.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.conversions.input_refs | arrayObligatorio en el objeto principal |
|
totals.conversions.input_refs[] | stringOpcional / elemento |
|
totals.attributed_revenue | objectObligatorio en el objeto principal |
|
totals.attributed_revenue.value | string | nullObligatorio en el objeto principal | — |
totals.attributed_revenue.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.attributed_revenue.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.attributed_revenue.unit | stringObligatorio en el objeto principal |
|
totals.attributed_revenue.availability | stringObligatorio en el objeto principal |
|
totals.attributed_revenue.reason | string | nullObligatorio en el objeto principal | — |
totals.attributed_revenue.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.attributed_revenue.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.attributed_revenue.input_refs | arrayObligatorio en el objeto principal |
|
totals.attributed_revenue.input_refs[] | stringOpcional / elemento |
|
totals.cpc | objectObligatorio en el objeto principal |
|
totals.cpc.value | string | nullObligatorio en el objeto principal | — |
totals.cpc.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.cpc.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.cpc.unit | stringObligatorio en el objeto principal |
|
totals.cpc.availability | stringObligatorio en el objeto principal |
|
totals.cpc.reason | string | nullObligatorio en el objeto principal | — |
totals.cpc.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.cpc.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.cpc.input_refs | arrayObligatorio en el objeto principal |
|
totals.cpc.input_refs[] | stringOpcional / elemento |
|
totals.cpa | objectObligatorio en el objeto principal |
|
totals.cpa.value | string | nullObligatorio en el objeto principal | — |
totals.cpa.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.cpa.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.cpa.unit | stringObligatorio en el objeto principal |
|
totals.cpa.availability | stringObligatorio en el objeto principal |
|
totals.cpa.reason | string | nullObligatorio en el objeto principal | — |
totals.cpa.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.cpa.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.cpa.input_refs | arrayObligatorio en el objeto principal |
|
totals.cpa.input_refs[] | stringOpcional / elemento |
|
totals.attributed_roas | objectObligatorio en el objeto principal |
|
totals.attributed_roas.value | string | nullObligatorio en el objeto principal | — |
totals.attributed_roas.valueanyOf 1 | stringObligatorio en el objeto principal |
|
totals.attributed_roas.valueanyOf 2 | nullObligatorio en el objeto principal | — |
totals.attributed_roas.unit | stringObligatorio en el objeto principal |
|
totals.attributed_roas.availability | stringObligatorio en el objeto principal |
|
totals.attributed_roas.reason | string | nullObligatorio en el objeto principal | — |
totals.attributed_roas.reasonanyOf 1 | stringObligatorio en el objeto principal |
|
totals.attributed_roas.reasonanyOf 2 | nullObligatorio en el objeto principal | — |
totals.attributed_roas.input_refs | arrayObligatorio en el objeto principal |
|
totals.attributed_roas.input_refs[] | stringOpcional / elemento |
|
gaps | arrayObligatorio en el objeto principal |
|
gaps[] | stringOpcional / elemento |
|
suggestions | arrayObligatorio en el objeto principal |
|
suggestions[] | objectOpcional / elemento |
|
suggestions[].rule_id | stringObligatorio en el objeto principal |
|
suggestions[].rule_version | numberObligatorio en el objeto principal |
|
suggestions[].proposal | stringObligatorio en el objeto principal |
|
suggestions[].input_refs | arrayObligatorio en el objeto principal |
|
suggestions[].input_refs[] | stringOpcional / elemento |
|
suggestions[].limitations | stringObligatorio en el objeto principal |
|
JSON Schema completo
{
"type": "object",
"properties": {
"contract_version": {
"type": "string",
"const": "ad-performance/v1"
},
"source_id": {
"type": "string",
"maxLength": 100
},
"source_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"identity_verification": {
"type": "string",
"enum": [
"customer_supplied",
"accepted_provider_grant"
]
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"timezone": {
"type": "string",
"maxLength": 100
},
"selection": {
"type": "object",
"properties": {
"provider_api_version": {
"type": "string",
"const": "v26.0"
},
"provider_account_id": {
"type": "string",
"pattern": "^[1-9]\\d{1,24}$"
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"timezone": {
"type": "string",
"maxLength": 100
},
"level": {
"type": "string",
"enum": [
"campaign",
"adset",
"ad"
]
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"action_attribution_windows": {
"minItems": 1,
"maxItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"1d_click",
"7d_click",
"1d_view"
]
}
},
"action_report_time": {
"type": "string",
"enum": [
"impression",
"conversion"
]
},
"conversion_action_type": {
"type": "string",
"maxLength": 100
},
"revenue_action_type": {
"type": "string",
"maxLength": 100
}
},
"required": [
"provider_api_version",
"provider_account_id",
"currency",
"timezone",
"level",
"start_date",
"end_date",
"action_attribution_windows",
"action_report_time",
"conversion_action_type",
"revenue_action_type"
],
"additionalProperties": false
},
"complete": {
"type": "boolean"
},
"rows": {
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"row_id": {
"type": "string",
"maxLength": 100
},
"metrics": {
"type": "object",
"properties": {
"spend": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"clicks": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"conversions": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"attributed_revenue": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"cpc": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"cpa": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"attributed_roas": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
}
},
"required": [
"spend",
"clicks",
"conversions",
"attributed_revenue",
"cpc",
"cpa",
"attributed_roas"
],
"additionalProperties": false
}
},
"required": [
"row_id",
"metrics"
],
"additionalProperties": false
}
},
"totals": {
"type": "object",
"properties": {
"spend": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"clicks": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"conversions": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"attributed_revenue": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"cpc": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"cpa": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
},
"attributed_roas": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
},
{
"type": "null"
}
]
},
"unit": {
"type": "string",
"enum": [
"currency",
"count",
"currency_per_click",
"currency_per_conversion",
"ratio"
]
},
"availability": {
"type": "string",
"enum": [
"available",
"missing_input",
"zero_denominator",
"incompatible",
"partial"
]
},
"reason": {
"anyOf": [
{
"type": "string",
"maxLength": 300
},
{
"type": "null"
}
]
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
}
},
"required": [
"value",
"unit",
"availability",
"reason",
"input_refs"
],
"additionalProperties": false
}
},
"required": [
"spend",
"clicks",
"conversions",
"attributed_revenue",
"cpc",
"cpa",
"attributed_roas"
],
"additionalProperties": false
},
"gaps": {
"maxItems": 1000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
},
"suggestions": {
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"rule_id": {
"type": "string",
"enum": [
"supply_revenue",
"review_comparable_creative_test",
"complete_coverage"
]
},
"rule_version": {
"type": "number",
"const": 1
},
"proposal": {
"type": "string",
"maxLength": 600
},
"input_refs": {
"maxItems": 2000,
"type": "array",
"items": {
"type": "string",
"maxLength": 300
}
},
"limitations": {
"type": "string",
"const": "Observational comparison only; no causal uplift or profitability claim. Human review required."
}
},
"required": [
"rule_id",
"rule_version",
"proposal",
"input_refs",
"limitations"
],
"additionalProperties": false
}
}
},
"required": [
"contract_version",
"source_id",
"source_sha256",
"identity_verification",
"currency",
"timezone",
"selection",
"complete",
"rows",
"totals",
"gaps",
"suggestions"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Ejemplo de llamada a herramienta
Estos ejemplos usan valores ficticios comprobados con los esquemas. Sustituye los IDs por otros autorizados, los archivos multimedia por recursos listos y las fechas por tu hora de publicación confirmada. Comprueba la elegibilidad de la cuenta antes de enviar una escritura. Esta página no envía solicitudes API.
{
"name": "sosoapi_ads_performance_analyze",
"arguments": {
"workspace_id": "11111111-1111-4111-8111-111111111111",
"source_kind": "customer_import",
"source_id": "example",
"provider_api_version": "v26.0",
"provider_account_id": "12345",
"currency": "USD",
"timezone": "UTC",
"level": "campaign",
"start_date": "2099-01-15",
"end_date": "2099-01-15",
"action_attribution_windows": [
"1d_click"
],
"action_report_time": "impression",
"conversion_action_type": "example",
"revenue_action_type": "example",
"complete": false,
"rows": []
}
}structuredContent
{
"contract_version": "ad-performance/v1",
"source_id": "example",
"source_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"identity_verification": "customer_supplied",
"currency": "USD",
"timezone": "UTC",
"selection": {
"provider_api_version": "v26.0",
"provider_account_id": "12345",
"currency": "USD",
"timezone": "UTC",
"level": "campaign",
"start_date": "2099-01-15",
"end_date": "2099-01-15",
"action_attribution_windows": [
"1d_click"
],
"action_report_time": "impression",
"conversion_action_type": "example",
"revenue_action_type": "example"
},
"complete": false,
"rows": [],
"totals": {
"spend": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"clicks": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"conversions": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"attributed_revenue": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"cpc": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"cpa": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
},
"attributed_roas": {
"value": null,
"unit": "currency",
"availability": "available",
"reason": null,
"input_refs": []
}
},
"gaps": [],
"suggestions": []
}