type CustomCreativeAsset (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
A CustomCreativeAsset
is an association between a CustomCreative and an asset.
Any assets that are associated with a creative can be inserted into its HTML snippet.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
macroName
|
xsd:string
The name by which the associated asset will be referenced. For example, if the value is "foo",
then the asset can be inserted into an HTML snippet using the macro: "%%FILE:foo%%".
|
asset
|
CreativeAsset
The asset. This attribute is required. To view the asset, use CreativeAsset.assetUrl.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eA \u003ccode\u003eCustomCreativeAsset\u003c/code\u003e links a \u003ccode\u003eCustomCreative\u003c/code\u003e and an asset, enabling asset insertion into HTML snippets.\u003c/p\u003e\n"],["\u003cp\u003eAssets associated with a creative can be accessed within its HTML snippet using macros referencing the asset's name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomCreativeAsset\u003c/code\u003e object includes a \u003ccode\u003emacroName\u003c/code\u003e to reference the asset and an \u003ccode\u003easset\u003c/code\u003e object containing the asset itself.\u003c/p\u003e\n"]]],["`CustomCreativeAsset` links a `CustomCreative` to an asset, enabling asset insertion into HTML snippets. Each asset is referenced by a `macroName` (e.g., \"foo\") and can be inserted using a macro format like \"%%FILE:foo%%\". The `asset` field, which is a `CreativeAsset`, is required and contains the asset details. The namespace for these components is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type CustomCreativeAsset (v202411)\n\n**Service** \n**CreativeService** **Dependencies** \n[CustomCreative](/ad-manager/api/reference/v202411/CreativeService.CustomCreative) \n▼\n**CustomCreativeAsset**\n\nA `CustomCreativeAsset` is an association between a [CustomCreative](/ad-manager/api/reference/v202411/CreativeService.CustomCreative) and an asset.\nAny assets that are associated with a creative can be inserted into its HTML snippet.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `macroName` | ` `xsd:`string` The name by which the associated asset will be referenced. For example, if the value is \"foo\", then the asset can be inserted into an HTML snippet using the macro: \"%%FILE:foo%%\". |\n| ### `asset` | ` `[CreativeAsset](/ad-manager/api/reference/v202411/CreativeService.CreativeAsset)` ` The asset. This attribute is required. To view the asset, use [CreativeAsset.assetUrl](/ad-manager/api/reference/v202411/CreativeService.CreativeAsset#assetUrl). |"]]