Hi Ram,

The subclasses of ApiError contains the reason.  For example,
DateError has a reason field:

  
http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.DateError.html

To get the index of the operation you need to parse the OGNL value in
the fieldPath.  A simple way to get the operation index is to use a
regular expression like "^operations\[(\d+)\]".

Best,
- Eric Koleda, AdWords API Team

On Mar 16, 9:35 pm, Ram <raghuram....@gmail.com> wrote:
> I am trying to parse the ApiException returned by v2009 APIs and match
> the errors to appropriate operation index. I can manually parse the
> faultString and figure out which operations have errors, but I am
> trying to build a generic Java routine that works for all types of
> errors. I understand OGNL can help with this but doesn't seem to work
> well for my requirements. What i want to do is, in Java, build a map
> of operation index and a list of errors returned for that operation.
> It would have been great if I could get the reason and operationIndex
> directly from ApiError class. Any pointers and help is appreciated.
>
> Thanks,
> Ram

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