Hi Adeel, The error you mention can come only if you don't have UPDATE access to the client account. Can you confirm if the login email you are using to generate your OAuth2/ClientLogin tokens have permission to update the account you are making calls to?
Cheers, Anash P. Oommen, AdWords API Advisor On Monday, September 30, 2013 4:25:05 AM UTC+5:30, Adeel Ahmed wrote: > > I am using custom made PHP script (nolibrary) for AdWords API. I am able > to fetch Campaign's data and AdGroup's Data and as per some calculation, I > want to change CpcBid of specific AdGroups (Top Level - not ads/keywords > within AdGroup). > > $adgroupidx="1122334455"; > $bid=0.12 * 1000000; > > $bid1_soap=new SoapVar(NULL, NULL, 'money',ADWORDS_API_NAMESPACE); > $bid1_soap->microAmount=$bid; > > $bid2=array("bid"=>$bid1_soap); > $bid2_soap=new SoapVar(NULL, NULL, 'CpcBid',ADWORDS_API_NAMESPACE); > $bid2_soap->bid=$bid1_soap; > > > $BiddingStrategyConfiguration=new SoapVar(NULL, NULL, > 'BiddingStrategyConfiguration',ADWORDS_API_NAMESPACE); > > $BiddingStrategyConfiguration->bids=array($bid2_soap); > > > > $request = array( > "mutate" => array( > "operations" => array( > > array("operator"=>"SET","operand"=>array("id"=>$adgroupidx,"biddingStrategyConfiguration"=>array("bids"=>array($bid2_soap))) > ) > ) > //--operations > ) > //---mutate > ); > //---request > > Now after running SOAP CALL... I get error... > > [message:protected] => [OperationAccessDenied.ACTION_NOT_PERMITTED @ ] > > Some part of error... shows request variable as... > > > [1] => Array > > ( > > [mutate] => Array > > ( > > [operations] => Array > > ( > > [0] => Array > > ( > > [operator] => SET > > [operand] => Array > > ( > > [id] => > 1122334455 > > > [biddingStrategyConfiguration] => Array > > ( > > [bids] > => Array > > ( > > > [0] => SoapVar Object > > > ( > > > [enc_type] => 999998 > > > [enc_stype] => CpcBid > > > [enc_ns] => https://adwords.google.com/api/adwords/cm/v201306 > > > [bid] => SoapVar Object > > > ( > > > [enc_type] => 999998 > > > [enc_stype] => money > > > [enc_ns] => > https://adwords.google.com/api/adwords/cm/v201306 > > > [microAmount] => 120000 > > > ) > > > > ) > > > ) > > > ) > > > ) > > > ) > > > ) > > > ) > > > ) > > > ----------------------------------- > > Error part: > > [faultstring] => [OperationAccessDenied.ACTION_NOT_PERMITTED @ ] > [faultcode] => soap:Server > [detail] => stdClass Object > ( > [ApiExceptionFault] => stdClass Object > ( > [message] => [OperationAccessDenied.ACTION_NOT_PERMITTED > @ ] > [ApplicationException.Type] => ApiException > [errors] => SoapVar Object > ( > [enc_type] => 0 > [enc_value] => stdClass Object > ( > [fieldPath] => > [trigger] => > [errorString] => > OperationAccessDenied.ACTION_NOT_PERMITTED > [ApiError.Type] => OperationAccessDenied > [reason] => ACTION_NOT_PERMITTED > ) > > [enc_stype] => OperationAccessDenied > [enc_ns] => > https://adwords.google.com/api/adwords/cm/v201306 > ) > > ) > > ) > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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.