> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# InMobi

# Introduction

[InMobi](https://www.inmobi.com/) develops an advertisement-serving algorithm that helps optimize the ranking of the advertisements served on mobile phones. It operates a mobile ad network with an extensive range of ad formats, analytics, and monetization tools for app businesses

# MoEngage × InMobi

This integration allows you to sync segment between MoEngage and InMobi Audiences, helping you fuel Campaign performance with laser-focused retargeting. We will use MoEngage [Connecter Campaigns](/user-guide/campaigns-and-channels/connectors/create/create-a-connector-campaign) to build this integration.

# Integration

<Info>
  **Prerequisites**

  Ensure you have an InMobi account.
</Info>

## Step 1: Get your Segment ID or create a new segment

To create a new segment, use the following API:

[http://advertiser.inmobiapis.com/tpce/v1/segment?segmentName=\<SEGMENT\_NAME>\&propertyId=\<PROPERTY\_ID\_OR\_ADVERTISER\_ID>\&membershipTtl=\<MEMBERSHIP\_TTL\_IN\_DAYS](http://advertiser.inmobiapis.com/tpce/v1/segment?segmentName=\<SEGMENT_NAME>\&propertyId=\<PROPERTY_ID_OR_ADVERTISER_ID>\&membershipTtl=\<MEMBERSHIP_TTL_IN_DAYS)>

* `<SEGMENT_NAME>` - Name of the segment
* `<PROPERTY_ID_OR_ADVERTISER_ID>` - propertyId/advertiserId
* `<MEMBERSHIP_TTL_IN_DAYS>` - TTL for User IDs being tagged to this segment

InMobi will then send a Segment ID in response to a successful segment creation:

<CodeGroup>
  ```http HTTP theme={null}
  {
      "status": "OK",
      "message": "success",
      "code": 200,
      "segmentId": "f239dfb4-xxxx-xxxx-xxxx-dfdxxxx4ddb6"
  }
  ```
</CodeGroup>

If you already have a segment created, you can also use that segment's ID.

## Step 2: Create a connector campaign on MoEngage

To create a connector campaign on MoEngage,

1. Navigate to Create Campaign >> Connectors >> Custom and choose delivery type most suitable to your needs
   <Frame>
     <img src="https://mintcdn.com/moengage/UdXazC1gvxUrQZNi/images/create-camp.png?fit=max&auto=format&n=UdXazC1gvxUrQZNi&q=85&s=0d20efffec52ff30a5f6f3ba3ad5bba2" alt="Create Camp" width="1104" height="1238" data-path="images/create-camp.png" />
   </Frame>
2. On step 2 of the campaign,
   1. Select method as `GET`
   2. Add Webhook URL as: [http://advertiser.inmobiapis.com/tpce/v1/usersegment?propertyId=\<PROPERTY\_ID>\&gpId=\<ANDROID\_DEVICE\_ID>\&ida=\<IOS\_DEVICE\_ID>\&segmentIds=\<YOUR\_SEGMENT\_ID>\&action=add](http://advertiser.inmobiapis.com/tpce/v1/usersegment?propertyId=\<PROPERTY_ID>\&gpId=\<ANDROID_DEVICE_ID>\&ida=\<IOS_DEVICE_ID>\&segmentIds=\<YOUR_SEGMENT_ID>\&action=add)
   3. In Parameters, add
      1. `propertyId`: your propertyId/advertiserId
      2. `gpId`: Android Device ID, or\
         `ida`: iOS Device ID
      3. `segmentIds`: your segment ID.

<img src="https://mintcdn.com/moengage/V7W8fvZbxtTmKTAn/images/partner_10275541563924.png?fit=max&auto=format&n=V7W8fvZbxtTmKTAn&q=85&s=b5074a3833db8d496772d33f79ace338" alt="Step1.png" width="2014" height="1242" data-path="images/partner_10275541563924.png" />

3. At this point, your campaign should be ready to test and send. You can also test your connector configuration using the Test functionality available on Step 2 of Create Connector Campaign.<img src="https://mintcdn.com/moengage/0EdW-QMnfbsLxXT2/images/partner_4678362626196.png?fit=max&auto=format&n=0EdW-QMnfbsLxXT2&q=85&s=da841ee3a77bb4a9de54430bc067187b" alt="Screen_Shot_2022-02-22_at_11.12.42_AM.png" width="2464" height="270" data-path="images/partner_4678362626196.png" />
4. If you see the test user in your InMobi Audience segment, your set-up is good to go. You can go ahead and publish the campaign.
