ניסויים לאופטימיזציה של נכסים

ניסויים לאופטימיזציה של נכסים משמשים לבדיקה של שילובים שונים של נכסים בקמפיינים למיקסום הביצועים, ומאפשרים להשוות בין הביצועים של קבוצות שונות של נכסים לבין קבוצת נכסים בסיסית.

תהליך העבודה הזה נתמך ב-ExperimentType.OPTIMIZE_ASSETS.

הגדרה

כדי להגדיר ניסוי לאופטימיזציה של נכסים:

  • יוצרים נכס חדש, ניסוי עם קבוצת בקרה וקבוצת ניסוי.
  • מקשרים את הנכס החדש לקבוצת הנכסים של קבוצת הניסוי – והכול בבקשת שינוי אחת.

מכיוון שהישויות האלה תלויות זו בזו, צריך להשתמש בשמות זמניים של משאבים כדי להתייחס למשאבים שנוצרו בפעולות קודמות באותה בקשה.

הפעולות בבקשה צריכות להיות בסדר הבא:

  1. יוצרים Asset עם שם משאב זמני (למשל customers/CUSTOMER_ID/assets/-1). זה יהיה נכס הבדיקה שלכם.
  2. יוצרים Experiment עם שם משאב זמני (לדוגמה, customers/CUSTOMER_ID/experiments/-2).
  3. יוצרים שני משאבי ExperimentArm:
    • קבוצת בקרה שמקושרת לקמפיין בסיס AssetGroup.
    • קבוצת ניסוי שמקושרת לאותו קמפיין בסיס AssetGroup. בקבוצת הניסוי הזו, מגדירים את השדה asset_groups באמצעות שם המשאב הזמני של נכס שיצרתם בשלב 1.
  4. יוצרים AssetGroupAsset שמקשר בין הנכס משלב 1 לבין קבוצת הנכסים שבה נעשה שימוש בקבוצות הניסוי.

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 כדי להשוות בין מדדים של קבוצות נכסי הבקרה וקבוצות נכסי הניסוי.

הסתיים או שודרג

אחרי הערכת התוצאות, אפשר לסיים את הניסוי או להעביר אותו לשלב הבא באמצעות ExperimentService.

  • סיום: אם אתם לא מרוצים מהתוצאות של קבוצת הניסוי, אתם יכולים להשתמש באפשרות EndExperiment. זו פעולה סינכרונית.
  • שדרוג חשבון: אם אתם מעדיפים את הביצועים של קבוצת הנכסים של קבוצת הניסוי, אתם יכולים להשתמש באפשרות GraduateExperiment. במסגרת התהליך הזה, קמפיין הבסיס המקורי שמשויך לקבוצת הבקרה מושהה, וקבוצת הניסוי מומרת לקמפיין חדש ועצמאי. זו פעולה סינכרונית.