Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...

Code Block
languagejs
titleJSON Content
linenumberstrue
[
{
"title": "Tables",
"img": "https://example.com/anasayfa/sag3.jpg",
"thumb": "",
"text": "Tables",
"dest_url": "http://test.com/route?OM.zn=PageBanner&OM.zpc=1&OM.bzn=PageBanner&OM.OSB=1",
"target": "_self",
"code": "1",
"priority": 4,
"custom_attr": [
{
"value": "M",
"attr_name": "Male",
"data_type": "Number"
},
{
"value": "old",
"attr_name": "Age",
"data_type": "Number"
}
]
}]

Filtering Banners

Web sitesinde yer alan Banner gösterimlerinde filtremele yapabilirsiniz. You may use filters for the Banners on website.

Panel
titlePossible values in filtering:

attr_name, value

Filtering is done by comparing these values as UpperCase.

attr_name ve value değerleri banner entegrasyonu ile gönderilen banner için oluşturulan etiket ve ona ait değerlerdir.
Note

The attr_name and value are the tags and their values created for the banner that is sent with the banner integration.

Bir banner, cinsiyet etiketi ile kadın veya erkek değeri aldığında;

Expand
titleÖrnek
Example

When a banner gets a female or male value with a gender tag;

  • attr_name = "gender"
  • value = "female"
Code Block
languagejs
var filter = [];
var filterattr = new VL_OfferFilter("attr_name",VL_OfferFilterType.Include,"value");
filter.push(filterattr);
var vl = new Visilabs();
vl.AddParameter("json",true);
vl.Suggest(ZoneID,null,null,callback_,null,filter);


  • Value: Buradaki değerlerin içeriği banner dosyasından gelir. Filtreleme değeri verirken banner entegrasyon dosyasında gönderilen değer ile aynı verilmelidir These values are comes from the banner file. The filtering value must be the same as the value sent in the banner integration file.
  • Type: Filtre tipi olarak Takes VLOfferFilter.Include ve  & VLOfferFilter.Exclude değerleri alır. Verilen değere göre bannerın gösterilip gösterilmeyeceğini belirler as filter type. Determines whether banner should be displayed according to the given value.


Code Block
languagejs
titleÖrnek FiltrelemeFiltering Example
linenumberstrue
var filter = [];
var filterattr = new VL_OfferFilter("targettype",VL_OfferFilterType.Include,"campaign");filter.push(filterattr);
var vl = new Visilabs();
vl.AddParameter("json",true);
vl.Suggest(13,null,null,function(data){console.log(data)},null,filter);

...