|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdNotificationListener
AdNotificationListener is a class that receives notifications for Ad requests from applications. It is called every time an Ad is refreshed.
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 |
---|
void onAdReceived(AdHubView adHubView)
adHubView
- AdHubView
void onAdFailed(AdHubView adHubView, java.lang.Exception exception)
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} |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |