Wap SDK sample of ReachAds
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md

README.md

Banner Ad

    <div id="your-id-of-banner" ></div>
    
    <script type="text/javascript" src="http://cdn.ads.go2reach.com/wap/sdk.js"></script>
    <script>
    var wapSiteKey = "xxx"; // please put your real key
    var placement = "banner-1"; //it could be any id
    var size = "320x50"; // banner size
    ReachAds.loadBanner({
        to: "your-id-of-banner",
        key: wapSiteKey,
        placement: placement,
        dimension: size
    }, function(err){
      if (err) console.log(err)
    });
    </script>

Interstitial Ad

    <div id="your-id-of-interstitial" ></div>
    
    <script type="text/javascript" src="http://cdn.ads.go2reach.com/wap/sdk.js"></script>
    <script>
    var wapSiteKey = "xxx"; // please put your real key
    var placement = "interstitial-1"; //it could be any id
    var size = "320x250"; // interstitial size
    ReachAds.loadInterstitial({
        to: "your-id-of-interstitial",
        key: wapSiteKey,
        placement: placement,
        dimension: size,
        close : function(){
          //close interstitial div here
        }
    }, function(err){
      if (err) console.log(err)
    });
    </script>