![]() |
Target by Source - openads.org ad server |
Post Reply ![]() |
Author | |
trodat ![]() Newbie ![]() Joined: 10-February-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 10-February-2008 at 6:01pm |
Using ProductCart v3.11 I'm trying to use the openads.org v2.4 invocation code to display ads in the footer template using the openads "Source" parameter for targeting ads on the pages. So, if I'm in a particular category I can display ads relating to that category. Using openads (to my understsand) it is recommended to use the "Source" parameter for targeting the ads. So, I need a unique source that I can pull from the cart pages and was attempting to use the title tag <%=pcv_PageName%> so when the dynamic page is generated I could pull the unique keyword phrase into the script that calls the ad (in addition to putting a "Site - Source" limitation on all the ads). The below invocation code is the javascript tag but there are a few other tags I could use if needed (like image tag): var m3_u = (location.protocol=='https:'?'https://ads.harlandhills.com/w ww/delivery/ajs.php':'http://ads.harlandhills.com/www/delive ry/ajs.php'); |
|
![]() |
|
trodat ![]() Newbie ![]() Joined: 10-February-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
I was emailing with someone on the forum and they said I could use <%=pTempIntSubCategory%> to get the current category / a unique identifier from the source. But, this only works on category/sub-category pages... not product pages. What I really need is to get the parent/main category id number on at least the category, sub-category and product pages. Is this possible?
|
|
![]() |
|
netprofits ![]() Certified ProductCart Developers ![]() Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
You can try pIdCategory on both product and category pages but it isn't guarenteed to be filled on product pages.
|
|
![]() |
|
trodat ![]() Newbie ![]() Joined: 10-February-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
pIdCategory works on the category and product pages!!! Problem solved. Thank you very much netprofits!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |