キャンペーンの管理
注
広告コンソールでは、従来のキャンペーン作成プロセスに代わり、2022年9月以降、複数の広告グループキャンペーンの使用が開始されます。広告コンソールで作成したキャンペーンの詳細をすべて取得するには、新しいPOST /sb/v4/campaigns/listエンドポイントと
"creativeType": "all"
のレポートフィルターを使用する必要があります。
ジャンプ先: キャンペーン | 広告グループ | 広告 | クリエイティブ | レポート
キャンペーン
バージョン4では、キャンペーンの作成、更新、読み取り、削除のオプションがサポートされています。
キャンペーンのリスト表示
POST /sb/v4/campaigns/listエンドポイントを使用して、キャンペーンの詳細を確認できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/campaigns/list' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxx' \
--header 'Accept: application/vnd.sbcampaignresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"includeExtendedDataFields": true,
"stateFilter": {
"include": []
},
"nameFilter": {
"include": [],
"queryTermMatchType": "BROAD_MATCH"
},
"campaignIdFilter": {
"include": [
"63665260422798"
]
},
"maxResults": 10
}'
サンプルレスポンス
{
"campaigns": [
{
"bidding": {
"bidOptimizationStrategy": "MAXIMIZE_IMMEDIATE_SALES"
},
"budget": 100.0,
"budgetType": "DAILY",
"campaignId": "63665260422798",
"extendedData": {
"creationDate": 1644332919536,
"lastUpdateDate": 1644332919536,
"servingStatus": "CAMPAIGN_INCOMPLETE"
},
"isMultiAdGroupsEnabled": true,
"name": "create campaign test",
"startDate": "2022-02-08",
"state": "ENABLED"
}
],
"totalCount": 1
}
キャンペーンの更新
PUT /sb/v4/campaignsエンドポイントを使用して、複数の広告グループキャンペーンを更新できます。
サンプルリクエスト
curl --location --request PUT 'https://advertising-api.amazon.com/sb/v4/campaigns' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxx' \
--header 'Accept: application/vnd.sbcampaignresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '[
{
"campaignId": 63665260422798,
"budget": 50
}
]'
キャンペーンの削除
POST /sb/v4/campaigns/deleteエンドポイントを使用して、複数の広告グループキャンペーンを削除できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/campaigns/delete' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxx' \
--header 'Accept: application/vnd.sbcampaignresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '[
{
"campaignIdFilter": {
"include": [
"1234567890"
]
}
}
広告グループ
広告グループのリスト表示
POST /sb/v4/adGroups/listエンドポイントを使用して、更新する広告グループをリスト表示できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/adGroups/list' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxxxxx' \
--header 'Accept: application/vnd.sbadgroupresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"includeExtendedDataFields": true,
"campaignIdFilter": {
"include": []
},
"stateFilter": {
"include": [
"ENABLED"
]
},
"maxResults": 10,
"adGroupIdFilter": {
"include": [
"35407526816553"
]
},
"nameFilter": {
"queryTermMatchType": "EXACT_MATCH",
"include": []
}
}'
サンプルレスポンス
{
"adGroups": [
{
"adGroupId": "35407526816553",
"campaignId": "63665260422798",
"extendedData": {
"creationDate": 1644334666767,
"lastUpdateDate": 1644334666767,
"servingStatus": "CAMPAIGN_INCOMPLETE"
},
"name": "create ad group test 2",
"state": "ENABLED"
}
],
"totalResults": 1
}
広告グループの更新
PUT /sb/v4/adGroupsエンドポイントを使用して、広告グループのステータスを更新できます。
サンプルリクエスト
curl --location --request PUT 'https://advertising-api.amazon.com/sb/v4/adGroups' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxx' \
--header 'Accept: application/vnd.sbadgroupresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adGroups": [
{
"adGroupId": "35407526816553",
"state": "PAUSED",
"name": "New ad group name",
}
]
}'
サンプルレスポンス
{
"adGroups": {
"error": [],
"success": [
{
"adGroup": {
"adGroupId": "35407526816553",
"campaignId": "63665260422798",
"extendedData": {
"creationDate": 1644334666767,
"lastUpdateDate": 1644336561287,
"servingStatus": "CAMPAIGN_INCOMPLETE"
},
"name": "New ad group name",
"state": "PAUSED"
},
"adGroupId": "35407526816553",
"index": 0
}
]
}
}
広告グループの削除
POST /sb/v4/adGroups/deleteエンドポイントを使用して、エンドポイントを非表示にすることができます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/adGroups/delete' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxx' \
--header 'Accept: application/vnd.sbadgroupresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adGroupIdFilter": {
"include": [
"35407526816553"
]
}
}'
サンプルレスポンス
{
"adGroups": {
"error": [],
"success": [
{
"adGroup": {
"adGroupId": "35407526816553",
"campaignId": "63665260422798",
"extendedData": {
"creationDate": 1644334666767,
"lastUpdateDate": 1644336599743,
"servingStatus": "CAMPAIGN_INCOMPLETE"
},
"name": "Test campaign",
"state": "ARCHIVED"
},
"adGroupId": "35407526816553",
"index": 0
}
]
}
}
広告
広告のリスト表示
POST /sb/v4/ads/listエンドポイントを使用して、広告をリスト表示できます。このlistエンドポイントは、バージョン3とバージョン4で作成された広告を両方とも返します。
注
バージョン3のPOST sb/campaignsエンドポイントを使用して作成された広告には、
adId
もname
も含まれていません。
警告
一部の広告主様では、古いクリエイティブでクリエイティブレベルのフィールドが欠落しているという既知の問題が発生しています。クリエイティブレベルのすべてのフィールドを確実に受け取るために、より新しいバージョンのクリエイティブアセットをアップロードすることをおすすめします。
サンプルリクエスト:すべての広告
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/ads/list' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxxxxx' \
--header 'Accept: application/vnd.sbadresource.v4+json'
サンプルレスポンス
次のレスポンス例では、最初に返されている広告はバージョン3のキャンペーンの一部として作成されたものであるため、adId
も広告のname
も含まれていません。2つ目の広告はバージョン4の複数広告グループキャンペーンの一部として作成されたものであるため、adId
と広告のname
の両方が含まれています。
{
"ads": [
{
"adGroupId": "144346139432941903",
"campaignId": "144327786111035248",
"creative": {
"asins": [
"B07R7V6KS8",
"B07X2X4D5H",
"B003L1717K"
],
"brandLogoAssetID": "amzn1.assetlibrary.asset1.xxxxxxxxxxxx1",
"brandLogoUrl": "https://m.media-amazon.com/images/S/al-na-184b9306-7f8a/xxxxxxxxxxxxx.png",
"brandName": "IM Brand",
"headline": "AA AAA High-Capacity Rechargeable Batteries",
"type": "PRODUCT_COLLECTION"
},
"extendedData": {
"creationDate": 1635884791000,
"lastUpdateDate": 1635884791000,
"servingStatus": "UNKNOWN"
},
"landingPage": {
"pageType": "PRODUCT_LIST",
"url": "https://development.amazon.com/stores/page/xxxxxxxxxxxxxx"
},
"state": "ENABLED"
},
{
"adGroupId": "238010898977121",
"adId": "7278627757134",
"campaignId": "177829948461538",
"creative": {
"asins": [
"B07R7V6KS8"
],
"type": "VIDEO",
"videoAssetIds": [
"amzn1.assetlibrary.asset1.xxxxxxxxxxxxxx"
]
},
"extendedData": {
"creationDate": 1665435788770,
"lastUpdateDate": 1665435791462,
"servingStatus": "AD_POLICING_PENDING_REVIEW"
},
"landingPage": {
"pageType": "DETAIL_PAGE",
"url": "https://www.amazon.com/dp/B0000000000"
},
"name": "Test video ad",
"state": "ENABLED"
}
],
"totalResults": 2
}
サンプルリクエスト:adId
でフィルタリングする
フィルターでadId
を条件にして特定の広告を返すことができます。
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/ads/list' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxxxxx' \
--header 'Accept: application/vnd.sbadresource.v4+json' \
--data-raw '
{
"maxResults": 10,
"adIdFilter": {
"include": [
"209123071503234", "277277580302345", "158961813536049"
]
}
}'
サンプルレスポンス
{
"ads": [
{
"adGroupId": "281221120502625",
"adId": "209123071503234",
"campaignId": "10391599853578",
"creative": {
"asins": [
"B00MCW8MGI",
"B07BWBQ66J",
"B07F6FSDHS"
],
"brandLogoAssetID": "amzn1.assetlibrary.asset1.fcf9b0ad0ac4cfedcd647b53b0f9c14f:version_v1",
"brandName": "test brand name",
"headline": "SB v2 product collection ad",
"type": "PRODUCT_COLLECTION"
},
"extendedData": {
"creationDate": 0,
"lastUpdateDate": 0
},
"landingPage": {
"pageType": "PRODUCT_LIST",
"url": "https://development.amazon.com/stores/page/C3769F1F-3A90-4357-8678-258CF10FB46A"
},
"name": "test product collection ad",
"state": "ENABLED"
},
{
"adGroupId": "73487879298399",
"adId": "277277580302345",
"campaignId": "10391599853578",
"creative": {
"asins": [
"B00DLDH1N2"
],
"type": "VIDEO",
"videoAssetIds": [
"amzn1.assetlibrary.asset1.f976557494bbce76a848044e2cf32890:version_v1"
]
},
"extendedData": {
"creationDate": 0,
"lastUpdateDate": 0
},
"landingPage": {
"pageType": "DETAIL_PAGE",
"url": "https://www.amazon.com/dp/B00DLDH1N2"
},
"name": "test video ad",
"state": "ENABLED"
},
{
"adGroupId": "281221120502625",
"adId": "158961813536049",
"campaignId": "10391599853578",
"creative": {
"brandLogoAssetID": "amzn1.assetlibrary.asset1.1db463836cdc85be5e5ad73c3b73557c:version_v1",
"brandName": "Test",
"headline": "Create new buildings with Lego",
"subpages": [
{
"asin": "B005K5GQ9O",
"pageTitle": "cool lego buildings with permissions",
"url": "https://development.amazon.com/stores/page/DE343B73-427D-4600-B645-338AFA3D36AE"
},
{
"asin": "B00EQ7LZSY",
"pageTitle": "lego cars",
"url": "https://development.amazon.com/stores/page/EA9BE582-5996-45B6-BD7E-C2BBCEA5668D"
},
{
"asin": "B08F2S3QW5",
"pageTitle": "fantasy legos",
"url": "https://development.amazon.com/stores/page/B03C3B80-78DA-4978-AECC-3E7A5CE2CDA2"
}
],
"type": "STORE_SPOTLIGHT"
},
"extendedData": {
"creationDate": 0,
"lastUpdateDate": 0
},
"landingPage": {
"pageType": "STORE",
"url": "https://development.amazon.com/stores/page/B63FC824-E7AF-4B24-B898-83B4B46B3F15"
},
"name": "test store spotlight ad",
"state": "ENABLED"
}
],
"totalResults": 3
}
広告の更新
PUT /sb/v4/adsエンドポイントを使用して、広告のステータスまたは名前を更新できます。
サンプルリクエスト
curl --location --request PUT 'https://advertising-api.amazon.com/sb/v4/ads' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxx' \
--header 'Accept: application/vnd.sbadresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"ads": [
{
"adId": "277277580302345",
"name": "New ad name",
"state": "PAUSED"
}
]
}
'
サンプルレスポンス
{
"ads": {
"error": [],
"success": [
{
"ad": {
"adGroupId": "73487879298399",
"adId": "277277580302345",
"campaignId": "10391599853578",
"creative": {
"asins": [
"B00DLDH1N2"
],
"type": "VIDEO",
"videoAssetIds": [
"amzn1.assetlibrary.asset1.f976557494bbce76a848044e2cf32890:version_v1"
]
},
"extendedData": {
"creationDate": 0,
"lastUpdateDate": 0
},
"landingPage": {
"pageType": "DETAIL_PAGE",
"url": "https://www.amazon.com/dp/B00DLDH1N2"
},
"name": "New ad name",
"state": "PAUSED"
},
"adId": "277277580302345",
"index": 0
}
]
}
}
広告の削除
POST /sb/v4/ads/deleteエンドポイントを使用して、広告を削除できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/v4/ads/delete' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxxx' \
--header 'Accept: application/vnd.sbadresource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adIdFilter": {
"include": [
"158961813536049"
]
}
}
'
サンプルレスポンス
{
"ads": {
"error": [],
"success": [
{
"ad": {
"adGroupId": "281221120502625",
"adId": "158961813536049",
"campaignId": "10391599853578",
"creative": {
"brandLogoAssetID": "amzn1.assetlibrary.asset1.1db463836cdc85be5e5ad73c3b73557c:version_v1",
"brandName": "Test",
"headline": "Create new buildings with Lego",
"subpages": [
{
"asin": "B005K5GQ9O",
"pageTitle": "cool lego buildings with permissions",
"url": "https://development.amazon.com/stores/page/DE343B73-427D-4600-B645-338AFA3D36AE"
},
{
"asin": "B00EQ7LZSY",
"pageTitle": "lego cars",
"url": "https://development.amazon.com/stores/page/EA9BE582-5996-45B6-BD7E-C2BBCEA5668D"
},
{
"asin": "B08F2S3QW5",
"pageTitle": "fantasy legos",
"url": "https://development.amazon.com/stores/page/B03C3B80-78DA-4978-AECC-3E7A5CE2CDA2"
}
],
"type": "STORE_SPOTLIGHT"
},
"extendedData": {
"creationDate": 0,
"lastUpdateDate": 0
},
"landingPage": {
"pageType": "STORE",
"url": "https://development.amazon.com/stores/page/B63FC824-E7AF-4B24-B898-83B4B46B3F15"
},
"name": "test store spotlight ad",
"state": "ARCHIVED"
},
"adId": "158961813536049",
"index": 0
}
]
}
}
クリエイティブ
クリエイティブのリスト表示
指定したリソースIDとフィルターに該当するスポンサーブランド広告クリエイティブをすべて含む配列を取得します。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/ads/creatives/list' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxx' \
--header 'Authorization: Bearer xxxxxxxxx' \
--header 'Amazon-Advertising-API-Scope: xxxxxxxxxxxxxx' \
--header 'Accept: application/vnd.sbAdCreativeResource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adId":"6972682587490",
"maxResults":1
}'
サンプルレスポンス
{
"creatives": [{
"adId": "1234567890",
"creationTime": 1656026684.349,
"creativeProperties": {
"asins": [
"B0000000001"
],
"brandLogoAssetId": "amzn1.assetlibrary.asset1.abcdefghijklmn:version_v1",
"brandLogoCrop": {
"height": 400,
"left": 0,
"top": 0,
"width": 400
},
"brandLogoUrl": "https://m.media-amazon.com/images/S/al-na-some0-image.jpeg",
"brandName": "Test Brand",
"headline": "Test Headline",
"landingPage": {
"type": "STORE",
"value": "https://www.amazon.com/stores/page/1111111-222222-AAAA-BBBB-333333333333"
},
"videoAssetIds": ["amzn1.assetlibrary.asset1.abcdefghijklmn:version_v1"]
},
"creativeStatus": "PENDING_FOR_MODERATION",
"creativeType": "BRAND_VIDEO",
"creativeVersion": "2"
}],
"totalResults": 1
}
動画クリエイティブの更新
新しい動画クリエイティブコンテンツを提供することで、特定のスポンサーブランド動画広告用の既存動画クリエイティブに新しいバージョンを作成できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/ads/creatives/video' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxx' \
--header 'Authorization: Bearer Atza|xxxxxxxxx' \
--header 'Accept: application/vnd.sbAdCreativeResource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adId": "6972682587490",
"creative": {
"videoAssetIds": [
"amzn1.assetlibrary.asset1.abcdefghijklmn:version_v1"
]
}
}'
サンプルレスポンス
{
"adId": "1234567890",
"creativeVersion": "2"
}
ブランド動画クリエイティブの更新
新しい動画クリエイティブコンテンツを提供することで、特定のスポンサーブランド広告のブランド動画広告用の既存動画クリエイティブに新しいバージョンを作成できます。
サンプルリクエスト
curl --location --request POST 'https://advertising-api.amazon.com/sb/ads/creatives/brandVideo' \
--header 'Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.xxxxxxxxxxxx' \
--header 'Authorization: Bearer Atza| xxxxxxxxxxxx' \
--header 'Accept: application/vnd.sbAdCreativeResource.v4+json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"adId": "1234567890",
"creative": {
"asins": [
"B000000001"
],
"brandName": "Test Brand Name",
"videoAssetIds": [
"amzn1.assetlibrary.asset1.abcdefghijklmn:version_v1"
],
"brandLogoAssetId": "amzn1.assetlibrary.asset1.abcdefghijklmn:version_v1",
"headline": "Test Headline"
}
}'
サンプルレスポンス
{
"adId": "1234567890",
"creativeVersion": "2"
}
レポート
バージョン2の次のレポートエンドポイントを使用します。 POST /v2/hsa/{reportType}/report.
サンプルリクエスト本文
{
"reportDate": "20220101",
"creativeType": "all",
"metrics": "clicks,campaignName,campaignId,adGroupName,adGroupId,adId,impressions,cost,dpv14d,attributedDetailPageViewsClicks14d,attributedOrdersNewToBrand14d,attributedOrdersNewToBrandPercentage14d,attributedOrderRateNewToBrand14d,attributedSalesNewToBrand14d,attributedSalesNewToBrandPercentage14d,attributedUnitsOrderedNewToBrand14d,attributedUnitsOrderedNewToBrandPercentage14d"
}
サンプルレスポンス
{
"reportId": "amzn1.clicksAPI.v1.p1.620D5F4E.ba672e9e-0ceb-4982-8bb3-318d90b9a526",
"recordType": "ad",
"status": "IN_PROGRESS",
"statusDetails": "Report is being generated."
}