Hello Michael,
The child element of <scheduleReportJob> should have
an
xsi:type='DefinedReportJob' attribute. This is alluded to in
the
documentation in a Note at the top of
http://www.google.com/apis/adwords/developer/D
efinedReportJob.html
and there's an example of some valid DefinedReportJob XML
at
http://adwordsapi.blogspot.com/2007/10/new-
reports-functionality.html
(Strictly speaking, the <v1> element should be named
<job>, but I
believe that our XML parser is lenient enough to let that
slide.)
I'm not sure which language you're using, but look into
the
appropriate XML library's attribute handling methods to see
how to add
the xsi:type='DefinedReportJob' attribute to the <v1>
element.
I don't know of anything that recently changed on our end
that would
have previously let that XML through without a SOAP
exception, but
hopefully making the suggested change will resolve the
situation.
Happy new year,
-Jeff Posnick, AdWords API Team
On Dec 28 2007, 1:25 pm, "michael.suzuki"
<michael_t_suz... yahoo.com>
wrote:
> Hi,
>
> I have been using the version 11 ReportService API for
a little over a
> week now without an issue. Starting today, I have been
seeing the
> following error every time I try to schedule a report
job:
>
> org.xml.sax.SAXException: Unable to create JavaBean of
type
> com.google.ads.netapi.services.report.ReportJob.
Missing default
> constructor? Error was:
java.lang.IllegalAccessException: Class
> org.apache.axis.encoding.ser.BeanDeserializer can not
access a member
> of class
com.google.ads.netapi.services.report.ReportJob with
> modifiers "protected".
>
> I am sending the following request (the client emails
have been
> replaced by fake emails):
>
> <SOAP-ENV:Body>
> <scheduleReportJob xmlns="http
s://adwords.google.com/api/adwords/v11"
> SOAP-ENC:root="1">
> <v1>
> <aggregationTypes>Daily</aggregationTypes>
>
<selectedReportType>Url</selectedReportType>
> <startDay>2007-12-21</startDay>
> <clientEmails>clie... gmail.com</clientEmails>
> <clientEmails>clie... gmail.com</clientEmails>
> <clientEmails>clie... gmail.com</clientEmails>
> <clientEmails>clie... gmail.com</clientEmails>
> <clientEmails>clie... gmail.com</clientEmails>
>
<selectedColumns>ExternalCustomerId</selectedColumn
s>
>
<selectedColumns>CustomerTimeZone</selectedColumns&
gt;
>
<selectedColumns>CampaignId</selectedColumns>
>
<selectedColumns>AdGroupId</selectedColumns>
>
<selectedColumns>KeywordId</selectedColumns>
>
<selectedColumns>KeywordTypeDisplay</selectedColumn
s>
>
<selectedColumns>DestinationURL</selectedColumns>
;
>
<selectedColumns>KeywordDestUrlDisplay</selectedCol
umns>
>
<selectedColumns>Impressions</selectedColumns>
> <selectedColumns>Clicks</selectedColumns>
> <selectedColumns>Cost</selectedColumns>
> <selectedColumns>CPC</selectedColumns>
> <selectedColumns>CPM</selectedColumns>
>
<selectedColumns>AveragePosition</selectedColumns&g
t;
> <name>Report 2007-12-28 09:54:56.062000 from
2007-12-21 to 2007-12-28</
> name>
> <crossClient>True</crossClient>
>
<includeZeroImpression>False</includeZeroImpression
>
> <endDay>2007-12-28</endDay>
> </v1>
> </scheduleReportJob>
> </SOAP-ENV:Body>
>
> Is there a reason this may have stopped working? Or is
there
> something that I am doing in my request that is
incorrect. Any help I
> can get with this problem would be greatly
appreciated.
>
> Thanks!
>
> Michael
--~--~---------~--~----~------------~-------~--~----~
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
adwords-api-unsubscribe googlegroups.com
For more options, visit this group at http
://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---
|