Hey Guys,
How can I hide Ads (Google-Adsense App) after my customer purchases a plan (in Wix-Plans)?
How can i do that?
I found this code.
import wixUsers from 'wix-users';
$w.onReady(function () {
if (wixUsers.currentUser.loggedIn) {
$w("#mygoogleAdsense").collapse();
$w("#mygoogleAdsense").hide();
$w("#mygoogleAdsense").collapse();
$w("#mygoogleAdsense").hide();
}
})