Php OpenX使用站点变量恢复Adserver目标

Php OpenX使用站点变量恢复Adserver目标,php,openx,advertisement-server,Php,Openx,Advertisement Server,我在我的网站上使用Resove 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)

我在我的网站上使用Resove 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>");
var m3_=(location.protocol=='https:'?'https://ads.pingola.ru/www/delivery/ajs.php':'http://ads.pingola.ru/www/delivery/ajs.php');
变量m3_r=数学地板(数学随机()*9999999);
如果(!document.MAX_used)document.MAX_used=',';
文件编号:“”;
这是此代码的请求url
delivery/ajs.php?zoneid=15&category=cars&make=Mazda&model=2&body=hatchback&price=640000&year=2013&vol=1500&fuel=gaile&cond=excellent&kpp=automatic&color=red&isNew=1&cb=1702326047&charset=UTF-8&loc=http

如果不设置交付选项,则会显示横幅,一切正常。如果我设置了交货限制站点-Varieble(f.e.类别等同于汽车)横幅不会显示。有趣的事实-如果我设置的类别不同于显示的汽车横幅。

根据,您必须在请求中用
c作为变量前缀。

  • 为了区别于其他类型的ad调用参数,自定义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=catel&c.cond=excellent&c.kpp=automatic.color=red&c.isNew=1&cb=1702326047&charset=UTF-8&loc=http

那么如果您没有车型或除
以外的其他车型,它还能工作吗?你确定那是正确的名字吗?也许是
Cars
它适用于任何类别。是的,我确信这是正确的名字。我检查了很多。旁注:我在OpenX目标定位方面也有问题,即使是内置参数,比如“Client-Useragent”!因此,也许您应该检查这些参数是否正常工作,以查看目标是否正常工作。Resove adserver的行为不同,不需要前缀。