素材資源自動化設定

Google Ads 提供多種素材資源最佳化功能,可自動執行,以提升廣告優異度。

包括根據廣告到達網頁預覽畫面自動建立圖片素材資源,以及針對不同格式和長度最佳化影片素材資源。

每項素材資源自動化設定都有 asset_automation_type (定義代表的素材資源自動化類型) 和 asset_automation_status (代表自動化功能是否啟用)。

部分素材資源自動化功能是在廣告活動層級設定,其他則是在廣告群組廣告層級設定。

廣告活動層級素材資源自動化設定

這些設定會為整個廣告活動設定素材資源自動化。並非所有選項都適用於所有廣告活動類型,詳情請參閱參考文件。

素材資源自動化類型 支援的廣告活動類型 預設
AUTOMATED_VIDEO_CRAWL 最高成效廣告活動

已停用 (自第 25 版起提供)

允許 Google 尋找並使用到達網頁、YouTube 頻道,以及到達網頁連結的自然社群活動中的影片。選擇加入後,即可設定 automated_video_crawl_setting 欄位。

FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION 最高成效、搜尋

最高成效廣告活動已啟用,搜尋廣告活動已停用。

注意:啟用最終到達網址擴展功能後,Google 會動態生成文字素材資源 (廣告標題和說明),與動態選取的到達網頁內容搭配。如果最終到達網址擴展功能處於啟用狀態,就無法停用這項功能。相較之下,標準 TEXT_ASSET_AUTOMATION (文字自訂) 則會自訂廣告活動中所有廣告的文案。

GENERATE_ENHANCED_YOUTUBE_VIDEOS 最高成效 已啟用
GENERATE_IMAGE_ENHANCEMENT 最高成效廣告活動 Enabled
GENERATE_IMAGE_EXTRACTION 最高成效 帳戶層級動態圖片額外資訊控制項值。

注意:這項帳戶層級設定只能在 Google Ads 網頁介面中設定。

TEXT_ASSET_AUTOMATION 最高成效、搜尋 最高成效廣告活動已啟用,搜尋廣告活動已停用

下列程式碼片段說明如何將最高成效廣告活動的素材資源自動化設定設為 OPTED_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)
      

小茹

# 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::V26::Resources::AssetAutomationSetting->new({
      assetAutomationStatus => OPTED_IN,
      assetAutomationType   => $asset_automation_type
    });
}
      

curl

廣告層級素材資源自動化設定

這些設定會為單一廣告設定素材資源自動化功能。 並非所有廣告類型都支援這些方法,詳情請參閱參考文件。

素材資源自動化類型 支援的廣告類型 預設
GENERATE_ANIMATED_IMAGES_FROM_OTHER_ASSETS DemandGenMultiAssetAd 已啟用 (從第 25 版開始)
GENERATE_DESIGN_VERSIONS_FOR_IMAGES DemandGenMultiAssetAd 已啟用
GENERATE_LANDING_PAGE_PREVIEW DemandGenVideoResponsiveAd 已停用
GENERATE_LANDING_PAGE_TEXT DemandGenVideoResponsiveAd 已啟用 (從第 24 版開始)
GENERATE_SHORTER_YOUTUBE_VIDEOS DemandGenVideoResponsiveAd 已啟用
GENERATE_VERTICAL_YOUTUBE_VIDEOS DemandGenVideoResponsiveAd 已啟用
GENERATE_VIDEOS_FROM_OTHER_ASSETS DemandGenMultiAssetAd 已啟用

文字規範

您可以透過文字規範,指定字詞排除條件和訊息限制,調整最高成效和 AI Max 廣告活動中自動生成的文字素材資源,確保品牌訊息符合需求。

如要使用文字規範,請填入 Campaign 資源的 text_guidelines 欄位:

  • 字詞排除條件:提供確切字詞或詞組清單,確保這些內容不會出現在生成的文字素材資源中。每個排除條件最多可使用 30 個半形字元,最多可加入 25 個排除條件。
  • 訊息限制:提供任意形式的指令 (每則最多 300 個字元),引導 AI 生成文字。最多可提供 40 項限制。限制類型僅支援 RESTRICTION_BASED_EXCLUSION。

自動影片檢索設定

自動影片檢索 (自第 25 版起提供,也稱為來源影片) 可讓 Google 從核准的來源中,找出並使用相關影片,用於最高成效廣告活動,有助於提升廣告成效,且不需手動上傳影片。

如要使用自動影片檢索功能,請按照下列步驟操作:

  1. 將 asset_automation_type 設為 AUTOMATED_VIDEO_CRAWL。
  2. 將 asset_automation_status 設為 OPTED_IN。
  3. 使用 automated_video_crawl_infos 中的一或多個 AutomatedVideoCrawlInfo 項目,設定 AssetAutomationSetting 的 automated_video_crawl_setting 欄位:

    • url:要納入檢索的網址 (例如到達網頁、社群媒體個人資料或 YouTube 頻道)。
    • source_platform:代表來源類型的 VideoCrawlSourcePlatform:
      • LANDING_PAGE:廣告主到達網頁上的影片。
      • SOCIAL:廣告主到達網頁上連結的自然社群影片網址 (Facebook、Instagram、X、LinkedIn、TikTok)。
      • YOUTUBE:廣告主 YouTube 頻道的影片。
    • enabled:布林值,指出這個來源網址是否已獲准並啟用檢索功能。