Ad Network API

Track revenue and performance for ads displayed on your platform.

Overview

As a CashPay publishing partner, you can earn revenue by displaying ads on your site. This API allows you to programmatically track your performance and earnings. All ad revenue is credited directly to your B2B Partner Fleet Account.

API Endpoints

GET/api/v1/b2b/ads/stats

Fetches performance statistics for your placements, including impressions, clicks, and revenue.

cURL
curl -X GET 'https://api.cashpay-all.com/api/v1/b2b/ads/stats' \
-H 'Authorization: Bearer <YOUR_API_KEY>'

Example Response

JSON
{
  "success": true,
  "data": {
    "summary": {
      "impressions": 150234,
      "clicks": 1289,
      "revenue": 64.45,
      "currency": "USD"
    },
    "performanceByDay": [
      { "date": "2023-10-26", "impressions": 5102, "clicks": 45, "revenue": 3.20 },
      { "date": "2023-10-27", "impressions": 5310, "clicks": 51, "revenue": 4.15 }
    ]
  }
}