Learn how to integrate and use the Carbon Ads API for developers and publishers.
This guide explains how to implement Carbon Classic and Carbon Cover ad formats via the Carbon Ads API. It is intended for developers or publishers who prefer direct integration and full control over rendering.
The Carbon Ads API is built on BuySellAds infrastructure. For core API conventions, see: https://docs.buysellads.com/ad-serving-api
Regardless of the implementation, both formats should support pixels if it exists. Refer to the pixels documentation for more details.
https://srv.buysellads.com/ads/{zonekey}.jsonExample: https://srv.buysellads.com/ads/CVAIKKQM.json
The API returns an ads array. An ad is valid if statlink is non-empty. Skip rendering if statlink is missing or empty.
Ensure correct image dimensions, readable text, clickability via statlink, and visible attribution.
When Carbon Cover is active, the API includes additional creative fields. This requires a custom layout and interaction logic.
You may reuse inline styles or build your own. Maintain functional parity: smooth transitions, mobile responsiveness, and layout consistency.
We strongly encourage replicating the Carbon Cover layout and interaction. You can check out this CodePen example for the HTML structure and methods to handle mobile responsiveness.
| Format | Required Elements | Notes |
|---|---|---|
| Classic | smallImage description statlink ad_via_link | Static layout. Attribution required. Full description must be visible. |
| Cover | largeImage logo companyTagline description callToAction backgroundColor ad_via_link | Dynamic layout. Hover reveals description. Includes branding and interaction. |
Aim for a minimal, functional, and consistent ad experience. Let the creative speak. Your code should stay out of the way.