Add Experiment bidMultiplier for keywords with current Max. CPC value not with default value

32 views
Skip to first unread message

Sarah Riddell

unread,
Jun 12, 2015, 7:14:17 AM6/12/15
to adwor...@googlegroups.com

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

Josh Radcliff (AdWords API Team)

unread,
Jun 12, 2015, 3:27:55 PM6/12/15
to adwor...@googlegroups.com, sarahri...@gmail.com
Hi Sarah,

I just tried the same sequence using the API, and I wasn't able to reproduce the behavior you described.

Could you send over the campaign ID, ad group ID, and keyword ID where you made your changes so I can look into this further?

Thanks,
Josh, AdWords API Team

Sarah Riddell

unread,
Jun 13, 2015, 11:40:26 AM6/13/15
to adwor...@googlegroups.com, sarahri...@gmail.com
Hi Josh,

Can you please provide me YOUR CODE that you used using the API to reproduce the behavior. 


Thanks
Sarah Riddell

Josh Radcliff (AdWords API Team)

unread,
Jun 15, 2015, 9:20:52 AM6/15/15
to adwor...@googlegroups.com, sarahri...@gmail.com
Hi Sarah,

I used the AddExperiment.java example after adding a custom bid for my keyword through the user interface. Could you send over the campaign, ad group, and keyword ID from your example? If you'd prefer, you can send them only to me by clicking Reply privately to author on this message.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages