after several hours can't get this to work
and the error is not the most helpful.

simply trying to update the bid for a keyword : 
using the php client library and api version 201409


$adGroupCriterionService = $user->GetService('AdGroupCriterionService', 
ADWORDS_VERSION);
  $operations = array();
    // Create keyword criterion.
$criterion = new Criterion();
        $criterion->id = $keywordId;

        // Create ad group criterion.
        $adGroupCriterion = new BiddableAdGroupCriterion();
        $adGroupCriterion->adGroupId = $adgroupId;
        $adGroupCriterion->criterion = $criterion;
        
        $bid = new CpcBid(new Money(floatval($newcpc) * 
AdWordsConstants::MICROS_PER_DOLLAR));
    $biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->bids = $bid;
$adGroupCriterion->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;
        
        // Create operation.
        $operation = new AdGroupCriterionOperation();
        $operation->operand = $adGroupCriterion;
        $operation->operator = 'SET';

        $operations[] = array($operation);
                 $result = $adGroupCriterionService->mutate($operations);


anything I'm doing wrong here
I get a : Fault occurred while processing.

thanks for your help
cheers
A.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
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/d56420e3-8707-4c1b-9c4a-7052f8cd6fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to