MONGODB NODEJS increment in 1 integer row

app.get('/facebookads', function (req, res) {

MongoClient.connect(url, function (err, db) {
if (err) throw err;

var dbo = db.db("EggClicker");

dbo.collection('Facebookads').findOneAndUpdate({fbkads: "placementone"},{ $inc: { "click" : 1 } },function (err, result) {

if (err) {
console.log("entra a error")
res.send('error');
}
else if (!result) {
console.log("entra a notmatch")

res.send('notmatch');

} else {

console.log(result+" done");

res.send(result+" done");
//res.send(result);
}

db.close();

});
});
})

How to upload iOS Unity build APP to the App Store

1. GO TO https://developer.apple.com/account/ios/identifier/bundle
2. GENERATE APP ID
3. GENERATE PROVISIONING PROFILE (ALL)

3.1 DOWNLOAD AND EXECUTE THE FILE.
4. GO TO THE YOUR APP STORE AND CREATE THE NEW APP WITH THE SAME PACKAGE / BUNDLE LIKE YOU DID IN THE GENERATE APP ID.

https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app

5.DOWLOAD the GoogleMobileAds.framework from here https://developers.google.com/admob/ios/download

5.1 PUT THE GoogleMobileAds.framework inside the LIBRARIES/PLUGINS/IOS folder of your project.

6. Into your xcode project GENERAL -> LINKED FRAMEWORKS AND LIBRARIES ADD A NEW PATH TO the GoogleMobileAds.framework of the step before.
7. GO TO BUILD SETTINGS IN XCODE and set to YES Enable modules (C and objective -C)
8. ALANYZE (optional i think with archive do the same)
9. ARCHIVE / UPLOAD TO THE APP STORE

Add Admob to Unity

https://github.com/jjjuande/EasyGoogleMobileAds

Install Admob

Install EasyMobileAds library

EasyGoogleMobileAds.GetInterstitialManager().PrepareInterstitial("ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX");

EasyGoogleMobileAds.GetInterstitialManager().ShowInterstitial();

MongoDB connect to databases using Compass the phpmyadmin for mongodb

To connect from server outside you need to download the client from…

https://www.mongodb.com/download-center?jmp=docs&_ga=2.25013112.374405514.1518774961-2094581875.1518002289#compass

After this update this file…

/etc/mongod.conf
SET

# network interfaces
net:
port: 27017
bindIp: 127.0.0.1

TO

# network interfaces
net:
port: 27017
bindIp: 0.0.0.0

After this restart the service using

service mongod stop
service mongod start
On the compass interface on host just put your server ip adress like … 192.168.333.333 credentials none