OpenX Tips - How to pass custom site variables to landing pages and get them included in the form submit - Part1?

| | 1 min read

We have seen how to pass banner ad attributes to landing pages in our previous article, How to pass openx banner ad attributes to landing pages. We have passed the banner ad attributes supported by Openx using magic macros. Now, what if the variable that we want to pass is not available in the list of macros supported by OpenX? Read on to find out how to pass custom site variables in openx to landing pages.

We have solution for that too. Here is how we can achieve it.

 {ANY_INPUT_VARIABLE} Any value present in the php $_REQUEST array ($_GET/$_POST/$_COOKIE)

e.g. {zone-name} -> 'zone-right-column';

Update your ad URLs to look like

ad-url/?q=ad-name&z={zone-name}

e.g. http://domainname.com/drupal-customization/?q=zone_cst_200x200_Tools&z={zn}

and set the variable in the zone code. That solves our issue.