The various methods for Product Content are listed below:
This will get the placement to product filters map.
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account. |
retailCampaignId | string | Mandatory | path | ID of the retail campaigns. |
Sample Request
xxxxxxxxxx
GET http://demo.stub.api.jivox.com/v2/accounts/<accountId>/media-plans/<mediaPlanId>/retail-campaign/:retailCampaignId/content-map
This is a paginated API. filters The value for the filters parameter will be a comma separated string. Each part has to be of the format Field will be the same as the fields query parameter. Valid operators are =,<>,<,>,<=,>=,like,in. < and > are only supported for By default, all filters are combined with AND operator. API only returns data that matches all the filters. |
The below table lists the following set of params that can be passed in query params
params | Description | |
---|---|---|
limit | Max number of items to return as part of the API response body. Default value is 100. | |
offset | Starting offset of pagination of data. Default value is 0. | |
fields | List of fields, comma separated, that the API requester wants to be returned. By default, all the values are returned. | |
orderby | List of fields, comma separated, that the API requester wants to order the response. use : at after every field and type If For example: | |
filters | The value for the filters parameter will be a comma separated string. Each part has to be of the format Field will be the same as the fields query parameter. Valid operators are =,<>,<,>,<=,>=,like,in. < and > are only supported for By default, all filters are combined with AND operator. API only returns data that matches all the filters. |
Sample Response
xxxxxxxxxx
{
contentType: "Product",
numberOfCards: 3,
placementContentMap: [
{
externalPlacementId: "12df3",
placementId: "fhj12"
content: ["Dove Soap", "Dove Moisturising Lotion"],
placementName: "P1",
dimension: "300x250"
},
{
externalPlacementId: "12df4",
placementId: "fhj32"
content: ["Dove shampoo", "Dove conditioner"],
placementName: "P2",
dimension: "300x50"
},
{
externalPlacementId: "12df5",
placementId: "fhj36"
content: [],
placementName: "P3",
dimension: "300x150"
}
],
"next": "SESSION_BASE/v2/accounts/<accountId>/media-plans/<mediaPlanId>/content-map?next=3ABFT",
"previous": ""
}
This will list all the Product/Category/SubCategory from the Asset Source.
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
Sample Request
xxxxxxxxxx
GET http://demo.stub.api.jivox.com/v2/accounts/:accountId/retail-feed-settings/list?fields=product&query=searchQuery&limit=10&offset=0
The Parameter:
|
Sample Response
xxxxxxxxxx
{
values: ["Dove Soap", "Dove Conditioner", "Dove Shampoo"]
}
This will save/update placement to product filters map.
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
mediaPlanId | string | Mandatory | path | ID of the media plan associated with a given user account. |
retailCampaignId | string | Mandatory | path | ID of the retail campaigns. |
Sample Request
xxxxxxxxxx
POST http://demo.stub.api.jivox.com/v2/accounts/<accountId>/media-plans/<mediaPlanId>/retail-campaign/:retailCampaignId/content-map
The placementId key is jivox placement Id and not an external placement Id. |
Request Body
xxxxxxxxxx
{
contentType: "Sub-category",
placementContentMap: [
{
placementId: "fhj12",
content: ["Dove Soap", "Dove Moisturising Lotion"]
},
{
placementId: "fhj32",
content: ["Dove shampoo", "Dove conditioner"]
}
]
}
This will get previews for the campaign + placement(s).
Parameters
Name | Data Type | Requirement | Parameter Type | Description |
---|---|---|---|---|
accountId | string | Mandatory | path | ID of the advertiser account created on the platform. |
campaignId | string | Mandatory | path | ID of the campaign created under a given user account on the platform. |
placementId | string | Mandatory | path | ID of the placement associated with media plan to be used for tag generation |
Sample Request
xxxxxxxxxx
GET http://demo.stub.api.jivox.com/v2/accounts/<accountId>/retail-placement-preview/<campaignid>?pIds=<comma separated placementId>
Sample Response
xxxxxxxxxx
{
"placementPreviews" : [
{
"placementId":"p1",
"tags":[
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`
]
},
{
"placementId":"p2",
"tags":[
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`,
`<script type="text/javascript" src="https://as.jivox.com/unit/unit_renderer.php?bDim=600x250&ap_cgName=Pampers_300x250&isPreviewRequest=1&cId=102&bUnitId=2000"></script>`
]
}
]
}