1

我在我的网站上使用 Revive Adserver,但我遇到了定位问题。

这是我的调用代码

var m3_u = (location.protocol=='https:'?'https://ads.pingola.ru/www/delivery/ajs.php':'http://ads.pingola.ru/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid={{item_zone_id}}");
{% if target_params != ''%}
document.write ("{{target_params}}");
{% endif %}
document.write ('&amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
document.write ("&amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&amp;context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
document.write ("'><\/scr"+"ipt>");

这是此代码的请求 urldelivery/ajs.php?zoneid=15&category=cars&make=Mazda&model=2&body=hatchback&price=640000&year=2013&vol=1500&fuel=gasoline&cond=excellent&kpp=automatic&color=red&isNew=1&cb=1702326047&charset=UTF-8&loc=http

如果不设置交付选项横幅会显示并且一切正常。如果我设置了交货限制站点 - 变量(fe 类别与汽车相同)横幅不显示。有趣的事实 - 如果我设置的类别与显示的汽车横幅不同。

4

1 回答 1

0

根据文档,您必须c.在请求中为变量添加前缀:

  • 为了与其他类型的广告调用参数区分开来,自定义 KVP 必须以c.命名空间为前缀。

    例如:(c.topic=sports哪里topic是键,哪里是sports值)

所以我猜这个请求应该是这样的:
delivery/ajs.php?zoneid=15&c.category=cars&c.make=Mazda&c.model=2&c.body=hatchback&c.price=640000&c.year=2013&c.vol=1500&c.fuel=gasoline&c.cond=excellent&c.kpp=automatic&c.color=red&c.isNew=1&cb=1702326047&charset=UTF-8&loc=http

于 2015-02-11T09:05:25.080 回答