Skip to content

Commit b1ccc65

Browse files
committed
Make keyword bid amount optional
1 parent 5f45aea commit b1ccc65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Core/Models/Codable/Keyword.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public struct Keyword: Codable, Hashable, Sendable, CodingKeysContaining, Identi
2121
/// If the bidAmount field is null, the bidAmount uses the defaultBidAmount of the corresponding ad group.
2222
/// If you set `automatedKeywordsOptIn=true` in Update an Ad Group,
2323
/// the bid uses optimized keywords with the `defaultBidAmount`.
24-
public let bidAmount: Money
24+
public let bidAmount: Money?
2525
/// An indicator of whether the keyword is soft-deleted.
2626
public let deleted: Bool?
2727
/// The date and time of the creation of the keyword object.
@@ -36,7 +36,7 @@ public struct Keyword: Codable, Hashable, Sendable, CodingKeysContaining, Identi
3636
text: String,
3737
matchType: KeywordMatchType,
3838
status: KeywordStatus? = nil,
39-
bidAmount: Money,
39+
bidAmount: Money? = nil,
4040
deleted: Bool? = nil,
4141
creationTime: Date? = nil,
4242
modificationTime: Date? = nil

0 commit comments

Comments
 (0)