Shashi99rocky / google-api-adwords-ruby

Automatically exported from code.google.com/p/google-api-adwords-ruby
Other
1 stars 0 forks source link

Cost is not calculated correctly when an error occurs #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. e.g. do a keyword search with getKeywordsFromSite
2. use a non existing URL like blabalabalabnala.com

Output:
There is an error: SOAP Error: Can't access the given URL. (code: 102)
The cost show: 0 API units consumed total (0 in last call).

Expected output:
The cost show: 20 API units consumed total (20 in last call).

Adwords4r version: 16.0.0

Google will count 20 API units because the error was not caused by Google: 
Failed requests 
count against your API usage unless the error is caused by failure on Google's 
side.

Original issue reported on code.google.com by AxelDe...@gmail.com on 21 Sep 2009 at 11:21

GoogleCodeExporter commented 8 years ago
Sorry for the late response, I only saw this issue now.

I can confirm the problem and am working on a fix. I'll have a minor revision 
posted soon to fix it.

Original comment by api.sgo...@gmail.com on 22 Oct 2009 at 11:46

GoogleCodeExporter commented 8 years ago
Fixed in 17.0.1.

Original comment by api.sgo...@gmail.com on 22 Oct 2009 at 5:41