Skip to content

Commit ea77249

Browse files
committed
Fix country code field in reporting campaign
1 parent f978ff7 commit ea77249

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

Sources/Core/Models/Codable/ReportingAd.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public struct ReportingAd: Codable, Hashable, Sendable, CodingKeysContaining, Id
5555
public let gender: Gender?
5656
/// Reporting age range.
5757
public let ageRange: AgeRange?
58-
/// Reporting country code.
59-
public let countryCode: String?
58+
/// Reporting country or region.
59+
public let countryOrRegion: String?
6060
/// Reporting administrative area.
6161
public let adminArea: String?
6262
/// Reporting locality.
@@ -83,7 +83,7 @@ public struct ReportingAd: Codable, Hashable, Sendable, CodingKeysContaining, Id
8383
deviceClass: DeviceClass? = nil,
8484
gender: Gender? = nil,
8585
ageRange: AgeRange? = nil,
86-
countryCode: String? = nil,
86+
countryOrRegion: String? = nil,
8787
adminArea: String? = nil,
8888
locality: String? = nil
8989
) {
@@ -105,7 +105,7 @@ public struct ReportingAd: Codable, Hashable, Sendable, CodingKeysContaining, Id
105105
self.deviceClass = deviceClass
106106
self.gender = gender
107107
self.ageRange = ageRange
108-
self.countryCode = countryCode
108+
self.countryOrRegion = countryOrRegion
109109
self.adminArea = adminArea
110110
self.locality = locality
111111
}
@@ -129,7 +129,7 @@ public struct ReportingAd: Codable, Hashable, Sendable, CodingKeysContaining, Id
129129
case deviceClass
130130
case gender
131131
case ageRange
132-
case countryCode
132+
case countryOrRegion
133133
case adminArea
134134
case locality
135135
}

Sources/Core/Models/Codable/ReportingAdGroup.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public struct ReportingAdGroup: Codable, Hashable, Sendable, CodingKeysContainin
4242
public let gender: Gender?
4343
/// Reporting age range.
4444
public let ageRange: AgeRange?
45-
/// Reporting country code.
46-
public let countryCode: String?
45+
/// Reporting country or region.
46+
public let countryOrRegion: String?
4747
/// Reporting administrative area.
4848
public let adminArea: String?
4949
/// Reporting locality.
@@ -70,7 +70,7 @@ public struct ReportingAdGroup: Codable, Hashable, Sendable, CodingKeysContainin
7070
deviceClass: DeviceClass? = nil,
7171
gender: Gender? = nil,
7272
ageRange: AgeRange? = nil,
73-
countryCode: String? = nil,
73+
countryOrRegion: String? = nil,
7474
adminArea: String? = nil,
7575
locality: String? = nil
7676
) {
@@ -92,7 +92,7 @@ public struct ReportingAdGroup: Codable, Hashable, Sendable, CodingKeysContainin
9292
self.deviceClass = deviceClass
9393
self.gender = gender
9494
self.ageRange = ageRange
95-
self.countryCode = countryCode
95+
self.countryOrRegion = countryOrRegion
9696
self.adminArea = adminArea
9797
self.locality = locality
9898
}
@@ -116,7 +116,7 @@ public struct ReportingAdGroup: Codable, Hashable, Sendable, CodingKeysContainin
116116
case deviceClass
117117
case gender
118118
case ageRange
119-
case countryCode
119+
case countryOrRegion
120120
case adminArea
121121
case locality
122122
}

Sources/Core/Models/Codable/ReportingCampaign.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public struct ReportingCampaign: Codable, Hashable, Sendable, CodingKeysContaini
4949
public let gender: Gender?
5050
/// Reporting age range.
5151
public let ageRange: AgeRange?
52-
/// Reporting country code.
53-
public let countryCode: String?
52+
/// Reporting country or region.
53+
public let countryOrRegion: String?
5454
/// Reporting administrative area.
5555
public let adminArea: String?
5656
/// Reporting locality.
@@ -78,7 +78,7 @@ public struct ReportingCampaign: Codable, Hashable, Sendable, CodingKeysContaini
7878
deviceClass: DeviceClass? = nil,
7979
gender: Gender? = nil,
8080
ageRange: AgeRange? = nil,
81-
countryCode: String? = nil,
81+
countryOrRegion: String? = nil,
8282
adminArea: String? = nil,
8383
locality: String? = nil
8484
) {
@@ -101,7 +101,7 @@ public struct ReportingCampaign: Codable, Hashable, Sendable, CodingKeysContaini
101101
self.deviceClass = deviceClass
102102
self.gender = gender
103103
self.ageRange = ageRange
104-
self.countryCode = countryCode
104+
self.countryOrRegion = countryOrRegion
105105
self.adminArea = adminArea
106106
self.locality = locality
107107
}
@@ -126,7 +126,7 @@ public struct ReportingCampaign: Codable, Hashable, Sendable, CodingKeysContaini
126126
case deviceClass
127127
case gender
128128
case ageRange
129-
case countryCode
129+
case countryOrRegion
130130
case adminArea
131131
case locality
132132
}

Sources/Core/Models/Codable/ReportingKeyword.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public struct ReportingKeyword: Codable, Hashable, Sendable, CodingKeysContainin
3838
public let gender: Gender?
3939
/// Reporting age range.
4040
public let ageRange: AgeRange?
41-
/// Reporting country code.
42-
public let countryCode: String?
41+
/// Reporting country or region.
42+
public let countryOrRegion: String?
4343
/// Reporting administrative area.
4444
public let adminArea: String?
4545
/// Reporting locality.
@@ -64,7 +64,7 @@ public struct ReportingKeyword: Codable, Hashable, Sendable, CodingKeysContainin
6464
deviceClass: DeviceClass? = nil,
6565
gender: Gender? = nil,
6666
ageRange: AgeRange? = nil,
67-
countryCode: String? = nil,
67+
countryOrRegion: String? = nil,
6868
adminArea: String? = nil,
6969
locality: String? = nil
7070
) {
@@ -84,7 +84,7 @@ public struct ReportingKeyword: Codable, Hashable, Sendable, CodingKeysContainin
8484
self.deviceClass = deviceClass
8585
self.gender = gender
8686
self.ageRange = ageRange
87-
self.countryCode = countryCode
87+
self.countryOrRegion = countryOrRegion
8888
self.adminArea = adminArea
8989
self.locality = locality
9090
}
@@ -106,7 +106,7 @@ public struct ReportingKeyword: Codable, Hashable, Sendable, CodingKeysContainin
106106
case deviceClass
107107
case gender
108108
case ageRange
109-
case countryCode
109+
case countryOrRegion
110110
case adminArea
111111
case locality
112112
}

Sources/Core/Models/Codable/ReportingSearchTerm.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public struct ReportingSearchTerm: Codable, Hashable, Sendable, CodingKeysContai
5050
public let gender: Gender?
5151
/// Reporting age range.
5252
public let ageRange: AgeRange?
53-
/// Reporting country code.
54-
public let countryCode: String?
53+
/// Reporting country or region.
54+
public let countryOrRegion: String?
5555
/// Reporting administrative area.
5656
public let adminArea: String?
5757
/// Reporting locality.
@@ -78,7 +78,7 @@ public struct ReportingSearchTerm: Codable, Hashable, Sendable, CodingKeysContai
7878
deviceClass: DeviceClass? = nil,
7979
gender: Gender? = nil,
8080
ageRange: AgeRange? = nil,
81-
countryCode: String? = nil,
81+
countryOrRegion: String? = nil,
8282
adminArea: String? = nil,
8383
locality: String? = nil
8484
) {
@@ -100,7 +100,7 @@ public struct ReportingSearchTerm: Codable, Hashable, Sendable, CodingKeysContai
100100
self.deviceClass = deviceClass
101101
self.gender = gender
102102
self.ageRange = ageRange
103-
self.countryCode = countryCode
103+
self.countryOrRegion = countryOrRegion
104104
self.adminArea = adminArea
105105
self.locality = locality
106106
}
@@ -124,7 +124,7 @@ public struct ReportingSearchTerm: Codable, Hashable, Sendable, CodingKeysContai
124124
case deviceClass
125125
case gender
126126
case ageRange
127-
case countryCode
127+
case countryOrRegion
128128
case adminArea
129129
case locality
130130
}

0 commit comments

Comments
 (0)