Hi,

If you set address2 to null instead of an empty string you shouldn't
get this error.

Best,
- Eric Koleda, AdWords API Team

On Apr 22, 11:04 am, SW <ga...@structuredweb.com> wrote:
> Hi,
>
> I am trying to use the GeoLocationService to get the address.  If I
> pass in all of the fields except Address2 in the address object, I get
> the error stating address 2 is too short.  It is entirely possible to
> have the address without address2 field. Here is the error log:
>
> com.google.api.adwords.lib.AdWordsApiException:
> [StringLengthError.TOO_SHORT @ selector.addresses[0].streetAddress2]
> ---> System.Web.Services.Protocols.SoapException:
> [StringLengthError.TOO_SHORT @ selector.addresses[0].streetAddress2]
>
> Please specify a workaround for this. Do I have to pass in dummy
> address 2 field?
>
> Thanks
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Have you migrated to v200909 yet?
> The v13 sunset is on April 22, 2010.
>
> Also find us on our blog and discussion 
> group:http://adwordsapi.blogspot.comhttp://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 
> athttp://groups.google.com/group/adwords-api?hl=en

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

Reply via email to