@@ -7,7 +7,7 @@ public extension APIProvider {
7
7
/// `ReportingRequest.selector.fields` property. Omit this if no fields are being filtered out,
8
8
/// which will result in decoding `ReportingCampaign` type.
9
9
///
10
- /// - Returns: An object of type `Reporting<Empty, Model>`.
10
+ /// - Returns: A paginated object of type `Reporting<Empty, Model>`.
11
11
///
12
12
/// - Throws: An error of type `APIError`.
13
13
///
@@ -21,8 +21,8 @@ public extension APIProvider {
21
21
func getCampaignsReport< Model: Decodable & Sendable > (
22
22
request: ReportingRequest < ReportingCampaign > ,
23
23
decoding: Model . Type = ReportingCampaign . self
24
- ) async throws -> Response < Paginated < Reporting < Empty , Model > > > {
25
- try await provider. requestPaginatedModel ( from: CampaignReportRequest ( request: request) )
24
+ ) async throws -> Response < PaginatedObject < Reporting < Empty , Model > > > {
25
+ try await provider. requestPaginatedObject ( from: CampaignReportRequest ( request: request) )
26
26
}
27
27
28
28
/// Fetches reports for ad groups within a campaign.
@@ -34,7 +34,7 @@ public extension APIProvider {
34
34
/// `ReportingRequest.selector.fields` property. Omit this if no fields are being filtered out,
35
35
/// which will result in decoding `ReportingAdGroup` type.
36
36
///
37
- /// - Returns: An object of type `Reporting<Empty, Model>`.
37
+ /// - Returns: A paginated object of type `Reporting<Empty, Model>`.
38
38
///
39
39
/// - Throws: An error of type `APIError`.
40
40
///
@@ -47,8 +47,8 @@ public extension APIProvider {
47
47
campaignId: Int ,
48
48
request: ReportingRequest < ReportingAdGroup > ,
49
49
decoding: Model . Type = ReportingAdGroup . self
50
- ) async throws -> Response < Paginated < Reporting < Empty , Model > > > {
51
- try await provider. requestPaginatedModel ( from: AdGroupReportRequest ( campaignId: campaignId, request: request) )
50
+ ) async throws -> Response < PaginatedObject < Reporting < Empty , Model > > > {
51
+ try await provider. requestPaginatedObject ( from: AdGroupReportRequest ( campaignId: campaignId, request: request) )
52
52
}
53
53
54
54
/// Fetches reports for targeting keywords within a campaign and / or ad group.
@@ -61,7 +61,7 @@ public extension APIProvider {
61
61
/// `ReportingRequest.selector.fields` property. Omit this if no fields are being filtered out,
62
62
/// which will result in decoding `ReportingKeyword` type.
63
63
///
64
- /// - Returns: An object of type `Reporting<KeywordInsights, Model>`.
64
+ /// - Returns: A paginated object of type `Reporting<KeywordInsights, Model>`.
65
65
///
66
66
/// - Throws: An error of type `APIError`.
67
67
///
@@ -74,8 +74,8 @@ public extension APIProvider {
74
74
adGroupId: Int ? = nil ,
75
75
request: ReportingRequest < ReportingKeyword > ,
76
76
decoding: Model . Type = ReportingKeyword . self
77
- ) async throws -> Response < Paginated < Reporting < KeywordInsights , Model > > > {
78
- try await provider. requestPaginatedModel ( from: KeywordReportRequest (
77
+ ) async throws -> Response < PaginatedObject < Reporting < KeywordInsights , Model > > > {
78
+ try await provider. requestPaginatedObject ( from: KeywordReportRequest (
79
79
campaignId: campaignId,
80
80
adGroupId: adGroupId,
81
81
request: request
@@ -92,7 +92,7 @@ public extension APIProvider {
92
92
/// `ReportingRequest.selector.fields` property. Omit this if no fields are being filtered out,
93
93
/// which will result in decoding `ReportingSearchTerm` type.
94
94
///
95
- /// - Returns: An object of type `Reporting<Empty, Model>`.
95
+ /// - Returns: A paginated object of type `Reporting<Empty, Model>`.
96
96
///
97
97
/// - Throws: An error of type `APIError`.
98
98
///
@@ -107,8 +107,8 @@ public extension APIProvider {
107
107
adGroupId: Int ? = nil ,
108
108
request: ReportingRequest < ReportingSearchTerm > ,
109
109
decoding: Model . Type = ReportingSearchTerm . self
110
- ) async throws -> Response < Paginated < Reporting < Empty , Model > > > {
111
- try await provider. requestPaginatedModel ( from: SearchTermReportRequest (
110
+ ) async throws -> Response < PaginatedObject < Reporting < Empty , Model > > > {
111
+ try await provider. requestPaginatedObject ( from: SearchTermReportRequest (
112
112
campaignId: campaignId,
113
113
adGroupId: adGroupId,
114
114
request: request
@@ -124,7 +124,7 @@ public extension APIProvider {
124
124
/// `ReportingRequest.selector.fields` property. Omit this if no fields are being filtered out,
125
125
/// which will result in decoding `ReportingAd` type.
126
126
///
127
- /// - Returns: An object of type `Reporting<Empty, Model>`.
127
+ /// - Returns: A paginated object of type `Reporting<Empty, Model>`.
128
128
///
129
129
/// - Throws: An error of type `APIError`.
130
130
///
@@ -137,8 +137,8 @@ public extension APIProvider {
137
137
campaignId: Int ,
138
138
request: ReportingRequest < ReportingAd > ,
139
139
decoding: Model . Type = ReportingAd . self
140
- ) async throws -> Response < Paginated < Reporting < Empty , Model > > > {
141
- try await provider. requestPaginatedModel ( from: AdReportRequest ( campaignId: campaignId, request: request) )
140
+ ) async throws -> Response < PaginatedObject < Reporting < Empty , Model > > > {
141
+ try await provider. requestPaginatedObject ( from: AdReportRequest ( campaignId: campaignId, request: request) )
142
142
}
143
143
144
144
/// Obtain a report ID.
0 commit comments