I want to have a link going from FB Ad Manager which automatically creates a subID using tokens, send it to a php array script, and pass that through to my 202 affiliate link.
The link for each round of ads using FB Ad Manager would look something like this: www.mydomain.com/offer/?fb{country}-{age}-{sub}
I need to have different links for each new round of ads since I have to point the link to the offer main page (with no geoIP) first before ads are reviewed, and then change that link in the PHP script after it's approved.
Can someone tell me...what should the php script below look like to include the tokens in the subId when I view stats in 202?
The link for each round of ads using FB Ad Manager would look something like this: www.mydomain.com/offer/?fb{country}-{age}-{sub}
I need to have different links for each new round of ads since I have to point the link to the offer main page (with no geoIP) first before ads are reviewed, and then change that link in the PHP script after it's approved.
Can someone tell me...what should the php script below look like to include the tokens in the subId when I view stats in 202?
Code:
<?php
# get the site and define the links array
$site = $_GET['site'];
$links = array();
# Campaign 1
$links['ads-round-1'] = '202linkURL';
# Campaign 1
$links['ads-round-2'] = '202linkURL';
# redirection
header('Location: '.$links[$site]);
?>