---
description: Guide to integrate your Moengage Campaign Reports with Sprinkle
---

# MoEngage

## Datasource Concepts

Before setting up the datasource, learn about datasource concepts [here](..)

## Step by Step Guide

### STEP-1: Configure Connection

To learn about Connection, refer[ here](..)

* Log into Sprinkle application
* Navigate to Datasources -> Connections Tab -> New Connection ->
* Select MoEngage
* Provide all the mandatory details
  * _Name_: Name to identify this connection
  * _API ID:_ You can copy the API ID by going to the MoEngage Dashboard -> settings and then APIs. Under the Transaction Push/Report settings, click Copy API ID.
  * _API Secret:_ To access the API secret, navigate to the MoEngage Dashboard -> settings and then APIs. In the general tab, under transaction Push/Report settings, Click on "Click here" to get the API secret.
  * _Data Center Name:_ You will be part of one of the data centers when you sign up with MoEngage. Depending on your data center, MoEngage will provide you with the dashboard, SDK, and REST API. Read [more](https://help.moengage.com/hc/en-us/articles/360057030512-Data-Centers-in-MoEngage#list-of-data-centers-0-0).

### STEP-2: Configure datasource

To learn about datasource, refer [here](..)

* Navigate to Datasources -> Datasources Tab -> Add ->&#x20;
* Select MoEngage
* Provide the name -> Create
* **Connection Tab**:&#x20;
  * From the drop-down, select the name of the connection created in STEP-1 for MoEngage.
  * Click on Update

### STEP-3: Create Dataset

**Datasets Tab**: To learn about Dataset, refer [here](..). Add Dataset, providing the following details.

* Campaign Report Name (Required): The file name in the API is the same as the report name created in the campaign report builder, but with underscores instead of spaces. For example, if the name of the report in the dashboard is "_Report Test_",  then the file name for the API is _Report\_Test_.
* Report Generation Date (Required): The date of report generation is in YYYYMMDD format. For example, 20210217 in the name represents a report generated on 17th February 2021.
* _Destination Schema_: Choose the destination Schema on the data warehouse.
* Destination Name (Required): Name of the table to be created in the warehouse.
* _Destination Create Table Clause_: Provide additional clauses to warehouse-create table queries such as clustering, partitioning, and more, useful for optimizing DML statements. [Learn more](https://docs.sprinkledata.com/product/integrating-your-data/data-imports/destination-create-table-clause) on how to use this field.

### STEP-4: Run and schedule Ingestion

In the **Ingestion Jobs** ta&#x62;**:**

* Trigger the Job, using the Run button
* To schedule, enable Auto-Run. Change the frequency as required.
