Skip to content

Commit 0438498

Browse files
authored
Add omitempty to Native Ad Response Link struct
`clicktrackers` field is optional according to the IAB spec and should be omitted if empty.
1 parent 9c04274 commit 0438498

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

native/response/link.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package response
33
import "github.com/bsm/openrtb"
44

55
type Link struct {
6-
URL string `json:"url"` // Landing URL of the clickable link
7-
ClickTrackers []string `json:"clicktrackers"` // List of third-party tracker URLs to be fired on click of the URL
8-
FallbackURL string `json:"fallback,omitempty"` // Fallback URL for deeplink. To be used if the URL given in url is not supported by the device.
6+
URL string `json:"url"` // Landing URL of the clickable link
7+
ClickTrackers []string `json:"clicktrackers,omitempty"` // List of third-party tracker URLs to be fired on click of the URL
8+
FallbackURL string `json:"fallback,omitempty"` // Fallback URL for deeplink. To be used if the URL given in url is not supported by the device.
99
Ext openrtb.Extension `json:"ext,omitempty"`
1010
}

0 commit comments

Comments
 (0)