reportType for percent fields

50 views
Skip to first unread message

chris h

unread,
Feb 27, 2012, 11:00:08 AM2/27/12
to adwor...@googlegroups.com
The report info doc (for account performance report for example) contains:

   <rval>
     <fieldName>ConversionRate</fieldName>
     <displayFieldName>Conv. rate (1-per-click)</displayFieldName>
     <xmlAttributeName>convRate1PerClick</xmlAttributeName>
     <fieldType>Double</fieldType>
     <canSelect>true</canSelect>
     <canFilter>true</canFilter>
     <isEnumType>false</isEnumType>
   </rval>

And yet the result is return as:

   convRate1PerClick="1.23%"

So wouldn't it be better to report the type as "Percent":

   <fieldType>Percent</fieldType>

 - Chris

Eric Koleda

unread,
Mar 12, 2012, 10:05:16 AM3/12/12
to adwor...@googlegroups.com
Hi Chris,

You're correct that the reported fieldType doesn't quite match the output, and we're working with the core engineering team to address this.  In the mean time you can look to the Notes field on our report types page for this information:


Best,
- Eric Koleda, AdWords API Team

kristijan...@fourdots.co

unread,
May 18, 2017, 6:40:52 AM5/18/17
to AdWords API Forum, eric....@google.com
Hello,

Is this still being worked on since it's still the same?

Shwetha Vastrad (AdWords API Team)

unread,
May 18, 2017, 11:35:09 AM5/18/17
to AdWords API Forum
Hi, 

Please see this guide for more details for the format of different fields in AdWords API reports. It is recommended that you check the description of each field about the expected format of values. For example, the description for ConversionRate states that the value is a percentage returned as "x.xx%".

Regards,
Shwetha, AdWords API Team.

kristijan...@fourdots.co

unread,
May 18, 2017, 11:38:08 AM5/18/17
to AdWords API Forum
Hi,

I've looked through it but how can I get that info programmatically e.g. using ReportDefinitionService?

Shwetha Vastrad (AdWords API Team)

unread,
May 18, 2017, 2:57:18 PM5/18/17
to AdWords API Forum
Hi,

The ReportDefinitionService will return the fields provided here. I'm afraid the detailed description of the field, which contains the expected format of the values, is not returned in the response. For now, you'll have to rely on the data available in the Report Types appendix. 

kristijan...@fourdots.co

unread,
May 19, 2017, 3:31:59 AM5/19/17
to AdWords API Forum
Hi,

Is that something with a chance of changing any time soon (getting correct format info via ReportDefinitionService)?

Shwetha Vastrad (AdWords API Team)

unread,
May 19, 2017, 1:47:26 PM5/19/17
to AdWords API Forum
Hi, 

I'm afraid I don't have a timeline for when this will be available via ReportDefinitionService. Please keep an eye on the blog for any updates. 
Reply all
Reply to author
Forward
0 new messages