Remove experiment and keep old bids intact

35 views
Skip to first unread message

Sarah Riddell

unread,
Jun 11, 2015, 2:49:50 AM6/11/15
to adwor...@googlegroups.com
Hi,

When i remove experiment from a campaign, the old bids on my keyword is not intact its previous value, it goes to its default value not the previous value.


how can i remove experiments & keep my old bids intact(previous cpc bid not default bid)?

Thanks

Sarah

ingva...@gmail.com

unread,
Jun 12, 2015, 8:52:40 AM6/12/15
to adwor...@googlegroups.com
Hello,

I just wanted to add some clarity to Sarah's question.
We are building a system that automatically creates experiments and updates experimental bid multipliers for keywords.
If the experiment is successful the system applies the experiments, otherwise it deletes the experiments and starts all over again.

The problem that we are having right now is when we are applying experimental bid multiplier to a keyword, its cpc_bid changes to the default value.

The event sequence is following:
1. set default bid for an adgroup
2. create a keyword in the adgroup
3. change the keyword's cpc_bid from the default to a custom value
4. create an experiment for the campaign
5. apply experimental bid multiplier to the keyword

on the step 5 keyword's cpc_bid changes from the custom back to the default value

here is the code snippet of setting experimental bid multiplier:
// Create ad group bid multipliers to be used in the experiment.
        $adGroupBidMultipliers = new ManualCPCAdGroupCriterionExperimentBidMultiplier();
        $adGroupBidMultipliers->maxCpcMultiplier = new BidMultiplier(2.5); //we set bid multiplier here


        // Create experiment data for a new experiment-only keyword.
        $adGroupCriterionExperimentData =new BiddableAdGroupCriterionExperimentData();
        $adGroupCriterionExperimentData->experimentId = $experimentId;
        $adGroupCriterionExperimentData->experimentDeltaStatus = 'MODIFIED';
        $adGroupCriterionExperimentData->experimentBidMultiplier=$adGroupBidMultipliers;

      // Find Keyword.
        $keyword = new Keyword('vacation', 'BROAD', 10030320); // keyword_text, match_type, keyword_id

        // Create ad group criterion.
        $adGroupCriterion = new BiddableAdGroupCriterion();
        $adGroupCriterion->adGroupId = 54545454;  //adgroup_id
        $adGroupCriterion->criterion = $keyword;

        $adGroupCriterion->experimentData = $adGroupCriterionExperimentData;


        // Create operation.
        $adGroupCriterionOperation = new AdGroupCriterionOperation();
        $adGroupCriterionOperation->operand = $adGroupCriterion;
        $adGroupCriterionOperation->operator = 'ADD';

        $adGroupCriterionOperations = array($adGroupCriterionOperation);

        // Make the mutate request.
        $result = $adGroupCriterionService->mutate($adGroupCriterionOperations);

Anash P. Oommen (AdWords API Team)

unread,
Jun 12, 2015, 3:21:35 PM6/12/15
to adwor...@googlegroups.com, ingva...@gmail.com
Hi,

I think the right way to apply an experiment is to change the Experiment's status to PROMOTED. See https://developers.google.com/adwords/api/docs/reference/v201502/ExperimentService.Experiment#status for details.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages