Google Ads 提供多種素材資源最佳化功能,可自動執行,以提升廣告優異度。
包括自動建立圖片素材資源並預覽廣告到達網頁,以及針對不同格式和長度最佳化影片素材資源。
每個素材資源自動化設定都有 asset_automation_type,可定義代表的素材資源自動化類型,以及 asset_automation_status,可代表自動化功能是否已啟用或停用。
部分素材資源自動化功能是在廣告活動層級設定,其他則是在廣告群組廣告層級設定。
廣告活動層級素材資源自動化設定
這些設定會為整個廣告活動設定素材資源自動化。 並非所有廣告活動類型都適用這些欄位,詳情請參閱參考文件。
| 素材資源自動化類型 | 支援的廣告活動類型 | 預設 |
|---|---|---|
| AUTOMATED_VIDEO_CRAWL | 最高成效 |
已停用 (自第 25 版起提供) 允許 Google 尋找並使用到達網頁、YouTube 頻道,以及到達網頁上連結的自然社群管道影片。選擇加入後,您即可設定 |
| FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION | 最高成效、搜尋 |
最高成效廣告活動啟用,搜尋廣告活動停用。 注意:啟用最終到達網址擴展功能後,Google 會動態產生文字素材資源 (廣告標題和說明),以符合動態選取的到達網頁內容。如果最終到達網址擴展功能處於啟用狀態,就無法停用這項功能。請注意,這與標準的TEXT_ASSET_AUTOMATION(文字自訂) 不同,後者會自訂廣告活動中所有廣告的文案。 |
| GENERATE_ENHANCED_YOUTUBE_VIDEOS | 最高成效 | 已啟用 |
| GENERATE_IMAGE_ENHANCEMENT | 最高成效 | 已啟用 |
| 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::V25::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 | 已啟用 |
文字規範
文字規範 (自第 23 版起提供) 可讓您指定字詞排除條件和訊息限制,在最高成效和 AI Max 廣告活動中,調整自動產生的文字素材資源,進而改善品牌訊息。
如要使用文字規範,請填入 Campaign 資源的 text_guidelines 欄位:
- 字詞排除條件:提供確切字詞或詞組清單,確保這些內容不會出現在生成的文字素材資源中。每個排除條件最多可使用 30 個半形字元,最多可加入 25 項排除條件。
- 訊息限制:提供任意形式的指令 (每項指令最多 300 個半形字元),引導 AI 生成文字。最多可提供 40 項限制。限制類型僅支援
RESTRICTION_BASED_EXCLUSION。
自動檢索影片設定
自動影片檢索功能 (第 25 版起提供,又稱來源影片) 可讓 Google 從核准的來源找出相關影片,並用於最高成效廣告活動,有助於提升廣告成效,不必手動上傳影片。
如要使用自動影片檢索功能,請按照下列步驟操作:
- 將
asset_automation_type設為AUTOMATED_VIDEO_CRAWL。 - 將
asset_automation_status設為OPTED_IN。 在
automated_video_crawl_infos中,為AssetAutomationSetting的automated_video_crawl_setting欄位設定一或多個AutomatedVideoCrawlInfo項目:url:供系統檢索的網址 (例如到達網頁、社群媒體檔案或 YouTube 頻道)。source_platform:代表來源類型的VideoCrawlSourcePlatform:LANDING_PAGE:廣告主到達網頁上的影片。SOCIAL:廣告主到達網頁上連結的自然社群影片網址 (Facebook、Instagram、X、LinkedIn、TikTok)。YOUTUBE:廣告主 YouTube 頻道的影片。
enabled:布林值,指出這個來源網址是否已獲准並啟用檢索。