How do I generate Ad blocks with Javascript and PHP for my own Ad Network [closed]

谁说胖子不能爱 提交于 2019-12-02 01:43:49

First - Create a php file where you can generate advertise output based on google_ad_client, google_ad_slot, google_ad_width, google_ad_height (ex. showads.php) Second - call the php file through js.

Example on js file:

document.write('<iframe src="http://google.com/showads.php?google_ad_client='+ google_ad_client+'&google_ad_slot='+google_ad_slot+' margin=0 frameborder=0 scrolling=no allowtransparency=true ></iframe>');

this is a simple example.

but i will suggest to hire people if you want to create something like google adsense.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!