angelfplaza Posted July 8, 2015 Report Share Posted July 8, 2015 Hi, I am trying to add some variables to my page so I can limit the banners shown there. I was trying to use the single page invocation code but I am not able to send the variables using this method. Any help? Thanks Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted July 8, 2015 Report Share Posted July 8, 2015 What do you mean by: I am not able? Can you please give a specific example? Code? Quote Link to comment Share on other sites More sharing options...
angelfplaza Posted July 8, 2015 Author Report Share Posted July 8, 2015 Yes of course. I am using this post (thank you!) http://www.reviveconsultant.com/articles/single-page-call-advanced-implementation/ I am able to load the zones on my website. I have 8 zones per page, all of them present allways and I will use one or another depending on the campaign and the config on the adserver. My code is like this (but with 8 zones) On head: http://www.reviveconsultant.com/articles/single-page-call-advanced-implementation/ header: <script type='text/javascript'><!--// <![CDATA[ var OA_zones = { 'zone_name_1' : X, 'zone_name_2' : Y, 'zone_name_3' : Z } // ]]> --></script> <script type='text/javascript' src='http://www.example.com/revive/www/delivery/spcjs.php'></script> Body: <script type='text/javascript'><!--// <![CDATA[ OA_show('zone_name_1'); // ]]> --></script> This works perfect. By the way. Now I want to put the variables here to use them on my banners on the adserver. Example: variable1=values So I read all this on the forum related to JS: http://forum.revive-adserver.com/topic/4-custom-var-targeting/ http://forum.revive-adserver.com/topic/1547-displaying-banners-based-on-keywords-in-a-users-search-search-string/ http://forum.revive-adserver.com/topic/1581-requesting-ads-by-ad-theme-or-classification/ and this related to php http://forum.revive-adserver.com/topic/1380-how-pass-custom-variables-in-php/ But If I use the document.write ("&variable="value"); Suggested it only print that code on the page, not on the zone url, so it does not work. How should we add the variables using the single page call? Thanks you! Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted August 3, 2018 Report Share Posted August 3, 2018 Now documented here: https://documentation.revive-adserver.com/display/DOCS/Tag+Variables Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.