You must set the /tmp/ad_network_ads.txt file to be writable (check file name as well).