Hello there, I am using the following code
ADWORDS_VERSION = v201306
 
 $AdGroupCriterionService = $user->GetService('AdGroupCriterionService', 
ADWORDS_VERSION); 
        //$bids = new ManualCPCAdGroupCriterionBids();
        //$bids = $user->GetService('BiddingStrategyService', 
ADWORDS_VERSION);    
        $adGroupCriterion = new BiddableAdGroupCriterion();
        $adGroupCriterion->adGroupId = $adGroupId;
        $adGroupCriterion->criterion = new Criterion($ary['criterionId']);
        
        $bids = new CpcBid();
        
        
        $bids->bid = new Bid(new Money(floatval($ary['maxCpc'])*1000000));
        //echo "<pre>"; print_r($bids);die;
        $biddingStrategyConfiguration = new biddingStrategyConfiguration();
        
        $biddingStrategyConfiguration->bids = $bids; 
        
        $adGroupCriterion->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;
        
    //    echo "<pre>"; print_r($adGroupCriterion);die;
        $operation = new AdGroupCriterionOperation();
        
        $operation->operand = $adGroupCriterion;
        $operation->operator = 'SET';
        
        $operations2 = array($operation);
        $result = $AdGroupCriterionService->mutate($operations2);

getting the following error : *An error has occurred: Unmarshalling Error: 
cvc-elt.4.3: Type 'ns1:Bid' is not validly derived from the type 
definition, 'Money', of element 'ns1:bid'. *

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.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 [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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to