Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthornyunyu
    • CommentTimeNov 29th 2008
     

    Simon, I recently being using Adversal (an advertising company which offers only safe popups/popunders). They have really good payout and rates but the price of using it needed me to block/geotarget certain countries off from their ads.

    So, How can I use OIO to do this?
    Say, I want to geotarget users from Iran, China and Russia from being shown the popups. How can I do this?

    Thanks.

    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeNov 29th 2008
     
    Project Admin

    You may be able to use the country code variable within OIO:

    global $oiopub_set;
    $allowed_countries = array( CN, IR, RU );
    if(in_array($oiopub_set->visitor_country, $allowed_countries)) {
    //ad code goes here
    }

    Need help?  Quick start guide | Troubleshooting | All help topics