GoogleAdsAPI Metric all_conversions_value contains the value '1.0615878887974612E29'

136 views
Skip to first unread message

Emiko Maeda

unread,
May 9, 2023, 11:46:19 PM5/9/23
to Google Ads API and AdWords API Forum
Dear all,

I'm using v13 of the Google Ads API.

Metric all_conversions_value contains the value '1.0615878887974612E29'.
The following manual says that the data type of the all_conversions_value is DOUBLE, but I think the value '1.0615878887974612E29' is not DOUBLE.

https://developers.google.com/google-ads/api/fields/v13/metrics#metrics.all_conversions_value

I have the following questions.

1) Is exponential notation for all_conversions_value (like '1.0615878887974612E29') correct behavior?

2) Under what conditions is the number of all_conversions_value displayed in exponential notation (like '1.0615878887974612E29')?

3) In what cases will the all_conversions_value be a huge number?

Regards,

Google Ads API Forum Advisor

unread,
May 10, 2023, 6:25:45 AM5/10/23
to emiko...@yrglm.co.jp, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

To answer you in general, the metrics.all_conversions_value (https://developers.google.com/google-ads/api/fields/v13/metrics#metrics.all_conversions_value) has DOUBLE as data type. You may refer to this guide (https://developers.google.com/discovery/v1/type-format) regarding Type and format summary. As stated in the guide, the double is a type value number floating point which means this value can contain decimal points.

Let us know if you have further questions.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2lCDIv:ref

Emiko Maeda

unread,
May 11, 2023, 5:10:31 AM5/11/23
to Google Ads API and AdWords API Forum
Thanks API Team for the response,

I understand the data type of the metrics.all_conversions_value.
So, questions 1 and 2 are now resolved.

Regarding Question 3, we are still waiting for response.


3) In what cases will the all_conversions_value be a huge number?

Regards,

2023年5月10日水曜日 19:25:45 UTC+9 Google Ads API Forum Advisor:

Google Ads API Forum Advisor

unread,
May 11, 2023, 9:57:19 AM5/11/23
to emiko...@yrglm.co.jp, adwor...@googlegroups.com

Hi Emiko,

For your question 3, because a double can store values in range 4.9e-324 (Double.MIN_VALUE) to 1.7976931348623157e308 (Double.MAX_VALUE), and its exponential form is the internal one used by every programming language (at least CPUs "sees" floats this way).

However, please use the workaround to convert from exponential format to regular numeric format. Let us know if you have any additional questions.

Regards,

Emiko Maeda

unread,
May 11, 2023, 10:27:42 PM5/11/23
to Google Ads API and AdWords API Forum
Thanks API Team for the response,

Sorry for lack of explanation,
Abount question 3, it is a question of what kind of settings in Google Ads will increase the number of all_conversions_value to a huge value.

Question 3 is an advertising platform question, not an API question.
Should this question be asked elsewhere instead of here?

Regards,

2023年5月11日木曜日 22:57:19 UTC+9 Google Ads API Forum Advisor:

Google Ads API Forum Advisor

unread,
May 12, 2023, 5:51:06 AM5/12/23
to emiko...@yrglm.co.jp, adwor...@googlegroups.com

Hi,

Thanks for getting back to us.

Please note that Fields of type Money are returned in micro currency units (micros) in the API. To have the same metrics.all_conversions_value as the console/UI you could simply divide the cost by 1000000.

Furthermore, if you have questions regarding the Google Ads UI, you can reach out to the Google Ads product support team(https://support.google.com/google-ads/gethelp) for these kinds of concerns.

Links included in this email:

Emiko Maeda

unread,
May 16, 2023, 2:24:03 AM5/16/23
to Google Ads API and AdWords API Forum
Thanks API Team for the response,

The screen value is "106,158,788,879,746,100,000,000,000,000" and the API value is "1.0615878887974612E29",
and the numbers match, so there is no need to divide by 1000000.

I'll consider contacting the Google Ads product support team(https://support.google.com/google-ads/gethelp) for more information.
Thank you for your information.

Questions are resolved for now,
Thank you for your help.

2023年5月12日金曜日 18:51:06 UTC+9 Google Ads API Forum Advisor:
Reply all
Reply to author
Forward
0 new messages