Re: Getting Error Loop

32 views
Skip to first unread message

Georges Arnould

unread,
Jun 5, 2015, 6:26:34 AM6/5/15
to Martin Becker, google-analyti...@googlegroups.com
Your problem is described in response: "Selected dimensions and metrics cannot be queried together."

Check on https://developers.google.com/analytics/devguides/reporting/core/dimsmets the metrics and dimensions you wanted to mix together. For a proof of concept, you can also build request having a single metric and no dimensions.

Regards,

G.


On Fri, Jun 5, 2015 at 12:02 PM, Martin Becker <mbeck...@gmail.com> wrote:
Ok, so I'm using the Ruby client `legato` to pull data from the realtime API. I was having some other problem but that's been fixed.

What's happening is this:

I get this message:

```ruby
{"errors"=>[{"domain"=>"global", "reason"=>"required", "message"=>"Required parameter: metrics", "locationType"=>"parameter", "location"=>"metrics"}], "code"=>400, "message"=>"Required parameter: metrics"}:  (OAuth2::Error)
{"error":{"errors":[{"domain":"global","reason":"required","message":"Required parameter: metrics","locationType":"parameter","location":"metrics"}],"code":400,"message":"Required parameter: metrics"}}
```

So I add the metrics and I get this message:

```ruby
 {"errors"=>[{"domain"=>"global", "reason"=>"badRequest", "message"=>"Selected dimensions and metrics cannot be queried together."}], "code"=>400, "message"=>"Selected dimensions and metrics cannot be queried together."}:  (OAuth2::Error)
{"error":{"errors":[{"domain":"global","reason":"badRequest","message":"Selected dimensions and metrics cannot be queried together."}],"code":400,"message":"Selected dimensions and metrics cannot be queried together."}}
```

What is going on?

EDIT: (I created a new post because There didn't appear to be an edit button)

I'm aware I'm using a ruby client that you can't help with (or maybe you can), I was hoping that you could come up with a reason the API is erroring like this so I can then provide that to the creator of legato and we can resolve this faster.

--
You received this message because you are subscribed to the Google Groups "Google Analytics Real Time Reporting API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-analytics-rea...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Georges ARNOULD
Directeur technique et associé
Mail.  geo...@wasabi-analytics.com
Port.  +33 (0)6 48 55 66 44
Tél.  +33 (0)1 48 06 60 39


www.wasabi-analytics.com | Twitter
36, boulevard de la Bastille, 75012 Paris
Tél. +33 (0)1 48 06 13 20
Fax. +33 (0)1 48 06 13 27

Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. L'intégrité de ce message n'étant pas assurée sur Internet, Wasabi Analytics ne peut être tenu responsable de son contenu.
Reply all
Reply to author
Forward
0 new messages