Re: ads api - get number of purchse

2023-11-21 Thread Prabhu Palanisamy
Thank you! I can able to retrieve the purchase data now.

Query: select 
metrics.all_conversions_value, 
segments.conversion_action_category, 
metrics.all_conversions, 
from customer WHERE segments.date >= '2023-11-01' AND segments.date <= 
'2023-11-06' AND segments.conversion_action_category = 'PURCHASE'

here, *all_conversions* gives the total number of purchases.

On Friday, November 17, 2023 at 1:01:32 AM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> By reviewing your query, I understand that you are trying to fetch the 
> number of purchases through the API. 
>
> In order to investigate your issue, kindly provide us with the uncropped 
> UI screenshot of the Google Ads account with visible customer-id and 
> complete API logs (*request* 
> 
>  and *response* 
> 
>  with *request-id* 
> 
>  and *request header* 
> )
>  
> generated at your end.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides *Java* 
> 
> , *.Net* 
> 
> , *PHP* 
> 
> , *Python* 
> 
> , *Ruby* 
> 
>  or *Perl* 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>
> You can send the details via *Reply privately to the author option*, or 
> *direct 
> private reply *to this email.
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02qCgAo:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7c2a3d0f-0400-45c8-a6d0-9db618ea6dbcn%40googlegroups.com.


Ads API - get number of purchse

2023-11-16 Thread Prabhu Palanisamy
I tried to fetch the number of purchases from the ad account through the 
API, but it gives 0 value for all the campaign/ ad_group / customer levels. 

I tried the following metrics: 

metrics.orders
metrics.cross_sell_units_sold
metrics.units_sold

Query:
SELECT
campaign.name,
metrics.units_sold,
metrics.orders,
metrics.cross_sell_units_sold,
FROM campaign WHERE
segments.date >= '2023-11-01' AND segments.date <= '2023-11-15'

Kindly advise how to get the value from the API. Screenshot attached.




-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e223025a-9501-437c-ad56-5f33e1f5364bn%40googlegroups.com.