ads_disable

Switch off in game ads.

Syntax:

ads_disable(num)


Argument Description
num The advert "slot" to disable (0 - 4).


Returns: N/A


Description

This function switches off the in-game ads for the given "slot" (as defined in the Global Game Settings - Advertising Tab), so that they are no longer displayed.


Example:

if purchased
   {
   ads_disable(0);
   }

The above code switches off in game ads for "slot" 0 if the variable "purchased" returns true.


Back: Advertising and Analytics
Next: ads_move
© Copyright YoYo Games Ltd. 2018 All Rights Reserved