Hi there,

What I see at the interface is when it sets the mobile/Geo bid in 
percentage, say +2% makes the 'bidModifier' totally different from the one 
we are trying to set Via API,
Should I have to multiply the percentage to the maxCpc? but how to get 
cmapaign level maxCPC starting bid for as I have gone though the document, 
it is obtained on adGroup/criterion level.

 $campaignCriterionService =
  $user->GetService('CampaignCriterionService', ADWORDS_VERSION); 
 $bidModifier = $values['bidModifier'];
  
  $bidModifier = doubleval(1+($bidModifier/100));

  $id = $values['id'];
    
     $criterionObj = new Platform();
     $criterionObj->id = $id;
  

  $criterion = new CampaignCriterion();
  $criterion->campaignId = $campaignId;
  $criterion->criterion = $criterionObj;
  $criterion->bidModifier = "+".$bidModifier."%";  

  // Create SET operation.
  $operation = new CampaignCriterionOperation();
  $operation->operator = "SET";
  $operation->operand = $criterion;

  // Update campaign criteria.
  $results = $campaignCriterionService->mutate(array($operation));

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to