How to get correct eligible ad spend with google ads api ?

34 views
Skip to first unread message

Ludovic Cardinale

unread,
Oct 16, 2019, 7:52:54 AM10/16/19
to AdWords API and Google Ads API Forum
Hi everybody,

I have a question about the Google Ads Api.
When i request the customer with this :

$query = "SELECT 
customer.id,
metrics.cost_micros,
segments.date
FROM customer
WHERE segments.date
BETWEEN '" . $a["date_start"] . "'
AND '" . $a["date_end"] . "'";

And this return for some days 0.
But, if i use the old Google Adwords API these same days return to me a correct value (similar at the Google Ads Back office).

What can i do ?

Thanks.

Google Ads API Forum Advisor Prod

unread,
Oct 16, 2019, 2:48:14 PM10/16/19
to lud...@web2roi.com, adwor...@googlegroups.com

Hi Ludovic,

Thank you for reaching the support. Could you please share the complete request and response logs along with the client customer id used while making call to the API for me to investigate this further? Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UKNTzF:ref

Ludovic Cardinale

unread,
Oct 17, 2019, 6:12:50 AM10/17/19
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
Hi, this is my response :
{
  • customer_id"4396467697",
  • costs
    {
    • 2019-09-010,
    • 2019-09-020,
    • 2019-09-030,
    • 2019-09-040,
    • 2019-09-050
    }
}  

adwords Web2Roi

unread,
Nov 19, 2019, 8:34:07 AM11/19/19
to AdWords API and Google Ads API Forum
Hi, i really need help for this. That give me bad cost_micros !!
Reply all
Reply to author
Forward
0 new messages