POST /campaign/revenue/{report type - optional}
Retrieve monetization for the period given.
detail
query parameter: with_source_id
, by_source_id
, by_subid
.by_source_id
you must also supply a source_id
in the body of the request.by_source_id
and with_source_id
reports by using the breakdown
report typeNote that where campaigns contain a component relating to affiliate purchases, revenue figures are only finalised after 7 elapsed days, before which provisional figures are shown. Your Tappa Search representative can provide more details and if required a full breakdown.
POST /campaign/revenue
Host: reporting.{SEARCHDOMAIN}
Accept: application/json, text/javascript
Authorization: { Your Token }
{
"client_id": "23r88j8r",
"campaign_id": "2378f",
"start_date": "2018-09-05",
"end_date": "2018-09-06"
}
Specifically in cURL this will look something like:
curl -X POST '{{ REPORTING HOSTNAME }}/campaign/revenue' \\
-H 'Content-Type: application/json' \\
-H 'Authorization: Bearer oveTr2htUYjYDH3Z8wpHzu' \\
--data-raw ' {
"client_id": "{{ YOUR CLIENT ID}}",
"campaign_id": "{{ YOUR CAMPAIGN ID}}",
"start_date": "2022-12-01",
"end_date": "2022-12-31"
}'