Öğe optimizasyonu denemeleri

Öğe optimizasyonu denemeleri, Maksimum Performans kampanyalarındaki farklı öğe kombinasyonlarını test eder. Böylece, farklı öğe gruplarının performansını temel bir gruba göre karşılaştırabilirsiniz.

Bu iş akışı ExperimentType.OPTIMIZE_ASSETS için desteklenir.

Kurulum

Öğe optimizasyonu denemesi oluşturmak için:

  • Yeni bir öğe ve kontrol ile deney kolları içeren bir deneme oluşturun.
  • Tek bir değişiklik isteğiyle yeni öğeyi deney kolunun öğe grubuna bağlayın.

Ön koşullar

Öğe optimizasyonu denemesi oluşturmadan önce mevcut bir Maksimum Performans kampanyanız ve her iki deneme kolu için referans görevi gören temel bir AssetGroup kaynağınız (customers/{customer_id}/assetGroups/{asset_group_id}) olmalıdır. ADD_ASSETS_TO_ASSETLESS_RETAIL için, denemeyi oluşturmadan önce temel AssetGroup öğesinin en az bir final_urls grubuna sahip olduğundan emin olun (etkin bir öğe denemesi, temel AssetGroup öğesinde yapılan düzenlemeleri dondurur ve özel öğeleri bağlamak için final_urls gerekir).

İstek işlem sırası

Bu varlıklar birbirine bağlı olduğundan, aynı istekte daha önceki işlemlerde oluşturulan kaynaklara başvurmak için geçici kaynak adları kullanmanız gerekir.

İsteğinizdeki işlemler aşağıdaki sırayla yapılmalıdır:

  1. Geçici kaynak adlarıyla (ör. customers/CUSTOMER_ID/assets/-1) bir veya daha fazla Asset kaynağı oluşturun. Test öğelerinizin yanı sıra, mevcut marka bağlantıları olmayan öğesiz bir perakende kampanyasında marka kuralları etkinleştirilmişse yeni BUSINESS_NAME ve LOGO marka varlıklarını da ekleyin (bu durumda, 1. adımdan hemen sonra CampaignAsset işlemleriyle bu marka varlıklarını temel Campaign kaynağına bağlayın).
  2. Geçici bir kaynak adı (ör. customers/CUSTOMER_ID/experiments/-2) içeren bir Experiment oluşturun, type değerini OPTIMIZE_ASSETS, status değerini ENABLED ve optimize_assets_experiment.optimize_assets_experiment_subtype değerini seçilen OptimizeAssetsExperimentSubtype (ör. COMPARE_ASSETS) olarak ayarlayın.
  3. 2. adımdaki geçici deneme kaynağı adına bağlı iki ExperimentArm kaynağı oluşturun. Her kolda campaigns (Maksimum Performans kampanyası kaynak adı olarak), traffic_split (toplamı 100 olacak şekilde) ve asset_groups (ExperimentArm.AssetGroupInfo) değerlerini ayarlayın:

    • asset_groups öğesinin, asset_group değeri temel AssetGroup (customers/CUSTOMER_ID/assetGroups/ASSET_GROUP_ID) öğesinin kaynak adına ayarlanmış bir AssetGroupInfo içerdiği kontrol kolu (control = true). Yeni eklenen öğeleri temel öğe grubuna göre test ederken (veya ADD_ASSETS_TO_ASSETLESS_RETAIL ya da ADD_VIDEO_ASSETS_TO_VIDEOLESS alt türlerini kullanırken) kontrol kolunda asset_group_assets değerini ayarlamayın. COMPARE_ASSETS altındaki iki farklı öğe kümesini karşılaştırırken kontrol kolunun AssetGroupAssetInfo girişlerini (asset ve field_type) listeleyin.
    • asset_groups öğesinin, asset_group değeri aynı temel AssetGroup kaynak adına (customers/CUSTOMER_ID/assetGroups/ASSET_GROUP_ID) ayarlanmış bir AssetGroupInfo ve 1. adımdaki yeni oluşturulan test Asset (customers/CUSTOMER_ID/assets/-1) dahil olmak üzere deney kolunun Asset kaynaklarını ve field_type öğelerini listeleyen asset_group_assets (repeated AssetGroupAssetInfo) içerdiği bir deney kolu (control = false). ADD_ASSETS_TO_ASSETLESS_RETAIL kullanılırken deney kolundaki asset_group_assets, tüm minimum öğe grubu koşullarını karşılamalıdır (yalnızca YOUTUBE_VIDEO gibi isteğe bağlı öğeleri listelemeyin). Ayrıca, temel kampanyada marka kuralları etkinleştirildiğinde kampanya düzeyinde gerekli BUSINESS_NAME ve LOGO CampaignAsset bağlantıları mevcut olmalı veya aynı istekte oluşturulmalıdır.
  4. 1. adımdaki test öğelerini (customers/CUSTOMER_ID/assets/-1) deneme kollarında kullanılan temel AssetGroup öğesine bağlayan ardışık AssetGroupAsset kaynakları oluşturun.

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

# 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.operation.mutate do |m|
  m.experiment_operation = client.operation.create_resource.experiment do |e|
    e.resource_name = client.path.experiment(customer_id, experiment_temp_id)
    e.name = "Interstellar Asset Experiment #{(Time.new.to_f * 1000).to_i}"
    e.type = :OPTIMIZE_ASSETS
    # Set the optimize assets experiment subtype to COMPARE_ASSETS.
    e.optimize_assets_experiment = client.resource.optimize_assets_experiment_info do |oae|
      oae.optimize_assets_experiment_subtype = :COMPARE_ASSETS
    end
  end
end

# 3. Create two ExperimentArm resources.
treatment_assets = [
  [asset_1_temp_id, :HEADLINE],
  [asset_2_temp_id, :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,
  :HEADLINE,
)
asset_group_asset_operation_2 = create_asset_group_asset_operation(
  client,
  customer_id,
  asset_group_id,
  asset_2_temp_id,
  :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 = client.service.google_ads.mutate(
  customer_id: customer_id,
  mutate_operations: mutate_operations,
)
      

Perl

This example is not yet available in Perl; you can take a look at the other languages.
    

curl

Deneme hakkında rapor oluşturma

experiment kaynağını sorgulamak ve kontrol ile deney öğe grupları arasındaki metrikleri karşılaştırmak için Raporlama kılavuzuna bakın.

Mezun olma veya sonlandırma

Sonuçları değerlendirdikten sonra ExperimentService simgesini kullanarak denemeyi sonlandırabilir veya mezun edebilirsiniz.

  • Sonlandır: Deney kolundan elde edilen sonuçlardan memnun değilseniz EndExperiment seçeneğini kullanın. Bu, eşzamanlı bir işlemdir.
  • Mezun etme: Deney kolunun öğe grubunun performansını tercih ediyorsanız GraduateExperiment seçeneğini kullanın. Bu sürecin bir parçası olarak, kontrol koluyla ilişkili orijinal ana kampanya duraklatılır ve deney kolu yeni, bağımsız bir kampanyaya dönüştürülür. Bu, eşzamanlı bir işlemdir.