Exemplo n.º 1
0
 @Override
 public void onDismissScreen(Ad arg0) {
   LogD("onDismissScreen invoked");
   InterfaceAds.onAdsResult(
       mAdapter,
       InterfaceAds.RESULT_CODE_FullScreenViewDismissed,
       "Full screen ads view dismissed!");
 }
Exemplo n.º 2
0
 @Override
 public void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {
   int errorNo = InterfaceAds.RESULT_CODE_UnknownError;
   String errorMsg = "Unknow error";
   switch (arg1) {
     case NETWORK_ERROR:
       errorNo = InterfaceAds.RESULT_CODE_NetworkError;
       errorMsg = "Network error";
       break;
     case INVALID_REQUEST:
       errorNo = InterfaceAds.RESULT_CODE_NetworkError;
       errorMsg = "The ad request is invalid";
       break;
     case NO_FILL:
       errorMsg =
           "The ad request is successful, but no ad was returned due to lack of ad inventory.";
       break;
     default:
       break;
   }
   LogD("failed to receive ad : " + errorNo + " , " + errorMsg);
   InterfaceAds.onAdsResult(mAdapter, errorNo, errorMsg);
 }
Exemplo n.º 3
0
 @Override
 public void onReceiveAd(Ad arg0) {
   LogD("onReceiveAd invoked");
   InterfaceAds.onAdsResult(
       mAdapter, InterfaceAds.RESULT_CODE_AdsReceived, "Ads request received success!");
 }
Exemplo n.º 4
0
 @Override
 public void onPresentScreen(Ad arg0) {
   LogD("onPresentScreen invoked");
   InterfaceAds.onAdsResult(
       mAdapter, InterfaceAds.RESULT_CODE_FullScreenViewShown, "Full screen ads view shown!");
 }