Re: Serializing adwrods Objects into XML
Hi Anash Thanks for your reply. I tried using XStream, But it seems that while serializing an object, it doesn't take the inharitance into account. eg. While serializing the AdGroupCriterion type of object, it doesn't check which Typeof Criterion it contains. the result is - I don't get the Keyword specific fields in the serialized file. Moreover, we are serializing the data with a high frequency ( say 1000+ times in a second) , so I am not sure if XStream is resource/ time efficient ! Is there a way to use Protocol Object buffer? Thanks Panks On Jun 10, 2:53 pm, "Anash P. Oommen" wrote: > Hi Panks, > > If I remember correctly, all stub classes in the client library are marked > as serializable. Also, couldn't you use a library > likehttp://xstream.codehaus.org/to achieve this? > > Cheers, > Anash P. Oommen, > AdWords API Advisor. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Re: Serializing adwrods Objects into XML
Hi Panks, If I remember correctly, all stub classes in the client library are marked as serializable. Also, couldn't you use a library like http://xstream.codehaus.org/ to achieve this? Cheers, Anash P. Oommen, AdWords API Advisor. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
Serializing adwrods Objects into XML
I am using Adwords Java APIs. My requirement is to dump the Network objects (campain, Keywords - Page) into xml file. I am trying hard to use getSerialize method available. public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) No documentation or sample is available to figure out the parameter semantics. Could someone, please give a sample how to use that method and finally serialize the data. Thanks Panks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en