Hi,
We've been running daily reports for years now. Only one of them actually
completed this morning, at 5:26am Pacific time. All the others get stuck with in
"Pending" status.
Hey guys,
It's been over 2 hours, fired off a couple more report requests, still no luck.
Could someone please give the machine a kick for me? What info do you need from
me to troubleshoot? I've left one report "running" that is stuck in Pending
purgatory, its ID is 3673264413. Please let me know what you find. Thank you.
Kevin
I'm having the following very very frustrating problem.
I try to request a report (using Java and connecting to the sandbox) giving the start and end date for the period, explicitly making them in EST time. Then I also set the calendar object that is passed to the request as EST too. Here's the code:
In this case I get a report for days 17th and 18th instead of 18th and 19th with the following info in the XML: dateStart="2010-01-17-0800" dateEnd="2010-01-18-0800" I realize that this is because in PST the requested times really are Jan 17th 10 pm and Jan 18th 10 pm and so I get the reports for Jan 17-18 12 am to 11:59:59 pm PST time.
How can I request the report to include the EST times instead?
Thanks in advance for any help. Maybe I'm missing something crucial here.
We've been unsuccessfully trying to schedule some reports using
BasicReportService's addReportRequest operation.
This is our request XML:
<env:Envelope xmlns:wsdl="http://marketing.ews.yahooapis.com/V6"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<license>XXXXXXXX</license>
<username>XXXXXXX</username>
<masterAccountID>XXXXXXX</masterAccountID>
<password>XXXXXX</password>
<accountID>XXXXXXX</accountID>
</env:Header>
<env:Body>
<wsdl:addReportRequest>
<accountID>XXXXXXXX</accountID>
<reportRequest>
<dateRange>Yesterday</dateRange>
<reportName>abhinay test</reportName>
<reportType>KeywordSummary</reportType>
</reportRequest>
<fileOutputFormat>
<fileOutputType>CSV</fileOutputType>
<zipped>true</zipped>
</fileOutputFormat>
</wsdl:addReportRequest>
</env:Body>
</env:Envelope>
The error we get back is: "A required field or parameter is missing or empty:
reportName".
Report Name is clearly there in the request XML, so what are we doing wrong? We
can make other API calls, just this one is not working.
We're using V6 of the API.
Any assistance would be appreciated.
Thanks,
Abs
I am trying to integrate the YAhoo EWS code in my site.The php version
that iam using is 5.3.1. When trying to run the script its showing SOAP
error and iam not able to connect to the API at the first time itself.Do
i have to set the date_default_timezone.
Iam adding the error that iam getting when that page is called. Hope You
can help me to solve this issue.
[debug] Yahoo! EWS PHP Client [debug] Opening sample data file
./sample_data_US.properties [debug] Successfully loaded sample data file
[debug] CACHE_FILE_NAME: ews_cache_sandboxmarketingewsyahooapiscom
[debug] 22939650466,
https://sandbox.marketing.ews.yahooapis.com/services; [debug] 1 account
location read from cache. Array ( [22939650466] =>
https://sandbox.marketing.ews.yahooapis.com/services ) [debug] Creating
V6/CampaignService client
*Fatal error*: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from
'https://sandbox.marketing.ews.yahooapis.com/services/V6/CampaignService?wsdl'
: Extra content at the end of the document in
E:\xampp\htdocs\xampp\test\YahooEWSClient.php:558 Stack trace: #0
E:\xampp\htdocs\xampp\test\YahooEWSClient.php(558):
SoapClient->SoapClient('https://sandbox...', Array) #1
E:\xampp\htdocs\xampp\test\YahooEWSClient.php(94):
createClient('V6/CampaignServ...', '22939650466') #2 {main} thrown in
*E:\xampp\htdocs\xampp\test\YahooEWSClient.php* on line *558*
Hello,
I work in java with api 6.0 (generated the stub with wsdl)
I successfully use the BasicReportServiceService and service locator service to
get the AdKeywordSummaryByDay report on sandbox
I now try to work with AccountServiceService to agains the sandbox
I sucess to get the url location and the AccountService_PortType
ass = new AccountServiceServiceLocator();
....
aspt = ass.getAccountService(url);
but then i try to get ArrayOfAccount i got an error
code use:
ArrayOfAccount aoa=aspt.getAccounts();
give error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: Invalid operation.
faultActor:
faultNode:
faultDetail:
{http://marketing.ews.yahooapis.com/V6}ApiFault:<yns:code>E1050</yns:code><yns:m\
essage>Invalid operation.</yns:message>
Invalid operation.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI\
mpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA\
ccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
any idea are welcome ...
thanks for any support
Are there any examples anywhere? I've got the WSDL and generated the stubs and
most of it I understand, but I don't get where to put the credentials.
TIA
I'm using C#/.NET, the ICSharpCode.SharpZipLib ZIP library, and v6.1 of EWS
When I run a BasicReport I set zipped=true in my FileOutputFormat. But what
kind of ZIP protocol is it sending back? When I try to use GZIP I get
Error GZIP header, first magic byte doesn't match
at ICSharpCode.SharpZipLib.GZip.GZipInputStream.ReadHeader
SO I thought maybe Yahoo's not using Gzip, rather, just plain ZIP. But when I
try to use ZIP format I get
Unable to read from this stream
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.ReadingNotAvailable()
Any help here?
Hi, is your problem resolved? I encountered exactly the same issue when
upgrading from V5 to V6.
Thanks
--- In yws-searchmarketing@yahoogroups.com, "Wan, Fang" <afw340@...> wrote:
>
> I'm trying to upgrade our current EWS reports downloading program to V2
> now. It's in C# .Net. But every time when I run to
> getMasterAccountLocation , it always tells me "Login failed for
> MasterLogin". Same login works fine with v1. Can anybody tell me why?
> Thanks a lot!
>
> The locationservice URL I was using is
> https://sandbox.marketing.ews.yahooapis.com/services/V2/LocationService
>
When do the addReportRequest call in v6 without specifying the accountID as
None, I got "E1009, Message: Account not found"; The accountID field is
specified as optionally.
What's the right way to set the accountID if it's None?
<SOAP-ENV:Body>
<addReportRequest xmlns="http://marketing.ews.yahooapis.com/V6"
SOAP-ENC:root="1">
<v1 xsi:null="1"/>
<v2><endDate>2009-12-08T00:00:00</endDate>
<reportName>Report (1425700) 2009-12-08 12:12:49.114000</reportName>
<reportType>KeywordSummaryByDay</reportType>
<startDate>2009-12-01T00:00:00</startDate>
</v2>
<v3><fileOutputType>XML</fileOutputType>
<zipped>False</zipped>
</v3>
</addReportRequest>
</SOAP-ENV:Body>
I am trying to integrate the YAhoo EWS code in my site.The php version
that iam using is 5.3.1. When trying to run the script its showing SOAP
error and iam not able to connect to the API at the first time itself.Do
i have to set the date_default_timezone_set( "" );.If thats needed then
can you pls tell me through which link i can get the time zone of the
masters account.
Iam adding the error that iam getting when that page is called. Hope You
can help me to solve this issue.
[debug] Yahoo! EWS PHP Client [debug] Opening sample data file
./sample_data_US.properties [debug] Successfully loaded sample data file
[debug] CACHE_FILE_NAME: ews_cache_sandboxmarketingewsyahooapiscom
[debug] 22939650466,
https://sandbox.marketing.ews.yahooapis.com/services; [debug] 1 account
location read from cache. Array ( [22939650466] =>
https://sandbox.marketing.ews.yahooapis.com/services ) [debug] Creating
V6/CampaignService client
*Fatal error*: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: Couldn't load from
'https://sandbox.marketing.ews.yahooapis.com/services/V6/CampaignService?wsdl'
: Extra content at the end of the document in
E:\xampp\htdocs\xampp\test\YahooEWSClient.php:558 Stack trace: #0
E:\xampp\htdocs\xampp\test\YahooEWSClient.php(558):
SoapClient->SoapClient('https://sandbox...', Array) #1
E:\xampp\htdocs\xampp\test\YahooEWSClient.php(94):
createClient('V6/CampaignServ...', '22939650466') #2 {main} thrown in
*E:\xampp\htdocs\xampp\test\YahooEWSClient.php* on line *558*
Please take a look at the following sample code:
http://developer.searchmarketing.yahoo.com/docs/V6/sample_code/index.php
While there is no specific sample code for reporting APIs, how to add
credentials is common to all APIs in all languages.
--- In yws-searchmarketing@yahoogroups.com, "billharrelson" <bill.harrelson@...>
wrote:
>
> Could someone post an example message for requesting a report? I'm having
some difficulty generating one that is acceptable.
>
> Thanks.
>
Hello,
You are not accessing the account at the correct EWS endpoint.
The endpoint to hit should be fetched using the LocationService as described at
the URL below.
http://developer.searchmarketing.yahoo.com/docs/V6/gsg/locations.php
--- In yws-searchmarketing@yahoogroups.com, "sreenu_daram" <sreenu_daram@...>
wrote:
>
> Could you please provide me sample code set BlockedDomainList for Account.
> I am getting 'Account cannot be accessed at this location.' Error.
>
Sending a NULL value is achieved by passing...
<v1 xsi:nil="true"/> no <v1 xsi:null="1"/>
Details can be found at the following URL:
http://www.w3.org/TR/xmlschema-1/#xsi_nil.
--- In yws-searchmarketing@yahoogroups.com, "zhanga05" <zhanga05@...> wrote:
>
> When do the addReportRequest call in v6 without specifying the accountID as
None, I got "E1009, Message: Account not found"; The accountID field is
specified as optionally.
> What's the right way to set the accountID if it's None?
>
> <SOAP-ENV:Body>
> <addReportRequest xmlns="http://marketing.ews.yahooapis.com/V6"
SOAP-ENC:root="1">
> <v1 xsi:null="1"/>
> <v2><endDate>2009-12-08T00:00:00</endDate>
> <reportName>Report (1425700) 2009-12-08 12:12:49.114000</reportName>
> <reportType>KeywordSummaryByDay</reportType>
> <startDate>2009-12-01T00:00:00</startDate>
> </v2>
> <v3><fileOutputType>XML</fileOutputType>
> <zipped>False</zipped>
> </v3>
> </addReportRequest>
> </SOAP-ENV:Body>
>
If I have 50 previously submitted reports for a given masterAccount/user and
call the addReportRequest() method, does it throw an error, if so which one? if
not, does it push the first report out of the queue?
I am using V6 sample code and testing different bulk service operation. I have
changed the sample code to return feedback file for success and also failures.
During my testing I see that the INSERT operation works fine when I try to add
new campaign. The feedback file has a row for successful campaign. I have also
confirmed the new campaign shows up when i login to yahoo search marketing
webapp.
But when I try to update/delete the same campaign, I get a blank feedback file
(it has only column headers). The BulkUploadStatus is successful, so I thought
everything went fine. But I do not see anything changed in the webapp. I dont
see any updates or removal of that campaign in the webapp.
The bulk file I am uploading is a xml based on the v6 xsd
http://developer.searchmarketing.yahoo.com/docs/V6/BulkUpload.xsd
I m not sure why insert operation works fine and not the other.
Please advise.
Tejesh.
I agree that a collection of just XML SOAP request/EWS response document for
each of the methods would be great. I don't use any of the client libraries
because they all see to compile in the username/password info, and I work with
way too many clients for that to work out. So I create my SOAP documents via
server side programming using SOAP templates for each method that I use.
Here is the V6 report request template that I just made this week as part of my
V6 upgrade process. Hope it helps you. Just fill in the access information and
the start/end dates. Hopefully the formatting stays intact!
-reed
<cfxml variable="mstring">
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:namesp1="http://marketing.ews.yahooapis.com/V6"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
>
<soap:Header>
<wsse:Security>
<wsse:UsernameToken soapenc:arrayType="xsd:string[2]" xsi:type="soapenc:Array">
<wsse:Username xsi:type="xsd:string">Username</wsse:Username>
<wsse:Password xsi:type="xsd:string">Password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<license
xmlns="http://marketing.ews.yahooapis.com/V6" xsi:type="xsd:string">
License</license>
<masterAccountID
xmlns="http://marketing.ews.yahooapis.com/V6" xsi:type="xsd:string">
MasterAccountID</masterAccountID>
<accountID
xsi:type="xsd:string">Acct_ID</accountID>
<wsse:onBehalfOfUsername
xsi:type="xsd:string">APIlogin</wsse:onBehalfOfUsername>
<wsse:onBehalfOfPassword
xsi:type="xsd:string">#APIpas</wsse:onBehalfOfPassword>
</soap:Header>
<soap:Body>
<addReportRequest
xmlns="http://marketing.ews.yahooapis.com/V6">
<accountID>Acct_ID</accountID>
<reportRequest>
<startDate xsi:type="tns:Date">#variables.DateToPull#T12:00:00</startDate>
<endDate xsi:type="tns:Date">#variables.DateToPull#T12:00:00</endDate>
<reportName xsi:type="xsd:string">Keyword report</reportName>
<reportType xsi:type="tns:BasicReportType">KeywordSummary</reportType>
</reportRequest>
<fileOutputFormat>
<fileOutputType xsi:type="tns:FileOutputType">XML</fileOutputType>
<zipped>true</zipped>
</fileOutputFormat>
</addReportRequest>
</soap:Body>
</soap:Envelope>
--- In yws-searchmarketing@yahoogroups.com, "billharrelson" <bill.harrelson@...>
wrote:
>
> Could someone post an example message for requesting a report? I'm having
some difficulty generating one that is acceptable.
>
> Thanks.
>
I'm using C#/.NET, the ICSharpCode.SharpZipLib ZIP library, and v6.1 of
EWS
When I run a BasicReport I set zipped=true in my FileOutputFormat. But
what kind of ZIP protocol is it sending back? When I try to use GZIP I
get
Error GZIP header, first magic byte doesn't match
at ICSharpCode.SharpZipLib.GZip.GZipInputStream.ReadHeader
SO I thought maybe Yahoo's not using Gzip, rather, just plain ZIP. But
when I try to use ZIP format I get
Unable to read from this stream
at ICSharpCode.SharpZipLib.Zip.ZipInputStream.ReadingNotAvailable()
Any help here?
It uses standard zip format - the output of 'file some_report.zip' is:
'Zip archive data, at least v2.0 to extract'.
However we have identified an issue with some Yahoo service endpoints,
where the zip files are being corrupted ( specifically the zip header
is corrupted ).
You can use 'gzip -d' to extract the report still, but this is a hack,
and if you're using .NET, I assume you don't have a linux / unix system
to run gzip on, in which case, you have a problem. The syggested
workaround from Yahoo is to not request zipped reports.
Dan
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
l
Daniel Kasak > DNA Application Developer
T: +61.2.8968.4035; F: +61.2.9909.3572; Daniel.Kasak@...
24/7 Real Media, Inc., A WPP Company
First Floor, 15-19 Parraween St
Cremorne, NSW 2090
How do the report slots work?
If i have 50 reports already submitted. When i try and submit another one does
it throw an error or does it push the first one submitted out of the queue?
There was a subtle change in v6 dealing with capitalization of most items, so if
you look closely you'll see that it is looking for "ReportName" and you have
defined "reportName" because "reportName" is what V5 used. Simple fix, but a
pain in the a** going through all the scripts to make those changes.
Can anyone give me a .Net sample to download a report? Thanks!
Awan
--- In yws-searchmarketing@yahoogroups.com, "reedpowell" <powell@...> wrote:
>
> I agree that a collection of just XML SOAP request/EWS response document for
each of the methods would be great. I don't use any of the client libraries
because they all see to compile in the username/password info, and I work with
way too many clients for that to work out. So I create my SOAP documents via
server side programming using SOAP templates for each method that I use.
>
> Here is the V6 report request template that I just made this week as part of
my V6 upgrade process. Hope it helps you. Just fill in the access information
and the start/end dates. Hopefully the formatting stays intact!
> -reed
>
>
> <cfxml variable="mstring">
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope
>
xmlns:namesp1="http://marketing.ews.yahooapis.com/V6"
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
>
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
> >
> <soap:Header>
> <wsse:Security>
>
<wsse:UsernameToken soapenc:arrayType="xsd:string[2]" xsi:type="soapenc:Array">
>
<wsse:Username xsi:type="xsd:string">Username</wsse:Username>
>
<wsse:Password xsi:type="xsd:string">Password</wsse:Password>
>
</wsse:UsernameToken>
> </wsse:Security>
> <license
xmlns="http://marketing.ews.yahooapis.com/V6" xsi:type="xsd:string">
> License</license>
> <masterAccountID
xmlns="http://marketing.ews.yahooapis.com/V6" xsi:type="xsd:string">
> MasterAccountID</masterAccountID>
> <accountID
xsi:type="xsd:string">Acct_ID</accountID>
> <wsse:onBehalfOfUsername
xsi:type="xsd:string">APIlogin</wsse:onBehalfOfUsername>
> <wsse:onBehalfOfPassword
xsi:type="xsd:string">#APIpas</wsse:onBehalfOfPassword>
> </soap:Header>
>
> <soap:Body>
> <addReportRequest
xmlns="http://marketing.ews.yahooapis.com/V6">
>
<accountID>Acct_ID</accountID>
>
<reportRequest>
>
<startDate xsi:type="tns:Date">#variables.DateToPull#T12:00:00</startDate>
>
<endDate xsi:type="tns:Date">#variables.DateToPull#T12:00:00</endDate>
>
<reportName xsi:type="xsd:string">Keyword report</reportName>
>
<reportType xsi:type="tns:BasicReportType">KeywordSummary</reportType>
>
</reportRequest>
>
<fileOutputFormat>
>
<fileOutputType xsi:type="tns:FileOutputType">XML</fileOutputType>
>
<zipped>true</zipped>
>
</fileOutputFormat>
> </addReportRequest>
> </soap:Body>
> </soap:Envelope>
>
>
> --- In yws-searchmarketing@yahoogroups.com, "billharrelson" <bill.harrelson@>
wrote:
> >
> > Could someone post an example message for requesting a report? I'm having
some difficulty generating one that is acceptable.
> >
> > Thanks.
> >
>
Very helpful. I notice that you are using "OnBehalfOf" in your
template, and I can't
find any documentation on which sets of un/pw/master account id's/api
key work.
I think I must be very confused.
Say I have two accounts:
acct1 username=un1 password=pw1 masterAccountId=ma1 - this is the
account that has the API token (token1)
acct2 username=un2 password=pw2 masterAccountId=ma2- this account is a
sub-account of acct1
Now, I want to retrieve a report for acct2.
If I set un=un1, pw=pw1, maId=ma1, oboUn=un2, oboPw=pw2, token1 - I
get the report back for the first account, not the second that I wanted.
If I set un=un1, pw=pw1, maId=ma2, oboUn=un2, oboPw=pw2 token1 - I get
'can't log in for un1'
If I set un=un2, pw=pw2, maId=ma2, oboUn=un1, oboPw=pw1, token 1 - I
get "Account cannot be accessed at this location." so clearly I've got
the location wrong.
So I call location service with un=un2, pw=pw2, maId=ma2, oboUn=un1,
oboPw=pw1, token 1 and I get 'token1' is not a valid license key.
There's something I'm clearly not understanding about this api and am
looking for help anywhere I can get it. It all worked fine in V5.
TIA
Bill
reedpowell wrote:
I agree that a collection of just XML SOAP request/EWS response
document for each of the methods would be great. I don't use any of the
client libraries because they all see to compile in the
username/password info, and I work with way too many clients for that
to work out. So I create my SOAP documents via server side programming
using SOAP templates for each method that I use.
Here is the V6 report request template that I just made this week as
part of my V6 upgrade process. Hope it helps you. Just fill in the
access information and the start/end dates. Hopefully the formatting
stays intact!
-reed
--- In yws-searchmarketing@yahoogroups.com,
"billharrelson" <bill.harrelson@...> wrote:
>
> Could someone post an example message for requesting a report? I'm
having some difficulty generating one that is acceptable.
>
> Thanks.
>
I looked at a bunch of code samples, and none is for V7.
The XML samples for BasicReport are for v5.
context:
I've been asked to upgrade a v5 script to v7 before v5 goes away, and I'm
wondering if I should do v6 instead.
Bill
Hi all,
I'm currently working on migrating some Perl scripts which use the version 5
API, to Java on the version 6 API. However, I'm coming across a few issues and I
was wondering if anyone would be able to help ?
Firstly, I am getting an error which says my license key is invalid, although it
works fine on the current scripts we have for the version 5 API. Has anyone had
a similar thing happen to them ? Do I need a new license key for using a
different API version ?
Also, I can't seem to see how I can set the on_behalf_of_username and
on_behalf_of_password. Could anyone point me in the right direction ?
Thanks very much
I am upgrading to v6 from v5. All works in v6 except addreportrequest. I am
using python to make the soap call and I get a 500 error.
What am I doing wrong? All of my other 6v calls work.
import urllib2
xml_request="""
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://marketing.ews.yahooapis.com/V6">
<soapenv:Header>
<wsse:Security>
<wsse:UsernameToken>
<wsse:Username>xxxxx</wsse:Username>
<wsse:Password>xxxxx</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<v6:license>xxxxxx</v6:license>
<v6:masterAccountID>xxxxxx</v6:masterAccountID>
<v6:onBehalfOfPassword></v6:onBehalfOfPassword>
<v6:onBehalfOfUsername></v6:onBehalfOfUsername>
</soapenv:Header>
<soapenv:Body>
<v6:addReportRequest>
<v6:accountID xsi:nil="true" />
<v6:reportRequest>
<v6:endDate>2010-03-09T00:00:00-10:00</v6:endDate>
<v6:reportName>YahooKeywordReport</v6:reportName>
<v6:reportType>AdSummaryByDay</v6:reportType>
<v6:startDate>2010-03-09T00:00:00-10:00</v6:startDate>
</v6:reportRequest>
<v6:fileOutputFormat>
<v6:fileOutputType>XML</v6:fileOutputType>
<v6:zipped>false</v6:zipped>
</v6:fileOutputFormat>
</v6:addReportRequest>
</soapenv:Body>
</soapenv:Envelope>
"""
service_url = 'https://ews13.marketing.ews.yahooapis.com/services' + '/' + 'V6/'
+ 'BasicReportService'
headers = {'Content-Type': 'Content-Type: text/xml;
charset=utf-8','Content-Length': len(xml_request)}
req = urllib2.Request(service_url,xml_request, headers)
print xml_request
xml = urllib2.urlopen(req).read()
print xml
I'm using Yahoo Service Marketing API version 7 and Visual Studio 2008 for your information. Problem occurs when I'm making .addReportRequest call on the BasicReportService object. This method requires existence of some objects like 'Security' and 'BasicReportRequest'. Some properties of this objects are required so I have to add them. But there is problem. For example, for object 'BasicReportRequest' i have to add property 'reportType' but there is no 'set' method for this class. For example:
BasicReportRequest request = BasicReportType(); request.reportName = "Report"; request.reportType = Yahoo.BasicReportType.AccountSummary; <==== this is erorr, because this property is read only.