Hi,

The client ID and client secret you used are for the *Web application* flow. 
The *GetRefreshToken.php* example will only work if the client ID and 
client secret specified are for credentials with *Application type = Other* 
(the 
installed application flow). Please see the *Create a client ID and secret* 
section 
of the AdWords API OAuth guide 
<https://developers.google.com/adwords/api/docs/guides/authentication#installed>
 for 
instructions on how to create this type of credential.

Thanks,
Josh, AdWords API Team

On Tuesday, January 23, 2018 at 5:12:45 PM UTC-5, 
[email protected] wrote:
>
> How do i generate the authorization code?
>     here is the link to what i done : http://prntscr.com/i4f455
>     after Running the url, the result is : http://prntscr.com/i4f7hy
>
>
>
>
> On Wednesday, 3 September 2014 14:42:18 UTC+5:30, Shukla Abhinav wrote:
>>
>> *I am trying to run my adwords but everytime I try to execute the 
>> GetRefreshToken.php file on my server I get the following error*
>>
>> &quot;Warning: Error parsing 
>>  ../googleads-php-lib-master/src/Google/Api/Ads/AdWords/Lib/api.properties 
>> on line 14 in .. 
>> /googleads-php-lib-master/src/Google/Api/Ads/Common/Util/ApiPropertiesUtils.php
>>  
>> on line 40  Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 
>> &#39;WSDL_CACHE_NONE&#39; in  .. 
>> /googleads-php-lib-master/src/Google/Api/Ads/Common/Lib/AdsUser.php on line 
>> 231 Log in to your AdWords account and open the following URL:
>> https://accounts.google.com/o/oauth2/auth?response_type=code&amp;client_id=529713113834-pcltkti85cv8...
>>  
>> <https://accounts.google.com/o/oauth2/auth?response_type=code&amp;client_id=529713113834-pcltkti85cv8s6991p1lloprigi3ah46.apps.googleusercontent.com&amp;redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&amp;scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&amp;access_type=offline>
>>  After 
>> approving the token enter the authorization code here: Your OAuth2 
>> Credentials are incorrect. Please see the GetRefreshToken.php example. { 
>> &quot;error&quot; : &quot;invalid_request&quot;, 
>> &quot;error_description&quot; : &quot;Missing required parameter: 
>> code&quot; }&quot;
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/516923fa-7cf2-4cf1-a39e-98f6dceea961%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to