I got a site with imagehosting. now I had ads there. I want to do somet thing so that I can show diffrent ads to diffrent domain visitors. for exmaple doman a visitors view ads for X adnetwork doman b visitors view ads form y adnetwork etc if you got my point then help or I explain more thanks
Simply have a piece of code that checks the domain the visitor is viewing and then inserts the appropriate code for the ads depending on that. We have done similar before with Google Adsense and changed the ID dependant on the visited domain.
The code was a simple snippit that we had in the masterpage and its output was put into a Literal control within the normal google adsense code. Dim DomainST as String = Request.Url.Host() Dim AdvertID as String Select Case DomainST Case "Domain1.com" AdvertID = "a5135131" Case "Domain2.com" AdvertID = "2312f232" Case Else AdvertID = "r2324ws" End Select GoogleLT.Text = AdvertID Code (markup):