🔷ESP Integration

Integrate MailAdx with SendGrid for newsletter ad monetization

MailAdx works with SendGrid's dynamic templates and substitution tags. Add open-time ads to your SendGrid newsletters using the per-subscriber email hash in the template.

Why add MailAdx to SendGrid?

Open-time ad serving — impressions count only on genuine opens
No revenue share — flat per-impression fee, you keep the rest
Direct-sold + programmatic demand in a single waterfall
Custom price floors per ad placement
Real-time delivery dashboard and per-send reporting
Native ads (composite PNG) and standard banner formats

How to integrate MailAdx with SendGrid

  1. 1

    Create your MailAdx publisher account

    Sign up for a free MailAdx publisher account and create your first ad placement.

  2. 2

    Set up SHA-256 email hash in SendGrid

    SendGrid dynamic templates support substitution variables. Pre-compute the SHA-256 hash of each subscriber's email and pass it as a template variable in your send API call (e.g., {{email_sha256}}).

  3. 3

    Add the MailAdx ad tag to your template

    In SendGrid's email designer, add an HTML block and paste the MailAdx ad tag, using {{email_sha256}} as the hash parameter.

  4. 4

    Test via SendGrid's preview or a test send

    Use SendGrid's test send feature to verify the substitution works correctly and the ad loads on open.

email-template.html
<!-- MailAdx ad tag — decision runs at open time -->
<a href="https://mailadx.com/api/v1/serving/click?pub=YOUR_PUB&pk=header&eh={{EMAIL_SHA256}}"
   target="_blank">
  <img src="https://mailadx.com/api/v1/serving/display?pub=YOUR_PUB&pk=header&eh={{EMAIL_SHA256}}&w=600&h=100"
       width="600" height="100" alt="" />
</a>
<!-- Replace {{EMAIL_SHA256}} with your ESP's email hash merge tag -->

SendGrid + MailAdx: common questions

Can MailAdx work with SendGrid Marketing Campaigns?

Yes. MailAdx works with both SendGrid's Marketing Campaigns (drag-and-drop editor with custom code blocks) and the transactional email API with dynamic templates.

Ready to monetize your SendGrid newsletter?

Free to start. No revenue share. Direct advertiser relationships from day one.

No credit card required
Setup in 30 minutes
Dedicated onboarding