Öğ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:
- Geçici kaynak adlarıyla (ör.
customers/CUSTOMER_ID/assets/-1) bir veya daha fazlaAssetkaynağı oluşturun. Test öğelerinizin yanı sıra, mevcut marka bağlantıları olmayan öğesiz bir perakende kampanyasında marka kuralları etkinleştirilmişse yeniBUSINESS_NAMEveLOGOmarka varlıklarını da ekleyin (bu durumda, 1. adımdan hemen sonraCampaignAssetişlemleriyle bu marka varlıklarını temelCampaignkaynağına bağlayın). - Geçici bir kaynak adı (ör.
customers/CUSTOMER_ID/experiments/-2) içeren birExperimentoluşturun,typedeğeriniOPTIMIZE_ASSETS,statusdeğeriniENABLEDveoptimize_assets_experiment.optimize_assets_experiment_subtypedeğerini seçilenOptimizeAssetsExperimentSubtype(ör.COMPARE_ASSETS) olarak ayarlayın. 2. adımdaki geçici deneme kaynağı adına bağlı iki
ExperimentArmkaynağı oluşturun. Her koldacampaigns(Maksimum Performans kampanyası kaynak adı olarak),traffic_split(toplamı100olacak şekilde) veasset_groups(ExperimentArm.AssetGroupInfo) değerlerini ayarlayın:asset_groupsöğesinin,asset_groupdeğeri temelAssetGroup(customers/CUSTOMER_ID/assetGroups/ASSET_GROUP_ID) öğesinin kaynak adına ayarlanmış birAssetGroupInfoiçerdiği kontrol kolu (control = true). Yeni eklenen öğeleri temel öğe grubuna göre test ederken (veyaADD_ASSETS_TO_ASSETLESS_RETAILya daADD_VIDEO_ASSETS_TO_VIDEOLESSalt türlerini kullanırken) kontrol kolundaasset_group_assetsdeğerini ayarlamayın.COMPARE_ASSETSaltındaki iki farklı öğe kümesini karşılaştırırken kontrol kolununAssetGroupAssetInfogirişlerini (assetvefield_type) listeleyin.asset_groupsöğesinin,asset_groupdeğeri aynı temelAssetGroupkaynak adına (customers/CUSTOMER_ID/assetGroups/ASSET_GROUP_ID) ayarlanmış birAssetGroupInfove 1. adımdaki yeni oluşturulan testAsset(customers/CUSTOMER_ID/assets/-1) dahil olmak üzere deney kolununAssetkaynaklarını vefield_typeöğelerini listeleyenasset_group_assets(repeatedAssetGroupAssetInfo) içerdiği bir deney kolu (control = false).ADD_ASSETS_TO_ASSETLESS_RETAILkullanılırken deney kolundakiasset_group_assets, tüm minimum öğe grubu koşullarını karşılamalıdır (yalnızcaYOUTUBE_VIDEOgibi isteğe bağlı öğeleri listelemeyin). Ayrıca, temel kampanyada marka kuralları etkinleştirildiğinde kampanya düzeyinde gerekliBUSINESS_NAMEveLOGOCampaignAssetbağlantıları mevcut olmalı veya aynı istekte oluşturulmalıdır.
1. adımdaki test öğelerini (
customers/CUSTOMER_ID/assets/-1) deneme kollarında kullanılan temelAssetGroupöğesine bağlayan ardışıkAssetGroupAssetkaynakları 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
EndExperimentseçeneğini kullanın. Bu, eşzamanlı bir işlemdir. - Mezun etme: Deney kolunun öğe grubunun performansını tercih ediyorsanız
GraduateExperimentseç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.