This Product Guide explains in 2 minutes:
How to create a custom dimension with a simple "contains" logic
How to create a custom dimension with a more advanced "split by" logic
As an example, we create the custom dimensions "Product Category" and "Manufacturer" based on Campaign name.