Skip to content
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

feat: rendering the winning ad #53

Merged
merged 9 commits into from
Apr 27, 2021
Merged

feat: rendering the winning ad #53

merged 9 commits into from
Apr 27, 2021

Conversation

iamnewton
Copy link
Contributor

@iamnewton iamnewton commented Apr 26, 2021

Description

The feature branch for rendering the winning ad's creative within the Fledge API.

Screenshots (optional)

N/A

Additional context (optional)

Tech Spec: https://github.com/MagniteEngineering/fledge.polyfill/wiki/Technical-Specification:-Auctions#renderadbidbid

Checklist
Have you considered all of the following?

Please confirm by checking off each item to ensure you've considered it:

  • Did you create or update tests?
  • Did you create or update any documentation?

Fixes: #52

@iamnewton iamnewton requested a review from brodrigu April 26, 2021 18:49
@iamnewton iamnewton self-assigned this Apr 26, 2021
@iamnewton iamnewton added the feat New feature or request label Apr 26, 2021
@iamnewton iamnewton added this to the Implementation milestone Apr 26, 2021
@iamnewton iamnewton marked this pull request as ready for review April 27, 2021 16:52
@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2021

Codecov Report

Merging #53 (19e7e4f) into main (6db7686) will decrease coverage by 3.93%.
The diff coverage is 54.12%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   64.45%   60.52%   -3.94%     
==========================================
  Files           9       12       +3     
  Lines         166      266     +100     
  Branches       30       87      +57     
==========================================
+ Hits          107      161      +54     
- Misses         47       76      +29     
- Partials       12       29      +17     
Flag Coverage Δ
unittests 60.52% <54.12%> (-3.94%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/render/utils.js 20.00% <20.00%> (ø)
src/utils/console.js 22.22% <22.22%> (ø)
src/auction/index.js 39.47% <33.33%> (-4.98%) ⬇️
src/interest-groups/join.js 90.90% <83.33%> (-1.40%) ⬇️
src/render/index.js 89.65% <89.65%> (ø)
src/auction/utils.js 17.30% <100.00%> (ø)
src/interest-groups/leave.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6db7686...19e7e4f. Read the comment docs.

src/auction/index.js Outdated Show resolved Hide resolved
src/render/index.js Outdated Show resolved Hide resolved
iframe.id = `fledge-auction-${source.id}`;
iframe.src = source.bid?.render;
iframe.scrolling = 'no';
iframe.style.borderWidth = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what size is the iframe here? we might need to set the dimensions.

Copy link
Member

@brodrigu brodrigu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brodrigu brodrigu merged commit f1c7892 into main Apr 27, 2021
@brodrigu brodrigu deleted the render-ad branch April 27, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create ad rendering implementation
3 participants