Can I Set Up an Ad Campaign to Display Only with a Specific Blog Category in SoCast Engage?

Can I Set Up an Ad Campaign to Display Only with a Specific Blog Category in SoCast Engage?

Can I Set Up an Ad Campaign to Display Only with a Specific Blog Category in SoCast Engage?

This guide explains how SoCast Engage users can target ads on their website based on the category of a blog post. For example, if a visitor reads a blog post from 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 post category, you first need to define your ad slots and set up the ads using the Ad Setup Code field on the Advertising page.

  1. Navigate to the Ad Setup Code Field:
    • Log in to your SoCast Engage account.
    • Go to Website > Website Settings > Advertising.
    • Scroll down to the Ad Setup Code section.
  2. Modify the Ad Setup Code:

    Below is an example of the Ad Setup Code 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 dynamically passes the blog categories into the ad targeting.
      • 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.

  1. Navigate to the Ad Units Module:
    • While still 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.
  2. Modify the Slot Code:

    Below is an example of the slot code 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 is displayed.

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.

  1. Log in to Google Ad Manager:
    • Access your Google Ad Manager account.
  2. Create or Edit a Line Item:
    • Navigate to the campaign where you want to apply blog category targeting.
    • Create a new line item or select an existing one to edit.
  3. 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.
  4. 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

    • Related Articles

    • How Do I Set Up the Default Blog List Ad Frequency in SoCast?

      How Do I Set Up the Default Blog List Ad Frequency in SoCast? Who Is This Article For? Users with Advertising Permissions Applicable to All Themes This article provides instructions for setting up the Default Blog List Ad Frequency in SoCast. Only ...
    • How Do I Upload, Schedule, and Report on Ads in AdNext Using the SoCast Engage Platform?

      How Do I Upload, Schedule, and Report on Ads in AdNext Using the SoCast Engage Platform? Who Is This Article For? All users who previously had an AdNext account through our AMP platform. This applies to all SoCast themes. Requirements You must have ...
    • How Do I Set Up Ad Sync in SoCast?

      This Article Is For: All users who have: Manage Activity Stream Promo Posts This is applicable to: Single Tenant App Only Requirements: Station/brand have already purchased the SoCast Mobile App package Cut ID provided by your station automation ...
    • How Do I Get Started With the SoCast Revive Ad Server for Website Advertising?

      How Do I Get Started With the SoCast Revive Ad Server for Website Advertising? Introduction Welcome! If you’re familiar with managing promotions and advertising on the radio, you’ll find the SoCast Revive Ad Server is your digital equivalent for ...
    • How Do I Create and Serve Ads in Google Ad Manager?

      How Do I Create and Serve Ads in Google Ad Manager? Who is this for? This guide is for anyone looking to set up and serve ads using Google Ad Manager. Please note that these instructions are specific to Google Ad Manager. For any issues with your Ad ...