/* These are common ad sizes we can use. We use them for things like our prebid config, the GAM ad code, ad breakpoints/media queries, etc */ /* This is where the prebid config goes, as you can see it's in a django template "block". So when we create a GAM config for a page as a child template (i.e. templates/gam_tags/popular.html), we include the prebid config in this block: {% block prebid_config %}// config goes here{% endblock %}. When the child template extends the base template, the child template will overwrite the base template block and "inject" the prebid config. If there is no header bidding on the page, we can simply not include the block since it's already empty in the base template. More about django blocks here: https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#block */ /* This is the prebid init code. It's similar to what we would see with adzerk. We do the following (more granular explanation below): - set a timeout - temporarily disable google from rendering ads (googletag.pubads().disableInitialLoad();) so that we can request bids - request bids as per the prebid config - proceed with ad rendering */

Learn GAM