OK, I found cause of my problem and I'm feeling pretty dumb now.
Almost every criterion from my "remove/add" request had policy error
(not a usual situation in my case) that caused relatively big SOAP
response error message. In the same time I had size of error message
set into 64k (default value if I'm  not mistaken), obviously error
massages of 100 failed criterions exceeded 64k, so response error
message was truncated and caused XMLException.
Here the solution (for .net):
- change HttpWebRequest.DefaultMaximumErrorResponseLength static value
or
- add to app.config

        <system.net>
                <settings>
                        <httpWebRequest maximumErrorResponseLength="-1"  />
                </settings>
        </system.net>

this make response error message length practically unlimited.

Hope this will help somebody.

Alexander.


On May 17, 4:22 pm, Alexander Furman <[email protected]> wrote:
> Hello,
>
> I try to perform AdGroupCriterionService.mutate operation which
> removes and adds 100 keywords in the same request. Unfortunately I
> keep getting the same error:
>
> Response is not well-formed XML. ---> System.Xml.XmlException:
> Unexpected end of file has occurred. The following elements are not
> closed: externalPolicyDescription, errors, ApiExceptionFault, detail,
> soap:Fault, soap:Body, soap:Envelope. Line 268, position 18
>
> I call AdGroupCriterionService.mutate with validateOnly=true
> I use "Google Api Adowrds Dotnet" library
> This problem occurs only with one client account, identical calls for
> another clients accounts work fine
> RequestId: 3a1c57e11e69435d5fe70eaa21ad9e4f
>
> Could someone tell me what I'm doing wrong?
>
> Alexander.
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/adwords-api?hl=en

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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

Reply via email to