Difference between revisions of "FBInstant.getRewardedVideoAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Attempt to create an instance of rewarded video. This instance can then be preloaded and presen...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= FBInstant.getRewardedVideoAsync(placementIDcallback,)
+
FBInstant.getRewardedVideoAsync(placementID,callback)
 
</source>
 
</source>
'''placementID:''' (string) The placement ID that's been setup in your Audience Network settings. ''''''<br/>
+
'''placementID''': (string) The placement ID that's been setup in your Audience Network settings. ''''''<br/>
'''callback:''' (function) A function that will be called with two arguments: Resolves with a #adinstance, or rejects with a #apierror if it couldn't be created.  An error code if the function failed. ''''''<br/>
+
'''callback''': (function) A function that will be called with two arguments: Resolves with a #adinstance, or rejects with a #apierror if it couldn't be created.  An error code if the function failed. ''''''<br/>

Revision as of 10:16, 23 August 2018

Available since: Gideros 2018.3

Description


Attempt to create an instance of rewarded video. This instance can then be preloaded and presented.

 FBInstant.getRewardedVideoAsync(placementID,callback)

'placementID: (string) The placement ID that's been setup in your Audience Network settings. '
'callback: (function) A function that will be called with two arguments: Resolves with a #adinstance, or rejects with a #apierror if it couldn't be created. An error code if the function failed. '