AR
Is there any way to check is script getting any response from url source and if there isn't any, not to show anything?
The problem is that when there isn't any, the script is forcing custom 404 error page to download.
This is all whats in question, its about ads.
<script type="text/javascript" src="http://site.com/page/show_ads.js">
</script>
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
I don't get you guys, this is all i have.
<script type="text/javascript"><!--
google_ad_client = "SomeNumbers";
google_ad_slot = "SomeNumbers";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
I don't have access to script show_ads.js.
And if i do something like this is it legal? Are they gonna ban this client? Its my friends site so i have to be careful.
$response = implode('', file('http://pagead2.googlesyndication.com/pagead/show_ads.js'));
if (!empty($response)) {
echo '<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
}
Is it gonna work at all? 🙂
It doesn't. 🙂
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
I don't have a clue about javascript and showing ads. 🙂
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
I don't know is it gonna be readable for google ads then. Maybe even ban him... 🙁
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
AR
Ok, thanks for explanation. 🙂
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***