com.sec.android.ad
Interface AdNotificationListener


public interface AdNotificationListener

AdNotificationListener is a class that receives notifications for Ad requests from applications. It is called every time an Ad is refreshed.

Version:
v1.0.0

Method Summary
 void onAdFailed(AdHubView adHubView, java.lang.Exception exception)
          This is called when the Ad is not received from the server.
 void onAdReceived(AdHubView adHubView)
          This is when an Ad is successfully received.
 

Method Detail

onAdReceived

void onAdReceived(AdHubView adHubView)
This is when an Ad is successfully received. More accurately, it is called when an Ad is loaded by the AdHubView, and it is called every time an Ad is obtained successfully through refreshing an Ad.

Parameters:
adHubView - AdHubView

onAdFailed

void onAdFailed(AdHubView adHubView,
                java.lang.Exception exception)
This is called when the Ad is not received from the server.

Parameters:
adHubView - AdHubView
exception - Reasons for Ad failure can be checked.
Error Code Error Message
400 BNS_1000 Parameter {0} is null or empty value
400 BNS_1001 This application has no aggregator
400 BNS_1002 Parameter {0} is invalid
400 BNS_1003 There is no {0} result
400 BNS_1004 The inventory is not activated or doesn't exist
401 BNS_2000 Unauthorized use of API ( restricted Carrier {0} )
401 BNS_2001 Unauthorized use of API ( Source was blocked {0} )
404 BNS_2002 No Contents - {0}
500 BNS_9001 unknown Internal server error {0}
500 BNS_9002 Http Connection Error {0}
500 BNS_9003 AdNetwork Server Error - {0}