Hi,

This appears to be an internal error in the AdWords system.  Do you
have the request ID for this request?

Best,
- Eric

On Oct 29, 2:49 pm, Inah from Brazil <inahmart...@gmail.com> wrote:
> Hi Eric! Thanks for your answer!
> I understood now how it works!TKS!
> But now I tryin to add campaigns and I gettin another error...
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
>  faultSubcode:
>  faultString: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>  faultActor:
>  faultNode:
>  faultDetail:
>         {https://adwords.google.com/api/adwords/cm/v200909}
> ApiExceptionFault:<message>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> @ </message><ApplicationException.Type>ApiException</
> ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/
> XMLSchema-instance" 
> xsi:type="InternalApiError"><fieldPath/><trigger/><ApiError.Type>InternalApiError</
>
> ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors>
>
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at org.apache.axis.encoding.ser.BeanDeserializer.<init>
> (BeanDeserializer.java:104)
>         at org.apache.axis.encoding.ser.BeanDeserializer.<init>
> (BeanDeserializer.java:90)
>         at com.google.api.adwords.v200909.cm.ApiException.getDeserializer
> (ApiException.java:142)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized
> (BaseDeserializerFactory.java:154)
>         at
> org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs
> (BaseDeserializerFactory.java:84)
>         at org.apache.axis.encoding.DeserializationContext.getDeserializer
> (DeserializationContext.java:464)
>         at
> org.apache.axis.encoding.DeserializationContext.getDeserializerForType
> (DeserializationContext.java:547)
>         at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild
> (SOAPFaultDetailsBuilder.java:157)
>         at org.apache.axis.encoding.DeserializationContext.startElement
> (DeserializationContext.java:1035)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> (Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE 
> lement
> (Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(Unknown Source)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
> (Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
> (Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan 
> Document
> (Unknown Source)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (Unknown Source)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (Unknown Source)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> (Unknown Source)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at org.apache.axis.encoding.DeserializationContext.parse
> (DeserializationContext.java:227)
>         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke
> (MustUnderstandChecker.java:62)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at
> com.google.api.adwords.v200909.cm.CampaignServiceSoapBindingStub.mutate
> (CampaignServiceSoapBindingStub.java:964)
>         at br.com.webtraffic.bid.sponsor2009.sponsor.google.CampaignMain.main
> (CampaignMain.java:65)
>
> Could u help me with this too?
> TKS!
>
> On 29 out, 12:26, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
> > Hi,
>
> > The CampaignTargetService is what you would use to set these targets
> > in v200909.  There is an example of how to use this service in .NET
> > here:http://code.google.com/p/google-api-adwords-dotnet/source/browse/trun....
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Oct 28, 2:54 pm, Inah from Brazil <inahmart...@gmail.com> wrote:
>
> > > Hi!
> > > Im migratting from v13 to v2009 and I tryin'to addCampaign.
> > > Until now my method looks like:
>
> > > public SponsorResponse addCampaign(Campaign campaign, Boolean save) {
> > >                 SponsorResponse response = null;
> > >                 com.google.api.adwords.v200909.cm.Campaign campaign2009 = 
> > > new
> > > com.google.api.adwords.v200909.cm.Campaign();
> > >                 CampaignServiceInterface campaignService = null;
>
> > >                 try {
> > >                         campaignService = user.getService
> > > (AdWordsService.V200909.CAMPAIGN_SERVICE);
> > >                 } catch (ServiceException e) {
> > >                         response = new SponsorResponse(false, 
> > > e.getMessage(), campaign);
> > >                 }
> > >                 CampaignOperation operation = new CampaignOperation();
> > >               operation.setOperand(campaign2009);
> > >               operation.setOperator(Operator.ADD);
> > >             try {
> > >                 campaign2009.setName(campaign.getName());
> > >                 
> > > campaign2009.setStartDate(campaign.getStartDate().toString());
> > >                 campaign2009.setEndDate(campaign.getEndDate().toString());
> > >                 campaign2009.setStatus(utils.convertGoogleCampaignStatus
> > > (campaign.getStatus()));
> > >                 if(campaign.getOptimized().equals("T")){
> > >                         campaign2009.setAdServingOptimizationStatus
> > > (AdServingOptimizationStatus.OPTIMIZE);
> > >                 }else{
> > >                         campaign2009.setAdServingOptimizationStatus
> > > (AdServingOptimizationStatus.ROTATE);
> > >                 }
> > >                 campaignService.mutate((new 
> > > CampaignOperation[]{operation}));
> > >                 
> > > campaign.setCampaignCode((String.valueOf(campaign2009.getId
> > > ())));
>
> > >                 } catch (ApiException e) {
> > >                         response = new SponsorResponse(false, 
> > > auxiliar.dumpErrors(e),
> > > campaign);
> > >             return response;
> > >                 } catch (Exception e) {
> > >                         response = new SponsorResponse(false, 
> > > e.getMessage(), campaign);
> > >                         return response;
> > >                 }
>
> > >                 return response;
> > >         }
>
> > > I tryin to set the NetworkTarget, GeoTarget,  RegionTargets,
> > > CountryTargets and Language. In v13 my code looks like:
>
> > >  List<Net> nets = wizardCampaignDTO.getNet();
> > >         if (nets != null && nets.size() > 0) {
> > >             NetworkType[] nt = new NetworkType[nets.size()];
> > >             for (int i = 0; i < nets.size(); i++) {
> > >                 try {
> > >                     nt[i] = NetworkType.fromString(nets.get(i).getValue
> > > ());
> > >                 } catch (Exception e) {
> > >                     e.printStackTrace();
> > >                 }
> > >             }
> > >             c.setNetworkTargeting(nt);
> > >         }
> > >         List<Territory> territories = wizardCampaignDTO.getTerritory
> > > ();
> > >         List<Region> regions = wizardCampaignDTO.getRegion();
> > >         if (territories != null && territories.size() > 0) {
> > >             GeoTarget geo = new GeoTarget();
>
> > >             if (regions != null && regions.size() > 0) {
>
> > >                 RegionTargets regionTargets = new RegionTargets();
> > >                 String[] regionses = new String[regions.size()];
> > >                 for (int i = 0; i < regions.size(); i++) {
> > >                     regionses[i] = regions.get(i).getCodGoogle();
> > >                 }
> > >                 regionTargets.setRegions(regionses);
> > >                 geo.setRegionTargets(regionTargets);
>
> > >             } else {
>
> > >                 CountryTargets countryTargets = new CountryTargets();
> > >                 String[] countries = new String[territories.size()];
> > >                 for (int i = 0; i < territories.size(); i++) {
> > >                     countries[i] = territories.get(i).getValue();
> > >                 }
> > >                 countryTargets.setCountries(countries);
> > >                 geo.setCountryTargets(countryTargets);
>
> > >             }
>
> > >             c.setGeoTargeting(geo);
> > >         }
>
> > >         if (regions == null || regions.size() <= 0) {
> > >             List<Language> languages = wizardCampaignDTO.getLanguage
> > > ();
> > >             if (languages != null && languages.size() > 0) {
> > >                 String[] ls = new String[languages.size()];
> > >                 for (int i = 0; i < languages.size(); i++) {...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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