Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

analytics.AmpObjectにRequestHeaderを追加 #11

Merged
merged 1 commit into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions analytics/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type AmpObject struct {
Request *openrtb.BidRequest
AuctionResponse *openrtb.BidResponse
AmpTargetingValues map[string]string
RequestHeader map[string][]string
Origin string
StartTime time.Time
}
Expand Down
7 changes: 4 additions & 3 deletions endpoints/openrtb2/amp_auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ func (deps *endpointDeps) AmpAuction(w http.ResponseWriter, r *http.Request, _ h
start := time.Now()

ao := analytics.AmpObject{
Status: http.StatusOK,
Errors: make([]error, 0),
StartTime: start,
Status: http.StatusOK,
Errors: make([]error, 0),
StartTime: start,
RequestHeader: r.Header,
}

// Set this as an AMP request in Metrics.
Expand Down