Skip to content

adsense.reports.generate is not allowing multiple values for metric attributes #69

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. authenticate via oauth 2
2. use v1.2 (adsense.reports.generate)
3. put multiple elements in array for metric attribute

What is the expected output? What do you see instead?
i expect all the metric attributes to appear with data,

instead i see no data at all, here's an example
when i put 
'metric' => %w(CLICKS EARNINGS),

i get the following

"{\"kind\":\"adsense#report\",\"totalMatchedRows\":\"0\",\"headers\":[{\"name\":
\"CUSTOM_CHANNEL_ID\",\"type\":\"DIMENSION\"}],\"totals\":[\"\"],\"averages\":[\
"\"]}"

if i use only 1 element in metric, it works, for instance,
'metric' => %w(CLICKS),

i get the following

"{\"kind\":\"adsense#report\",\"totalMatchedRows\":\"2\",\"headers\":[{\"name\":
\"CUSTOM_CHANNEL_ID\",\"type\":\"DIMENSION\"},{\"name\":\"CLICKS\",\"type\":\"ME
TRIC_TALLY\"}],\"rows\":[[\"partner-pub-2227041865223506:1000000001\",\"112\"],[
\"partner-pub-2227041865223506:1000000002\",\"89\"]],\"totals\":[\"\",\"201\"],\
"averages\":[\"\",\"100\"]}"


What version of the product are you using? On what operating system?
im running on Centos 6, using  gem 'google-api-client'


Please provide any additional information below.

Original issue reported on code.google.com by michael...@gmail.com on 8 Nov 2012 at 3:36

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions