hermosodocs

x_ads_report

X ads performance report read-only

Area: X ADS CUSTOM AUDIENCES + CONVERSION API · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Performance stats for X campaigns, line items or promoted posts. `placement` here is SINGULAR and comes from a FOUR-value set (ALL_ON_TWITTER / PUBLISHER_NETWORK / SPOTLIGHT / TREND) — deliberately not the twelve placements a line item accepts; do not carry one across. THE TRAP THIS REPORTS: an entity id that does not exist on the account answers 200 with every metric null, which is indistinguishable from a real zero, so an all-null response is FLAGGED rather than narrated as zero performance. Max 20 ids per call. Read-only, free.

Parameters

ParameterTypeDescription
adAccountIdstringX ad account id (list_x_ads_accounts); omit if only one is shared
accountIdstringolder name for adAccountId (MCP only)
entity"ACCOUNT" | "CAMPAIGN" | "FUNDING_INSTRUMENT" | "LINE_ITEM" | "MEDIA_CREATIVE" | "ORGANIC_TWEET" | "PROMOTED_ACCOUNT" | "PROMOTED_TWEET"default CAMPAIGN
entityIdsrequiredstring[]max 20
startTimestringISO 8601; defaults to 7 days before endTime
endTimestringISO 8601; defaults to now
granularity"HOUR" | "DAY" | "TOTAL"default TOTAL
placement"ALL_ON_TWITTER" | "PUBLISHER_NETWORK" | "SPOTLIGHT" | "TREND"default ALL_ON_TWITTER
metricGroups"BILLING" | "ENGAGEMENT" | "LIFE_TIME_VALUE_MOBILE_CONVERSION" | "MEDIA" | "MOBILE_CONVERSION" | "VIDEO" | "WEB_CONVERSION"[]default ENGAGEMENT

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/x_ads_report.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"x_ads_report","arguments":{"entityIds":"<array>"}}}

CLI

hermoso call x_ads_report --json '{"entityIds":"<array>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json