Skip to content

Commit 261de8c

Browse files
committed
Remove pagination for create / update keywords
1 parent b1ccc65 commit 261de8c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Sources/API/APIProvider+AdGroupKeywords.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public extension APIProvider {
1313
campaignId: Int,
1414
adGroupId: Int,
1515
keywords: [NegativeKeyword]
16-
) async throws -> Response<Paginated<NegativeKeyword>> {
17-
try await provider.requestPaginatedModel(from: AdGroupNegativeKeywordsCreateRequest(
16+
) async throws -> Response<[NegativeKeyword]> {
17+
try await provider.requestDataModel(from: AdGroupNegativeKeywordsCreateRequest(
1818
campaignId: campaignId,
1919
adGroupId: adGroupId,
2020
keywords: keywords
@@ -35,8 +35,8 @@ public extension APIProvider {
3535
campaignId: Int,
3636
adGroupId: Int,
3737
keywords: [NegativeKeyword]
38-
) async throws -> Response<Paginated<NegativeKeyword>> {
39-
try await provider.requestPaginatedModel(from: AdGroupNegativeKeywordsUpdateRequest(
38+
) async throws -> Response<[NegativeKeyword]> {
39+
try await provider.requestDataModel(from: AdGroupNegativeKeywordsUpdateRequest(
4040
campaignId: campaignId,
4141
adGroupId: adGroupId,
4242
keywords: keywords

Sources/API/APIProvider+CampaignKeywords.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public extension APIProvider {
1111
func createCampaignNegativeKeywords(
1212
campaignId: Int,
1313
keywords: [NegativeKeyword]
14-
) async throws -> Response<Paginated<NegativeKeyword>> {
15-
try await provider.requestPaginatedModel(from: CampaignNegativeKeywordsCreateRequest(
14+
) async throws -> Response<[NegativeKeyword]> {
15+
try await provider.requestDataModel(from: CampaignNegativeKeywordsCreateRequest(
1616
campaignId: campaignId,
1717
keywords: keywords
1818
))
@@ -30,8 +30,8 @@ public extension APIProvider {
3030
func updateCampaignNegativeKeywords(
3131
campaignId: Int,
3232
keywords: [NegativeKeyword]
33-
) async throws -> Response<Paginated<NegativeKeyword>> {
34-
try await provider.requestPaginatedModel(from: CampaignNegativeKeywordsUpdateRequest(
33+
) async throws -> Response<[NegativeKeyword]> {
34+
try await provider.requestDataModel(from: CampaignNegativeKeywordsUpdateRequest(
3535
campaignId: campaignId,
3636
keywords: keywords
3737
))

Sources/API/APIProvider+TargetingKeywords.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public extension APIProvider {
1313
campaignId: Int,
1414
adGroupId: Int,
1515
keywords: [Keyword]
16-
) async throws -> Response<Paginated<Keyword>> {
17-
try await provider.requestPaginatedModel(from: TargetingKeywordsCreateRequest(
16+
) async throws -> Response<[Keyword]> {
17+
try await provider.requestDataModel(from: TargetingKeywordsCreateRequest(
1818
campaignId: campaignId,
1919
adGroupId: adGroupId,
2020
keywords: keywords
@@ -35,8 +35,8 @@ public extension APIProvider {
3535
campaignId: Int,
3636
adGroupId: Int,
3737
keywords: [KeywordUpdate]
38-
) async throws -> Response<Paginated<Keyword>> {
39-
try await provider.requestPaginatedModel(from: TargetingKeywordsUpdateRequest(
38+
) async throws -> Response<[Keyword]> {
39+
try await provider.requestDataModel(from: TargetingKeywordsUpdateRequest(
4040
campaignId: campaignId,
4141
adGroupId: adGroupId,
4242
keywords: keywords

0 commit comments

Comments
 (0)