Re: SoapClient Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>mccaccount@address.com</email>
>   <password>********</password>
>   <applicationToken>appToken</applicationToken>
>   <developerToken>devToken</developerToken>
>   <clientEmail>client@email.com</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
> thom.simmons@spurdigital.com



-- 
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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux