Display Ads
Integrating Boost Display Ads in your applications
Display Ads Integration
Integrating Boost display ads into your React applications is straightforward. We provide a ready-to-use AdContainer
component that handles all the necessary configuration.
React Component Integration
To display ads on your website or application, simply import and use our AdContainer
component:
Using the AdContainer
Once you’ve implemented the component, you can include it anywhere in your application:
Customization Options
The AdContainer component accepts the following props:
className: Additional CSS classes to customize the appearance Custom styling can be applied to the container, but ensure you maintain the required .boost-ad-container class
Ad Placement Best Practices
For optimal performance and user experience:
Place ads in visible areas without disrupting the user experience Avoid placing multiple ads too close together Consider strategic placements like sidebar, between content sections, or header/footer areas Test different placements to find the optimal balance between visibility and user engagement
Troubleshooting
If ads are not displaying properly:
- Verify your website/app is properly registered in the Boost Publishers Platform
- Check that the
.boost-ad-container
class is properly applied - Ensure your ad container has appropriate dimensions
- Confirm your integration is using the latest version of our component
- Verify ad requests in your browser’s network tab:
- Open browser developer tools (F12 or right-click → Inspect)
- Navigate to the Network tab
- Filter for “ad_request”
- Check that requests are being sent and receiving successful responses
- Examine response data to ensure ads are being properly returned