The Contents of NendModule - fan-ADN/nendSDK-cocos2d-x GitHub Wiki
Method
Select the adplacement and displaying.
static void createNADView(char* apiKey, char* spotID, cocos2d::Point pos);
Set the app’s apiKey and spotID which can be generated on the nend dashboard, and the ad placement.
NendModule::createNADView("apiKey published on dashboard", "spotID published on dashboard", Point(0, 50));
Select adplacement and auto scale and displaying (function added from ver1.2.0)
static void createNADView(char* apiKey, char* spotID, cocos2d::Point pos, bool isAdjust);
Set the app’s apiKey, spotID which can be set on the nend dashboard, ad placement and ON/OFF of auto banner size optimization
NendModule::createNADView("apiKey published on dashboard", "spotID published on dashboard", Point(0, 50), true);
Displaying banner ad on bottom center of the screen
static void createNADViewBottom(char* apiKey, char* spotID);
Set the app’s apiKey and spotID which can be generated on the nend dashboard.
NendModule::createNADViewBottom("apiKey published on dashboard", "spotID published on dashboard");
Turn on the auto banner size optimization and displaying on bottom center of the screen (function added from ver1.2.0)
static void createNADViewBottom(char* apiKey, char* spotID, bool isAdjust);
Set the app’s apiKey, spotID which can be set on the nend dashboard, ad placement and ON/OFF of auto banner size optimization
NendModule::createNADViewBottom("apiKey published on dashboard", "spotID published on dashboard", true);
Displaying banner ad on top center of the screen
static void createNADViewTop(char* apiKey, char* spotID);
Set the app’s apiKey and spotID which can be generated on the nend dashboard.
NendModule::createNADViewTop("apiKey published on dashboard", "spotID published on dashboard");
Turn on the auto banner size optimization and displaying on top center of the screen (function added from ver1.2.0)
static void createNADViewTop(char* apiKey, char* spotID, bool isAdjust);
Set the app’s apiKey, spotID which can be set on the nend dashboard, ad placement and ON/OFF of auto banner size optimization
NendModule::createNADViewTop("apiKey published on dashboard", "spotID published on dashboard", true);
Hide banner ads
static void hideNADView();
Hide banner ad.
It will reflect on all banner ads you are using.
NendModule::hideNADView();
Hide banner ads(select spotID)※function added from ver1.2.1
static void hideNADView(char* spotID);
Select spotID which can be generated on the dashboard and hide the banner.
NendModule::hideNADView("spotID published on dashboard");
Redisplay banner ads
static void showNADView();
Redisplay the banner ad which is set as hide.
It will reflect on all banner ads you are using.
NendModule::showNADView();
Redisplay banner ads(select spotID)※function added from ver1.2.1
static void showNADView(char* spotID);
Select spotID which can be generated on the dashboard and redisplay the hidden banner.
NendModule::showNADView("spotID published on dashboard");
Pause loading ad
static void pause();
Pause loading ad.
It will reflect on all banner ads you are using.
NendModule::pause();
Pause loading ad(select spotID)※function added from ver1.2.1
static void pause(char* spotID);
Select spotID which can be generated on the dashboard and pause the ad loading.
NendModule::pause("spotID published on dashboard");
Restart loading ad
static void resume();
Restart loading ad which is paused loading.
It will reflect on all banner ads you are using.
NendModule::resume();
Restart loading ad (select spotID)※function added from ver1.2.1
static void resume(char* spotID);
Select spotID which can be generated on the dashboard and restart loading the ad which is paused.
NendModule::resume("spotID published on dashboard");
Release the resource
static void release();
Release the resource which was using for Displaying ad process.
It will reflect on all banner ads you are using.
NendModule::release();
Release the resource(select spotID)※function added from ver1.2.1
static void release(char* spotID);
Release the resource which was using for Displaying ad process.
NendModule::release("spotID published on dashboard");