Product placement & replacement

The various methods for Product placement & replacement Settings are listed below:

  1. Product placement
  2. Product replacement
  3. Fetch image assets

Product placement

Places a product image into a generated scene.

Parameters

FieldData TypeRequirementDescription
imagestringMandatoryProduct image URL or base64 data
widthintegerMandatoryTarget output width
heightintegerMandatoryTarget output height
promptstringMandatoryScene description prompt

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Product replacement

Replaces a product in a scene image with another product image.

Parameters

FieldData TypeRequirementDescription
sceneImagestringMandatoryScene image URL or base64 data
productImageintegerMandatoryNew product image URL or base64 data
regeneratebooleanOptionalWhether to regenerate if already processed. Defaults to false.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

JSON
Copy

Fetch image assets

Fetches and sorts image assets from a feed or media channel for use in an ad unit.

Parameters

FieldData TypeRequirementDescription
adIdxintegerMandatoryAd index
adUnitIdxintegerMandatoryAd unit index
dataServiceIdintegerMandatoryData service (feed) ID
sourceTypestringMandatorySource type (e.g. productFeed)
assetKeystringOptionalFeed column key for the image asset
mediaChannelIdxintegerOptionalMedia channel index to scope asset fetching
keywordsstringOptionalSearch keywords to filter assets
pageSizeintegerOptionalNumber of assets to return. Defaults to 10.
countryCodestringOptionalCountry code to filter assets. Defaults to US.

Sample Request

HTTP
Copy

Request Body

JSON
Copy

Sample Response

Sorted list of image asset URLs/objects from the feed.

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard