Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-21 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello, You can check out the OAuth 2.0 documentation, particularly this page: https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#oauth-2.0-endpoints This goes into a lot of detail on how to fetch access tokens using just curl requests, which should be translatable

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-18 Thread Chad Wood
See, if I break the process down into steps: 1. Your application redirects a browser to a Google URL 1a. the URL includes query parameters that indicate the type of access being requested 1b. importantly, this includes "scope" and "state" 2. You select the Google Account you want to aut

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-18 Thread Chad Wood
See, if I break the process down into steps: 1. Your application redirects a browser to a Google URL 1a. the URL includes query parameters that indicate the type of access being requested 1b. importantly, this includes "scope" and "state" 2. You select the Google Account you want to aut

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-18 Thread Chad Wood
See, if I break the process down into steps: 1. Your application redirects a browser to a Google URL 1a. the URL includes query parameters that indicate the type of access being requested 1b. importantly, this includes "scope" and "state" 2. You select the Google Account you want to auth

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-18 Thread Chad Wood
An example of the payload I'd like to reproduce (values changed slightly for security): you can see at index 2 in f.req, also at {'f.req': [True, '!ChRxa0FhVGI1X294dHwOOsPwQrVIMxIfZ3g3TmFyZklDMFlTa013TWpqbVNUV1h5Vk17D3KqZw∙AD98QVYAY3VIexEJuF7PQTpFZd2Q1Zaaw8v28Dg4', None, None, ['gf.s

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-18 Thread Chad Wood
By the way, I had submitted a pretty detailed and nicely formatted message of the process and my goal--hoping that it would make everything super clear for whoever is able to help me. But, for some reason, at the time all my messages were automatically getting marked as "Message has been deleted

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-17 Thread Chad Wood
Thanks. I'll keep an eye out until then. On Thursday, November 17, 2022 at 1:45:50 PM UTC-8 adsapi wrote: > Hi Chad, > > Thanks for your patience on this and for your detailed description. Please > allow me to raise this question to our team. We will provide an update on > this shortly. > > Tha

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-17 Thread Chad Wood
Thanks, and you are right that the access token and refresh token is generated by Google side. About this: "the URL includes query parameters that indicate the type of access being requested" This is also correct. Here's what the url would look like: https:// accounts. google. com/o/oauth2/auth

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-16 Thread Chad Wood
Thanks Sherwin, but the technical part that I struggle with has nothing to do with the Python library. It actually has to do with some proprietary piece of Google tech used during the OAUTH procedure. All the library does is spin up a server, produce a link for OAUTH verification, and makes the

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-15 Thread Chad Wood
Found this: - f.req is an array of “envelopes” for each payload in the batch. I’ll dive deeper into the structure of this later. - at is another XSRF mitigation parameter, this time tied to the user’s Google account and paired with a UNIX timestamp.

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-15 Thread Chad Wood
Again, this is all sent from the OAUTH flow for Desktop Apps. It's at the last step; basically this sends and you guys respond with a URL to be used for the callback. On Tuesday, November 15, 2022 at 4:22:59 PM UTC-8 Chad Wood wrote: > Here's an example of the payload I want to reproduce (valu

Re: Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-15 Thread Chad Wood
Here's an example of the payload I want to reproduce (values changed to prevent reuse) test_req = { 'f.req': [ True, '!ChRxa0FhVGI1X294dHwOOsPwQrVIMxIfZ3g3TmFyZklDMFlTa013TWpqbVNUV1h5Vk17D3KqZw∙AD98QVYAY3VIexEJuF7PQTpFZd2Q1Zaaw8v28eK3', None, None,

Trying to Reproduce the Payload for Getting a Refresh Token

2022-11-15 Thread Chad Wood
https://groups.google.com/g/adwords-api/c/bAgqtTr5OoY This issue has branched into a follow up question that should probably be handled separately. I'm investigating the process of requesting refresh tokens. I use the client library for Python titled "generate_user_credentials.py" for Desktop a