Skip to content

Commit 84d36b0

Browse files
authored
Merge pull request #15 from UnityTech/APIN-2109
[APIN-2109] add app.ext field
2 parents 1673107 + 820a4a8 commit 84d36b0

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

bid_test.go

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,22 @@ var _ = Describe("Loopme AR Bid", func() {
4848

4949
It("should parse correctly", func() {
5050
Expect(subject).To(Equal(&Bid{
51-
ID: "5d4b3b3be8250678c813f475",
52-
ImpID: "1",
53-
Price: 29.7,
54-
AdID: "2056515",
55-
NURL: "https://us.fake-url.com/tr?et=BID_WIN&a_ecp=29.7&a_price=${AUCTION_PRICE:BF}&name=imp_nurl",
56-
AdMarkup: "<img>",
57-
AdvDomain: []string{"unity.com"},
58-
IURL: "https://fake-url.net/assets/2690-e3c0-aa99-9efd38cd1fa6.jpg",
59-
CampaignID: "2001626",
60-
CreativeID: "2056515",
61-
Attr: []int{99},
62-
Protocol: 2,
63-
Cat: []string{"IAB19"},
64-
LURL: "https://fake-url.com?et=BID_LOSS&meta=&a_id=${AUCTION_ID}&a_bid_id=${AUCTION_BID_ID}&a_loss_id=${AUCTION_LOSS}",
65-
H: 320,
66-
W: 480,
67-
CreativeType: "MRAID AR",
51+
ID: "5d4b3b3be8250678c813f475",
52+
ImpID: "1",
53+
Price: 29.7,
54+
AdID: "2056515",
55+
NURL: "https://us.fake-url.com/tr?et=BID_WIN&a_ecp=29.7&a_price=${AUCTION_PRICE:BF}&name=imp_nurl",
56+
AdMarkup: "<img>",
57+
AdvDomain: []string{"unity.com"},
58+
IURL: "https://fake-url.net/assets/2690-e3c0-aa99-9efd38cd1fa6.jpg",
59+
CampaignID: "2001626",
60+
CreativeID: "2056515",
61+
Attr: []int{99},
62+
Protocol: 2,
63+
Cat: []string{"IAB19"},
64+
LURL: "https://fake-url.com?et=BID_LOSS&meta=&a_id=${AUCTION_ID}&a_bid_id=${AUCTION_BID_ID}&a_loss_id=${AUCTION_LOSS}",
65+
H: 320,
66+
W: 480,
6867
}))
6968
})
7069

inventory.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ func (a *Inventory) GetPrivacyPolicy() int {
2727
// "site" object.
2828
type App struct {
2929
Inventory
30-
Bundle string `json:"bundle,omitempty"` // App bundle or package name
31-
StoreURL string `json:"storeurl,omitempty"` // App store URL for an installed app
32-
Ver string `json:"ver,omitempty"` // App version
33-
Paid int `json:"paid,omitempty"` // "1": Paid, "2": Free
30+
Bundle string `json:"bundle,omitempty"` // App bundle or package name
31+
StoreURL string `json:"storeurl,omitempty"` // App store URL for an installed app
32+
Ver string `json:"ver,omitempty"` // App version
33+
Paid int `json:"paid,omitempty"` // "1": Paid, "2": Free
34+
Ext Extension `json:"ext,omitempty"` // Placeholder for exchange-specific extensions to OpenRTB
3435
}
3536

3637
// A site object should be included if the ad supported content is part of a website (as opposed to

0 commit comments

Comments
 (0)