परफ़ॉर्मेंस मैक्स कैंपेन में, ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट का इस्तेमाल करके, अलग-अलग ऐसेट कॉम्बिनेशन को टेस्ट किया जाता है. इससे, आपको यह तुलना करने में मदद मिलती है कि ऐसेट के अलग-अलग सेट, बेस सेट के मुकाबले कैसा परफ़ॉर्म करते हैं.
यह वर्कफ़्लो,
ExperimentType.OPTIMIZE_ASSETS के लिए काम करता है.
सेटअप
ऐसेट ऑप्टिमाइज़ेशन एक्सपेरिमेंट सेट अप करने के लिए:
- कंट्रोल और ट्रीटमेंट ग्रुप वाले एक्सपेरिमेंट के लिए, एक नई ऐसेट बनाएं.
- एक ही म्यूटेट अनुरोध में, नई ऐसेट को ट्रीटमेंट ग्रुप के ऐसेट ग्रुप से लिंक करें.
ये इकाइयां एक-दूसरे पर निर्भर होती हैं. इसलिए, एक ही अनुरोध में पहले की कार्रवाइयों में बनाई गई इकाइयों के लिए, आपको अस्थायी संसाधन नामों का इस्तेमाल करना होगा.
आपके अनुरोध में शामिल कार्रवाइयां, इस क्रम में होनी चाहिए:
Assetबनाएं. इसके लिए, अस्थायी संसाधन नाम का इस्तेमाल करें . जैसे,customers/CUSTOMER_ID/assets/-1. यह आपकी टेस्ट ऐसेट होगी.Experimentबनाएं. इसके लिए, अस्थायी संसाधन नाम का इस्तेमाल करें. जैसे,customers/CUSTOMER_ID/experiments/-2.- दो
ExperimentArmसंसाधन बनाएं:- एक कंट्रोल ग्रुप, जो बेस
AssetGroupसे लिंक हो. - एक ट्रीटमेंट ग्रुप, जो उसी बेस
AssetGroupसे लिंक हो. इस ग्रुप में, पहले चरण में बनाई गई ऐसेट के अस्थायी संसाधन नाम का इस्तेमाल करके,asset_groupsफ़ील्ड सेट करें.
- एक कंट्रोल ग्रुप, जो बेस
AssetGroupAssetबनाएं. इससे, पहले चरण में बनाई गई ऐसेट को एक्सपेरिमेंट ग्रुप में इस्तेमाल किए गए ऐसेट ग्रुप से लिंक करें.
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 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 संसाधन का इस्तेमाल किया जा सकता है. इससे, कंट्रोल और ट्रीटमेंट ऐसेट
ग्रुप के मेट्रिक की तुलना की जा सकती है.
एक्सपेरिमेंट को खत्म करना या उसे लागू करना
नतीजों का आकलन करने के बाद, एक्सपेरिमेंट को खत्म किया जा सकता है या उसे लागू किया जा सकता है
using ExperimentService.
- एक्सपेरिमेंट को खत्म करना: अगर आपको ट्रीटमेंट ग्रुप से मिले नतीजे पसंद नहीं आते हैं,
तो
EndExperimentका इस्तेमाल करें. यह सिंक्रोनस ऑपरेशन है. - एक्सपेरिमेंट को लागू करना: अगर आपको ट्रीटमेंट ग्रुप के ऐसेट
ग्रुप की परफ़ॉर्मेंस पसंद आती है, तो
GraduateExperimentका इस्तेमाल करें. इस प्रोसेस के तहत, कंट्रोल ग्रुप से जुड़ा ओरिजनल बेस कैंपेन रोक दिया जाता है. साथ ही, ट्रीटमेंट ग्रुप को एक नए और अलग कैंपेन में बदल दिया जाता है. यह सिंक्रोनस ऑपरेशन है.