Template code editor
The template code editor is designed to help you verify and refine your template for optimal use when generating new experiences with GenStudio for Performance Marketing. The editor supports the Handlebars syntax, which uses placeholders within the template to indicate where GenStudio for Performance Marketing should generate content for you.
Check detected fields
The Check detected fields pane shows a list of fields that GenStudio for Performance Marketing recognizes in your template. Review the list, and you can scroll through the HTML code to look at the formation of your template.
If you notice that a field is missing from the list, search your template code and find the location for the missing field. Insert the correct placeholder using the Handlebars syntax and a recognized field name. Use the Find and Replace form, which appears at the bottom of the code editor, to search for specific strings in the code. (Windows CTRL
+F
or macOS CMD
+F
)
Adjust roles for a variable
You can select and change field roles for text-based field roles (for example, headline
, sub_headline
, body
, cta
, on_image_text
, custom
) with a dropdown during the template structure check. Field role selections persist during template edits so customizations aren’t lost, improving workflow efficiency.
To assign a role to a variable:
- Find the variable in the Check detected fields pane. These variables are automatically discovered.
- Review the roles assigned to each variable. Roles are automatically assigned but can be adjusted using the dropdown for any variable in the template.
- Adjust a role by selecting a new role from the dropdown.
- Click Next to continue.
Make a correction
If there are errors in your template, you may see a Template is invalid
message that includes a brief explanation of the issue. In the following example, the message indicates that the _image
field doesn’t conform to the field naming convention established in the multi-pod template. The message further advises that you need to update the field name with the correct prefix. Find the _image
field in the template code editor, and update the name as advised.
The Check detected fields pane updates to reflect the changes that you made. Once you’re satisfied that the fields are correct and complete, click Next to continue uploading your template.
Common template issues and solutions
headline
, body
, image
cta
). Assign the image
field to a valid group in your template.image
field is required for certain template types, such as a Meta, display, or banner ad. Add the required image
field to your template.subject
or introductory_text
, are reserved. Rename fields that use reserved or prohibited names.