Yep,

That worked for me, thanks!

I had to supply all the fields I used to create the ReportDefinition
in order to update it (including the Columns/Fields & reportType).

Cheers,
Rohit

On Jan 25, 9:36 pm, AdWords API Advisor <[email protected]>
wrote:
> Hi Rohit,
>
> It looks like there is an issue where the update will fail if the
> reportType field isn't included in the request.  In this case it would
> be best if you sent the entire ReportDefinition in the request instead
> of just the fields you want to change.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Jan 24, 6:14 am, Rohit Dantas <[email protected]> wrote:
>
>
>
>
>
>
>
> > NOTE: potentially private information is replaced by "-REPLACED-" in
> > the following text.
>
> > The SOAP request was:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
> > envelope/"
> >         xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >         <soapenv:Header>
> >                 <ns1:RequestHeader 
> > soapenv:actor="http://schemas.xmlsoap.org/soap/
> > actor/next"
> >                         soapenv:mustUnderstand="0"
> >                         
> > xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201008";>
> >                         <ns1:authToken 
> > xmlns:ns1="https://adwords.google.com/api/adwords/cm/
> > v201008">-REPLACED-</ns1:authToken>
> >                         
> > <ns1:clientCustomerId>-REPLACED-</ns1:clientCustomerId>
> >                         <ns1:developerToken>-REPLACED-</ns1:developerToken>
> >                         <ns1:userAgent>-REPLACED-</ns1:userAgent>
> >                         <ns1:validateOnly>false</ns1:validateOnly>
> >                         <ns1:partialFailure>false</ns1:partialFailure>
> >                 </ns1:RequestHeader>
> >         </soapenv:Header>
> >         <soapenv:Body>
> >                 <mutate 
> > xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
> >                         <operations>
> >                                 <operator>SET</operator>
> >                                 <operand>
> >                                         <id>-REPLACED-</id>
> >                                         <selector>
> >                                                 <dateRange>
> >                                                         <min>20110117</min>
> >                                                         <max>20110117</max>
> >                                                 </dateRange>
> >                                         </selector>
> >                                         
> > <dateRangeType>CUSTOM_DATE</dateRangeType>
> >                                 </operand>
> >                         </operations>
> >                 </mutate>
> >         </soapenv:Body>
> > </soapenv:Envelope>
>
> > The SOAP response was:
>
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> >         <soap:Header>
> >                 <ResponseHeader 
> > xmlns="https://adwords.google.com/api/adwords/cm/
> > v201008">
> >                         
> > <requestId>c562d7aa18653e9b89a674d656a97567</requestId>
> >                         <operations>1</operations>
> >                         <responseTime>583</responseTime>
> >                         <units>400</units>
> >                 </ResponseHeader>
> >         </soap:Header>
> >         <soap:Body>
> >                 <soap:Fault>
> >                         <faultcode>soap:Server</faultcode>
> >                         
> > <faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> >                                 
> > [Ljava.lang.StackTraceElement;@197f74d]</faultstring>
> >                         <detail>
> >                                 <ApiExceptionFault
> >                                         
> > xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
> >                                         
> > <message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
> >                                                 
> > [Ljava.lang.StackTraceElement;@197f74d]</message>
> >                                         
> > <ApplicationException.Type>ApiException</
> > ApplicationException.Type>
> >                                         <errors xsi:type="InternalApiError" 
> > xmlns:xsi="http://www.w3.org/
> > 2001/XMLSchema-instance">
> >                                                 <fieldPath />
> >                                                 <trigger />
> >                                                 
> > <errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</
> > errorString>
> >                                                 
> > <ApiError.Type>InternalApiError</ApiError.Type>
> >                                                 
> > <reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
> >                                         </errors>
> >                                 </ApiExceptionFault>
> >                         </detail>
> >                 </soap:Fault>
> >         </soap:Body>
> > </soap:Envelope>
>
> > In case that helps speed up the error & solution discovery.
>
> > On Jan 21, 5:12 pm, Rohit Dantas <[email protected]> wrote:
>
> > > Hi,
>
> > > I'm working on the adwords api and have encountered the infamous
> > > "InternalApiError.UNEXPECTED_INTERNAL_API_ERROR" whilst trying to
> > > update an existing ReportDefinition.
>
> > > The report is of type
> > > [ReportDefinitionReportType.AD_PERFORMANCE_REPORT] with a date-range-
> > > type set to [ReportDefinitionDateRangeType.CUSTOM_DATE]. The report
> > > was created successfully and a GetAllReportDefinitions call returns it
> > > as a valid result.
>
> > > My update request sets/changes the following:
> > > - ReportDefinition.id (set)
> > > - ReportDefinition.dateRangeType (set/change)
> > > - DateRange parameter in the ReportDefinition.selector (to a new date
> > > range value). (change)
>
> > > On the "reportDefinitionService.mutate(operations)" call I receive an
> > > [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR] error. Has anyone
> > > encountered a similar problem before, or know what might be going
> > > wrong here?
>
> > > Cheers,
> > > Rohit
>
> > > Notes:
> > > - ApiCalls Version: v201008 (latest)
> > > - ApiUsage: ReportDefinitionService.mutate(),
> > > ReportDefinitionOperation.operator = Operator.SET.

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