-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reducing interest group payload by compressing renderURLs #1076
Comments
@ardianp-google could you sketch a bit to illustrate what you are thinking? Are you imagining some named template(s), not unlike how size groups are defined, and then a
Are you envisioning something like:
|
this could be |
This is something I've been thinking about for a while to reduce interest group sizes. I imagined instead of:
I imagined a templated version like:
Yes, I think that's what I'm thinking.
Yes, I imagine the browser would only use the unexpanded/compresssed form when stored. |
Yes, positional (tokens in an array) is slimmer. And it may be the case that a DSP would only need a single template, as in your sketch, though I'm sure there will be some that need flexibility due to various systems or whatever. Is this what you are also thinking @ardianp-google? |
I imagine something closer to what @JensenPaul's proposed, and that's sufficient for our needs. Though it's also a valid point that a more expressive language could be needed to cater more complicated systems. |
This may suffice in today's PA that only does banners. A single renderURL template may be restrictive once PS handles newfangled media like video or native. @JensenPaul , assuming a single URL template per IG, here's another take (changed to camel case).
When bidding with a templated creative, does the bidder submit the tokens array as
|
If we do this, we may need some sort of abuse protection, since simple substitution into a shared string potentially allows O(n^2) blowup, for strings that don't even need to be received from a server, but could instead be generated by Javascript. Edit: I'd think the main effect of abuse would be to bring the browser to a crawl or crash it as it extracts URLs, if it keeps them all in memory. It wouldn't swamp the k-anon server (since we only send hashes there). |
There’s a hard limit on interest group metadata size, both per IG (1MB) and in total size (10MB). In Google Ads, a significant chunk of the metadata is used to store renderURLs.
As renderURLs have a specific format (boiler plate with some identifiers), we wonder if the API allows some compressions, e.g., by having a template and only providing the identifiers for each renderURL.
For Bidding and Auction service, there’s a concept of adRenderId to reduce the payload size to be sent to the server. However, we still need to store the full renderURL on the device, and hence, this mechanism doesn’t help with the metadata size issue.
The text was updated successfully, but these errors were encountered: