List ads in a Microsoft Ads ad group — headlines, URLs
microsoft-ads.adsList the ads in a Microsoft Advertising ad group with their headlines and final URLs
- Price
- freeZum Listenpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/microsoft-ads.adsBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameter
responsive search ads return Headlines[] and Descriptions[] as asset-link arrays rather than flat strings, so the creative text is nested a level deeper than in older ad types
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Anfragetext (JSON) | ||||
AdTypes | Array | Erforderlich | which ad types to return — e.g. ["ResponsiveSearch","ExpandedText","ResponsiveAd","Product"]. An ad type you do not ask for is simply absent from the result | ["ResponsiveSearch"] |
AdGroupId | Ganzzahl | Erforderlich | 1122334455 | |
ReturnAdditionalFields | Zeichenkette | Optional | ||
- Anfragetext (JSON)
AdTypesArrayErforderlichwhich ad types to return — e.g. ["ResponsiveSearch","ExpandedText","ResponsiveAd","Product"]. An ad type you do not ask for is simply absent from the result
Beispiel:
["ResponsiveSearch"]AdGroupIdGanzzahlErforderlichBeispiel:
1122334455ReturnAdditionalFieldsZeichenketteOptional
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
Beta
curl -X POST 'https://toolswitch.dev/v1/tools/microsoft-ads.ads' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/microsoft-ads.ads",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/microsoft-ads.ads", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());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.