Skip to content
Get MCP AdsGet MCP Ads, home
View as Markdown

x_ads_get_active_entities

List which ads entities had metrics change in a time window (use before requesting account stats) Native X fields and pagination are preserved; monetary…

List which ads entities had metrics change in a time window (use before requesting account stats) Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.

Source
X Ads
Kind
Read
Discovery
Reachable through search_tools and run_tool
Account parameter
account_id
Endpoint
https://mcp.getmcpads.com/x-ads/mcp

ParametersLink to this section

NameTypeRequiredNotes
account_idstringRequiredX Ads account ID selected in Sources.
campaign_idsstringOptionalComma-separated campaign IDs to scope the check to (max 200; exclusive with the other ids filters).
end_timestringRequiredISO 8601 end of the activity window (exclusive); must be a whole hour (minutes and seconds 0).
entitystringRequiredEntity type to check for metric activity. One of: CAMPAIGN, FUNDING_INSTRUMENT, LINE_ITEM, MEDIA_CREATIVE, PROMOTED_ACCOUNT, PROMOTED_TWEET.
funding_instrument_idsstringOptionalComma-separated funding instrument IDs to scope the check to (max 200; exclusive with the other i...
line_item_idsstringOptionalComma-separated line item IDs to scope the check to (max 200; exclusive with the other ids filters).
start_timestringRequiredISO 8601 start of the activity window; must be a whole hour (minutes and seconds 0).

Calling itLink to this section

jsonThrough run_tool, since it is not announced
{
  "name": "run_tool",
  "arguments": {
    "name": "x_ads_get_active_entities",
    "args": {
      "account_id": "<string>",
      "end_time": "<string>",
      "entity": "CAMPAIGN",
      "start_time": "<string>"
    }
  }
}
Esc

Type to search