Difference between revisions of "Ads:setKey"
From GiderosMobile
| Line 11: | Line 11: | ||
| Possible values: | Possible values: | ||
| <syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
| − | adcolony:setKey(appID, videoZoneID, optionalZoneID) | + | adcolony:setKey(appID, videoZoneID, optionalZoneID) -- AdColony | 
| − | admob:setKey(appID) | + | admob:setKey(appID) -- Admob | 
| − | amazon:setKey(appID) | + | amazon:setKey(appID) -- Amazon | 
| − | applovin:setKey(appID) | + | applovin:setKey(appID) -- AppLovin | 
| − | chartboost:setKey(appID, appSignature) | + | chartboost:setKey(appID, appSignature) -- Chartboost | 
| -- required for iOS | -- required for iOS | ||
| -- does nothing on Android | -- does nothing on Android | ||
| − | heyzap:setKey(appID) | + | heyzap:setKey(appID) -- HeyZap | 
| -- does nothing | -- does nothing | ||
| − | --iad :setKey(appID) | + | --iad :setKey(appID) -- iAds | 
| − | inmobi:setKey(appID) | + | inmobi:setKey(appID) -- InMobi | 
| − | mm:setKey(appID) --default ID to use | + | mm:setKey(appID) --default ID to use, Millenial | 
| --set default ad unit   | --set default ad unit   | ||
| --(optional if you provide it for each ad separately) | --(optional if you provide it for each ad separately) | ||
| − | mopub:setKey(adunit) | + | mopub:setKey(adunit) -- MoPub | 
| − | revmob:setKey(appId) | + | revmob:setKey(appId) -- Revmob | 
| --set default inventoryID   | --set default inventoryID   | ||
| --(optional if you provide it for each ad separately) | --(optional if you provide it for each ad separately) | ||
| − | samsung:setKey(inventoryID) | + | samsung:setKey(inventoryID) -- Samsung AdHub | 
| − | tapfortap:setKey(APIKEY) | + | tapfortap:setKey(APIKEY) -- TapForTap | 
| − | tapjoy:setKey(appId, secretKey) | + | tapjoy:setKey(appId, secretKey) -- TapJoy | 
| − | vungle:setKey("yourAppID") | + | vungle:setKey("yourAppID") -- Vungle | 
| </syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 18:33, 15 February 2025
Available since: Gideros 2014.01
Class: Ads
Description
Provides all the keys/appids/etc needed for the framework, which you will get in same order on Native part in Map/Array object.
Ads:setKey(...)
Possible values:
adcolony:setKey(appID, videoZoneID, optionalZoneID) -- AdColony
admob:setKey(appID) -- Admob
amazon:setKey(appID) -- Amazon
applovin:setKey(appID) -- AppLovin
chartboost:setKey(appID, appSignature) -- Chartboost
-- required for iOS
-- does nothing on Android
heyzap:setKey(appID) -- HeyZap
-- does nothing
--iad :setKey(appID) -- iAds
inmobi:setKey(appID) -- InMobi
mm:setKey(appID) --default ID to use, Millenial
--set default ad unit 
--(optional if you provide it for each ad separately)
mopub:setKey(adunit) -- MoPub
revmob:setKey(appId) -- Revmob
--set default inventoryID 
--(optional if you provide it for each ad separately)
samsung:setKey(inventoryID) -- Samsung AdHub
tapfortap:setKey(APIKEY) -- TapForTap
tapjoy:setKey(appId, secretKey) -- TapJoy
vungle:setKey("yourAppID") -- Vungle
Parameters
...: (values) varies for each ad framework
