सिस्टम से मैनेज किए गए एक्सपेरिमेंट

सिस्टम मैनेज किए गए एक्सपेरिमेंट का इस्तेमाल, A/B टेस्ट में बदलाव करने के लिए किया जाता है. इसके लिए, एक या उससे ज़्यादा ऐसे ट्रीटमेंट कैंपेन बनाए जाते हैं जिनमें बदलाव किया जा सकता है. ये कैंपेन, ओरिजनल कंट्रोल कैंपेन के साथ चलते हैं. यह वर्कफ़्लो, ExperimentType एट्रिब्यूट की इन वैल्यू के लिए काम करता है:

  • SEARCH_CUSTOM: सर्च कैंपेन से मिलकर बना कस्टम एक्सपेरिमेंट.
  • DISPLAY_CUSTOM: डिसप्ले कैंपेन से मिलकर बना कस्टम एक्सपेरिमेंट.
  • HOTEL_CUSTOM: होटल कैंपेन वाला कस्टम एक्सपेरिमेंट.
  • YOUTUBE_CUSTOM: कस्टम एक्सपेरिमेंट, जिसमें वीडियो कैंपेन शामिल हैं.
  • PMAX_REPLACEMENT_SHOPPING: यह एक एक्सपेरिमेंट है. इससे यह पता चलता है कि परफ़ॉर्मेंस मैक्स कैंपेन की तुलना में, आपके शॉपिंग कैंपेन की परफ़ॉर्मेंस कैसी है.

सेटअप

सिस्टम मैनेज किए जाने वाले एक्सपेरिमेंट को सेट अप करने के लिए, यह तरीका अपनाएं:

  1. Experiment बनाएं.
  2. कंट्रोल और ट्रीटमेंट के लिए ExperimentArm संसाधन बनाएं.
  3. ट्रीटमेंट ग्रुप में in_design_campaigns में बदलाव करें.

1. कोई एक्सपेरिमेंट बनाना

Google Ads API का इस्तेमाल करके एक्सपेरिमेंट चलाने के लिए, सबसे पहले Experiment बनाना ज़रूरी है. इस संसाधन में, उस एक्सपेरिमेंट के बारे में कुछ अहम जानकारी दी गई है जिसे आपको चलाना है. इस चरण में, एक्सपेरिमेंट में शामिल किसी भी कैंपेन की जानकारी नहीं दी जाती.

यहां Experiment के कुछ मुख्य फ़ील्ड की खास जानकारी दी गई है:

  • name: हर एक्सपेरिमेंट का नाम अलग होना चाहिए.
  • description: यह एक ऐसा फ़ील्ड है जिसे इस्तेमाल करना ज़रूरी नहीं है. हालांकि, इसका इस्तेमाल बाद में किया जा सकता है. इससे एक्सपेरिमेंट के चलने के तरीके पर कोई असर नहीं पड़ता.
  • suffix: सफ़िक्स को ट्रीटमेंट कैंपेन के नामों के आखिर में जोड़ा जाएगा, ताकि उन्हें कंट्रोल कैंपेन से अलग किया जा सके. इन कॉन्सेप्ट के बारे में दूसरे चरण में ज़्यादा जानकारी दी जाएगी.
  • type: किस तरह का एक्सपेरिमेंट चलाना है. सिस्टम मैनेज किए जाने वाले एक्सपेरिमेंट के लिए, SEARCH_CUSTOM, DISPLAY_CUSTOM, HOTEL_CUSTOM, YOUTUBE_CUSTOM या PMAX_REPLACEMENT_SHOPPING का इस्तेमाल करें.
  • status: एक्सपेरिमेंट बनाते समय, इस फ़ील्ड को SETUP पर सेट करें. बाद में, एक्सपेरिमेंट शुरू होने के बाद, इस फ़ील्ड से मौजूदा स्थिति देखी जा सकेगी.
  • start_date और end_date: तय करें कि एक्सपेरिमेंट कब शुरू और खत्म होना चाहिए.
  • sync_enabled: यह सुविधा डिफ़ॉल्ट रूप से बंद होती है. true पर सेट होने पर, प्रयोग के चलने के दौरान ओरिजनल कैंपेन में किए गए बदलाव, एक्सपेरिमेंट कैंपेन में अपने-आप कॉपी हो जाते हैं. ज़्यादा जानें.

Java

private String createExperimentResource(GoogleAdsClient googleAdsClient, long customerId) {
  ExperimentOperation operation =
      ExperimentOperation.newBuilder()
          .setCreate(
              Experiment.newBuilder()
                  // Name must be unique.
                  .setName("Example Experiment #" + getPrintableDateTime())
                  .setType(ExperimentType.SEARCH_CUSTOM)
                  .setSuffix("[experiment]")
                  .setStatus(ExperimentStatus.SETUP)
                  .build())
          .build();

  try (ExperimentServiceClient experimentServiceClient =
      googleAdsClient.getLatestVersion().createExperimentServiceClient()) {
    MutateExperimentsResponse response =
        experimentServiceClient.mutateExperiments(
            Long.toString(customerId), ImmutableList.of(operation));
    String experiment = response.getResults(0).getResourceName();
    System.out.printf("Created experiment with resource name '%s'%n", experiment);
    return experiment;
  }
}
      

C#

/// <summary>
/// Creates the experiment.
/// </summary>
/// <param name="client">The Google Ads client.</param>
/// <param name="customerId">The customer ID for which the call is made.</param>
/// <returns>The resource name of the newly created experiment.</returns>
private static string CreateAnExperiment(GoogleAdsClient client, long customerId)
{
    // Get the ExperimentService.
    ExperimentServiceClient experimentService = client.GetService(
        Services.V24.ExperimentService);

    // Creates the experiment.
    Experiment experiment = new Experiment()
    {
        // Name must be unique.
        Name = $"Example Experiment #{ExampleUtilities.GetRandomString()}",
        Type = ExperimentType.SearchCustom,
        Suffix = "[experiment]",
        Status = ExperimentStatus.Setup
    };

    // Creates the operation.
    ExperimentOperation operation = new ExperimentOperation()
    {
        Create = experiment
    };

    // Makes the API call.
    MutateExperimentsResponse response = experimentService.MutateExperiments(
        customerId.ToString(), new[] { operation });

    // Displays the result.
    string experimentResourceName = response.Results.First().ResourceName;

    Console.WriteLine($"Created experiment with resource name " +
        $"'{experimentResourceName}'.");
    return experimentResourceName;
}

      

PHP

private static function createExperimentResource(
    ExperimentServiceClient $experimentServiceClient,
    int $customerId
): string {
    // Creates an experiment and its operation.
    $experiment = new Experiment([
        // Name must be unique.
        'name' => 'Example Experiment #' . Helper::getPrintableDatetime(),
        'type' => ExperimentType::SEARCH_CUSTOM,
        'suffix' => '[experiment]',
        'status' => ExperimentStatus::SETUP
    ]);
    $experimentOperation = new ExperimentOperation(['create' => $experiment]);

    // Issues a request to create the experiment.
    $response = $experimentServiceClient->mutateExperiments(
        MutateExperimentsRequest::build($customerId, [$experimentOperation])
    );
    $experimentResourceName = $response->getResults()[0]->getResourceName();
    print "Created experiment with resource name '$experimentResourceName'" . PHP_EOL;

    return $experimentResourceName;
}
      

Python

def create_experiment_resource(
    client: GoogleAdsClient, customer_id: str
) -> str:
    """Creates a new experiment resource.

    Args:
        client: an initialized GoogleAdsClient instance.
        customer_id: a client customer ID.

    Returns:
        the resource name for the new experiment.
    """
    experiment_operation: ExperimentOperation = client.get_type(
        "ExperimentOperation"
    )
    experiment: Experiment = experiment_operation.create

    experiment.name = f"Example Experiment #{uuid.uuid4()}"
    # We specify SEARCH_CUSTOM to create a standard search campaign experiment.
    # This type uses a standard draft-based workflow where the system automatically
    # creates a draft/in-design campaign for the treatment arm.
    experiment.type_ = client.enums.ExperimentTypeEnum.SEARCH_CUSTOM
    experiment.suffix = "[experiment]"
    experiment.status = client.enums.ExperimentStatusEnum.SETUP

    experiment_service: ExperimentServiceClient = client.get_service(
        "ExperimentService"
    )
    response: MutateExperimentsResponse = experiment_service.mutate_experiments(
        customer_id=customer_id, operations=[experiment_operation]
    )

    experiment_resource_name: str = response.results[0].resource_name
    print(f"Created experiment with resource name {experiment_resource_name}")

    return experiment_resource_name
      

Ruby

def create_experiment_resource(client, customer_id)
  operation = client.operation.create_resource.experiment do |e|
    # Name must be unique.
    e.name = "Example Experiment #{(Time.new.to_f * 1000).to_i}"
    e.type = :SEARCH_CUSTOM
    e.suffix = '[experiment]'
    e.status = :SETUP
  end

  response = client.service.experiment.mutate_experiments(
    customer_id: customer_id,
    operations: [operation],
  )

  experiment = response.results.first.resource_name
  puts "Created experiment with resource name #{experiment}."

  experiment
end
      

Perl

sub create_experiment_resource {
  my ($api_client, $customer_id) = @_;

  my $experiment = Google::Ads::GoogleAds::V24::Resources::Experiment->new({
    # Name must be unique.
    name   => "Example Experiment #" . uniqid(),
    type   => SEARCH_CUSTOM,
    suffix => "[experiment]",
    status => SETUP
  });

  my $operation =
    Google::Ads::GoogleAds::V24::Services::ExperimentService::ExperimentOperation
    ->new({
      create => $experiment
    });

  my $response = $api_client->ExperimentService()->mutate({
      customerId => $customer_id,
      operations => [$operation]});

  my $resource_name = $response->{results}[0]{resourceName};
  printf "Created experiment with resource name '%s'.\n", $resource_name;
  return $resource_name;
}
      

curl

2. एक्सपेरिमेंट ग्रुप बनाना

इसके बाद, एक्सपेरिमेंट के लिए कंट्रोल और ट्रीटमेंट ग्रुप तय करने के लिए, ExperimentArm संसाधन बनाएं. सभी ग्रुप एक ही अनुरोध में बनाए जाने चाहिए.

हर एक्सपेरिमेंट में, सिर्फ़ एक कंट्रोल ग्रुप और एक या उससे ज़्यादा ट्रीटमेंट ग्रुप होने चाहिए. कंट्रोल ग्रुप से, तुलना के लिए बेस कैंपेन का पता चलता है. साथ ही, हर ट्रीटमेंट ग्रुप से एक नया कैंपेन बनता है. इसमें बदलाव करके, टेस्ट किया जा सकता है.

आपको traffic_split भी तय करना होगा. यह हर ग्रुप को मिलने वाले ट्रैफ़िक का प्रतिशत होता है. सभी ग्रुप के लिए, ट्रैफ़िक के बंटवारे का कुल योग 100 होना चाहिए.

Java

private String createExperimentArms(
    GoogleAdsClient googleAdsClient, long customerId, long campaignId, String experiment) {
  List<ExperimentArmOperation> operations = new ArrayList<>();
  operations.add(
      ExperimentArmOperation.newBuilder()
          .setCreate(
              // The "control" arm references an already-existing campaign.
              ExperimentArm.newBuilder()
                  .setControl(true)
                  .addCampaigns(ResourceNames.campaign(customerId, campaignId))
                  .setExperiment(experiment)
                  .setName("control arm")
                  .setTrafficSplit(40)
                  .build())
          .build());
  operations.add(
      ExperimentArmOperation.newBuilder()
          .setCreate(
              // The non-"control" arm, also called a "treatment" arm, will automatically
              // generate draft campaigns that you can modify before starting the experiment.
              ExperimentArm.newBuilder()
                  .setControl(false)
                  .setExperiment(experiment)
                  .setName("experiment arm")
                  .setTrafficSplit(60)
                  .build())
          .build());

  try (ExperimentArmServiceClient experimentArmServiceClient =
      googleAdsClient.getLatestVersion().createExperimentArmServiceClient()) {
    // Constructs the mutate request.
    MutateExperimentArmsRequest mutateRequest = MutateExperimentArmsRequest.newBuilder()
        .setCustomerId(Long.toString(customerId))
        .addAllOperations(operations)
        // We want to fetch the draft campaign IDs from the treatment arm, so the easiest way to do
        // that is to have the response return the newly created entities.
        .setResponseContentType(ResponseContentType.MUTABLE_RESOURCE)
        .build();

    // Sends the mutate request.
    MutateExperimentArmsResponse response =
        experimentArmServiceClient.mutateExperimentArms(mutateRequest);

    // Results always return in the order that you specify them in the request. Since we created
    // the treatment arm last, it will be the last result.  If you don't remember which arm is the
    // treatment arm, you can always filter the query in the next section with
    // `experiment_arm.control = false`.
    MutateExperimentArmResult controlArmResult = response.getResults(0);
    MutateExperimentArmResult treatmentArmResult = response.getResults(
        response.getResultsCount() - 1);

    System.out.printf("Created control arm with resource name '%s'%n",
        controlArmResult.getResourceName());
    System.out.printf("Created treatment arm with resource name '%s'%n",
        treatmentArmResult.getResourceName());

    return treatmentArmResult.getExperimentArm().getInDesignCampaigns(0);
  }
}
      

C#

/// <summary>
/// Creates the experiment arms.
/// </summary>
/// <param name="client">The Google Ads client.</param>
/// <param name="customerId">The customer ID for which the call is made.</param>
/// <param name="baseCampaignId">ID of the campaign for which the control arm is
/// created.</param>
/// <param name="experimentResourceName">Resource name of the experiment.</param>
/// <returns>The control and treatment arms.</returns>
private static (MutateExperimentArmResult, MutateExperimentArmResult)
    CreateExperimentArms(GoogleAdsClient client, long customerId, long baseCampaignId,
        string experimentResourceName)
{
    // Get the ExperimentArmService.
    ExperimentArmServiceClient experimentService = client.GetService(
        Services.V24.ExperimentArmService);

    // Create the control arm. The control arm references an already-existing campaign.
    ExperimentArmOperation controlArmOperation = new ExperimentArmOperation()
    {
        Create = new ExperimentArm()
        {
            Control = true,
            Campaigns = {
                ResourceNames.Campaign(customerId, baseCampaignId)
            },
            Experiment = experimentResourceName,
            Name = "Control Arm",
            TrafficSplit = 40
        }
    };

    // Create the non-control arm. The non-"control" arm, also called a "treatment" arm,
    // will automatically generate draft campaigns that you can modify before starting the
    // experiment.
    ExperimentArmOperation treatmentArmOperation = new ExperimentArmOperation()
    {
        Create = new ExperimentArm()
        {
            Control = false,
            Experiment = experimentResourceName,
            Name = "Experiment Arm",
            TrafficSplit = 60
        }
    };

    // We want to fetch the draft campaign IDs from the treatment arm, so the
    // easiest way to do that is to have the response return the newly created
    // entities.
    MutateExperimentArmsRequest request = new MutateExperimentArmsRequest
    {
        CustomerId = customerId.ToString(),
        Operations = { controlArmOperation, treatmentArmOperation },
        ResponseContentType = ResponseContentType.MutableResource
    };


    MutateExperimentArmsResponse response = experimentService.MutateExperimentArms(
        request
    );

    // Results always return in the order that you specify them in the request.
    // Since we created the treatment arm last, it will be the last result.
    MutateExperimentArmResult controlArm = response.Results.First();
    MutateExperimentArmResult treatmentArm = response.Results.Last();

    Console.WriteLine($"Created control arm with resource name " +
        $"'{controlArm.ResourceName}.");
    Console.WriteLine($"Created treatment arm with resource name" +
      $" '{treatmentArm.ResourceName}'.");
    return (controlArm, treatmentArm);
}

      

PHP

private static function createExperimentArms(
    GoogleAdsClient $googleAdsClient,
    int $customerId,
    int $campaignId,
    string $experimentResourceName
): string {
    $operations = [];
    $experimentArm1 = new ExperimentArm([
        // The "control" arm references an already-existing campaign.
        'control' => true,
        'campaigns' => [ResourceNames::forCampaign($customerId, $campaignId)],
        'experiment' => $experimentResourceName,
        'name' => 'control arm',
        'traffic_split' => 40
    ]);
    $operations[] = new ExperimentArmOperation(['create' => $experimentArm1]);
    $experimentArm2 = new ExperimentArm([
        // The non-"control" arm, also called a "treatment" arm, will automatically
        // generate draft campaigns that you can modify before starting the
        // experiment.
        'control' => false,
        'experiment' => $experimentResourceName,
        'name' => 'experiment arm',
        'traffic_split' => 60
    ]);
    $operations[] = new ExperimentArmOperation(['create' => $experimentArm2]);

    // Issues a request to create the experiment arms.
    $experimentArmServiceClient = $googleAdsClient->getExperimentArmServiceClient();
    $response = $experimentArmServiceClient->mutateExperimentArms(
        MutateExperimentArmsRequest::build($customerId, $operations)
            // We want to fetch the draft campaign IDs from the treatment arm, so the easiest
            // way to do that is to have the response return the newly created entities.
            ->setResponseContentType(ResponseContentType::MUTABLE_RESOURCE)
    );
    // Results always return in the order that you specify them in the request.
    // Since we created the treatment arm last, it will be the last result.
    $controlArmResourceName = $response->getResults()[0]->getResourceName();
    $treatmentArm = $response->getResults()[count($operations) - 1];
    print "Created control arm with resource name '$controlArmResourceName'" . PHP_EOL;
    print "Created treatment arm with resource name '{$treatmentArm->getResourceName()}'"
        . PHP_EOL;

    return $treatmentArm->getExperimentArm()->getInDesignCampaigns()[0];
}
      

Python

def create_experiment_arms(
    client: GoogleAdsClient,
    customer_id: str,
    base_campaign_id: str,
    experiment: str,
) -> str:
    """Creates a control and treatment experiment arms.

    Args:
        client: an initialized GoogleAdsClient instance.
        customer_id: a client customer ID.
        base_campaign_id: the campaign ID to associate with the control arm of
          the experiment.
        experiment: the resource name for an experiment.

    Returns:
        the resource name for the new treatment experiment arm.
    """
    operations: List[ExperimentArmOperation] = []

    campaign_service: CampaignServiceClient = client.get_service(
        "CampaignService"
    )

    # The "control" arm references an already-existing campaign.
    operation_1: ExperimentArmOperation = client.get_type(
        "ExperimentArmOperation"
    )
    exa_1: ExperimentArm = operation_1.create
    exa_1.control = True
    exa_1.campaigns.append(
        campaign_service.campaign_path(customer_id, base_campaign_id)
    )
    exa_1.experiment = experiment
    exa_1.name = "control arm"
    exa_1.traffic_split = 40
    operations.append(operation_1)

    # In standard campaign experiments, creating the treatment arm automatically
    # generates a draft campaign that you can modify before starting the experiment.
    operation_2: ExperimentArmOperation = client.get_type(
        "ExperimentArmOperation"
    )
    exa_2: ExperimentArm = operation_2.create
    exa_2.control = False
    exa_2.experiment = experiment
    exa_2.name = "experiment arm"
    exa_2.traffic_split = 60
    operations.append(operation_2)

    experiment_arm_service: ExperimentArmServiceClient = client.get_service(
        "ExperimentArmService"
    )
    request: MutateExperimentArmsRequest = client.get_type(
        "MutateExperimentArmsRequest"
    )
    request.customer_id = customer_id
    request.operations = operations
    # We want to fetch the draft campaign IDs from the treatment arm, so the
    # easiest way to do that is to have the response return the newly created
    # entities.
    request.response_content_type = (
        client.enums.ResponseContentTypeEnum.MUTABLE_RESOURCE
    )
    response: MutateExperimentArmsResponse = (
        experiment_arm_service.mutate_experiment_arms(request=request)
    )

    # Results always return in the order that you specify them in the request.
    # Since we created the treatment arm second, it will be the second result.
    control_arm_result: Any = response.results[0]
    treatment_arm_result: Any = response.results[1]

    print(
        f"Created control arm with resource name {control_arm_result.resource_name}"
    )
    print(
        f"Created treatment arm with resource name {treatment_arm_result.resource_name}"
    )

    return treatment_arm_result.experiment_arm.in_design_campaigns[0]
      

Ruby

def create_experiment_arms(client, customer_id, base_campaign_id, experiment)
  operations = []
  operations << client.operation.create_resource.experiment_arm do |ea|
    # The "control" arm references an already-existing campaign.
    ea.control = true
    ea.campaigns << client.path.campaign(customer_id, base_campaign_id)
    ea.experiment = experiment
    ea.name = 'control arm'
    ea.traffic_split = 40
  end
  operations << client.operation.create_resource.experiment_arm do |ea|
    # The non-"control" arm, also called a "treatment" arm, will automatically
    # generate draft campaigns that you can modify before starting the
    # experiment.
    ea.control = false
    ea.experiment = experiment
    ea.name = 'experiment arm'
    ea.traffic_split = 60
  end

  response = client.service.experiment_arm.mutate_experiment_arms(
    customer_id: customer_id,
    operations: operations,
    # We want to fetch the draft campaign IDs from the treatment arm, so the
    # easiest way to do that is to have the response return the newly created
    # entities.
    response_content_type: :MUTABLE_RESOURCE,
  )

  # Results always return in the order that you specify them in the request.
  # Since we created the treatment arm last, it will be the last result.
  control_arm_result = response.results.first
  treatment_arm_result = response.results.last

  puts "Created control arm with resource name #{control_arm_result.resource_name}."
  puts "Created treatment arm with resource name #{treatment_arm_result.resource_name}."

  treatment_arm_result.experiment_arm.in_design_campaigns.first
end
      

Perl

sub create_experiment_arms {
  my ($api_client, $customer_id, $base_campaign_id, $experiment) = @_;

  my $operations = [];
  push @$operations,
    Google::Ads::GoogleAds::V24::Services::ExperimentArmService::ExperimentArmOperation
    ->new({
      create => Google::Ads::GoogleAds::V24::Resources::ExperimentArm->new({
          # The "control" arm references an already-existing campaign.
          control   => "true",
          campaigns => [
            Google::Ads::GoogleAds::V24::Utils::ResourceNames::campaign(
              $customer_id, $base_campaign_id
            )
          ],
          experiment   => $experiment,
          name         => "control arm",
          trafficSplit => 40
        })});

  push @$operations,
    Google::Ads::GoogleAds::V24::Services::ExperimentArmService::ExperimentArmOperation
    ->new({
      create => Google::Ads::GoogleAds::V24::Resources::ExperimentArm->new({
          # The non-"control" arm, also called a "treatment" arm, will automatically
          # generate draft campaigns that you can modify before starting the
          # experiment.
          control      => "false",
          experiment   => $experiment,
          name         => "experiment arm",
          trafficSplit => 60
        })});

  my $response = $api_client->ExperimentArmService()->mutate({
    customerId => $customer_id,
    operations => $operations,
    # We want to fetch the draft campaign IDs from the treatment arm, so the
    # easiest way to do that is to have the response return the newly created
    # entities.
    responseContentType => MUTABLE_RESOURCE
  });

  # Results always return in the order that you specify them in the request.
  # Since we created the treatment arm last, it will be the last result.
  my $control_arm_result   = $response->{results}[0];
  my $treatment_arm_result = $response->{results}[1];

  printf "Created control arm with resource name '%s'.\n",
    $control_arm_result->{resourceName};
  printf "Created treatment arm with resource name '%s'.\n",
    $treatment_arm_result->{resourceName};
  return $treatment_arm_result->{experimentArm}{inDesignCampaigns}[0];
}
      

curl

कुछ ज़रूरी बातें:

  • सिर्फ़ एक ग्रुप के लिए, control को true पर सेट किया जाना चाहिए.
  • सभी ग्रुप में traffic_split का कुल योग 100 होना चाहिए.
  • कंट्रोल ग्रुप के campaigns फ़ील्ड में, सिर्फ़ एक कैंपेन की जानकारी दी जानी चाहिए.

3. टेस्ट किए जा चुके कैंपेन में बदलाव करना

ट्रीटमेंट ग्रुप (जहां control false है) बनाने पर, एपीआई कंट्रोल कैंपेन के आधार पर अपने-आप एक ड्राफ़्ट कैंपेन बना देता है. साथ ही, ट्रीटमेंट ग्रुप के in_design_campaigns फ़ील्ड में उसका संसाधन नाम भर देता है. इन-डिज़ाइन कैंपेन को सामान्य कैंपेन की तरह इस्तेमाल किया जा सकता है. साथ ही, इनमें उन बदलावों को लागू किया जा सकता है जिनकी आपको जांच करनी है. कंट्रोल कैंपेन पर कोई असर नहीं पड़ेगा. इन बदलावों को किसी ऐसे कैंपेन में लागू किया जाता है जिसे विज्ञापन दिखाने के लिए इस्तेमाल किया जा सकता है. ऐसा तब होता है, जब एक्सपेरिमेंट को शेड्यूल किया जाता है.

एक्सपेरिमेंट शेड्यूल करने से पहले, डिज़ाइन किए जा रहे कैंपेन में कम से कम एक बदलाव करना ज़रूरी है.

किसी ट्रीटमेंट ग्रुप के लिए in_design_campaigns वापस पाने के लिए, GoogleAdsService को क्वेरी किया जा सकता है:

SELECT experiment_arm.in_design_campaigns
FROM experiment_arm
WHERE experiment_arm.resource_name = "TREATMENT_ARM_RESOURCE_NAME"

एक्सपेरिमेंट शेड्यूल करना

एक्सपेरिमेंट और ग्रुप बनाने के बाद, ट्रीटमेंट ड्राफ़्ट कैंपेन में बदलाव किया जा सकता है. इसके बाद, ExperimentService.ScheduleExperiment का इस्तेमाल करके, एक्सपेरिमेंट को शेड्यूल किया जा सकता है. यह एक एसिंक्रोनस ऑपरेशन है. इससे डिज़ाइन किए जा रहे कैंपेन, असल कैंपेन में बदल जाते हैं. एक्सपेरिमेंट के start_date आने के बाद, ये कैंपेन विज्ञापन दिखाने के लिए तैयार हो जाते हैं. लंबे समय तक चलने वाली कार्रवाइयों को मैनेज करने के बारे में जानकारी पाने के लिए, एसिंक्रोनस गड़बड़ियां देखें.

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

एक्सपेरिमेंट चालू होने के बाद, परफ़ॉर्मेंस की तुलना करने के लिए मेट्रिक के बारे में क्वेरी की जा सकती है. ज़्यादा जानकारी के लिए, रिपोर्टिंग गाइड देखें.

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

एक्सपेरिमेंट को कुछ समय तक चलाने के बाद, ExperimentService का इस्तेमाल करके, इसे खत्म किया जा सकता है, प्रमोट किया जा सकता है या अपग्रेड किया जा सकता है.

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

टाइप के हिसाब से ज़रूरी शर्तें

PMAX_REPLACEMENT_SHOPPING:

  • इसमें दो ग्रुप (एक कंट्रोल ग्रुप और एक ट्रीटमेंट ग्रुप) होने चाहिए.
  • कंट्रोल ग्रुप को अपने campaigns फ़ील्ड में एक शॉपिंग कैंपेन तय करना होगा.
  • ट्रीटमेंट ग्रुप के लिए, परफ़ॉर्मेंस मैक्स कैंपेन को सेट अप करने के दो विकल्प हैं:
    • नया PMax कैंपेन बनाने के लिए: ट्रीटमेंट ग्रुप के campaigns फ़ील्ड को खाली छोड़ दें. एपीआई, कंट्रोल शॉपिंग कैंपेन के आधार पर, डिज़ाइन में मौजूद कैंपेन अपने-आप बनाता है. इसके बारे में तीसरे चरण में बताया गया है.
    • मौजूदा PMax कैंपेन का इस्तेमाल करने के लिए: ट्रीटमेंट ग्रुप के campaigns फ़ील्ड में, PMax कैंपेन का संसाधन नाम डालें. इस विकल्प को चुनने पर, कोई इन-डिज़ाइन कैंपेन नहीं बनाया जाता. साथ ही, तीसरा चरण को स्किप किया जा सकता है.
  • हमारा सुझाव है कि कैंपेन के पहले सात दिनों के आंकड़ों को अपने आकलन में शामिल न करें. इससे कैंपेन को रैंप-अप और लर्निंग फ़ेज़ पूरा करने का समय मिल पाएगा.
  • इसका प्रमोशन नहीं किया जा सकता.

YOUTUBE_CUSTOM:

  • इसमें ज़्यादा से ज़्यादा 10 आर्म इस्तेमाल किए जा सकते हैं.
  • ऐसेट की टेस्टिंग करने के लिए, एक्सपेरिमेंट ग्रुप में creative_asset_testing_info को सेट करें.