diff --git a/adapters/seedtag/params_test.go b/adapters/seedtag/params_test.go index 2c392377397..f8a6eff8dd4 100644 --- a/adapters/seedtag/params_test.go +++ b/adapters/seedtag/params_test.go @@ -35,10 +35,16 @@ func TestInvalidParams(t *testing.T) { var validParams = []string{ `{"adUnitId": "27604970"}`, + `{"publisherId": "abc123", "integrationType": "ronId"}`, } var invalidParams = []string{ `{"adUnitId": 123}`, `{"adUnitId": ""}`, `{}`, + `{"publisherId": "abc123"}`, + `{"integrationType": "ronId"}`, + `{"publisherId": "", "integrationType": "ronId"}`, + `{"publisherId": "abc123", "integrationType": "unknown"}`, + `{"adUnitId": "27604970", "publisherId": "abc123", "integrationType": "ronId"}`, } diff --git a/openrtb_ext/imp_seedtag.go b/openrtb_ext/imp_seedtag.go index 825595dd291..4a235cb986a 100644 --- a/openrtb_ext/imp_seedtag.go +++ b/openrtb_ext/imp_seedtag.go @@ -1,5 +1,7 @@ package openrtb_ext type ImpExtSeedtag struct { - AdUnitID string `json:"adUnitId"` + AdUnitID string `json:"adUnitId,omitempty"` + PublisherID string `json:"publisherId,omitempty"` + IntegrationType string `json:"integrationType,omitempty"` } diff --git a/static/bidder-params/seedtag.json b/static/bidder-params/seedtag.json index 7f361c44f9e..677fb9fba2c 100644 --- a/static/bidder-params/seedtag.json +++ b/static/bidder-params/seedtag.json @@ -6,11 +6,26 @@ "properties": { "adUnitId": { "type": "string", - "description": "Ad Unit ID", + "description": "Ad Unit ID for the placement", "minLength": 1 + }, + "publisherId": { + "type": "string", + "description": "Publisher group ID for RON integration", + "minLength": 1 + }, + "integrationType": { + "type": "string", + "description": "Integration type. Use 'ronId' when integrating via publisherToken", + "enum": ["ronId"] } }, - "required": [ - "adUnitId" + "oneOf": [ + { + "required": ["adUnitId"] + }, + { + "required": ["publisherId", "integrationType"] + } ] -} \ No newline at end of file +}