Re: [SOAP] SoapClient Help

[email protected] (Jeffery Fernandez)
Newsgroups php.soap
Organization Internet Vision Technologies
Message-ID <[email protected]>
On Tue, 11 Dec 2007 04:44:41 am Thom Simmons wrote:
> I am trying to write a SoapClient to access Google Adwords v11 Reporting
> Service.
>
> A sample SOAP Envelope:
>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:impl="https://adwords.google.com/api/adwords/v11">
>  <SOAP-ENV:Header>
>   <email>[email protected]</email>
>   <password>********</password>
>   <applicationToken>appToken</applicationToken>
>   <developerToken>devToken</developerToken>
>   <clientEmail>[email protected]</clientEmail>
>   <useragent>userAgentForReport</useragent>
>
>  </SOAP-ENV:Header>
>
>  <SOAP-ENV:Body>
>  <validateReportJob xmlns='https://adwords.google.com/api/adwords/v11'>
>
>   <job xsi:type='DefinedReportJob'>
>    <selectedReportType>Keyword</selectedReportType>
>    <aggregationTypes>Summary</aggregationTypes>
>    <selectedColumns>KeywordDestUrlDisplay</selectedColumns>
>    <selectedColumns>KeywordMinCPC</selectedColumns>
>    <selectedColumns>Keyword</selectedColumns>
>    <selectedColumns>KeywordId</selectedColumns>
>    <selectedColumns>DailyBudget</selectedColumns>
>    <selectedColumns>MaximumCPC</selectedColumns>
>    <selectedColumns>Impressions</selectedColumns>
>    <selectedColumns>Clicks</selectedColumns>
>    <selectedColumns>CTR</selectedColumns>
>    <selectedColumns>CPC</selectedColumns>
>    <selectedColumns>Cost</selectedColumns>
>    <selectedColumns>AveragePosition</selectedColumns>
>    <endDay>2008-12-05</endDay>
>    <startDay>2008-12-01</startDay>
>    <name>account26</name>
>   </job>
>  </validateReportJob>
>  </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> I need to know how I would go about creating the Job object with SoapVar
> or if I should define a class and pass it as my params for the client.
> I don't know exactly how all this works as I am still very new to the
> native SOAP extension for PHP but I really need to learn it properly.

what have you tried so far ?

>
> Are there any better documentation or tutorials for the native SOAP
> extension that use more complicated SOAP Envelopes?
>
> Thom Simmons
> Web Developer and Systems Administrator
> Spur Digital | Online Marketing Solutions
> 24 Greenway Plaza, Suite 1000
> Houston, Texas 77046
> 713-586-6468
> [email protected]



-- 
Internet Vision Technologies
Level 1, 520 Dorset Road
Croydon
Victoria - 3136
Australia
web: http://www.ivt.com.au
phone: +61 3 9723 9399
fax: +61 3 9723 4899
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.