Example of Displaying Interstitial Ad - fan-ADN/nendSDK-cocos2d-x GitHub Wiki
Preparation
If you have not yet register app/ad placements nor downloaded SDK, please refer to following link.
SDK Implementation
Add SDK/Module to a project.
Instruction
This is the implement example to display interstitial ad when the load success.
Ad Upload and EventDispatcher Registration
Ex.) Add header file

Ex.) Upload Interstitial ad and register EventDispatcher
※This example is implemented the loading process of interstitial ad and the registration of EventDispatcher which receives the loading success event in the HelloWorld::init().

Implement EventDispatcher and Displaying ad
After finish uploading, implement the Displaying ad disposal
Ex.)The Process to receive a notification with EventDispatcher and the process to display an interstitial ad
※This example is implemented the process to display ads with EventDispatcher when the load finishes successfully.
