function showHideAd(keyboardHidden) {
	const bannerIsActive = !!window.ad?.active;

	if (!keyboardHidden && bannerIsActive) {
		window.ad?.hide();
	} else if (bannerIsActive) {
		window.ad?.show();
	}
}
Show ad if keyboard is hidden and ad is active, hide ad otherwise.
@param {boolean} keyboardHidden