Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

yws-searchmarketing · Yahoo! Search Marketing Developers

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

Advanced
Messages Help
Messages 1090 - 1119 of 1164   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#1090 From: "kdwmoney94309" <kwallace@...>
Date: Mon Feb 8, 2010 4:29 pm
Subject: Reports Stuck in Pending
kdwmoney94309
Send Email Send Email
 
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.

#1091 From: "kdwmoney94309" <kwallace@...>
Date: Mon Feb 8, 2010 6:51 pm
Subject: Re: Reports Stuck in Pending
kdwmoney94309
Send Email Send Email
 
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

#1092 From: "stan.dragnev" <stan.dragnev@...>
Date: Thu Jan 21, 2010 8:18 pm
Subject: BasicReportService always returns PST time
stan.dragnev
Send Email Send Email
 
Hi there,

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:

        java.util.Date startDate = df.parse("2010-01-18 00:00:00 GMT-5:00");
        java.util.Date endDate = df.parse("2010-01-19 00:00:00 GMT-5:00");

        startCal.setTime(startDate);
        endCal.setTime(endDate);
        startCal.setTimeZone(TimeZone.getTimeZone("EST"));
        endCal.setTimeZone(TimeZone.getTimeZone("EST"));
        reportRequest.setStartDate(startCal);
        reportRequest.setEndDate(endCal);


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.

Stan

#1093 From: "ficticio77" <ficticio77@...>
Date: Tue Dec 15, 2009 6:37 pm
Subject: Java Report Example
ficticio77
Send Email Send Email
 
Hello everybody!

Someone can help me? I need a example to get a report with Java.

Thank you very much

#1094 From: "abhinay.mehta" <abhinay.mehta@...>
Date: Tue Jan 19, 2010 4:15 pm
Subject: Unable to make certain API calls
abhinay.mehta
Send Email Send Email
 
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

#1095 From: "josephsilvestercorreya@..." <josephsilvestercorreya@...>
Date: Tue Feb 2, 2010 7:34 am
Subject: GEtting SOAP WSDL Error when trying to connect using API
josephsilves...
Send Email Send Email
 
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*

#1096 From: "kelkoolionelg" <kelkoolionelg@...>
Date: Thu Dec 10, 2009 4:06 pm
Subject: <yns:code>E1050</yns:code><yns:message>Invalid operation.</yns:message>
kelkoolionelg
Send Email Send Email
 
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

#1097 From: "billharrelson" <bill.harrelson@...>
Date: Tue Jan 5, 2010 11:05 pm
Subject: BasicReportingService v6
billharrelson
Send Email Send Email
 
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

#1098 From: "shodson" <shodson@...>
Date: Wed Feb 17, 2010 11:38 pm
Subject: Which ZIP format?
shodson
Send Email Send Email
 
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?

#1099 From: "peng_qu" <peng_qu@...>
Date: Wed Jan 27, 2010 5:40 am
Subject: Re: Same API login info for V2
peng_qu
Send Email Send Email
 
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
>

#1100 From: "sreenu_daram" <sreenu_daram@...>
Date: Thu Dec 10, 2009 1:15 pm
Subject: Sample code to setBlockedDomainListForAccount
sreenu_daram
Send Email Send Email
 
Could you please provide me sample code set BlockedDomainList for Account.
I am getting 'Account cannot be accessed at this location.' Error.

#1101 From: "zhanga05" <zhanga05@...>
Date: Tue Dec 8, 2009 8:19 pm
Subject: addReportRequest in v6 account not found error
zhanga05
Send Email Send Email
 
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>

#1102 From: "billharrelson" <bill.harrelson@...>
Date: Wed Dec 23, 2009 8:03 pm
Subject: Version 6.0 BasicReportingService example?
billharrelson
Send Email Send Email
 
Could someone post an example message for requesting a report?  I'm having some
difficulty generating one that is acceptable.

Thanks.

#1103 From: "josephsilvestercorreya@..." <josephsilvestercorreya@...>
Date: Tue Feb 2, 2010 7:14 am
Subject: Getting SOAP error when the page is called
josephsilves...
Send Email Send Email
 
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*

#1104 From: "mcnealysm" <mcnealysm@...>
Date: Mon Feb 22, 2010 6:59 pm
Subject: Re: Version 6.0 BasicReportingService example?
mcnealysm
Send Email Send Email
 
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.
>

#1105 From: "mcnealysm" <mcnealysm@...>
Date: Mon Feb 22, 2010 7:01 pm
Subject: Re: Sample code to setBlockedDomainListForAccount
mcnealysm
Send Email Send Email
 
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.
>

#1106 From: "mcnealysm" <mcnealysm@...>
Date: Mon Feb 22, 2010 7:03 pm
Subject: Re: addReportRequest in v6 account not found error
mcnealysm
Send Email Send Email
 
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>
>

#1107 From: "Dreadjr" <dreadjr2@...>
Date: Thu Feb 25, 2010 11:36 pm
Subject: addReportRequest threshold
Dreadjr
Send Email Send Email
 
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?

#1108 From: "shettytejesh" <shettytejesh@...>
Date: Thu Mar 4, 2010 2:58 pm
Subject: V6 BulkService
shettytejesh
Send Email Send Email
 
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.

#1109 From: "reedpowell" <powell@...>
Date: Sun Feb 21, 2010 2:31 pm
Subject: Re: Version 6.0 BasicReportingService example?
reedpowell
Send Email Send Email
 
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.
>

#1110 From: Daniel Kasak <daniel.kasak@...>
Date: Thu Feb 25, 2010 10:38 pm
Subject: Re: Which ZIP format?
d_kasak
Send Email Send Email
 
On Wed, 2010-02-17 at 23:38 +0000, shodson wrote:

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
http://www.247realmedia.com/internal/stationery/rmlogo.jpg



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
The Science of Digital Marketing
www.247realmedia.com.au



#1111 From: "Dreadjr" <dreadjr2@...>
Date: Wed Feb 24, 2010 10:39 pm
Subject: addReportRequest Exception
Dreadjr
Send Email Send Email
 
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?

#1112 From: "reedpowell" <powell@...>
Date: Sun Feb 21, 2010 2:35 pm
Subject: Re: Unable to make certain API calls
reedpowell
Send Email Send Email
 
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.

#1113 From: "Aroma" <afw340@...>
Date: Fri Mar 12, 2010 8:58 pm
Subject: Re: Version 6.0 BasicReportingService example?
afw340
Send Email Send Email
 
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.
> >
>

#1114 From: Bill Harrelson <bill.harrelson@...>
Date: Fri Mar 5, 2010 11:34 pm
Subject: Re: Re: Version 6.0 BasicReportingService example?
billharrelson
Send Email Send Email
 
Thanks Reed,

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

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


#1115 From: "ke1g_nh" <ke1g.nh@...>
Date: Tue Mar 9, 2010 2:58 am
Subject: Is V7 for real yet?
ke1g_nh
Send Email Send Email
 
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

#1116 From: "belchermatt87" <belchermatt87@...>
Date: Wed Mar 17, 2010 8:08 pm
Subject: BasicReportService in Java
belchermatt87
Send Email Send Email
 
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

#1117 From: "ekhanh101" <ekhanh101@...>
Date: Mon Mar 22, 2010 7:52 pm
Subject: How do I get reports via C# and v7?
ekhanh101
Send Email Send Email
 
Can someone show me how generate and download reports using V7 and C#?

Is there some sample code I can look at?

Thanks!

I was able to add the webservice, by Add Service Reference to:
http://developer.searchmarketing.yahoo.com/docs/V7/wsdl/V7/BasicReportService.ws\
dl


but what are the calls to get the report,etc.

#1118 From: "dalandmontgom" <davidmontgom@...>
Date: Fri Mar 12, 2010 12:03 am
Subject: Addreportrequest not working in V6
dalandmontgom
Send Email Send Email
 
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

#1119 From: Dino Bico <bico.dino@...>
Date: Sat Apr 3, 2010 9:56 am
Subject: Setting property error
bico.dino@...
Send Email Send Email
 
Hi Guys

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.

Any help would be great.


Messages 1090 - 1119 of 1164   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help