Initialization
✅ DO:- Initialize in
Application.onCreate() - Use Application context
- Enable debug mode when needed for troubleshooting (publisher’s choice)
- Handle initialization callbacks
- Initialize in Activity
- Use Activity context
- Initialize multiple times unnecessarily
Ad Loading
✅ DO:- Provide meaningful context (user query, AI response, conversation history, additional context)
- Handle errors gracefully (e.g. hide ad view or show fallback)
- Track ad events for analytics
- Use appropriate ad dimensions
- Use empty or placeholder context
- Block the UI thread
- Ignore error callbacks
- Use incorrect dimensions
Memory Management
✅ DO:- Call
destroyAd()for everyVelocityNativeAdinonDestroy() - Clear ad views when not needed
- Use weak references where appropriate
- Keep ad views after Activity is destroyed

