Difference between revisions of "Ads:setKey"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 9: Line 9:
 
</syntaxhighlight>
 
</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)
 +
 
 +
admob:setKey(appID)
 +
 
 +
amazon:setKey(appID)
 +
 
 +
applovin:setKey(appID)
 +
 
 +
chartboost:setKey(appID, appSignature)
 +
 
 +
-- required for iOS
 +
-- does nothing on Android
 +
heyzap:setKey(appID)
 +
 
 +
-- does nothing
 +
--iad :setKey(appID)
 +
 
 +
inmobi:setKey(appID)
 +
 
 +
mm:setKey(appID) --default ID to use
 +
 
 +
--set default ad unit
 +
--(optional if you provide it for each ad separately)
 +
mopub:setKey(adunit)
 +
 
 +
revmob:setKey(appId)
 +
 
 +
--set default inventoryID
 +
--(optional if you provide it for each ad separately)
 +
samsung:setKey(inventoryID)
 +
 
 +
tapfortap:setKey(APIKEY)
 +
 
 +
tapjoy:setKey(appId, secretKey)
 +
 
 +
vungle:setKey("yourAppID")
 +
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 19:29, 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)

admob:setKey(appID)

amazon:setKey(appID)

applovin:setKey(appID)

chartboost:setKey(appID, appSignature)

-- required for iOS
-- does nothing on Android
heyzap:setKey(appID)

-- does nothing
--iad :setKey(appID)

inmobi:setKey(appID)

mm:setKey(appID) --default ID to use

--set default ad unit 
--(optional if you provide it for each ad separately)
mopub:setKey(adunit)

revmob:setKey(appId)

--set default inventoryID 
--(optional if you provide it for each ad separately)
samsung:setKey(inventoryID)

tapfortap:setKey(APIKEY)

tapjoy:setKey(appId, secretKey)

vungle:setKey("yourAppID")

Parameters

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