Hello, I don't have experience using PHP5's SOAP library, but the basics of your program look correct to me. Could you provide a SOAP trace of the request and response messages that you are sending and receiving to illustrate the problem? Please X out the confidential password and token information before posting it.
Cheers, -Jeff Posnick, AdWords API Team On Sep 3, 9:23 am, digibread <[EMAIL PROTECTED]> wrote: > Hi: > > How can I use PHP 5 Ext/SOAP Function to change maxCpc? > I can use PHP 5 Ext/SOAP Function to change destinationUrl value, but > can't change maxCpc value. > my code is below > > <?php > > define('APIVERSION','v12'); > define('APIBASEURL','https://adwords.google.com/api/adwords/'); > > /** SOAP Header Parameters **/ > $aSoapArguments = array( > 'email' => 'accountEmail', > 'password' => 'accountPassword', > 'clientEmail' => 'clientEmail', > 'useragent' => 'useragent', > 'developerToken' => 'deveToken', > 'applicationToken' => 'appToken' > ); > > /** Google AdWords Service Name **/ > $sService = 'CriterionService'; > > /** Full WSDL URL **/ > $sWsdlFullUrl = APIBASEURL.APIVERSION.'/'.$sService.'?wsdl'; > > /** Service NameSpace **/ > $sServiceNameSpace = APIBASEURL.APIVERSION; > > /** Setting SOAP Header **/ > $oEMail = new SoapHeader($sServiceNameSpace,'email', > $aSoapArguments['email']); > $oPassword = new SoapHeader($sServiceNameSpace,'password', > $aSoapArguments['password']); > $oUserAgent = new SoapHeader($sServiceNameSpace,'useragent', > $aSoapArguments['useragent']); > $oClientEmail = new SoapHeader($sServiceNameSpace,'clientEmail', > $aSoapArguments['clientEmail']); > $oDeveloperToken = new SoapHeader($sServiceNameSpace,'developerToken', > $aSoapArguments['developerToken']); > $oApplicationToken = new > SoapHeader($sServiceNameSpace,'applicationToken', > $aSoapArguments['applicationToken']); > $aHeaders = array($oEMail,$oPassword,$oClientEmail,$oUserAgent, > $oDeveloperToken,$oApplicationToken); > > $oSoapClient = new SoapClient($sWsdlFullUrl); > $oSoapClient->__setSoapHeaders($aHeaders); > > /** Create updateCriteria() Parameter **/ > $oParameter = new stdClass(); > $oParameter->criteria = array(); > $oParameter->criteria[0] = new stdClass(); > $oParameter->criteria[0]->adGroupId = 123456789; > $oParameter->criteria[0]->id = 987654321; > $oParameter->criteria[0]->criterionType = 'Keyword'; > $oParameter->criteria[0]->maxCpc = 400000; > $oParameter->criteria[0]->negative = 'false'; > $oParameter->criteria[0]->destinationUrl = 'http://www.abc.com'; > > /** Call updateCriteria() **/ > $oCampaign = $oSoapClient- > > >__soapCall('updateCriteria',array($oParameter)); > > ?> > > The destinationUrl has been changed but maxCpc not changed. > > Please Help me, thank you very much. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---