Not able to connect adobe analytics through python api

Avatar

Avatar

tajinderpals808

Avatar

tajinderpals808

tajinderpals808

11-12-2018

I got developer account created for adobe analytics and received a link to complete my account. while account creation it asks for password only. After entering the password i logged in successfully. But while connecting adobe analytics through python it asks for username/password.

Where i can get the username which i can use with python ?

I have tried the name showing on top right corner after successful login to the adobe analytics but did'nt worked for me.

Do help me or redirect me to the concerned team.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

AlexisCazes

MVP

Avatar

AlexisCazes

MVP

AlexisCazes
MVP

13-12-2018

You should this documentation: GitHub - AdobeDocs/analytics-1.4-apis: Documentation and helpful resources for calling the Analytics...

analytics-1.4-apis/wsse_authentication.md at master · AdobeDocs/analytics-1.4-apis · GitHub

To get the username and password you will need to be added to the web services group for Adobe Analytics. Once it is done, an admin in your company can go to Admin >> Company Settings >> Web services and should be able to provide you the Web services username and Shared secret. That are the ones you need to use with WSSE.

Unfortunately I do not have any WSSE example in python.

Answers (6)

Answers (6)

Avatar

Avatar

tajinderpals808

Avatar

tajinderpals808

tajinderpals808

15-01-2019

Thanks Alexis for your help!!

I was able to connect to omniture via python api.

I am facing new issue now while fetching traffic report from omniture. I am trying to fetch pages report with sample data as below.

   

PagePage ViewsTotal Seconds Spent
1search results831371731.00%3.71E+0831.30%
2Search results13284615.00%412798033.50%
3Groceries:Homepage10980384.10%437029003.70%
4Favourites:My%20Favourites7480542.80%1.32E+0811.20%

the inputs i am using in python code is mentioned below.

report_definition_traffic = ReportDefinition(

    dimensions="page",

    metrics=[

{ "id": "pageviews"}

        ],

    date_from="2016-08-15",

    date_to="2017-08-13",

elements=[

                        {

                "id":"page", "top": 100

            }

        ]

)

issue - manual numbers and python dataframe numbers are not matching. Also i am not able to find the option to pull the "Total Seconds Spent" metric.

Avatar

Avatar

AlexisCazes

MVP

Avatar

AlexisCazes

MVP

AlexisCazes
MVP

14-12-2018

You need to ask an Adobe Analytics Admin to add you to the group

Avatar

Avatar

tajinderpals808

Avatar

tajinderpals808

tajinderpals808

14-12-2018

Thanks for your reply.

How to get myself added to the web services group of Adobe Analytics.

Avatar

Avatar

tajinderpals808

Avatar

tajinderpals808

tajinderpals808

12-12-2018

I am following the below github python package to connect to adobe analytics

GitHub - SaturnFromTitan/adobe_analytics: Pythonic wrapper for the Adobe Analytics API.

Avatar

Avatar

tajinderpals808

Avatar

tajinderpals808

tajinderpals808

12-12-2018

I am using WSSE authentication and API 1.4

Avatar

Avatar

AlexisCazes

MVP

Avatar

AlexisCazes

MVP

AlexisCazes
MVP

11-12-2018

Check this documentation analytics-1.4-apis/index.md at master · AdobeDocs/analytics-1.4-apis · GitHub

Let us know what type of authentication you are using and if you are using API 1.4 or 2.0