Help Center
|
Ad spend cost endpoint
Adjust's Partner ad spend push API provides accurate, transparent, and granular ad spend data. Adjust maps the ad spend information using a campaign's cost_id
allowing Report Services to report the ad spend data back to the partner.
Before you begin
To integrate with the Partner ad spend push API, you must set up your servers to send a set of mandatory parameters to Adjust through an HTTP POST request to our designated endpoint.
Note:
Endpoint
https://app.adjust.com/cost
POST request
The POST
method sends the ad spend information of a campaing thorugh the cost_id
.
Parameters
Important:
Parameter | Data type | In | Description |
---|---|---|---|
cost_type* | String | Query | Price model. Available cost types: cpc, cpi, cpe or cpm |
cost_currency* | String | Query | ISO 4217 currency code. See our full list of supported currencies. |
cost_amount* | Float | Query | Float value for the cost Maximum: 5 decimal places |
cost_id* | String | Query | A unique value for matching cost information to an engagement Minimum: 12 characters Maximum: 256 characters |
tag* | String | Query | A label used for logging and debugging Maximum: 128 characters |
Example request
curl -d "cost_type=cpi&cost_currency=usd&cost_amount=2&cost_id=abc123_company_name_test_1&tag=company_name_test" -X POST https://app.adjust.com/cost
Tip:
Responses
Here is a list of possible server responses:
Code | Response |
---|---|
200 | Successful response |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal server error |