简体   繁体   English

使用Google AnalyticsAPI v4获取数据

[英]Data fetching using Google Analytics API v4

It may be weird to ask this but still I need some insights on this. 问这个问题可能很奇怪,但我仍然需要一些见解。 I have to use Google Analytics API v4 API for data fetching but the code is returning compilation error even after importing and adding all the required jars in it's class-path. 我必须使用Google Analytics API v4 API进行数据提取,但即使在导入并在其类路径中添加所有必需的jar后,代码也会返回编译错误。

The following are the classes which are unable to resolve compilation error : 以下是无法解决编译错误的类:

AnalyticsreportingScopes
Analyticsreporting
ColumnHeader
DateRange
DateRangeValues
Dimension
GetReportsRequest
GetReportsResponse
Metric
MetricHeaderEntry
Report
ReportRequest
ReportRow

I have added google-api-services-analyticsreporting-v4-rev7-1.22.0.jar for these classes in the class-path. 我在class-path中为这些类添加了google-api-services-analyticsreporting-v4-rev7-1.22.0.jar Please help me out tackling this so that I can proceed further in achieving my objective. 请帮助我解决这个问题,以便我可以进一步实现我的目标。

Now I'm able to remove the compilation errors. 现在我可以删除编译错误。 I simply removed all the 'import' statements from the beginning of the codes and resolved 'import' by selecting every class under 'red line'. 我只是从代码的开头删除了所有'import'语句,并通过选择'red line'下的每个类来解决'import'。 It was quite weird behaviour by thanks to Eclipse IDE. 感谢Eclipse IDE,这是一种非常奇怪的行为。 I'm done with resolving compiling errors. 我已经完成了解决编译错误的问题。 Now, I can proceed to other important aspects of the process I have to achieve. 现在,我可以继续我必须实现的过程的其他重要方面。 Thanks to everyone who looked into this. 感谢所有关注此事的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM