// Special Offer public void OnShowSpecialOffer() { // Check whether a special offer is available if (!Enhance.IsSpecialOfferReady()) { return; } // The special offer is ready, display it Enhance.ShowSpecialOffer(); }
// Special Offer public void OnShowSpecialOffer() { // Check whether a special offer is available if (!Enhance.IsSpecialOfferReady()) { writeLog("Special offer is not ready"); return; } // The special offer is ready, display it Enhance.ShowSpecialOffer(); writeLog("Showing special offer"); }
/** * Check if a special offer is ready * * @return true if a special offer is ready, false if not */ public static bool IsSpecialOfferReady(string placement) { return(Enhance.IsSpecialOfferReady(placement)); }