adjust-icon

Server-to-server (S2S) ad revenue

If you record ad revenue yourself, you can share this data server-to-server (S2S) to view it with all your other Adjust-measured metrics. This gives a complete overview of your campaign performance, letting you calculate your users’ Lifetime Value (LTV) and optimize your campaign Return on Ad Spend (ROAS) and Return on Investment (ROI).

Send your ad revenue data to Adjust server-to-server to view it in your dashboard Statistics and Cohorts.

Endpoint
https://s2s.adjust.com/ad_revenue

Before you begin

Here’s what you need to know before getting started:

  • Ad revenue sent S2S is added to ad revenue KPIs and Cohort calculations for LTV and ROAS.

Availability

  • Ad revenue package

Send S2S ad revenue

The /ad_revenue endpoint accepts the following requests for S2S ad revenue:

  • GET with URL parameters
  • POST with URL parameters (no body)
  • POST with body parameters as Content-Type application/x-www-form-urlencoded

Set up S2S Security

Set up S2S Security to guarantee the security of your S2S ad revenue and protect against spoofed requests. This requires each incoming request to carry a token generated in your Adjust dashboard. Requests that don’t carry the token or that carry an incorrect token are rejected by Adjust’s servers. To get set up, follow the steps in the S2S Security article.

Required parameters

To send ad revenue to Adjust, you must pass the following parameters:

The following parameters are recommended but not mandatory.

Example

Terminal window
curl -X POST \
-H "Authorization: Bearer b9eb9d6228842aeb05d64f30d56b361e" \
"https://s2s.adjust.com/ad_revenue?app_token=abc123abc123&idfa=FAD135C7-C5F8-4DCC-9478-2203956B0870&source=publisher&ad_impressions_count=1&revenue=0.01&currency=USD&s2s=1"