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

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

यह वर्कफ़्लो 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 का इस्तेमाल करें. इस प्रोसेस के तहत, कंट्रोल ग्रुप से जुड़े ओरिजनल बेस कैंपेन को रोक दिया जाता है. साथ ही, ट्रीटमेंट ग्रुप को एक नए और स्वतंत्र कैंपेन में बदल दिया जाता है. यह एक सिंक्रोनस ऑपरेशन है.