Thank you Jeff

My Request xml is :

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/v12";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <SOAP-ENV:Header>
                <ns1:email>XXXX</ns1:email>
                <ns1:password>XXXXXX</ns1:password>
                <ns1:clientEmail>XXXXX</ns1:clientEmail>
                <ns1:useragent>XXXXX</ns1:useragent>
                <ns1:developerToken>XXXXXX</ns1:developerToken>
                <ns1:applicationToken>XXXXXXXX</ns1:applicationToken>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>
                <ns1:updateCriteria>
                        <ns1:criteria>
                                <ns1:adGroupId>123456789</ns1:adGroupId>
                                <ns1:criterionType>Keyword</ns1:criterionType>
                                <ns1:destinationUrl></ns1:destinationUrl>
                                <ns1:id>987654321</ns1:id>
                                <ns1:language xsi:nil="true"/>
                                <ns1:negative xsi:nil="true"/>
                        </ns1:criteria>
                </ns1:updateCriteria>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

and my Response is :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Header>
     <responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/
actor/next" soapenv:mustUnderstand="0" xmlns="https://
adwords.google.com/api/adwords/v12">59</responseTime>
      <operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v12">1</operations>
      <units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v12">3</units>
      <requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v12">aafdea3e5a4675c0b838eba9ed95670d</requestId>
 </soapenv:Header>
 <soapenv:Body>
      <updateCriteriaResponse xmlns="https://adwords.google.com/api/
adwords/v12"/>
 </soapenv:Body>
</soapenv:Envelope>

Why the "maxCpc" Element is not in my Request xml?
How can i do?

Please Help me and Thank you again.

On 9月4日, 上午12时12分, AdWords API Advisor <[EMAIL PROTECTED]>
wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to