การทดสอบการเพิ่มประสิทธิภาพชิ้นงานใช้เพื่อทดสอบชุดชิ้นงานต่างๆ ภายในแคมเปญ Performance Max ซึ่งช่วยให้คุณเปรียบเทียบประสิทธิภาพของชิ้นงานชุดต่างๆ กับชุดฐานได้
ระบบรองรับเวิร์กโฟลว์นี้สำหรับ
ExperimentType.OPTIMIZE_ASSETS
ตั้งค่า
วิธีตั้งค่าการทดสอบการเพิ่มประสิทธิภาพชิ้นงาน
- สร้างชิ้นงานใหม่ การทดสอบที่มีกลุ่มควบคุมและกลุ่มทดสอบ
- ลิงก์ชิ้นงานใหม่กับกลุ่มชิ้นงานของกลุ่มทดสอบ ทั้งหมดนี้ทำได้ภายในคำขอ mutate เดียว
เนื่องจากเอนทิตีเหล่านี้มีความสัมพันธ์กัน คุณจึงต้องใช้ ชื่อทรัพยากรชั่วคราว เพื่ออ้างอิงถึง ทรัพยากรที่สร้างขึ้นในการดำเนินการก่อนหน้าภายในคำขอเดียวกัน
การดำเนินการในคำขอต้องเป็นไปตามลำดับต่อไปนี้
- สร้าง
Assetที่มีชื่อทรัพยากรชั่วคราว (เช่นcustomers/CUSTOMER_ID/assets/-1) ซึ่งจะเป็นชิ้นงานทดสอบ - สร้าง
Experimentที่มีชื่อทรัพยากรชั่วคราว (เช่นcustomers/CUSTOMER_ID/experiments/-2) - สร้างทรัพยากร
ExperimentArm2 รายการ ดังนี้- กลุ่มควบคุมที่ลิงก์กับ
AssetGroupฐาน - กลุ่มทดสอบที่ลิงก์กับ
AssetGroupฐานเดียวกัน ในกลุ่มนี้ ให้ตั้งค่าช่องasset_groupsโดยใช้ชื่อทรัพยากรชั่วคราวของชิ้นงานที่สร้างขึ้นในขั้นตอนที่ 1
- กลุ่มควบคุมที่ลิงก์กับ
- สร้าง
AssetGroupAssetที่ลิงก์ชิ้นงานจากขั้นตอนที่ 1 กับกลุ่มชิ้นงานที่ใช้ในกลุ่มทดสอบ
Java
This example is not yet available in Java; you can take a look at the other languages.
C#
This example is not yet available in C#; you can take a look at the other languages.
PHP
This example is not yet available in PHP; you can take a look at the other languages.
Python
# 1. Create Assets with temporary resource names. # We create a text asset and an image asset to showcase different types. asset_operation_1 = create_text_asset_operation( client, customer_id, ASSET_1_TEMP_ID, "Fly to Mars with Interplanetary Cruises!", ) asset_operation_2 = create_image_asset_operation( client, customer_id, ASSET_2_TEMP_ID, "https://gaagl.page.link/Eit5", "Mars Landscape View", ) # 2. Create an Experiment with a temporary resource name. experiment_operation = client.get_type("MutateOperation") experiment = experiment_operation.experiment_operation.create experiment.resource_name = googleads_service.experiment_path( customer_id, EXPERIMENT_TEMP_ID ) experiment.name = f"Interstellar Asset Experiment #{uuid4()}" experiment.type_ = client.enums.ExperimentTypeEnum.OPTIMIZE_ASSETS # Set the optimize assets experiment subtype to COMPARE_ASSETS. experiment.optimize_assets_experiment.optimize_assets_experiment_subtype = ( client.enums.OptimizeAssetsExperimentSubtypeEnum.COMPARE_ASSETS ) experiment.status = client.enums.ExperimentStatusEnum.SETUP # 3. Create two ExperimentArm resources. treatment_assets = [ (ASSET_1_TEMP_ID, client.enums.AssetFieldTypeEnum.HEADLINE), (ASSET_2_TEMP_ID, client.enums.AssetFieldTypeEnum.MARKETING_IMAGE), ] arm_operations = create_arms_operations( client, customer_id, EXPERIMENT_TEMP_ID, asset_group_id, treatment_assets, ) # 4. Create AssetGroupAssets linking the assets to the asset group. asset_group_asset_operation_1 = create_asset_group_asset_operation( client, customer_id, asset_group_id, ASSET_1_TEMP_ID, client.enums.AssetFieldTypeEnum.HEADLINE, ) asset_group_asset_operation_2 = create_asset_group_asset_operation( client, customer_id, asset_group_id, ASSET_2_TEMP_ID, client.enums.AssetFieldTypeEnum.MARKETING_IMAGE, ) # Send all operations in a single Mutate request. # The operations must be in this specific order. mutate_operations = [ asset_operation_1, asset_operation_2, experiment_operation, *arm_operations, asset_group_asset_operation_1, asset_group_asset_operation_2, ] response = googleads_service.mutate( customer_id=customer_id, mutate_operations=mutate_operations, )
Ruby
This example is not yet available in Ruby; you can take a look at the other languages.
Perl
This example is not yet available in Perl; you can take a look at the other languages.
curl
รายงานการทดสอบ
คุณสามารถ รายงาน การทดสอบการเพิ่มประสิทธิภาพชิ้นงานได้โดยใช้ทรัพยากร
experiment เพื่อเปรียบเทียบเมตริกระหว่างกลุ่มชิ้นงานควบคุมและกลุ่มชิ้นงานทดสอบ
จบการทดสอบหรือสิ้นสุดการทดสอบ
หลังจากประเมินผลลัพธ์แล้ว คุณสามารถจบการทดสอบหรือเปลี่ยนไปใช้การทดสอบได้โดยใช้ ExperimentService
- สิ้นสุด: หากไม่พอใจกับผลลัพธ์จากกลุ่มทดสอบ
ให้ใช้
EndExperiment. ซึ่งเป็นการดำเนินการแบบซิงโครนัส - เปลี่ยนไปใช้: หากต้องการให้กลุ่มชิ้นงานของกลุ่มทดสอบมีประสิทธิภาพดีขึ้น ให้ใช้
GraduateExperimentกระบวนการนี้จะหยุดแคมเปญพื้นฐานเดิมที่เชื่อมโยงกับกลุ่มควบคุมชั่วคราว และแปลงกลุ่มทดสอบเป็นแคมเปญใหม่ที่เป็นอิสระ ซึ่งเป็นการดำเนินการแบบซิงโครนัส