Difference between revisions of "Ads"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === The idea is to provide common Ads interface for most of available ad...") |
|||
Line 7: | Line 7: | ||
Additionally it would be able to support multiple ad frameworks simultaneously so users could switch and fall back between ad frameworks on runtime. | Additionally it would be able to support multiple ad frameworks simultaneously so users could switch and fall back between ad frameworks on runtime. | ||
− | More information available in [http://docs.giderosmobile.com/interface/ads](Ads interface guide).{|- | + | More information available in [http://docs.giderosmobile.com/interface/ads](Ads interface guide). |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[Ads.new]] - initializes new ad framework<br/> | ||
+ | [[Ads:enableTesting]] - enable testing ads<br/> | ||
+ | [[Ads:get]] - gets property value of the ad<br/> | ||
+ | [[Ads:getHeight]] - gets the height of the ad<br/> | ||
+ | [[Ads:getPosition]] - gets x and y position of the ad<br/> | ||
+ | [[Ads:getWidth]] - gets width of the ad<br/> | ||
+ | [[Ads:getX]] - gets x position of the ad<br/> | ||
+ | [[Ads:getY]] - gets y position of the ad<br/> | ||
+ | [[Ads:hideAd]] - hides ads<br/> | ||
+ | [[Ads:set]] - sets property value of the ad<br/> | ||
+ | [[Ads:setAlignment]] - sets alignment of the ad<br/> | ||
+ | [[Ads:setKey]] - set keys for the framework<br/> | ||
+ | [[Ads:setPosition]] - sets position of the ad<br/> | ||
+ | [[Ads:setX]] - Sets x position of the ad<br/> | ||
+ | [[Ads:setY]] - sets y position of the ad<br/> | ||
+ | [[Ads:showAd]] - display ad<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
+ | [[Event.AD_ACTION_BEGIN]] | ||
+ | [[Event.AD_ACTION_END]] | ||
+ | [[Event.AD_DISMISSED]] | ||
+ | [[Event.AD_ERROR]] | ||
+ | [[Event.AD_FAILED]] | ||
+ | [[Event.AD_RECEIVED]] | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms:
Available since: Gideros 2011.6
Description
The idea is to provide common Ads interface for most of available ad frameworks, so that user's would not have to create a plugin for each of them separately, but rather it would be possible to wrap ad framework in single Java or Objective-C class (depending on the platform) and add it to the project, without even recompiling existing Ads Interface plugin.
Additionally it would be able to support multiple ad frameworks simultaneously so users could switch and fall back between ad frameworks on runtime.
More information available in [1](Ads interface guide).
MethodsAds.new - initializes new ad framework |
EventsEvent.AD_ACTION_BEGIN Event.AD_ACTION_END Event.AD_DISMISSED Event.AD_ERROR Event.AD_FAILED Event.AD_RECEIVED Constants |