
Hi,
Please help me to Add Experiment bidMultiplier for keywords with Current Max. CPC value not with Default value for an Adgroup & Remove experiment that will keep may previous bid intact.
For example,
My Default Max CPC value within adgroup is $2.0, then i changed it to $3.0 from default $2.0. Now when i add experiment bidMultiplier with 2 for any keyword so now it should be $3.0(current)X2= $6.0 but it is $2.0(default)X2=$4
and when i remove experiment from campaign the Max CPC goes to its default adgroup value not the change i made on that keywords Max CPC value. This weird situation occurs with only Google Adword API v201502 not with manual adword UI interface.
So, now i have couple of questions.
See Attached Image How to add experiment bidMultiplier to keyword that will change Max CPC with current value not default value within adgroup?
How to keep changed Max CPC value after removing Experiments from campaign?
This code set Max CPC but with Default Max.CPC value for adgroup not with Current one that made changed
=================================================================================
//SET Max CPC CODE
$adGroupBidMultipliers = new ManualCPCAdGroupCriterionExperimentBidMultiplier();
$adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(2); #experiment bid multiplier
// Create experiment data for a new experiment-only keyword.
$adGroupCriterionExperimentData =new BiddableAdGroupCriterionExperimentData();
$adGroupCriterionExperimentData->experimentId = $experimentId; #experiment id
$adGroupCriterionExperimentData->experimentDeltaStatus = 'MODIFIED';
$adGroupCriterionExperimentData->experimentBidMultiplier=$adGroupBidMultipliers;
// Find Keyword
$keyword = new Keyword($value['keyword_text'], strtoupper($value['keyword_match_type']), $value['id']); #keyword text, keyword match type & keyword id
// Create ad group criterion.
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $value['adgroup_id']; #adgroup id
$adGroupCriterion->criterion = $keyword;
$adGroupCriterion->experimentData = $adGroupCriterionExperimentData;
// Create operation.
$adGroupCriterionOperation = new AdGroupCriterionOperation();
$adGroupCriterionOperation->operand = $adGroupCriterion;
$adGroupCriterionOperation->operator = 'SET';
$adGroupCriterionOperations = array($adGroupCriterionOperation);
// Make the mutate request.
$result = $adGroupCriterionService->mutate($adGroupCriterionOperations);
This code Remove Experiment But changed the Max CPC value to Default Value not my previous changed value.
===================================================================================
//REMOVE EXPERIMENT CODE
$experimentService = $user->GetService('ExperimentService', ADWORDS_VERSION);
// Create experiment with REMOVED status.
$experiment = new Experiment();
$experiment->id = $experimentId['experiment_id']; #experiment id
$experiment->status = 'REMOVED';
// Create operation.
$operation = new ExperimentOperation();
$operation->operand = $experiment;
$operation->operator = 'SET';
$operations = array($operation);
// Make the mutate request.
$result = $experimentService->mutate($operations);
Thanks.
Sarah Riddell