What is the maximum number of keywords I can add using SimpleMutateService in a single shot?

322 views
Skip to first unread message

Kapil

unread,
Jan 2, 2013, 7:59:07 AM1/2/13
to adwor...@googlegroups.com
Hi,

I'm trying to create a campaign. Inside the campaign I have 20 ad groups and in each ad group I have 200 keywords. I'm using java to perform this job.

What I'm doing is:-

1. Creating a campaign
2. After that I'm iterating a loop 20 times(one for each ad group)
3. In each loop I'm creating one ad group and using SimpleMutateService to add 200 keywords to it.

 It is working fine till 3 to 5 ad groups. But, after that I'm getting this error:-

net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded: max 1023 prefixes per URI

Is there any maximum limit that I'm exceeding or any other possible reason for this error?

Correct me if there is anything wrong or any other better logic to perform this task.

Thanks,

Kevin Winter (AdWords API Team)

unread,
Jan 4, 2013, 9:43:33 AM1/4/13
to adwor...@googlegroups.com
Hi,
  The MutateJobService can submit up to 10,000 operations per request.  I've never seen that error before, could you please post more of the stack trace?  Are you using the Java client library (and if so, new or old), or something else?

- Kevin Winter
AdWords API Team

Kapil

unread,
Jan 6, 2013, 10:36:26 AM1/6/13
to adwor...@googlegroups.com

Hi Kevin,

I'm using new java client library. This is the complete error:-

net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded: max 1023 prefixes per URI
at net.sf.saxon.om.NamePool.allocateNamespaceCode(NamePool.java:208)
at net.sf.saxon.event.ReceivingContentHandler.startPrefixMapping(ReceivingContentHandler.java:194)
at org.apache.xerces.parsers.AbstractSAXParser.startPrefixMapping(AbstractSAXParser.java:386)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:811)
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:756)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:270)
at net.sf.saxon.event.Sender.send(Sender.java:144)
at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:28)
at com.google.api.ads.common.lib.utils.logging.PrettyPrinter.prettyPrint(PrettyPrinter.java:79)
at com.google.api.ads.common.lib.utils.logging.AdsServiceLoggers.logSoapXml(AdsServiceLoggers.java:79)
at com.google.api.ads.common.lib.client.AdsServiceClient.logSoapCall(AdsServiceClient.java:93)
at com.google.api.ads.common.lib.soap.SoapServiceClient.invoke(SoapServiceClient.java:95)
at $Proxy27.mutate(Unknown Source)

at com.google.api.ads.AddKeywords.createAdGroupCriteria(AddKeywords.java:71)
at com.google.api.ads.AdCampaign.process(AdCampaign.java:72)
at com.eos.b2c.ui.B2cCallcenterNavigation.doGet(B2cCallcenterNavigation.java:4916)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.eos.accounts.UserManagerFilter.doFilter(UserManagerFilter.java:517)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:662)

Kapil

unread,
Jan 11, 2013, 12:20:58 AM1/11/13
to adwor...@googlegroups.com
Hey Kevin,

I'm still not sure what this error is all about but, I figured out the solution.


Thanks,

Kapil

Rohit Chawla

unread,
Sep 14, 2014, 9:57:21 PM9/14/14
to adwor...@googlegroups.com, kapil.vi...@gmail.com
Hi Kapil,

I am also facing the same exception as you faced and after reading your replies it seems that you have got the solution of the problem. Can you please post the solution to over come this problem.

In brief, I am calling a third party web service using the SOAP request in my java application. Each SOAP request is having 2000 patient records to get their updates. While calling to the web service I am getting runtime uncaught exception net.sf.saxon.om.NamePool$NamePoolLimitException: NamePool limit exceeded: max 1023 prefixes per URI. An internal error occurred in the ESB. I want to know 1. Is this client side issue or server side. 2. If this is client side issue how to resolve this problem. Please suggest ASAP as I am facing this issue in my production environment.Thanks

Regards,
Rohit

Ray Tsang (AdWords API Team)

unread,
Sep 15, 2014, 1:00:06 PM9/15/14
to adwor...@googlegroups.com, kapil.vi...@gmail.com
Rohit,

This is an AdWords API support forum.  Are you referring to questions on a non-AdWords API system?

Thanks,

Ray
Reply all
Reply to author
Forward
0 new messages