Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aw_get_calculatedmetrics() - ownerId causing errors #49

Closed
gilliganondata opened this issue Nov 27, 2020 · 4 comments · Fixed by #175
Closed

aw_get_calculatedmetrics() - ownerId causing errors #49

gilliganondata opened this issue Nov 27, 2020 · 4 comments · Fixed by #175
Assignees
Labels
bug Something isn't working

Comments

@gilliganondata
Copy link
Collaborator

I can't get ownerId to work.

It's not clear from the documentation as to whether this should be using the owner.id or the owner.login value.

As an example, neither of these works:

Using the owner.id value

aw_get_calculatedmetrics(rsid = rsid,
                                company_id = company_id,
                                ownerId = "[added owner.id value from an unfiltered call]")

Using the owner.login value

aw_get_calculatedmetrics(rsid = rsid,
                                company_id = company_id,
                                ownerId = "added the owner.login value--email address--from a call w/ ownerFullName expansion]")

Both return:

Error in aw_call_api(req_path = urlstructure[1], company_id = company_id) : 
  Forbidden (HTTP 403).

The fact that I was trying to filter on values that I was getting from a less filtered version of the same function all means I do have access to that data.

@gilliganondata gilliganondata added the bug Something isn't working label Nov 27, 2020
@benrwoodard
Copy link
Owner

This is interesting behavior from the API.

When pulling the calculated metrics, if I leave the default value of 'includeType' as "All" then I get all the calculated metrics back but if I copy the owner id and add it as an argument using the "ownerId" then I get a 403 error. This only happens if I'm not an admin.
image

The correct filter id is going to be the owner.id
image

@gilliganondata
Copy link
Collaborator Author

This isn't matching with what I'm seeing.

I'm looking at a case where I have admin access (but there are levels of that, right? So, maybe it has to be specific admin access?).

When I filter for a specific owner.id (copied from a list of calculated metrics, so there are definitely calculated metrics that exist), I get a "List of 0" response.

Interestingly, if I put something else in the argument—a value that is not an owner.id that owns at least one calculated metric—I get an error (404, though; not 403):

Request failed [404]. Retrying in 1.3 seconds...
Request failed [404]. Retrying in 1.9 seconds...
Error in aw_call_api(req_path = urlstructure[1], company_id = company_id) : 
  Not Found (HTTP 404).

I've tried this with a couple of different logins (for me) on a couple of different company_id values.

@benrwoodard
Copy link
Owner

This has to be a bug in the api. I'll add it to my other issue regarding 'tagnames'

@benrwoodard
Copy link
Owner

Still waiting to hear back from Adobe Support on this one.
https://github.com/AdobeDocs/analytics-2.0-apis/issues/172

@benrwoodard benrwoodard self-assigned this Dec 1, 2020
@benrwoodard benrwoodard linked a pull request Nov 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants