lib/rmobio/ads/m_khoj.rb in rmobio-1.1.22 vs lib/rmobio/ads/m_khoj.rb in rmobio-1.1.23

- old
+ new

@@ -32,11 +32,11 @@ def getAdByPage(adClient,ip=request.remote_ip,url=request.request_uri,useragent=request.user_agent) # mKhoj just detects your URL, so you don't really need an adClient variable for this particular network! #carrier="59.181.113.59" # only works with India carriers!! - adUrl = "http://www.mkhoj.com/view/Traffic/ShowAd.aspx?siteId=330ed28f-0de9-4c4f-b0a8-1f2118358c80&handset="+URI.escape(useragent)+"&carrier="+ip - #adUrl="http://www.mkhoj.com/view/Traffic/ShowAd.aspx?siteId=330ed28f-0de9-4c4f-b0a8-1f2118358c80&handset=nokia6030/&carrier=59.181.113.59" + adUrl = "http://www.mkhoj.com/view/Traffic/ShowAd.aspx?siteId=" + adClient +"&handset="+URI.escape(useragent)+"&carrier="+ip + # e.g. adUrl="http://www.mkhoj.com/view/Traffic/ShowAd.aspx?siteId=330ed28f-0de9-4c4f-b0a8-1f2118358c80&handset=nokia6030/&carrier=59.181.113.59" logger.info "Calling: " + adUrl begin @ad = open(adUrl).read logger.info "Returned ad: " + @ad rescue \ No newline at end of file