lib/rmobio/ads/m_khoj.rb in rmobio-1.1.9 vs lib/rmobio/ads/m_khoj.rb in rmobio-1.1.10

- old
+ new

@@ -24,14 +24,16 @@ module Rmobio module Ads module MKhoj - def getAd(keywords) - getAdByPage # keywords have no effect in mKhoj + def getAd(keywords,adClient) + getAdByPage(adClient) # keywords have no effect in mKhoj end - def getAdByPage + def getAdByPage(adClient) + # mKhoj just detects your URL, so you don't really need an adClient variable for this particular network! + # but we have it here for consistency handset = request.user_agent if request.user_agent # handset="nokia6030/" handset = URI.escape(handset) #carrier = URI.escape(request.remote_ip) carrier="59.181.113.59" # only works with India carriers!! \ No newline at end of file