public function testPromoteExperimentExample()
 {
     $experimentId = $this->testUtils->CreateExperiment($this->campaignId);
     PromoteExperimentExample($this->user, $experimentId);
 }
    $experimentService = $user->GetService('ExperimentService', ADWORDS_VERSION);
    // Create experiment with PROMOTED status.
    $experiment = new Experiment();
    $experiment->id = $experimentId;
    $experiment->status = 'PROMOTED';
    // Create operation.
    $operation = new ExperimentOperation();
    $operation->operand = $experiment;
    $operation->operator = 'SET';
    $operations = array($operation);
    // Make the mutate request.
    $result = $experimentService->mutate($operations);
    // Display result.
    $experiment = $result->value[0];
    printf("Experiment with name '%s' and ID '%s' was promoted.\n", $experiment->name, $experiment->id);
}
// Don't run the example if the file is being included.
if (__FILE__ != realpath($_SERVER['PHP_SELF'])) {
    return;
}
try {
    // Get AdWordsUser from credentials in "../auth.ini"
    // relative to the AdWordsUser.php file's directory.
    $user = new AdWordsUser();
    // Log every SOAP XML request and response.
    $user->LogAll();
    // Run the example.
    PromoteExperimentExample($user, $experimentId);
} catch (Exception $e) {
    printf("An error has occurred: %s\n", $e->getMessage());
}