Hi, 

Also for PHP, you can refer this 
example<https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/v201309/BasicOperations/AddKeywords.php>to
 set AdGroupCriterion bids.
Did you request succeed updating the AdGroupCriterion? (Please see SOAP 
logs to see if it succeeded). 
If the SOAP log says it succeeded, it succeeded. 

Best,
- Takeshi, AdWords API Team

On Friday, October 11, 2013 10:11:23 PM UTC+9, MWA wrote:
>
> Ok I got it, serached the forum and found nan example in c# 
>
> converted it in php
>
> $biddingStrategyConfiguration = new biddingStrategyConfiguration();
>         $bids = new CpcBid();
>         $bids->bid = new Money(floatval($ary['maxCpc'])*1000000);
>         
>         $biddingStrategyConfiguration->bids = new Bids();
>         $biddingStrategyConfiguration->bids = 
> $biddingStrategyConfiguration->bids->BidsType; 
>         
>         $biddingStrategyConfiguration->bids[0] = $bids; 
>         
>         $adGroupCriterion->biddingStrategyConfiguration = 
> $biddingStrategyConfiguration;
>         $operation = new AdGroupCriterionOperation();
>         
>         $operation->operator = 'SET';
>         $operation->operand = $adGroupCriterion;
>         $operations2 = array($operation);
>         
>         $result = $AdGroupCriterionService->mutate($operations2);
>
> can anybody make sure i am doing the right thing?
>
> On Friday, October 11, 2013 3:19:15 PM UTC+5, MWA wrote:
>>
>> 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