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

No response #16

Open
maychenn opened this issue Jul 27, 2020 · 4 comments
Open

No response #16

maychenn opened this issue Jul 27, 2020 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@maychenn
Copy link

Hi! Thank you so much for writing this code! It will be super helpful once I figure out how to run it.

I'm a complete beginner with Javascript, and I'm not getting a response when either running request or get using Node. Does the code need to be run in specific environment? or am I just missing something in the parameters?

image

@fredericharnois fredericharnois self-assigned this Aug 4, 2020
@fredericharnois fredericharnois added the question Further information is requested label Aug 4, 2020
@fredericharnois
Copy link
Owner

Hi @maychenn!

This is meant to be run in the Google Apps Script environment and calls on APIs/methods that are exclusive to that environment.

Don't hesitate if you have any issues getting it setup there.

Thanks!

@maychenn
Copy link
Author

maychenn commented Aug 4, 2020

Thanks so much for responding! I was finally able to get it set up. Do you know how I can get 1d_click, 1d_view, 7d_click, etc. to show up? This is what I have for filtering currently (based on another comment). I got an error when I included it in fields.
image

@fredericharnois
Copy link
Owner

You'd actually want to add an additional parameter to do that.

First, add this constant:

const ATTRIBUTION_WINDOWS = '['1d_view','7d_view','28d_view','1d_click','7d_click','28d_click']'

Then add &action_attribution_windows=${ATTRIBUTION_WINDOWS} to the facebookUrl constant in the url parameters.

Let me know if it works!

@maychenn
Copy link
Author

maychenn commented Aug 11, 2020

That's actually what I tried, and I'm now getting an error that says this even when I take the attribution window portions out:

Exception: Request failed for https://graph.facebook.com returned code 400. Truncated server response: {"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace_id":"Ab0OHVHQYS1rXAuAZm11xtW"}} (use muteHttpExceptions option to examine full response) (line 50, file "Code")

Could it have to do with Graph v8.0 that just came out? I've checked that the tokens I'm using are still valid & I switched v7.0 to v8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants