/errors/campaign_error.proto

  • Brand targeting overrides are only supported for Performance Max campaigns with a product feed.

  • Several error codes related to Brand Guidelines have been added, covering requirements for enabling them, setting colors and fonts, supported campaign types, and customer eligibility.

  • Brand Guidelines colors must be in a valid hex format, and both main and accent colors are required when any color field is set.

  • Only supported Google Fonts can be used for Brand Guidelines font family.

  • Brand Guidelines are primarily supported for Performance Max campaigns, with an exception for those with travel goals, and require customer allowlisting.

--- v18/errors/campaign_error.proto 2025-08-05 14:36:12.000000000 +0000
+++ v19/errors/campaign_error.proto 2025-08-05 14:36:15.000000000 +0000
@@ -337,5 +337,38 @@
     // only when there are assets that are linked to the campaign's asset
     // groups.
     REQUIRED_LOGO_ASSET_NOT_LINKED = 96;
+
+    // This campaign does not support brand targeting overrides. Brand targeting
+    // overrides are only supported for Performance Max campaigns that have a
+    // product feed.
+    BRAND_TARGETING_OVERRIDES_NOT_SUPPORTED = 97;
+
+    // Brand Guideline fields can only be set for campaigns that have Brand
+    // Guidelines enabled.
+    BRAND_GUIDELINES_NOT_ENABLED_FOR_CAMPAIGN = 98;
+
+    // When a Brand Guidelines color field is set, both main color and accent
+    // color are required.
+    BRAND_GUIDELINES_MAIN_AND_ACCENT_COLORS_REQUIRED = 99;
+
+    // Brand Guidelines colors must be hex colors matching the regular
+    // expression '#[0-9a-fA-F]{6}', for example '#abc123'
+    BRAND_GUIDELINES_COLOR_INVALID_FORMAT = 100;
+
+    // Brand Guidelines font family must be one of the supported Google Fonts.
+    // See Campaign.brand_guidelines.predefined_font_family for the list of
+    // supported fonts.
+    BRAND_GUIDELINES_UNSUPPORTED_FONT_FAMILY = 101;
+
+    // Brand Guidelines cannot be set for this channel type. Brand Guidelines
+    // supports Performance Max campaigns.
+    BRAND_GUIDELINES_UNSUPPORTED_CHANNEL = 102;
+
+    // Brand Guidelines cannot be enabled for Performance Max for travel goals
+    // campaigns.
+    CANNOT_ENABLE_BRAND_GUIDELINES_FOR_TRAVEL_GOALS = 103;
+
+    // This customer is not allowlisted for enabling Brand Guidelines.
+    CUSTOMER_NOT_ALLOWLISTED_FOR_BRAND_GUIDELINES = 104;
   }
 }