Thử nghiệm tối ưu hoá thành phần được dùng để thử nghiệm các tổ hợp thành phần khác nhau trong chiến dịch Tối đa hoá hiệu suất, cho phép bạn so sánh hiệu suất của các bộ thành phần khác nhau với một bộ cơ sở.
Quy trình làm việc này được hỗ trợ cho
ExperimentType.OPTIMIZE_ASSETS.
Thiết lập
Cách thiết lập thử nghiệm tối ưu hoá thành phần:
- Tạo một thành phần mới, một thử nghiệm có nhóm đối chứng và nhóm thử nghiệm.
- Liên kết thành phần mới với nhóm thành phần của nhóm thử nghiệm – tất cả trong một yêu cầu thay đổi duy nhất.
Vì các thực thể này phụ thuộc lẫn nhau, nên bạn phải sử dụng tên tài nguyên tạm thời để tham chiếu đến các tài nguyên được tạo trong các thao tác trước đó trong cùng một yêu cầu.
Các thao tác trong yêu cầu của bạn phải theo thứ tự sau:
- Tạo
Assetbằng tên tài nguyên tạm thời (chẳng hạn nhưcustomers/CUSTOMER_ID/assets/-1). Đây sẽ là thành phần thử nghiệm của bạn. - Tạo
Experimentbằng tên tài nguyên tạm thời (ví dụ:customers/CUSTOMER_ID/experiments/-2). Tạo
AssetGroupAssetliên kết thành phần từ bước 1 với nhóm thành phần được dùng trong các nhóm thử nghiệm.Tạo hai
ExperimentArmtài nguyên:- Một nhóm đối chứng được liên kết với
AssetGroupcơ sở. - Một nhóm thử nghiệm được liên kết với cùng
AssetGroupcơ sở. Trong nhóm này, hãy đặt trườngasset_groupsbằng tên tài nguyên tạm thời của thành phần được tạo ở bước 1.
- Một nhóm đối chứng được liên kết với
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!", ) 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 ) # 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, campaign_resource_name, 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
Báo cáo về thử nghiệm
Bạn có thể báo cáo về các thử nghiệm tối ưu hoá thành phần bằng tài nguyên
experiment để so sánh các chỉ số giữa nhóm thành phần đối chứng và nhóm thành phần thử nghiệm.
Kết thúc hoặc chuyển dần lên
Sau khi đánh giá kết quả, bạn có thể kết thúc hoặc hoàn tất thử nghiệm
bằng ExperimentService.
- Kết thúc: Nếu bạn không hài lòng với kết quả của nhóm can thiệp, hãy sử dụng
EndExperiment. Đây là một thao tác đồng bộ. - Chuyển dần lên: Nếu bạn thích hiệu quả của nhóm thành phần trong nhóm can thiệp, hãy sử dụng
GraduateExperiment. Trong quá trình này, chiến dịch căn bản ban đầu được liên kết với nhóm đối chứng sẽ bị tạm dừng và nhóm can thiệp sẽ được chuyển đổi thành một chiến dịch mới, độc lập. Đây là một thao tác đồng bộ.