Ready to get your Paved ad network placement live in your SendGrid email newsletter? In this guide, we’re going to show you the step-by-step instructions to get you there.
Before you start
Make sure you know how to set up the ad network. Read the Getting Started guide.
Navigate to the "Ad Unit Codes" step of the setup wizard in your Paved account to retrieve your header code and ad unit code.
Merge tags for this ESP
Paved will automatically insert the correct merge tags when you select SendGrid from the ESP list in your account. For reference, the tags used are:
Email ID: {{email}}
Campaign ID: {{this.date}}
How to install the header code
In your Paved account, copy the provided header code for your ad placement.
In SendGrid, go to Marketing > Single Sends and click Create a Single Send.
Select a blank template and choose Code Editor.
Paste your full email HTML into the editor.
Locate the </head> closing tag.
Paste your Paved header code directly above the </head> tag.
Click Save.
How to install the ad unit code
In your Paved account, click Copy Code to copy the ad unit code.
In the Code Editor, locate the position in the email body where the ad should appear.
Paste the ad unit code at that location.
Click Save.
If using the Design Editor, add a Code module from the drag-and-drop panel and paste the ad unit code into that module's HTML.
Adding the ad to a reusable template
To avoid re-inserting the ad code with every send:
Go to Email API > Dynamic Templates or Marketing > Email Designs and open or create a template.
Add your Paved ad unit code as described above.
Save the template and select it each time you create a new Single Send.
Testing your ad placement
Use your ESP's preview to check the visual layout before sending.
⚠ Do not send a test email. Do not use test sends to verify your Paved ad. Test emails often strip or fail to populate merge tags, which will cause a broken ad request. Instead, send a real email to:
The Paved draft email address provided in your Paved account
Yourself and/or your team
Your Paved account manager (if applicable)
Next steps
Head back to your Paved account to finish the setup process. Learn more in Ad Network: Getting Started.