Ready to get your Paved ad network placement live in your HubSpot email newsletter? In this guide, we’re going to share with you the step-by-step instructions to get you there.
⚠️Before you start⚠️
First, make sure you know how to set up the ad network. Read the Getting Started guide.
Next, navigate to the "Code" step of the setup wizard:
How to set up targeted ads in your newsletter template
So that your placement can be easily included in future newsletters, we recommend that you put ad placement HTML in your email template rather than in a one-off email.
How to configure your ad parameters
There are two parameters required to deliver an ad: a subscriber’s email and a campaign ID to uniquely identify the newsletter sent.
We don’t store the subscriber’s email address but we do store the campaign ID to track your earnings.
In the Paved Ad Builder, select HubSpot from the list of ESPs and Paved will automatically insert the appropriate merge tags in the code.
How to put the ad code in the header
In your Paved account, copy the provided header code for your ad placement.
On the HubSpot home screen, click on ‘Marketing’ on the header navigation panel, then ‘Files and Templates’ and then ‘Design Tools’.
Then, find the template you want to edit by clicking on ‘Custom’ then ‘email’, and selecting the custom email template you want to work with.
This will open the HTML panel. Paste your code just above the </head> tag in the HTML editor on the left side of the screen:
After you're done, click ‘Publish changes’ in the top right corner. Leave this page open as you will return to it in the next task.
Where to install the ad placement code
The code below is for the ad placement. It must be pasted exactly in the right location within the same code editor used before.
Paved includes some existing code from your ad template to help you locate the correct location as shown below.
Next, click the ‘copy code’ button to copy the ad placement code.
In your HubSpot template editor, paste your ad placement code in the section indicated in the example provided in your Paved account. It should look something like this:
After you're done, click to save the draft.
Testing your ad placement
From the HubSpot homepage, click on ‘Marketing’ and then ‘Email’.
Then click ‘Create email’ in the top right-hand corner of the page.
Then choose your email type. As we are just sending a test email for now, you can select ‘Regular’. You can always change this later.
Then select ‘Custom’ and select the email template you previously edited from the list.
Give your email a name and select ‘Create Email’.
You can preview the design of the email here as well as to send a test email by selecting ‘Send a test email’ from the right top-hand side of the screen.
Select who will be receiving the test email from the drop-down. You also have the option of selecting how you want the email to appear it’s being sent to (this is important for checking personalization tags). Then click ‘Send test email’.
Be sure to review the test email sent to your inbox to ensure formatting and ad placement look correct.
If you ever need to remove code from a send, simply delete the main ad placement code. It's not necessary to remove the header code.
Next Steps
Whenever you're ready, head back to your Paved account to finish the ad's setup process. Learn more in Ad Network: Getting Started