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
- 価格
- freeカタログ価格で提供
- 成功率
- —成功率データはまだありません成功率データはまだありません
- レイテンシ p50
- ——
- 最終確認
- —未確認
POSThttps://toolswitch.dev/v1/tools/microsoft-ads.adsBeta- プラットフォームのクォータを使用
- 同期レスポンス
- 公開データを読み取る
パラメータ
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
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| リクエストボディ(JSON) | ||||
AdTypes | 配列 | 必須 | 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 | 整数 | 必須 | 1122334455 | |
ReturnAdditionalFields | 文字列 | 任意 | ||
- リクエストボディ(JSON)
AdTypes配列必須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整数必須例:
1122334455ReturnAdditionalFields文字列任意
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
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());このゲートウェイ API は Beta です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。