آزمایشهای بهینهسازی دارایی برای آزمایش ترکیبات مختلف دارایی در کمپینهای Performance Max استفاده میشوند و به شما امکان میدهند عملکرد مجموعههای مختلف داراییها را در مقایسه با یک مجموعه پایه مقایسه کنید.
این گردش کار برای ExperimentType.OPTIMIZE_ASSETS پشتیبانی میشود.
راهاندازی
برای راهاندازی یک آزمایش بهینهسازی دارایی:
- یک دارایی جدید ایجاد کنید، آزمایشی با بازوهای کنترل و درمان.
- دارایی جدید را به گروه داراییهای بازوی درمانی پیوند دهید - همه اینها در یک درخواست تغییر واحد.
از آنجا که این موجودیتها به هم وابسته هستند، شما باید از نامهای منبع موقت برای ارجاع به منابعی که در عملیات قبلی در همان درخواست ایجاد شدهاند، استفاده کنید.
عملیات موجود در درخواست شما باید به ترتیب زیر باشد:
- یک
Assetبا نام منبع موقت (مانندcustomers/CUSTOMER_ID/assets/-1) ایجاد کنید. این دارایی آزمایشی شما خواهد بود. - یک
Experimentبا نام منبع موقت ایجاد کنید (برای مثال،customers/CUSTOMER_ID/experiments/-2). - دو منبع
ExperimentArmایجاد کنید:- یک بازوی کنترلی که به یک
AssetGroupپایه متصل است. - یک بازوی درمانی که به همان
AssetGroupپایه متصل است. در این بازو، فیلدasset_groupsرا با استفاده از نام منبع موقت دارایی ایجاد شده در مرحله 1 تنظیم کنید.
- یک بازوی کنترلی که به یک
- یک
AssetGroupAssetایجاد کنید که دارایی مرحله ۱ را به گروه دارایی مورد استفاده در بازوهای آزمایش متصل کند.
جاوا
This example is not yet available in Java; you can take a look at the other languages.
سی شارپ
This example is not yet available in C#; you can take a look at the other languages.
پی اچ پی
This example is not yet available in PHP; you can take a look at the other languages.
پایتون
# 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, )
روبی
This example is not yet available in Ruby; you can take a look at the other languages.
پرل
This example is not yet available in Perl; you can take a look at the other languages.
حلقه زدن
گزارش آزمایش
شما میتوانید با استفاده از منبع experiment ، در مورد آزمایشهای بهینهسازی دارایی گزارش تهیه کنید تا معیارها را بین گروههای دارایی کنترل و درمان مقایسه کنید.
فارغ التحصیل یا پایان
پس از ارزیابی نتایج، میتوانید با استفاده از ExperimentService آزمایش را پایان دهید یا آن را تکمیل کنید.
- پایان : اگر از نتایج حاصل از بازوی درمان راضی نیستید،
EndExperimentاستفاده کنید. این یک عملیات همزمان است. - فارغالتحصیلی : اگر عملکرد گروه دارایی بازوی درمانی را ترجیح میدهید،
GraduateExperimentاستفاده کنید. به عنوان بخشی از این فرآیند، کمپین پایه اصلی مرتبط با بازوی کنترل متوقف میشود و بازوی درمانی به یک کمپین جدید و مستقل تبدیل میشود. این یک عملیات همزمان است.