RE: Why would the API return the average CPV multiplied by 1 million?

2023-01-16 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Nelson,

Thank you for reaching out to us.

To answer your questions in general, I could confirm that the cost pulled in 
the API is in micros. That being said, it is working as intended that the API 
will pull it as 219 then divide by 10 to become UI's value which is the 
2.19.

As a follow-up question, are all currency metrics returned in "micro units"?

Yes.

Is there an official documentation page that talks about this specifically?

I'm afraid that there is no official documentation page that talks about this 
specifically. However, I could confirm that your approach is correct here and 
that you need to divide by 1 million in order to match the value seen in the UI.

Let me know if you have further questions.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2hyBgu:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/zKUKZ0ROKKTX003NqlwH3JRUapl4VcuBUx0Q%40sfdc.net.


Re: Why would the API return the average CPV multiplied by 1 million?

2023-01-13 Thread Nelson Brochado
After having read a little bit more about how Google Ads handles 
currencies, I came to the conclusion that the average CPC must be returned 
in "micros units", so what I observed is expected. Can you confirm this? 

However, if the API is really supposed to mirror the UI, then there should 
at least be an option to return this data as we see it in the UI. After 
all, we just need to divide by 1 million. Apparently, there used to be such 
an option a long time ago, but it was removed. See this post 
.

As a follow-up question, are all currency metrics returned in "micro 
units"? Is there an official documentation page that talks about this 
specifically?

This API docs page 
 or 
this 
, 
for example, mentions that certain amounts are specified in micros, but I'd 
like to know if all currency metrics are specified in micros.


On Friday, January 13, 2023 at 5:21:53 PM UTC+1 Nelson Brochado wrote:

> Hello.
>
> I was trying to fetch all metrics that can be fetched with 
> paid_organic_search_term_view 
> .
>  
> I also fetch the attribute paid_organic_search_term_view.search_term 
> 
>  
> and segment by search type segments.search_engine_results_page_type 
> .
>  
> So, I am also trying to fetch the metric metrics.average_cpc 
> ,
>  
> which seems to be multiplied by 1 million (100) with respect to the 
> number I see in the UI report. So, for example, 2.19 in the UI is returned 
> as 2.19 * 100 = 219. 
>
> Could this be a bug in the API or maybe I am unaware of some discrepancy 
> between the API and UI with respect to currency columns, like average CPC? 
>
> I read this post,  
> but, if the API is supposed to mirror the UI, that doesn't seem to be the 
> case here.
>
> Cheers
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3024898b-7bba-4d1e-8a76-307e1cfd14c4n%40googlegroups.com.