Skip to content

Commit

Permalink
Add omitempty to Native Ad Response Link struct
Browse files Browse the repository at this point in the history
`clicktrackers` field is optional according to the IAB spec and should be omitted if empty.
  • Loading branch information
saifat29 authored Feb 21, 2019
1 parent 9c04274 commit 0438498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/response/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package response
import "github.com/bsm/openrtb"

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

0 comments on commit 0438498

Please sign in to comment.