> For the complete documentation index, see [llms.txt](https://experience-crm.gitbook.io/experience-crm-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://experience-crm.gitbook.io/experience-crm-api/reporting/marketing-campaigns.md).

# Marketing Campaigns

Our API provides a comprehensive set of metrics related to your Marketing campaigns. You can track the number of emails sent, opened, and clicked. It also presents data on unsubscribes, soft bounces and hard bounces.&#x20;

Another crucial feature is that you can monitor the number and amount of reservations generated as a result of your campaigns.&#x20;

Additionally, you can review the email subjects in different languages and the utilized Analytics tags. The API is organized according to the dates of your campaign dispatch, affording you the necessary flexibility when analyzing performance over different periods.

### Request&#x20;

<mark style="color:green;">**GET**</mark> &#x20;

{% code overflow="wrap" %}

```
https://interface.experience-hotel.com/api/statistics/marketing-campaign/by-sending-date?date_from=2023-09-05&date_to=2023-09-10
```

{% endcode %}

<table><thead><tr><th width="138.33331298828125">Param</th><th width="154.66668701171875">Format</th><th width="100">Required</th><th>Description</th></tr></thead><tbody><tr><td>date_start</td><td>YYYY-MM-DD</td><td>Required</td><td></td></tr><tr><td>date_end</td><td>YYYY-MM-DD</td><td>Required</td><td></td></tr><tr><td>hotel_id</td><td>Numeric</td><td>Optional</td><td>The unique identifier of a specific hotel for which you wish to retrieve campaign statistics. This parameter is optional. If your access token allows querying data for multiple hotels, you can use this parameter to limit the response to a specific hotel only. If this parameter is not used, the response will include the data for all accessible hotels.</td></tr></tbody></table>

### Response

Status Code 200 OK

{% code title="JSON" overflow="wrap" %}

```json
[
    {
        "date_sent": "2023-01-15T11:21:03.000000Z",
        "business_name": "Hotel test",
        "business_type": "hotel",
        "business_id": 12345,
        "configuration": {
            "name": "Campaign name",
            "subjects": [
                {
                    "code": "fr",
                    "text": "Subject in French"
                },
                {
                    "code": "en",
                    "text": "Subject in english"
                }
            ],
            "analytics_tags": {
                "source": null,
                "medium": null,
                "content": null,
                "term": null
            }
        },
        "performances": {
            "sent": 22825,
            "delivered": 21048,
            "opened": 9389,
            "clicked": 93,
            "unsubscribed": 128,
            "hard_bounced": 4,
            "soft_bounced": 35,
            "reservation_count": 65,
            "reservations": [
                {
                    "currency": "CZK",
                    "amount": 24110.7
                },
                {
                    "currency": "EUR",
                    "amount": 148169.1
                },
                {
                    "currency": "GBP",
                    "amount": 2755.7
                },
                {
                    "currency": "RSD",
                    "amount": 676707.8
                },
                {
                    "currency": "USD",
                    "amount": 1514.1
                }
            ]
        }
    }
]
```

{% endcode %}
