Media JSON
1. SDK Function for API Endpoint
<script>
var ea = "product_search"; // Event Action
var ec = "browsing"; // Event Category
var zone_codes = ["div_asm_qct_test_json_1"]; // Ad Zone Codes list
// Include the Main Object (items) similar to the event data
var items = [
{
type: "product",
id: "12345",
sku: "12345",
name: "The Product Title 1",
original_price: 10000,
price: 10000,
page_url: "https://website.com/p.html",
image_url: "https://website.com/p.png"
},
{
type: "product",
id: "12345",
sku: "12345",
name: "The Product Title 1",
original_price: 10000,
price: 10000,
page_url: "https://website.com/p.html",
image_url: "https://website.com/p.png"
}
];
// Include the Event Attributes (extra) similar to the event data
var extra = {
src_search_term: "Alibaba",
number_results: 10
};
var mediaJsonURL = web_media_template.buildUrlMediaJson(ec, ea, zone_codes, {
items: items,
extra: extra
});
</script>2. JSON Result
Attribute
Data Type
Description

3. Sample Web Page Source Code
Last updated