Difference between revisions of "Ads:hideAd"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Hides displayed ads. | Hides displayed ads. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | Ads:hideAd() | + | Ads:hideAd(adType) |
</syntaxhighlight> | </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 03: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