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.
1. How to add experiment *bidMultiplier* to keyword that will change Max
CPC with current value not default value within adgroup?
2. 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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/1864e78b-e619-4ae4-9bfc-62a93d5bc3d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.