Ads:setKey: 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 ===
Provides all the keys/appids/etc needed for the framework, which you will get in same order on Native part in Map/Array object.
Provides all the keys/appids/etc needed for the framework, which you will get in same order on Native part in Map/Array object.
<source lang="lua">
<syntaxhighlight lang="lua">
Ads:setKey(...)
Ads:setKey(...)
</source>
</syntaxhighlight>


For the possible values check [http://docs.giderosmobile.com/interface/ads](Ads Interface Guide) '''Methods''' tab.
Possible values:
<syntaxhighlight lang="lua">
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
 
unity:setKey(appID, appSignature) -- Unity
 
vungle:setKey("yourAppID") -- Vungle
</syntaxhighlight>


=== Parameters ===
=== Parameters ===

Latest revision as of 01:55, 16 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

unity:setKey(appID, appSignature) -- Unity

vungle:setKey("yourAppID") -- Vungle

Parameters

...: (values) varies for each ad framework