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

- old
+ new

@@ -20,16 +20,16 @@ module Rmobio module Ads module Smaato @@adServer="http://dev.soma.smaato.com:8080/wap/reqAd.jsp" - def getAdByPage - getAd(nil) + def getAdByPage(adClient) + getAd(nil,adClient) end # this returns an adfrom Google's mobile AdSense, given a supplied set of keywords - def getAd(keywords) + def getAd(keywords,adClient) logger.info "Smaato ad retrieval" =begin Example: http://dev.soma.smaato.com:8080/wap/reqAd.jsp?pub=3517&adspace=137 &format=JPG&numads=10&offline=true&user=&response=XML @@ -40,11 +40,11 @@ if (@@userId.nil?) @@userId="101" end # build up the various arguments in the adArgs hash adArgs= SequencedHash.new - adArgs["pub"]="3517" # replace with real publisher ID - adArgs["adspace"]="137" # what is the ad space and published ID taht we need + adArgs["pub"]=adClient # replace with real publisher ID + adArgs["adspace"]="137" # what is the ad space ID that we need here?! adArgs["format"]="JPG" adArgs["numads"]="1" adArgs["offline"]="true" adArgs["width"]="176" # get these from device capabilities service instead! adArgs["height"]="208" # get these from device capabilities service instead