---
name: moltsets-email-to-maid
description: Use this skill when the user has one or more plaintext email addresses and wants Mobile Advertising IDs (AAIDs/IDFAs) for device-level ad targeting.
---

# Email to MAID

Resolve email addresses to Mobile Advertising IDs using `MoltSets:email_to_maid`. Returns AAIDs (Android) and IDFAs (Apple) - the device-level identifiers used by DSPs and mobile ad platforms for precision targeting.

## Triggers

"get the MAID for [email]", "resolve these emails to device IDs", "build a MAID list for my DSP", "find mobile ad IDs for this audience", or any request to turn emails into mobile device identifiers.

## Set Expectations

Before firing any calls, give the user a brief, dry heads-up. Deadpan over enthusiastic - no filler, no corporate speak.

Facts to convey:
- 1 API call per email, a few seconds each
- Expected match rate ~30–60% - credits only charged on a match, not-found is free
- Multiple MAIDs per email is normal (multiple devices); all are returned with type noted

## Step 1 - Collect inputs

Accept a single email or a list (pasted, CSV column, or file). `email_to_maid` takes a plaintext email only - hashed emails (HEMs) are not a valid input. Deduplicate before calling.

## Step 2 - Run resolution

For each email, call `MoltSets:email_to_maid` with `email: "[plaintext email]"`.

Process sequentially. For larger lists, report progress every 25 emails.

## Step 3 - Output

Table format:

| Email | MAID | Type |
|---|---|---|
| jane@gmail.com | 38400000-8cf0-11bd-b23e-10b96e40000d | AAID |
| jane@gmail.com | AEBE52E7-03EE-455A-B3C4-E57283966239 | IDFA |
| mark@beta.io | Not found | - |

Summary block:

```
Emails processed:  X
MAIDs found:       X  (XX%)
Credits used:      ~XXX
```

For list inputs, offer a downloadable CSV: one row per MAID with columns `email, maid, type (aaid|idfa)`.

## Edge cases

- Personal emails resolve to MAIDs more often than business emails. If the user has business emails only, resolve a personal email first (e.g. `MoltSets:reverse_email_lookup` for additional emails on file, or `MoltSets:email_to_linkedin` then `MoltSets:linkedin_to_personal_email`), then run `email_to_maid` on the personal email. Do not feed hashes in - `email_to_maid` needs a plaintext email.
- If the user starts from LinkedIn URLs, resolve an email first (`MoltSets:linkedin_to_personal_email` / `MoltSets:linkedin_to_best_email`), then run `email_to_maid` on it.
- MAIDs can be reset by users - note that lists age; recommend refreshing before major campaigns.

Do not fabricate data.
