Why is Google Analytics API Adwords data returning zero (0)?



Are you wondering what’s wrong with your KPI? Why isn’t it showing the Adwords Cost or CPC as it should be? Especially since you see data in Google Analytics?

Did you create the KPI using the Google Analytics Paid Search Segment? That’s why. The problem occurs with every metric: Cost, Clicks, Impressions, CPC, CPM, ROI, Margin, etc.

Unfortunately, there are no obvious reasons for this. For some reasons, it just doesn’t work. You can’t get Adwords data using the Paid Search advanced segment, and there are also some metric- dimension-advanced segment combinations you can’t use. Read this for the full list.


The good news is that there’s an easy workaround: Remove the segment!

You will get the same Adwords data whether you use a Paid Search filter (i.e. ga:medium==cpc) or not. Just drop the segment and the problem will be solved!

If you need to segment, then use a filter like this one:


That’s it! No more problem reporting on Adwords data from your Google Analytics account!