How to fix 'ReferenceError: ShoppingContent is not defined' error?

July 27, 2023

Reading time: 2 minutes

Resolving the ReferenceError

As Google Ads marketers, we are always looking for innovative tools that help us optimize our campaigns.

Flowboost Labelizer has proven to be a powerful script for analyzing product performance and creating campaign segmentation.

Yet, like any tool, it occasionally presents us with challenges.

Since the v3.1 update of the Flowboost Labelizer, the most common error we encounter is: "ReferenceError: ShoppingContent is not defined".

But, fear not! We have your back.

In this article, we will walk you through how to navigate this error and make your script run correctly.

Understanding the Issue

The error occurs when the Shopping Content API isn't enabled in your setup.

The Flowboost Labelizer relies heavily on this API to connect with the Merchant Center and retrieve crucial data.

It's the powerful bridge between the Labelizer and your shopping data, making it an essential component of your successful Google Ads campaigns.

A Simple Fix: Four Steps to Success

  1. Edit the Labelizer Script:
    Start by accessing your script. This is the playground where you control the logic and direction of your Flowboost Labelizer.
  2. Click on Advanced APIs:
    You'll find this option within the settings at the top of the script editor. Advanced APIs are like secret tools, offering more precise control over your script.
  3. Enable Shopping Content:
    You'll see a list of APIs. Ensure that the checkbox next to 'Shopping Content' is marked or turned on.
  4. Click Save:
    Once you've enabled Shopping Content, don't forget to save your settings. Only then will the changes be implemented.

Voila! Your script should now be running correctly, free of the vexing 'ReferenceError: ShoppingContent is not defined' error.

Why is this important?

At its core, the Flowboost Labelizer is more than just a script; it's a framework that empowers you to create meaningful segmentation of your Google Ads campaigns.

It allows you to categorize products based on their performance, using parameters such as ROAS/CPA targets, average conversion rate, impressions thresholds, and a date range.

The categories - Index, Over-index, Near-index, Under-index, and No-index - each represent a different performance level.

The categorization provides you with invaluable insights to strategize your campaigns and identify both the shining stars and the underperformers in your product portfolio.

Stay tuned to this blog series as we continue to navigate the world of Flowboost Labelizer, ensuring you're equipped with the knowledge to tackle any obstacle that comes your way.

Noteworthy resources:

Visit our the Flowboost Library.

View our Labelizer resources.