애셋 최적화 실험

애셋 최적화 실험은 실적 최대화 캠페인 내에서 다양한 애셋 조합을 테스트하는 데 사용되며, 이를 통해 다양한 애셋 조합의 실적을 기본 애셋 조합과 비교할 수 있습니다.

이 워크플로는 ExperimentType.OPTIMIZE_ASSETS에서 지원됩니다.

설정

애셋 최적화 실험을 설정하려면 다음 단계를 따르세요.

  • 대조 부문과 실험 부문이 있는 새 애셋, 실험을 만듭니다.
  • 단일 변경 요청 내에서 새 애셋을 실험 부문의 애셋 그룹에 연결합니다.

이러한 항목은 상호 의존적이므로 동일한 요청 내에서 이전 작업에서 만든 리소스를 참조하려면 임시 리소스 이름을 사용해야 합니다.

요청의 작업은 다음 순서로 실행되어야 합니다.

  1. 임시 리소스 이름 (예: customers/CUSTOMER_ID/assets/-1)으로 Asset을 만듭니다. 이는 테스트 애셋이 됩니다.
  2. 임시 리소스 이름 (예: customers/CUSTOMER_ID/experiments/-2)으로 Experiment를 만듭니다.
  3. 두 개의 ExperimentArm 리소스를 만듭니다:
    • 기본 AssetGroup에 연결된 대조 부문
    • 동일한 기본 AssetGroup에 연결된 실험 부문 이 부문에서 1단계에서 만든 애셋의 임시 리소스 이름을 사용하여 asset_groups 필드를 설정합니다.
  4. 1단계의 애셋을 실험 부문에서 사용되는 애셋 그룹에 연결하는 AssetGroupAsset을 만듭니다.

자바

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를 사용합니다. 이 프로세스의 일부로 대조 부문과 연결된 원래 기본 캠페인이 일시중지되고 실험 부문이 새로운 독립 캠페인으로 전환됩니다. 이는 동기식 작업입니다.