Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
languagejs
titleExample
linenumberstrue
{
	"name": "standard_240x400",
	"js": "createGIADelement = function(element) {\n    var item = document.createElement(\"div\");\n    item.setAttribute(\"class\",\"__gi_item\");\n    var link = document.createElement(\"a\");\n    item.appendChild(link);\n    link.setAttribute(\"href\",element['url']);\n    link.setAttribute(\"target\",\"_blank\");\n    var image = document.createElement(\"img\");\n    link.appendChild(image);\n    image.setAttribute(\"src\",element['picture']);\n    var desc = document.createElement(\"div\");\n    link.appendChild(desc);\n    desc.setAttribute(\"class\",\"__gi_desc\");\n    desc.appendChild(document.createTextNode(element['name']));\n    var price = document.createElement(\"div\");\n    link.appendChild(price);\n    price.setAttribute(\"class\",\"__gi_price\");\n    price.appendChild(document.createTextNode(element['price'] + \" \" + element['currencySymbol']));\n\n    return item;\n}\n\ncreateGIADlogo = function(logoImg) {\n    var logo = document.createElement(\"div\");\n    if (logoImg && logoImg!==\"\"){\n      logo.setAttribute(\"class\",\"__gi_header\");\n      var link = document.createElement(\"a\");\n      logo.appendChild(link);\n      link.setAttribute(\"href\",\"[[LANDING_PAGE]]\");\n      link.setAttribute(\"target\",\"_blank\");\n      var sp = document.createElement(\"span\");\n      link.appendChild(sp);\n      var image = document.createElement(\"img\");\n      sp.appendChild(image);\n      image.setAttribute(\"src\", logoImg);\n    }\n    return logo;\n}\n\nvar domain = (typeof __GetI_domain) == \"undefined\" ? \"px.adhigh.net\" : __GetI_domain;\nvar src = ('https:' == document.location.protocol ? 'https://' : 'http://') + domain + '/ad240x400.css';\ndocument.write(\"<link rel='stylesheet' type='text/css' href='\"+src+\"'/>\");\n\nvar container = document.createElement(\"div\");\ncontainer.setAttribute(\"class\",\"_gi_ad_240x400\");\ndocument.getElementById(elementId).appendChild(container);\nvar siteLogo = \"[[SITE_LOGO]]\";\nif (siteLogo){\n    siteLogo = ('https:' == document.location.protocol ? 'https://' : 'http://') + siteLogo; \t  \n}\ncontainer.appendChild(createGIADlogo(siteLogo));\nfor(var i=0; i<products.length && i<4; i++) {\n  container.appendChild(createGIADelement(products[i]));\n}"
}

Reporting API


Build a Report

Блок кода
languagebash
GET https://ui.getintent.com/api/v1/bigdata/reports?token=<token>

...