creative_wrapper_skill
Inject scripts around all creatives served on an ad unit or placement to add measurement, viewability, or brand safety layers.
Instructions
Manage GAM CreativeWrapper entities — wrappers that inject scripts around all creatives served on an ad unit or placement.
MODE: mixed (read + write) AUTH: OAuth 2.0 required CREDITS: Reads = 0. Writes = 0.5 credits. OUTPUT: Returns CreativeWrapper objects with id, name, adUnitId or placementId, headerHtmlSnippet, footerHtmlSnippet, and ordering. SIDE EFFECTS: Active CreativeWrappers apply globally to every creative served on the targeted ad unit/placement. Misconfigured wrappers can break ad serving. Test in a staging network first. WHEN TO USE: Use for injecting site-wide measurement scripts, viewability tags, or brand safety layers. Use presets for reusable wrapper templates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Sub-operation to perform: • list: List all CreativeWrappers on the network. Read-only. • get: Get a specific CreativeWrapper by ID. Read-only. • create: Create a new CreativeWrapper. Write. Requires adUnitId or placementId, and headerHtmlSnippet or footerHtmlSnippet. • update: Update an existing wrapper's snippet or targeting. Write. • activate: Activate a paused wrapper. Write. • deactivate: Deactivate an active wrapper without deleting it. Write. Preferred over archive for temporary suspension. • archive: Archive a wrapper permanently. Destructive write. • set_data_declaration: Set the data usage declaration for a wrapper (required for GDPR/CCPA compliance). Write. • list_rich_media_ads_companies: List GAM-certified rich media companies available for wrapper configuration. Read-only. • find_third_party_company: Search for a third-party company by name to use in a wrapper. Read-only. • create_preset: Save a wrapper configuration as a reusable preset. Write. • list_wrapper_presets: List all saved wrapper presets. Read-only. • provision: Apply a preset to a set of ad units or placements. Bulk write. | |
| network_code | No | GAM network code (e.g. 12345678). Required for all network-scoped operations. Obtain via select_gam_network or list_accessible_networks. |