title: How do I get a refresh token for Google AdWords API?
body: <p>My client is in another country. When I try to get the refresh token as described here <a href="https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0" rel="nofollow noreferrer">https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0</a>, it asks me to log in. The client gave me the Google account credentials but Google then labels it as a suspicious login and wants a phone number and won't let me in! </p>
  
  <p><img src="https://i.imgur.com/tt8s30X.png" alt="Imgur"></p>
  
  <p>I even sent the client the URL obtained by running <code>GetRefreshToken.php</code>, and they visited the URL and sent me back the refresh token. When I tried to use the refresh token, it gave the error </p>
  
  <pre><code>An error has occurred: {
    "error" : "invalid_grant"
  }
  </code></pre>
  
  <p>The refresh token <em>is</em> working for the test MCC account that I created myself using a throwaway GMail account. I think it would be silly to have the client set up a development environment and run the code themselves to get the refresh token. </p>