Campaign API
Get Products In Campaign
This endpoint returns paginated product ids currently in active campaigns.You can filter by vendor_id, fetching only from active campaigns and bids.
GET
/
public
/
v1
/
campaign-service
/
products-in-campaign
Query Parameters
vendor_id
string
The ID of the vendor to get sponsored products.
next_page
string
A token provided in a previous response. If not empty, it is used to retrieve the page that follows.
limit
integer
default: 100The pagination limit.
look_ahead_hours
integer
default: 0Include products whose campaigns are scheduled to start within the N next given hours.
fetch_active_products
boolean
default: falseWhether to fetch only active products. If false, all products will be fetched even if the campaign or the bid are inactive.
Response
200 - application/json
hasMore
boolean
requiredWhether this is the last page of results or not.
nextPage
string
A token to retrieve the next page of results.
productsInCampaign
string[]
requiredList of sponsored product ids.