Hello Ivan,

Thanks, the installed app flow worked very well! I have two doubts: first
of all, will I need to refresh the token from times to times? Because my
service is automated on a server...
Second, I also use the Analytics Auth via the P12 key and a service Account
Email, something like this:


string[] scopes =
                new string[] {
                 AnalyticsService.Scope.Analytics,  // view and manage your
analytics data
                 AnalyticsService.Scope.AnalyticsEdit,  // edit management
actives
                 AnalyticsService.Scope.AnalyticsManageUsers,   // manage
users
                 AnalyticsService.Scope.AnalyticsReadonly};     // View
analytics data
                string keyFilePath = @"path\to\file\mykey.p12";    // found
in developer console
                string serviceAccountEmail = "
[email protected]";  // found in developer console
                //loading the Key file
                var certificate = new X509Certificate2(keyFilePath,
"mykeysecret", X509KeyStorageFlags.Exportable);
                ServiceAccountCredential credential = new
ServiceAccountCredential(new
ServiceAccountCredential.Initializer(serviceAccountEmail)
                {
                    Scopes = scopes
                }.FromCertificate(certificate));
                AnalyticsService analytics = new AnalyticsService(new
BaseClientService.Initializer()
                {
                    HttpClientInitializer = credential,
                    ApplicationName = "My Application Name",
                });


 Will I also need to change this flow to a Installed App?

Thanks again,
Rafael

On Thu, Jun 8, 2017 at 2:52 AM, 'Ivan Bautista' via AdWords API Forum <
[email protected]> wrote:

> Hi Rafael,
>
> We strongly recommend using installed app flow
> <https://developers.google.com/adwords/api/docs/guides/authentication#determine_your_app_type>
>  as
> it is a simpler alternative that achieves similar goal
> <https://developers.google.com/adwords/api/docs/guides/authentication#an_alternative_to_service_accounts>
>  but
> we'll try to assist you with your concern as accurately as possible.
>
> Could you confirm if you were able to follow the necessary steps for
> setting up your service account access
> <https://developers.google.com/adwords/api/docs/guides/authentication#setting_up_service_account_access>
>  to
> generate the JSON key file? In addition, you may refer to this guide
> <https://github.com/googleads/googleads-dotnet-lib/wiki/API-access-using-own-credentials-(server-to-server-flow)#step-2---setting-up-the-client-library>
>  for
> configuring your client library with the generated OAuth2 credentials.
>
> Regards,
> Ivan
> AdWords API Team
>
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/adwords-api/866-ePFzo-Q/unsubscribe.
> To unsubscribe from this group and all its topics, 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/54b3fa2d-52c6-4525-851c-1ed11bac51d2%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/54b3fa2d-52c6-4525-851c-1ed11bac51d2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CAFE1PQK824YXCLAFpFW08P7UQ3TcPgKQ%2BXdUBJh0ew3-VHUWMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to