Feature Pack 7

Get Spots for a query and query parameters

The following example shows how to get Spots for a query and query parameters.

Request


GET /wcs/resources/store/10101/spot?q=byType%26qType=MARKETING%26pageNumber=3%26pageSize=8 HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json

Response


HTTP/1.1 200 OK
Content-Type: application/json

{
	"MarketingSpot": [
		{
			"description": "Product Recommendation for Boys",
			"spotId": "10649",
			"spotName": "BoysRow4_CatEntries",
			"usage": "MARKETING"
		},
		{
			"description": "Product Recommendation in Shoes for Boys",
			"spotId": "10647",
			"spotName": "BoysShoesProductRight_CatEntries",
			"usage": "MARKETING"
		},
		{
			"description": "Display ads on Shoes category page",
			"spotId": "10676",
			"spotName": "BoysShoesRow2_Content",
			"usage": "MARKETING"
		},
		{
			"description": "Product Recommendation in Tops for Boys",
			"spotId": "10646",
			"spotName": "BoysTopsProductRight_CatEntries",
			"usage": "MARKETING"
		},
		{
			"description": "Display ads on Tops category page",
			"spotId": "10677",
			"spotName": "BoysTopsRow2_Content",
			"usage": "MARKETING"
		},
		{
			"description": "Display a page-wide banner ad below the header on catalog browsing pages",
			"spotId": "10614",
			"spotName": "CatalogBanner_Content",
			"usage": "MARKETING"
		},
		{
			"description": "Display a page-wide banner ad below the header on catalog browsing pages",
			"spotId": "10615",
			"spotName": "CatalogBanner_Content_Left",
			"usage": "MARKETING"
		},
		{
			"description": "Display a page-wide banner ad below the header on catalog browsing pages",
			"spotId": "10616",
			"spotName": "CatalogBanner_Content_Right",
			"usage": "MARKETING"
		}
	],
	"recordSetComplete": "false",
	"recordSetCount": "8",
	"recordSetStartNumber": "16",
	"recordSetTotal": "171",
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10101\/spot",
	"resourceName": "spot"
}