Hi, Is there some reason why you aren't using the .NET client library <https://github.com/googleads/googleads-dotnet-lib>? It takes care of generating classes from WSDLs for you, and will save you from the headache of working with wsdl.exe.
Thanks, Josh, AdWords API Team On Friday, January 2, 2015 2:44:14 PM UTC-5, Ari wrote: > > I'm having this same issue in C#. However changing the entriesField to a > one dimensional array causes "Unexpected Internal API errors with Google. > > I'm curious to how you changed the entriesField attribute to a > "TargetingIdea" from "Type_AttributeMapEntry" > > Where did that come from? Did you define it? > > On Friday, March 9, 2012 10:46:01 AM UTC-5, [email protected] wrote: >> >> I appreciate your time and of course the link! Another step for me to >> add to my documentation for generating classes from the published wsdl. >> Perhaps you can have all the affected WSDL's modified upon your next >> release, to add the >> <element maxOccurs="1" minOccurs="1" name="dummy" type="xsd:string" >> xmlns="http://www.w3.org/2001/XMLSchema"/> >> So AdWords API developers' have one less source of hair loss. >> David >> >> On Wednesday, March 7, 2012 4:51:13 PM UTC-5, Kevin Winter wrote: >>> >>> Hi David, >>> Unfortunately, I've never worked with generated classes in DotNet. It >>> looks like the NoClientLibrary wiki page for the DotNet library mentions >>> this is a known issue: >>> http://code.google.com/p/google-api-adwords-dotnet/wiki/NoClientLibrary#b._wsdl.exe_doesn't_generate_some_types_properly. >>> >>> - Kevin Winter >>> AdWords API Team >>> >>> On Wednesday, March 7, 2012 3:36:58 PM UTC-5, [email protected] wrote: >>>> >>>> Kevin, >>>> Sorry to hijack this thread, but the same problem exists with both >>>> wsdl.exe and svcutil.exe for this class generation from the provided wsdl. >>>> TargetingService class is not generated and the TargetingIdeaPage >>>> references unwrapped definition. >>>> As pointed out the TargetingIdeaPage generates: >>>> >>>> <System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", >>>> "3.0.4506.648"), _ >>>> System.SerializableAttribute(), _ >>>> System.Diagnostics.DebuggerStepThroughAttribute(), _ >>>> System.ComponentModel.DesignerCategoryAttribute("code"), _ >>>> System.Xml.Serialization.XmlTypeAttribute([Namespace]:=" >>>> https://adwords.google.com/api/adwords/o/v201109")> _ >>>> Partial Public Class TargetingIdeaPage >>>> >>>> Private totalNumEntriesField As Integer >>>> >>>> Private totalNumEntriesFieldSpecified As Boolean >>>> >>>> Private entriesField()() As Type_AttributeMapEntry >>>> >>>> '''<remarks/> >>>> <System.Xml.Serialization.XmlElementAttribute(Order:=0)> _ >>>> Public Property totalNumEntries() As Integer >>>> Get >>>> Return Me.totalNumEntriesField >>>> End Get >>>> Set >>>> Me.totalNumEntriesField = value >>>> End Set >>>> End Property >>>> >>>> '''<remarks/> >>>> <System.Xml.Serialization.XmlIgnoreAttribute()> _ >>>> Public Property totalNumEntriesSpecified() As Boolean >>>> Get >>>> Return Me.totalNumEntriesFieldSpecified >>>> End Get >>>> Set >>>> Me.totalNumEntriesFieldSpecified = value >>>> End Set >>>> End Property >>>> >>>> '''<remarks/> >>>> <System.Xml.Serialization.XmlArrayAttribute(Order:=1), _ >>>> System.Xml.Serialization.XmlArrayItemAttribute("data", >>>> GetType(Type_AttributeMapEntry), IsNullable:=false)> _ >>>> Public Property entries() As Type_AttributeMapEntry()() >>>> Get >>>> Return Me.entriesField >>>> End Get >>>> Set >>>> Me.entriesField = value >>>> End Set >>>> End Property >>>> End Class >>>> >>>> >>>> Rather than: >>>> >>>> <System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", >>>> "2.0.50727.1432")> _ >>>> <System.SerializableAttribute()> _ >>>> <System.Diagnostics.DebuggerStepThroughAttribute()> _ >>>> <System.ComponentModel.DesignerCategoryAttribute("code")> _ >>>> <System.Xml.Serialization.XmlTypeAttribute([Namespace]:=" >>>> https://adwords.google.com/api/adwords/o/v201109")> _ >>>> Partial Public Class TargetingIdeaPage >>>> Private totalNumEntriesField As Integer >>>> >>>> Private totalNumEntriesFieldSpecified As Boolean >>>> >>>> Private entriesField As TargetingIdea() >>>> >>>> Public Property totalNumEntries() As Integer >>>> Get >>>> Return Me.totalNumEntriesField >>>> End Get >>>> Set(ByVal value As Integer) >>>> Me.totalNumEntriesField = value >>>> Me.totalNumEntriesSpecified = True >>>> End Set >>>> End Property >>>> >>>> <System.Xml.Serialization.XmlIgnoreAttribute()> _ >>>> <EditorBrowsable(EditorBrowsableState.Never)> _ >>>> Public Property totalNumEntriesSpecified() As Boolean >>>> Get >>>> Return Me.totalNumEntriesFieldSpecified >>>> End Get >>>> Set(ByVal value As Boolean) >>>> Me.totalNumEntriesFieldSpecified = value >>>> End Set >>>> End Property >>>> >>>> <System.Xml.Serialization.XmlElementAttribute("entries")> _ >>>> Public Property entries() As TargetingIdea() >>>> Get >>>> Return Me.entriesField >>>> End Get >>>> Set(ByVal value As TargetingIdea()) >>>> Me.entriesField = value >>>> End Set >>>> End Property >>>> End Class >>>> >>>> I manually edit my class output to correct this, but it can be a tough >>>> one to debug for the newbies. Can you pass along to the web services team >>>> to see if there is a solution for upcoming releases? >>>> >>>> David >>>> >>>> On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >>>>> >>>>> Hi Maxim, >>>>> One of the previous maintainers of the current java library >>>>> mentioned that there's a flag for WSDL2JAVA and you need to tell it >>>>> to generate "all", all="true" for the ant task, --all for command >>>>> line. >>>>> >>>>> - Kevin Winter >>>>> >>>>> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>>>>> >>>>>> We are still on v201008 and I'm building v201109 client. >>>>>> Sounds like an axis config problem. I'm on a skiing trip at the >>>>>> moment, but I'll try different settings. Thanks for your help. >>>>>> >>>>> >>>> On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >>>>> >>>>> Hi Maxim, >>>>> One of the previous maintainers of the current java library >>>>> mentioned that there's a flag for WSDL2JAVA and you need to tell it >>>>> to generate "all", all="true" for the ant task, --all for command >>>>> line. >>>>> >>>>> - Kevin Winter >>>>> >>>>> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>>>>> >>>>>> We are still on v201008 and I'm building v201109 client. >>>>>> Sounds like an axis config problem. I'm on a skiing trip at the >>>>>> moment, but I'll try different settings. Thanks for your help. >>>>>> >>>>> >>>> On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >>>>> >>>>> Hi Maxim, >>>>> One of the previous maintainers of the current java library >>>>> mentioned that there's a flag for WSDL2JAVA and you need to tell it >>>>> to generate "all", all="true" for the ant task, --all for command >>>>> line. >>>>> >>>>> - Kevin Winter >>>>> >>>>> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>>>>> >>>>>> We are still on v201008 and I'm building v201109 client. >>>>>> Sounds like an axis config problem. I'm on a skiing trip at the >>>>>> moment, but I'll try different settings. Thanks for your help. >>>>>> >>>>> >>>> On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >>>>> >>>>> Hi Maxim, >>>>> One of the previous maintainers of the current java library >>>>> mentioned that there's a flag for WSDL2JAVA and you need to tell it >>>>> to generate "all", all="true" for the ant task, --all for command >>>>> line. >>>>> >>>>> - Kevin Winter >>>>> >>>>> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>>>>> >>>>>> We are still on v201008 and I'm building v201109 client. >>>>>> Sounds like an axis config problem. I'm on a skiing trip at the >>>>>> moment, but I'll try different settings. Thanks for your help. >>>>>> >>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8d9cb2cd-a308-48c9-aa0f-3c216cc27fb3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
