Pushing Ad Costs to LeadByte
In order to know how profitable your business really is, you need to compare ALL your costs vs your revenue.
LeadByte allows you to submit costs from your various sources in order to be shown on our reports and compare it against your revenue. We do this by providing you a URL to post any ad costs to.
CAVEAT
For the time being, LeadByte cannot help with pulling the costs from your ad platform. While we work on a solution for you, you'll need to handle it outside of LeadByte.
We've had success using Make to bridge between Facebook Insights and LeadByte.
Step 1 - REST API key settings
Ensure your REST API key has the Ad Costs permission enabled.
Find this under the campaigns section of the REST API key permissions -
Step 2 - Post your Ad Costs to LeadByte
[POST] https://[YOUR ACCOUNT NAME].leadbyte.co.uk/adcosts
{
"campaign_id": "123",
"cost": "120.50",
"timestamp": "2026-04-15T23:00:00Z",
"currency": "GBP"
}
Headers:
X_KEY: YOUR API KEYNB:
- All 4 fields in the body are required.
- If you have no time for the timestamp, submit 00:00:00Z
- The campaign_id refers to your LeadByte campaign
Step 3 - Reporting
Currently, the Ad Costs submitted to LeadByte are only found under the "Campaign Overview" report.
Ticking the Ad Spend box will:
- Add a column to your report called Ad Cost
- Amend your profit and CPL values to reflect the added cost
FAQ
Q - I want more granularity, can I push my Facebook Campaign, Ad group and Ad set into LeadByte ad costs?
A - Currently, no. We allow you to push data to SID and SSID for the Ad costs, so theoretically we can offer 2 levels of granularity. We're working on adding a 3rd level.
Ultimately, we'd like to offer a simple way to marry up the Campaign, Ad group and Ad set values from Facebook you push in with each lead on our reporting. Watch this space!
Q - I need to amend the cost value I submitted, can I do this?
A - Not exactly, but you can submit a negative value to bring your total costings back in line
Comments