制作自适应展示广告
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
与其他广告一样,广告制作是通过使用 AdGroupAdService.MutateAdGroupAds
完成的。
然后,您可以将自适应展示广告添加到标准展示广告系列。
广告制作
如需制作自适应展示广告,您需要填充 ResponsiveDisplayAdInfo
的以下必填字段:
marketing_images
square_marketing_images
headlines
long_headline
descriptions
business name
如需了解所有其他字段和图片规范,请参阅参考页面和帮助中心文章。
高级功能
- 颜色控制
- 您可以指定
main_color
和 accent_color
,自定义自适应展示广告的颜色,以满足您的品牌推广需求。如果您希望系统在必要时以不同于您指定的颜色投放广告,请将 allow_flexible_color
设置为 true
。
- 展示广告格式设置
自适应展示广告可以采用原生广告格式和非原生广告格式投放。这两种格式的区别在于,原生格式的呈现由发布商控制,而非原生格式的呈现由 Google 模型根据广告客户的输入(例如来自 main_color
和 accent_color
的颜色信息)进行优化。
您可以设置 format_setting
字段,以选择广告应采用的格式。不过,当 allow_flexible_color
为 false
时,您无法将 format_setting
设置为 NATIVE
,因为对于原生格式,着色需要由发布商控制。
- 广告控制
自适应型展示广告可以通过其 control_spec
图标告知您是否已选择启用生成的视频或素材资源增强功能。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-27。
[null,null,["最后更新时间 (UTC):2025-08-27。"],[[["\u003cp\u003eResponsive display ads are created using \u003ccode\u003eAdGroupAdService.MutateAdGroupAds\u003c/code\u003e and can be added to standard Display campaigns.\u003c/p\u003e\n"],["\u003cp\u003eTo create a responsive display ad, you must populate required fields like marketing images, headlines, descriptions, and business name within the \u003ccode\u003eResponsiveDisplayAdInfo\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCustomize ad colors using \u003ccode\u003emain_color\u003c/code\u003e and \u003ccode\u003eaccent_color\u003c/code\u003e, with \u003ccode\u003eallow_flexible_color\u003c/code\u003e controlling color variations.\u003c/p\u003e\n"],["\u003cp\u003eControl ad format with \u003ccode\u003eformat_setting\u003c/code\u003e, choosing between native (publisher-controlled rendering) and non-native (Google-optimized rendering).\u003c/p\u003e\n"],["\u003cp\u003eResponsive display ads provide insights into generated videos and asset enhancements through their \u003ccode\u003econtrol_spec\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Creating Responsive Display Ads\n\nAs with other ads, ad creation is accomplished using\n[`AdGroupAdService.MutateAdGroupAds`](/google-ads/api/reference/rpc/v21/AdGroupAdService#mutateadgroupads).\nYou can then add the responsive display ad to [standard Display\ncampaigns](//support.google.com/google-ads/answer/2404190).\n\nAd creation\n-----------\n\nTo create a responsive display ad, you need to populate the following required\nfields of [`ResponsiveDisplayAdInfo`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo):\n\n- `marketing_images`\n- `square_marketing_images`\n- `headlines`\n- `long_headline`\n- `descriptions`\n- `business name`\n\nAll other fields and images' specifications can be found in the\n[reference page](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo) and the\n[Help Center article](//support.google.com/google-ads/answer/7005917).\n\nAdvanced features\n-----------------\n\nColor controls\n: You can customize colors for your responsive display ads to fit your branding\n needs by specifying\n [`main_color`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#main_color) and\n [`accent_color`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#accent_color). Set\n [`allow_flexible_color`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#allow_flexible_color)\n to `true` when you want to let ads serve with different colors than what\n you've specified, when necessary.\n\nDisplay ad format setting\n\n: Responsive display ads can run as both native and non-native formats. The\n difference between the two formats is that native format rendering is\n controlled by publishers, whereas non-native format rendering is optimized by\n Google models, with advertisers' inputs---for example, color information\n from `main_color` and `accent_color`.\n\n You can set the\n [`format_setting`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#format_setting)\n field to select the format that the ads should run as. However, you cannot\n set the `format_setting` to\n [`NATIVE`](/google-ads/api/reference/rpc/v21/DisplayAdFormatSettingEnum.DisplayAdFormatSetting#native)\n when\n [`allow_flexible_color`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#allow_flexible_color)\n is `false`, as the coloring needs to be controlled by publishers in the case\n of native formats.\n\nAd controls\n\n: Responsive display ads can tell you if they've been opted in to generated\n videos or asset enhancements through their\n [`control_spec`](/google-ads/api/reference/rpc/v21/ResponsiveDisplayAdInfo#control_spec)."]]