Difference between revisions of "Ads:setKey"

From GiderosMobile
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2014.01<br/>
 
'''Available since:''' Gideros 2014.01<br/>
 +
'''Class:''' [[Ads]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate>provide 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.
For the possible values check [http://docs.giderosmobile.com/interface/ads](Ads Interface Guide) Methods tab</translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
Ads:setKey(...)
Ads:setKey(...)
+
</syntaxhighlight>
</source>
+
 
 +
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 ===
'''...''': (values) <translate>Varies for each ad framework</translate> <br/>
+
'''...''': (values) varies for each ad framework<br/>
 +
 
 +
{{Ads}}

Latest revision as of 03: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