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
freeZum Listenpreis
Success rate
—Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/microsoft-ads.queryBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameter

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

ParameterTypErforderlichBeschreibungBeispiel
Anfragetext (JSON)
AccountIdGanzzahlErforderlichthe ad account id (a long). Must equal the CustomerAccountId header123456789
CampaignTypeZeichenketteOptionalSPACE-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
ReturnAdditionalFieldsZeichenketteOptionalspace-delimited opt-ins for newer properties, e.g. "AdScheduleUseSearcherTimeZone BidStrategyId"BidStrategyId
  • Anfragetext (JSON)
  • AccountIdGanzzahlErforderlich

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

    Beispiel: 123456789

  • CampaignTypeZeichenketteOptional

    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

    Beispiel: Search Shopping PerformanceMax

  • ReturnAdditionalFieldsZeichenketteOptional

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

    Beispiel: BidStrategyId

Codebeispiele

Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.

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

Diese Gateway-API ist in der Beta; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.