Adult Attribute
The adult attribute is a boolean flag used to indicate whether a product contains adult-oriented content, such as nudity, sexually suggestive material, or items intended to enhance sexual activity.
Properly flagging these items is critical to ensuring legal compliance and adhering to platform-specific safety policies. While Google Merchant Products and Pinterest Products allow for these items to be uploaded (provided they are explicitly flagged so they can be restricted from certain audiences), other platforms strictly prohibit adult content and do not support this attribute.
Contents:
Quick Syntax Check
Paste your <g:adult> XML snippet or CSV value below to validate the format:
Test your <g:adult>
Live CheckChecking one by one? Validate your entire feed instantly.
Upload & Analyze File →
Platform Requirements Comparison
The adult attribute is handled differently depending on the platform's content policies.
| Requirement | Google Merchant Products | Facebook Products | Pinterest Products | Tiktok Products | Reddit Products |
|---|---|---|---|---|---|
| XML Tag | <g:adult> |
Not supported. | <adult> |
Not supported. | Not supported. |
| Format | Boolean | - | Boolean | - | - |
| Supported Values | yes, no, true, false |
- | true, false |
- | - |
| Default Value | no |
- | false |
- | - |
General Formatting Requirements
To ensure your feed processes successfully on platforms that support the adult flag, follow these strict rules:
- Explicit Boolean Values: The value must be a valid boolean. For maximum compatibility across Google Merchant Products and Pinterest Products, it is highly recommended to use
trueorfalse. - Not for Demographics: Never use the
adultattribute to define an age demographic (e.g., adult-sized clothing). You must use theage_groupattribute for sizing and target audiences. - Not for Alcohol: Do not use the
adultattribute to restrict alcohol sales. Instead, properly categorize the item using thegoogle_product_categoryattribute, which triggers age-gating mechanisms automatically. - Bundles: If you are submitting a merchant-defined bundle and any single item in that bundle contains adult content, the entire bundle must be flagged with
trueoryes. - Landing Page Consistency: If you are advertising a mix of adult and non-adult products, ensure that non-adult product landing pages are completely free of adult-oriented content.
Formatting Examples
XML Feed Format
Correct Formatting: Uses a supported boolean value to clearly flag the item.
<item>
<g:id>1001</g:id>
<g:title>Adult Novelty Item</g:title>
<g:adult>true</g:adult>
<g:price>29.99 USD</g:price>
</item>
Incorrect Formatting: Using descriptive text instead of a boolean value will cause the feed to fail validation. Do not use this attribute for standard clothing items.
<!-- Incorrect: Uses descriptive text instead of a boolean -->
<item>
<g:id>1002</g:id>
<g:title>Men's Running Shoes</g:title>
<g:adult>Adults Only</g:adult>
<g:price>49.99 USD</g:price>
</item>
CSV / TSV Feed Format
When working with CSV files, keep the data clean and strictly stick to boolean values.
Correct Formatting:
id,title,adult,price
1001,Adult Novelty Item,true,29.99 USD
Incorrect Formatting: Putting demographic descriptions into the adult column will break the feed.
id,title,adult,price
1002,Men's Running Shoes,Adult Size,49.99 USD