prebid / Prebid.js

Setup and manage header bidding advertising partners without writing code or confusing line items. Prebid.js is open source and free.
https://docs.prebid.org
Apache License 2.0
1.33k stars 2.09k forks source link

ESP secure signals with Video, even possible? #9473

Closed spormeon closed 1 year ago

spormeon commented 1 year ago

I had a chat with @bretg on slack and I'm trying to get ESP secure signals working with video (not even sure its posible) basically when i try to add ESP’s in, its sort of gets somewhere but throws “WARNING: User ID - ESP : encryptedSignalSources config not defined under userSync Object” and at the same time strips the userID out of being sent on the bids. I’m loading GPT in my scripts etc. I’m not even sure if this is possible when using only video and maybe i’m bashing my head against a brick wall?

Bret_Gorsline_-_AdOps_-_Slack Bret_Gorsline_-_AdOps_-_Slack

bretg has test pages you can look at internally, i i hate putting my test pages in public.

jdwieland8282 commented 1 year ago

Are you using Google OB? ESP now Secure Signals is a google product, Prebid.js doesn't have any hooks into Secure signals that I know of.

spormeon commented 1 year ago

i do use some OB, but its these that I'm following, prebid creates the sigansls from the userid's https://docs.prebid.org/dev-docs/modules/userId.html#esp-configurations https://docs.prebid.org/dev-docs/publisher-api-reference/registerSignalSources.html

patmmccann commented 1 year ago

Fwiw, esp in general works with video on gam, you can see the vasts that gam returns looking for the signals

I'm not sure if the prebid esp functions work on video specifically but since they are asynchronous and tied to the page view i imagine they work just fine

spormeon commented 1 year ago

i found this, so does the prebid method do it in the same way (at the bottom, I cant implement it the "automatic" way) https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/securesignals @patmmccann did @bretg show you the test pages?

I just cant get any to "pass through to gam" no matter what i do yet

patmmccann commented 1 year ago

image shows gam is redoing the workflow on this. I suggest you re-implement at that time.

If you really want to implement now though, could you please re-state the question? I am not sure I understand it. ESP set by Prebid works fine on Cafemedia sites.

spormeon commented 1 year ago

I have implemented it on the test pages which @bretg has, but its throwing warnings saying the“WARNING: User ID - ESP : encryptedSignalSources config not defined under userSync Object” when it is, its also stopping userids being sent on the bid requests. No "secure signal" seems to make it to GAM , as reporting says secure signal presence: missing

i used these to implement it: https://docs.prebid.org/dev-docs/modules/userId.html#esp-configurations https://docs.prebid.org/dev-docs/publisher-api-reference/registerSignalSources.html

that GAM inventory > Secure Signals, is alreay in our GAM, they have all been turned on manually

if your using banner, video, native with cafe media, its prob being sent on GPT, i'm only using video, so GPT is not needed but I have actually added GPT file url, but still no go.

patmmccann commented 1 year ago

when you add pbjs.getConfig().userSync.encryptedSignalSources what do you put there

patmmccann commented 1 year ago

okay i see that you wrote this in that feild now image

patmmccann commented 1 year ago

I checked https://damndelicious.net/2022/08/05/weeknight-lemon-chicken-breasts/ and the ix video bid request call has the user object with the ids and esp seems to be working just fine, so I am fairly confident what you are attempting is possible. Not sure what in your setup is breaking it.

bretg commented 1 year ago

@patmmccann - I shared spormeon's test page in the slack channel with you and Jeff.

bretg commented 1 year ago

@spormeon - did you resolve this? Based on Patrick's findings, this should work. We don't have anyone with the cycles who understands this stuff to help you directly. Is there a chance you can look at the pages Patrick pointed out and see if there's a difference that might point in the right direction?

spormeon commented 1 year ago

na, not sorted it yet. I think the problem is reloving around GPT tag, Patricks has both banner and video. Mine only has video. Patrick are you not deploying the secure signals scripts automatically with GPT?

spormeon commented 1 year ago

does: encryptedSignalSources.sources.customFunc have to be included, as it says "required" in the docs but i'm only trying this at the moment, or is that a docs mistake? encryptedSignalSources: { 'sources': [{ source: ['criteo.com', 'id5-sync.com', 'pubcid.org', 'adserver.org', 'quantcast.com', 'crwdcntrl.net', 'flashtalking.com', 'trustpid.com', 'amxdt.net'], encrypt: false } // { // source: ['pubmatic.com'], // customFunc: () => { // return '{"keywords":["tech","auto"]}'; // }, // encrypt: true // }, // { // source: ['segment.com'], // customFunc: () => { // return '[{ "id": "1", "value": "seg1" },{ "id": "2", "value": "seg2" }]'; // }, // encrypt: true // } ], 'registerDelay': 3000 },

patmmccann commented 1 year ago

They work now if you are using gpt.js, and the GAM release notes allude to the fact that secure signals will no longer be pushed, but instead will be pulled by GAM. Are you not using gpt.js on page at all? If not, I am not sure how one might use secure signals. Secure signals are at a page view level, and can not contain information about the ad unit or the impression.

spormeon commented 1 year ago

i've since sort of done a "hack around", which is add a adunit and inlude GPT, but the adunit is "doing nothing" in effect. I'm looking for a "pure" video way with no GPT but not found it yet.

my hack around dont actually work either, as i guess the GPT ad unit has no info/ not attributing anything as its the video slot/slots: The bottom one that is present, is a house ad, creative uploaded in GAM, so no clue how/ why that one is getting signal, when the rest arnt

image

patmmccann commented 1 year ago

Secure signals are a feature of gpt. You cannot use them without it unfortunately. There is a new feature, secure signals that you'll find supported soon, it is in the release notes as coming soon and you might be able to get in the beta. Otherwise, closing as not a feature of gam libraries.