Skip to content

Server-side verification callbacks for admob rewarded ads

License

Notifications You must be signed in to change notification settings

voonic/admob-rewarded-ads-ssv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

admob-rewarded-ads-ssv

Server-side verification callbacks for admob rewarded ads in nodeJS

Prerequisites 📋

  • Node >= 12.0.0

If you are using firebase cloud functions, you can safely choose to have nodejs 12 runtime. Add a function to listent to incoming http requests.

Installing 🔧

Install via NPM

$ npm install --save admob-rewarded-ads-ssv

How to use

Example with express

const admobSSV = require('admob-rewarded-ads-ssv');

//Add callback to your rewarded ads in your admob account.
//Make sure you listen to 'get' request.

app.get('/ssv-verify', (req, res, next) => {
    // If you want to debug then send second param as true
    // admobSSV.verify(req.url, true);
    admobSSV.verify(req.url)
        .then(() => {
          //Verification Successful
        })
        .catch((e) => {
          //Verification Failed
          //console.error(e.message);
        });
});

About

Server-side verification callbacks for admob rewarded ads

Resources

License

Stars

Watchers

Forks

Packages

No packages published