Microsoft AdvertisingMicrosoft AdvertisingAdvertising

List your Microsoft Ads campaigns — status, budget

microsoft-ads.query

Campaigns in your Microsoft Advertising account, with status, budget and bid strategy

Price
freeAt list price
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/microsoft-ads.queryBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

returns Campaigns[] with Id, Name, Status, DailyBudget, BudgetType, BiddingScheme, StartDate/EndDate, Languages and CampaignType. DailyBudget is a plain decimal in the ACCOUNT CURRENCY — not micros, not cents, unlike Google and Meta. No performance metrics: pair with the Reporting service for spend and clicks

ParameterTypeRequiredDescriptionExample
Request body (JSON)
AccountIdintegerRequiredthe ad account id (a long). Must equal the CustomerAccountId header123456789
CampaignTypestringOptionalSPACE-DELIMITED flags, not an array: "Search Shopping DynamicSearchAds Audience PerformanceMax". DEFAULTS TO Search — omit it and Shopping/PMax campaigns are silently missing from the resultSearch Shopping PerformanceMax
ReturnAdditionalFieldsstringOptionalspace-delimited opt-ins for newer properties, e.g. "AdScheduleUseSearcherTimeZone BidStrategyId"BidStrategyId
  • Request body (JSON)
  • AccountIdintegerRequired

    the ad account id (a long). Must equal the CustomerAccountId header

    Example: 123456789

  • CampaignTypestringOptional

    SPACE-DELIMITED flags, not an array: "Search Shopping DynamicSearchAds Audience PerformanceMax". DEFAULTS TO Search — omit it and Shopping/PMax campaigns are silently missing from the result

    Example: Search Shopping PerformanceMax

  • ReturnAdditionalFieldsstringOptional

    space-delimited opt-ins for newer properties, e.g. "AdScheduleUseSearcherTimeZone BidStrategyId"

    Example: BidStrategyId

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Beta
curl -X POST 'https://toolswitch.dev/v1/tools/microsoft-ads.query' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.