Can I Set Up an Ad Campaign to Display Only for a Specific Blog Category in SoCast Engage?
Can I Set Up an Ad Campaign to Display Only for a Specific Blog Category in SoCast Engage?
This guide explains how to target ads on your website based on a blog post’s category in SoCast Engage. For example, if a visitor reads a post in the Morning Show category, you can display ads that sponsor the Morning Show.
Step 1: Add the Ad Setup Code
To target ads by blog category, first define your ad slots and add your ad setup in the Ad Setup Code field.
Navigate to the Ad Setup Code field:
- Log in to your SoCast Engage account.
- Go to
Website > Website Settings > Advertising
. - Scroll to the Ad Setup Code section.
Modify the Ad Setup Code:
Below is an example using the setTargeting
method. The %socast.blog.categories%
macro dynamically inserts the blog categories for targeting:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
window.googletag = window.googletag || {cmd: []};
googletag.cmd.push(function() {
googletag.defineSlot('/1234567/blog_category_targeted_ad', [300, 250], 'div-gpt-ad-123456789-0')
.setTargeting('category', %socast.blog.categories%) // Dynamically targets categories
.addService(googletag.pubads());
googletag.enableServices();
});
</script>
- Explanation:
- The
setTargeting
method passes the blog categories into ad targeting dynamically. - Update your ad setup code to include the correct targeting key (
category
) and the %socast.blog.categories%
macro.
Step 2: Add the Slot to the Ad Units Section
Next, add the slot you defined in the Ad Setup Code to the appropriate ad unit.
Open the Ad Units section:
- While on the Advertising page, locate the Ad Units section.
- Select the ad unit you want to modify (for example, “Blog Content Header Ad” or “Blog Content Footer Ad”).
- Click the pencil icon next to the ad unit to edit the ad code.
Insert the slot code:
Here is an example for the Ad Units section:
<div id="div-gpt-ad-123456789-0" style="width: 300px; height: 250px;">
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-123456789-0'); });
</script>
</div>
- Explanation:
- This code references the ad slot defined in the Ad Setup Code section.
- Modify this code as needed for your specific ad unit setup to ensure the correct ad displays.
Step 3: Set Up Category Targeting in Google Ad Manager
After configuring your ad units in SoCast Engage, set up Google Ad Manager to target ads based on blog categories.
Log in to Google Ad Manager:
- Access your Google Ad Manager account.
Create or edit a line item:
- Go to the campaign where you want to apply blog category targeting.
- Create a new line item or select an existing one to edit.
Set up custom targeting:
- In the targeting section of the line item, select Custom Targeting.
- Add a new key-value pair:
- Key:
category
- Value: Enter one or more categories to target (e.g.,
morning-show
, news
, entertainment
).
- You can input multiple values. Google Ad Manager will serve the ad if any value matches the categories passed from the blog post.
Assign the line item to the ad unit:
- Ensure the line item with custom targeting is assigned to the ad unit you set up in SoCast Engage.
- This ensures ads display only when the blog post belongs to the specified categories.
Additional Resources
- Google Ad Manager documentation:
- SoCast documentation:
Related Articles
What Ad Sizes Should I Use for Programmatic Display Campaigns in SoCast Reach?
What Ad Sizes Should I Use for Programmatic Display Campaigns in SoCast Reach? For Programmatic Display campaigns in SoCast Reach, we recommend providing at least the following three ad sizes: 300x250 px 320x50 px 728x90 px For broader coverage, you ...
How Do I Use the SoCast Reach Dashboard, Proposal Builder, and Reporting?
Overview Yes! Here is a useful video for you. Our Digital Sales Enablement Specialist will introduce you to the essentials of the SoCast Reach Dashboard and Omnichannel Proposal Builder. Familiarize yourself with the digital process: the SoCast Reach ...
What Is the SoCast Reach Digital Marketing Handbook?
What Is the SoCast Reach Digital Marketing Handbook? The SoCast Reach Digital Marketing Handbook is your comprehensive guide to the latest products, features, and processes for SoCast Reach. This resource is regularly updated to ensure you have ...
What is the "Facebook Special Ad Category" dropdown in the Proposal Builder?
You see this drop down in the SoCast Reach Platform when you input a Social Media campaign proposal: So, what is it? Essentially, if you have an advertiser that sells anything to do with Credit, Employment, Housing, or Social Issues, Elections or ...
How Do I Set Up a Cost-Per-Click (CPC) Campaign in SoCast Reach?
Set Up a CPC Campaign Follow these steps to create a cost-per-click (CPC) campaign in SoCast Reach: Log in to SoCast Reach. When building a proposal, select "Conversion" as the Marketing Objective. When building the line items, choose one of the ...