Ad units have both a name and code.
- The name is what's displayed in Ad Manager in the targeting picker and other places. The name should be descriptive so that people using Ad Manager can understand what the ad unit represents.
-
The code is a string of characters that is used in ad tags for an ad unit. Codes can be up to 100 characters and are not case-sensitive. Only letters, numbers, underscores, hyphens, periods, asterisks, exclamations, left angle brackets, colons, forward slashes, and parentheses are allowed.
Code strings must be unique at the same level but may be reused at different ad unit levels if they are not Ad Exchange ad units. Ad Exchange ad unit code cannot be the same anywhere in the hierarchy.
In MCM tags, the child and parent network codes can be separated by a comma.
You have a news website with different sections, and each section has a homepage.
- You can define an ad unit code as "homepage" for the child of "mysite_main" ad unit.
- You can then reuse the string "homepage" for the ad unit code under "mysite_travel" ad unit.
When possible, work with your ad operations team to determine the best way to define code for ad units.