การตั้งค่าการทำงานอัตโนมัติของชิ้นงาน

Google Ads มีการเพิ่มประสิทธิภาพชิ้นงานหลายอย่างที่สามารถดำเนินการได้โดยอัตโนมัติ เพื่อปรับปรุงคุณภาพของโฆษณา

ตั้งแต่การสร้างชิ้นงานรูปภาพโดยอัตโนมัติพร้อมตัวอย่างหน้า Landing Page ของโฆษณา ไปจนถึงการเพิ่มประสิทธิภาพชิ้นงานวิดีโอสำหรับรูปแบบและความยาวที่แตกต่างกัน

การตั้งค่าการทำงานอัตโนมัติของชิ้นงานแต่ละรายการจะมี asset_automation_type ซึ่งกำหนดประเภทการทำงานอัตโนมัติของชิ้นงานที่แสดง และ asset_automation_status ซึ่งแสดงว่าเปิดหรือปิดใช้การทำงานอัตโนมัติ

ระบบจะกําหนดค่าการทำงานอัตโนมัติของชิ้นงานบางอย่างที่ระดับแคมเปญ ส่วนชิ้นงานอื่นๆ จะกำหนดค่าที่ระดับโฆษณากลุ่มโฆษณา

การตั้งค่าการทำงานอัตโนมัติของชิ้นงานระดับแคมเปญ

ซึ่งจะกำหนดค่าการทำงานอัตโนมัติของชิ้นงานสำหรับทั้งแคมเปญ แต่ไม่ใช่ทุกตัวเลือกที่จะใช้ได้กับแคมเปญทุกประเภท โปรดดูรายละเอียดเพิ่มเติมในเอกสารอ้างอิง

ประเภทการทำงานอัตโนมัติของชิ้นงาน ประเภทแคมเปญที่รองรับ ค่าเริ่มต้น
FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION Performance Max, Search เปิดใช้สําหรับ Performance Max ปิดใช้สําหรับ Search
GENERATE_ENHANCED_YOUTUBE_VIDEOS Performance Max เปิดใช้
GENERATE_IMAGE_ENHANCEMENT Performance Max เปิดใช้สําหรับ Performance Max ปิดใช้สําหรับ Search
GENERATE_IMAGE_EXTRACTION Performance Max ค่าการควบคุมส่วนขยายรูปภาพแบบไดนามิกระดับบัญชี
TEXT_ASSET_AUTOMATION Performance Max, Search เปิดใช้สําหรับ Performance Max ปิดใช้สําหรับ Search

ข้อมูลโค้ดต่อไปนี้แสดงวิธีตั้งค่าการตั้งค่าการทำงานอัตโนมัติของชิ้นงานเป็น OPT_IN สำหรับ แคมเปญ PMax

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 เปิดใช้