$client = get_option('ai_client'); that was the old command to set the google adsense id i have replaced with $account1 = get_option('ai_client'); $account2 = get_option('ai_pubclient'); $client = ( $rand(1, 100) < 20 ) ? $account1 : $account2 ;