素材资源自动化设置

Google Ads 提供了多种可自动执行的素材资源优化,以提升广告的广告效力。

这些功能包括自动创建包含广告着陆页预览的图片素材资源,以及针对不同格式和不同时长的视频素材资源进行优化。

每项资产自动化设置都具有 asset_automation_type,用于定义其所代表的资产自动化类型;还具有 asset_automation_status,用于表示自动化是启用还是停用。

部分素材资源自动化功能是在广告系列一级配置的,而其他功能是在广告组广告一级设置的。

广告系列级素材资源自动化设置

这些设置用于为整个广告系列配置素材资源自动化功能。 并非所有这些元素都适用于每种广告系列类型:如需了解详情,请参阅参考文档

素材资源自动化类型 支持的广告系列类型 默认
FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION 效果最大化广告系列、搜索广告系列 针对效果最大化广告系列启用,针对搜索广告系列停用
GENERATE_ENHANCED_YOUTUBE_VIDEOS 效果最大化广告系列 已启用
GENERATE_IMAGE_ENHANCEMENT 效果最大化广告系列 针对效果最大化广告系列启用,针对搜索广告系列停用
GENERATE_IMAGE_EXTRACTION 效果最大化广告系列 账号级动态图片附加信息控制值。
TEXT_ASSET_AUTOMATION 效果最大化广告系列、搜索广告系列 针对效果最大化广告系列启用,针对搜索广告系列停用

以下代码段展示了如何将 PMax 广告系列的素材资源自动化设置设为 OPT_IN

Java

// Configures the optional opt-in/out status for asset automation settings.
.addAllAssetAutomationSettings(ImmutableList.of(
    AssetAutomationSetting.newBuilder()
        .setAssetAutomationType(AssetAutomationType.GENERATE_IMAGE_EXTRACTION)
        .setAssetAutomationStatus(AssetAutomationStatus.OPTED_IN).build(),
    AssetAutomationSetting.newBuilder()
        .setAssetAutomationType(
            AssetAutomationType.FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION)
        .setAssetAutomationStatus(AssetAutomationStatus.OPTED_IN).build(),
    AssetAutomationSetting.newBuilder()
        .setAssetAutomationType(AssetAutomationType.TEXT_ASSET_AUTOMATION)
        .setAssetAutomationStatus(AssetAutomationStatus.OPTED_IN).build(),
    AssetAutomationSetting.newBuilder()
        .setAssetAutomationType(AssetAutomationType.GENERATE_ENHANCED_YOUTUBE_VIDEOS)
        .setAssetAutomationStatus(AssetAutomationStatus.OPTED_IN).build(),
    AssetAutomationSetting.newBuilder()
        .setAssetAutomationType(AssetAutomationType.GENERATE_IMAGE_ENHANCEMENT)
        .setAssetAutomationStatus(AssetAutomationStatus.OPTED_IN).build()))
      

C#

campaign.AssetAutomationSettings.AddRange(new[]{
    new Campaign.Types.AssetAutomationSetting
    {
        AssetAutomationType = AssetAutomationType.GenerateImageExtraction,
        AssetAutomationStatus = AssetAutomationStatus.OptedIn
    },
    new Campaign.Types.AssetAutomationSetting
    {
        AssetAutomationType = AssetAutomationType.FinalUrlExpansionTextAssetAutomation,
        AssetAutomationStatus = AssetAutomationStatus.OptedIn
    },
    new Campaign.Types.AssetAutomationSetting
    {
        AssetAutomationType = AssetAutomationType.TextAssetAutomation,
        AssetAutomationStatus = AssetAutomationStatus.OptedIn
    },
    new Campaign.Types.AssetAutomationSetting
    {
        AssetAutomationType = AssetAutomationType.GenerateEnhancedYoutubeVideos,
        AssetAutomationStatus = AssetAutomationStatus.OptedIn
    },
    new Campaign.Types.AssetAutomationSetting
    {
        AssetAutomationType = AssetAutomationType.GenerateImageEnhancement,
        AssetAutomationStatus = AssetAutomationStatus.OptedIn
    },
});
      

PHP

This example is not yet available in PHP; you can take a look at the other languages.
    

Python

# Configures the optional opt-in/out status for asset automation settings.
for asset_automation_type_enum in [
    client.enums.AssetAutomationTypeEnum.GENERATE_IMAGE_EXTRACTION,
    client.enums.AssetAutomationTypeEnum.FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION,
    client.enums.AssetAutomationTypeEnum.TEXT_ASSET_AUTOMATION,
    client.enums.AssetAutomationTypeEnum.GENERATE_ENHANCED_YOUTUBE_VIDEOS,
    client.enums.AssetAutomationTypeEnum.GENERATE_IMAGE_ENHANCEMENT
]:
    asset_automattion_setting: Campaign.AssetAutomationSetting = client.get_type("Campaign").AssetAutomationSetting()
    asset_automattion_setting.asset_automation_type = asset_automation_type_enum
    asset_automattion_setting.asset_automation_status = client.enums.AssetAutomationStatusEnum.OPTED_IN
    campaign.asset_automation_settings.append(asset_automattion_setting)
      

Ruby

# Configures the optional opt-in/out status for asset automation settings.
c.asset_automation_settings << client.resource.asset_automation_setting do |aas|
  aas.asset_automation_type = :GENERATE_IMAGE_EXTRACTION
  aas.asset_automation_status = :OPTED_IN
end
c.asset_automation_settings << client.resource.asset_automation_setting do |aas|
  aas.asset_automation_type = :FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION
  aas.asset_automation_status = :OPTED_IN
end
c.asset_automation_settings << client.resource.asset_automation_setting do |aas|
  aas.asset_automation_type = :TEXT_ASSET_AUTOMATION
  aas.asset_automation_status = :OPTED_IN
end
c.asset_automation_settings << client.resource.asset_automation_setting do |aas|
  aas.asset_automation_type = :GENERATE_ENHANCED_YOUTUBE_VIDEOS
  aas.asset_automation_status = :OPTED_IN
end
c.asset_automation_settings << client.resource.asset_automation_setting do |aas|
  aas.asset_automation_type = :GENERATE_IMAGE_ENHANCEMENT
  aas.asset_automation_status = :OPTED_IN
end
      

Perl

# Configures the optional opt-in/out status for asset automation settings.
# When we create the campaign object, we set campaign->{assetAutomationSettings}
# equal to $asset_automation_settings.
my $asset_automation_settings = [];
my $asset_automation_types    = [
  GENERATE_IMAGE_EXTRACTION, FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION,
  TEXT_ASSET_AUTOMATION,     GENERATE_ENHANCED_YOUTUBE_VIDEOS,
  GENERATE_IMAGE_ENHANCEMENT
];
foreach my $asset_automation_type (@$asset_automation_types) {
  push @$asset_automation_settings,
    Google::Ads::GoogleAds::V22::Resources::AssetAutomationSetting->new({
      assetAutomationStatus => OPTED_IN,
      assetAutomationType   => $asset_automation_type
    });
}
      

广告级素材资源自动化设置

这些参数用于为单个广告配置素材资源自动化功能。 并非所有这些字段都适用于每种广告类型:如需了解详情,请参阅参考文档

素材资源自动化类型 支持的广告类型 默认
GENERATE_DESIGN_VERSIONS_FOR_IMAGES DemandGenMultiAssetAd 已启用
GENERATE_LANDING_PAGE_PREVIEW DemandgenVideoResponsiveAd 已停用
GENERATE_SHORTER_YOUTUBE_VIDEOS DemandGenVideoResponsiveAd 已启用
GENERATE_VERTICAL_YOUTUBE_VIDEOS DemandGenVideoResponsiveAd 已启用
GENERATE_VIDEOS_FROM_OTHER_ASSETS DemandGenMultiAssetAds 已启用