Hi Michael,

You should create test account with a separate login, you cannot have two 
AdWords accounts with the same login email. As for working around OAuth2 
authorization for testing purposes, you could generate an OAuth2 access 
token and refresh token for your test MCC account, then generate access 
token as required using the refresh token (this is the equivalent of 
offline=true in OAuth2 web / installed application flows). If you are using 
the client libraries, they typically comes with an application that allows 
you to generate a refresh token, so that your application runs without the 
authorization prompt. For instance, you can see the instructions for the 
AdWords API .NET library at 
https://code.google.com/p/google-api-adwords-dotnet/wiki/UsingOAuth#Adding_OAuth2_support_for_your_application_(single_login)
.

Cheers,
Anash P. Oommen
AdWords API Advisor.

On Monday, August 26, 2013 10:59:31 PM UTC+1, Michael Ni wrote:
>
> I have been using web flow as my main flow.
>
> Is the only difference in web flow and installed app flow the redirection 
> url, in terms of param settings.
>
> Mike
>
> On Monday, August 26, 2013 6:27:15 AM UTC-7, Ewan Heming wrote:
>>
>> Hi Mike,
>>
>> You only need the callback to use the OAuth web 
>> flow<https://developers.google.com/accounts/docs/OAuth2WebServer>, 
>> you can get your tokens using the Installed App 
>> Flow<https://developers.google.com/accounts/docs/OAuth2InstalledApp>. 
>> You should find an example in the client library you're using; for example, 
>> here's 
>> the PHP 
>> script<https://code.google.com/p/google-api-adwords-php/source/browse/examples/AdWords/Auth/GetRefreshToken.php>
>> .
>>
>> Regards,
>>
>> Ewan
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to