Ads:hideAd: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
=== Description ===
=== Description ===
Hides displayed ads.
Hides displayed ads.
<source lang="lua">
<syntaxhighlight lang="lua">
Ads:hideAd()
Ads:hideAd(adType)
</source>
</syntaxhighlight>
 
Possible values for '''adType''': see '''[[Ads:loadAd]]'''
 
Possible results:
<syntaxhighlight lang="lua">
-- AdColony
--does nothing
 
-- Admob
--hides only banners
admob:hideAd(adType)
 
-- Amazon
amazon:hideAd(adType)
 
-- AppLovin
--hides only banners
applovin:hideAd(adType)
 
-- Chartboost
--does nothing
 
-- HeyZap
--does nothing
 
-- iAds
--hides only banners
iad:hideAd(adType)
 
-- InMobi
--hides only banners
inmobi:hideAd(adType)
 
-- Millenial
mm:hideAd(adType)
 
-- MoPub
--hides only banner
mopub:hideAd(adType)
 
-- Revmob
--hides banner ads
revmob:hideAd(adType)
 
-- Samsung AdHub
--hides only banners
samsung:hideAd(adType)
 
-- TapForTap
--hides banner
tapfortap:hideAd(adType)
 
-- TapJoy
--hides banner ads
tapjoy:hideAd(adType)
 
-- Unity
--does nothing
 
-- Vungle
--does nothing
</syntaxhighlight>
 
=== Parameters ===
'''adType''': (string) ad type or format<br/>


{{Ads}}
{{Ads}}

Latest revision as of 01:50, 16 February 2025

Available since: Gideros 2014.01
Class: Ads

Description

Hides displayed ads.

Ads:hideAd(adType)

Possible values for adType: see Ads:loadAd

Possible results:

-- AdColony
--does nothing

-- Admob
--hides only banners
admob:hideAd(adType)

-- Amazon
amazon:hideAd(adType)

-- AppLovin
--hides only banners
applovin:hideAd(adType)

-- Chartboost
--does nothing

-- HeyZap
--does nothing

-- iAds
--hides only banners
iad:hideAd(adType)

-- InMobi
--hides only banners
inmobi:hideAd(adType)

-- Millenial
mm:hideAd(adType)

-- MoPub
--hides only banner
mopub:hideAd(adType)

-- Revmob
--hides banner ads
revmob:hideAd(adType)

-- Samsung AdHub
--hides only banners
samsung:hideAd(adType)

-- TapForTap
--hides banner
tapfortap:hideAd(adType)

-- TapJoy
--hides banner ads
tapjoy:hideAd(adType)

-- Unity
--does nothing

-- Vungle
--does nothing

Parameters

adType: (string) ad type or format