Hi Harroot,

If you are trying to get a record of the unit cost for a request,
every API response includes a header named "units" which contains the
number of units used by the request, even when a fault occurs.  More
information can be found on the AdWords API Introduction page:
http://code.google.com/apis/adwords/docs/developer/index.html#adwords_api_intro_response.
Also, all of the official client libraries [
http://code.google.com/apis/adwords/docs/clients.html ] support the
automatic tracking of unit usage.

If however you are trying to spend less units by avoiding failures,
use the various "check" methods of the services to validate your input
before it is processed.  The check methods only cost one unit per
element and give you more detail about which elements failed.

Best,
Eric Koleda, AdWords API Team

On Jul 23, 4:18 am, harroot <[email protected]> wrote:
> Hi all
>
> In my application I want to save the the unit cost for any service
> call, but when call fails, I can not know  which  elements are caused
> the request to fail, to save unit count.
>
> best regards.
> Harroot.
--~--~---------~--~----~------------~-------~--~----~
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