ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट

परफ़ॉर्मेंस मैक्स कैंपेन में, ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट का इस्तेमाल करके, ऐसेट के अलग-अलग कॉम्बिनेशन को टेस्ट किया जाता है. इससे, आपको यह तुलना करने में मदद मिलती है कि ऐसेट के अलग-अलग सेट, बेस सेट के मुकाबले कैसा परफ़ॉर्म करते हैं.

यह वर्कफ़्लो, ExperimentType.OPTIMIZE_ASSETS के लिए उपलब्ध है.

सेटअप

ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट सेट अप करने के लिए:

  • एक नई ऐसेट बनाएं. साथ ही, कंट्रोल और ट्रीटमेंट ग्रुप के साथ एक एक्सपेरिमेंट बनाएं.
  • एक ही म्यूटेट अनुरोध में, नई ऐसेट को ट्रीटमेंट ग्रुप के ऐसेट ग्रुप से लिंक करें.

ये इकाइयां एक-दूसरे पर निर्भर होती हैं. इसलिए, एक ही अनुरोध में पहले की कार्रवाइयों में बनाए गए संसाधनों को रेफ़र करने के लिए, आपको अस्थायी संसाधन नामों का इस्तेमाल करना होगा.

आपके अनुरोध में शामिल कार्रवाइयां, इस क्रम में होनी चाहिए:

  1. अस्थायी संसाधन नाम (जैसे, customers/CUSTOMER_ID/assets/-1) के साथ एक Asset बनाएं. यह आपकी टेस्ट ऐसेट होगी.
  2. अस्थायी संसाधन नाम (उदाहरण के लिए, customers/CUSTOMER_ID/experiments/-2) के साथ एक Experiment बनाएं.
  3. एक AssetGroupAsset बनाएं. इससे, पहले चरण में बनाई गई ऐसेट को एक्सपेरिमेंट ग्रुप में इस्तेमाल किए गए ऐसेट ग्रुप से लिंक करें.

  4. दो ExperimentArm संसाधन बनाएं:

    • एक कंट्रोल ग्रुप, जो बेस AssetGroup से लिंक हो.
    • एक ट्रीटमेंट ग्रुप, जो उसी बेस AssetGroup से लिंक हो. इस ग्रुप में, पहले चरण में बनाई गई ऐसेट के अस्थायी संसाधन नाम का इस्तेमाल करके, asset_groups फ़ील्ड सेट करें.

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

एक्सपेरिमेंट की रिपोर्ट

ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट की रिपोर्ट देखने के लिए, experiment संसाधन का इस्तेमाल किया जा सकता है. इससे, कंट्रोल और ट्रीटमेंट ऐसेट ग्रुप के मेट्रिक की तुलना की जा सकती है.

एक्सपेरिमेंट को पूरा करना या खत्म करना

नतीजों का आकलन करने के बाद, एक्सपेरिमेंट को खत्म किया जा सकता है या पूरा किया जा सकता है ExperimentServiceका इस्तेमाल करके.

  • एक्सपेरिमेंट खत्म करना: अगर आपको ट्रीटमेंट ग्रुप से मिले नतीजे पसंद नहीं आते हैं, तो EndExperiment का इस्तेमाल करें. यह एक सिंक्रोनस ऑपरेशन है.
  • एक्सपेरिमेंट पूरा करना: अगर आपको ट्रीटमेंट ग्रुप के ऐसेट ग्रुप की परफ़ॉर्मेंस बेहतर लगती है, तो GraduateExperiment का इस्तेमाल करें. इस प्रोसेस के तहत, कंट्रोल ग्रुप से जुड़ा ओरिजनल बेस कैंपेन रोक दिया जाता है. साथ ही, ट्रीटमेंट ग्रुप को एक नए और इंडिपेंडेंट कैंपेन में बदल दिया जाता है. यह एक सिंक्रोनस ऑपरेशन है.