What Is Header Bidding And How To Execute It

Posted by

[]The header bidding innovation began to establish in 2015, and has since helped many publishers to grow their income by as much as 40% (and even, sometimes, to levels of 100% or more.)

What Is Header Bidding?

[]Header bidding is an innovative strategy where publishers provide their advertisement stock to many advertisement exchanges, likewise called Supply-Side Platforms (or SSPs), simultaneously before making calls to their advertisement servers.

[]Here are the steps a publisher requires to pass to have this innovation power up its monetization.

  • Apply to SSP partners and get approval.
  • Execute Prebid.JS on website.
  • Configure ad server.
  • Pick an authorization management system.
  • Test and debug.

Applying To SSP Partners

[]There are hundreds of SSP partners available in the list to apply, however I wish to discuss what I think to be the most popular ones:

  • TripleLift.
  • Index Exchange.
  • Amazon UAM/TAM.
  • Xandr (previously AppNexus).
  • Teads.
  • Pubmatic.
  • Sovrn.
  • Verizon.
  • Magnite (previously Rubicon).
  • OpenX.
  • Sonobi.
  • GumGum.
  • Sharethrough.
  • Unurly.

[]One requires to discover their online application and travel through the business’s verification process. For instance, when it comes to Xandr, the contact page looks like this:

Screenshot from Xandr, December 2022 Take notice of the []minimum stock size needed to be eligible for using. Yes, that is an incredible high of 50M ad impressions a month. You might require quite an outstanding site to be able to use to some of the advertisement networks. We will call them more bidders, as they bid on inventory in genuine time. However, not all SSPs have such high limits for application.

[]For example, Sharethrough just needs 20M ad impressions. Besides, they think about also audience quality, traffic geolocation, just how much time users invest in the site, etc. It generally takes a couple of weeks after using to be authorized and onboarded

[]with them, so it can be a relatively time-consuming procedure that might even take months to complete. How Does Prebid.js Work? In nutshell, here is how Prebid.js works. When a user opens a webpage, an advertisement demand is made to all bidders(SSP partners). Bidders react with their CPM quotes– let’s state$1

[]and$ 1.50– and Prebid.js makes a request to the ad server, with the highest

[]CPM targeting. In this case, that would be $1.50. At the advertisement server, in our case, Google Advertisement Supervisor, the request is received and it knows that somebody is

[]paying $1.50 USD CPM for an ad. It runs another auction with Google Adsense or AdX. If Google uses a higher CPM, then the Google Ad will be served. If not, our advertisement with $1.50 CPM will win, and be served

[]by our SSP partner. Screenshot from Google Advertisement Manager, December 2022 The trick here is that auctions happen in real-time, which creates purchasing pressure on Google AdX to pay the greatest

[]CPM possible. If Google AdX doesn’t have any competition, it will provide the lowest CPM possible– as it wants to buy inventory for the most affordable cost

[]possible. With header bidding, bidders are able to complete and push CPMs (and therefore revenue) up. There are 2 ways to implement header bidding

[]: Client-side: When the auction runs through JavaScript in the web browser. Server-side: When the auction is

[]operated on the server. Let’s go over client-side header bidding. How To Implement Client-Side Header Bidding In order to set up header bidding, we require to implement Prebid.js on our website and configure our

[]Google Advertisement Manager(or ad server).

Implement Prebid.js On Your Site Prebid.js []is a header bidding platform that has more than 200 demand sources incorporated. You require to select the SSP partners you are working with

from the customize page and download the library []developed for your specific configuration. Do not forget to select Consent Management modules to comply

[]with GDPR and GPP privacy requirements. Below is the sample code drawn from the official documents. var div_1_sizes=[ [300, 250]

[], [300, 600]]; var div_2_sizes= [[

[]728, 90], [970, 250]]

Fundamental Prebid.js Example

Div-1

Div-2

[]Let’s break down the code above.

  • The first lines pack all required JS files and our personalized Prebid.JS file.
  • Advertisement slots are defined in the adUnits array variable.
  • In the adslot meanings, you can see the SSP partners’ names and IDs you will be provided when onboarding when them.
  • googletag.pubads(). disableInitialLoad(); is contacted us to disable ad demand to be sent out to Google Ad Manager up until Prebid.js finishes the auction.
  • pbjs.requestBids work calls SSP partners and determines the winner.
  • initAdserver() function is called to send out an advertisement demand to the Google Advertisement Manager with hb_pb key, which includes the winning CPM value, e.g. hb_pb=”1.5 ″. (This step is gotten in touch with setting up Google Ad Supervisor in the next action.)
  • When Google Ad Supervisor gets the demand with the winning bid, it runs its own auction in Google AdX, and sends back either the AdX advertisement with a higher CPM, or the advertisement of the winning SSP.

[]For your specific case, you might need to code differently and alter the setup, however the concept stays the very same.

[]Besides that, I want to quickly go over how to execute lazy loading, due to the fact that it is a little different.

How To Implement Lazy Loading

[]The Google tag for publishers has a lazy loading framework which will not operate in the case of header bidding.

[]This is since you require to run an auction, and determine and set essential values prior to sending out a demand to the advertisement server.

[]Since of that, I would advise using the Crossway Observer API to figure out when to load the ad in the HTML

tag when it is about to enter into the viewport.

options = ; your_observer = new IntersectionObserver( observer_handler, choices ); your_observer. observe( goog_adslots [i]; []In the observer_handler recall function, you can run the prebid auction and call the ad server.

function observer_handler( entries, observer) header-bid-tag -0′, [728,90], ‘your_html_div_id’ ). addService(googletag.pubads()); lazySlotPrebid(slot, ‘your_html_div_id’) function lazySlotPrebid(slot, div_id) pbjs.que.push(function() // endd of initDynamicSlotPrebid []Now, let’s jump on setting up the ad server utilizing Google Advertisement Manager.

How To Establish GAM For Header Bidding

[]Advertisement servers require to have lots of cost priority line products with crucial hb_pb targeting all possible CPM values, such as hb_pb=0.04, hb_pb=0.03, etc hb_pb essential value targeting

[] This is the bottom line that makes the header bidding engine work. The auction runs in the browser on page load.

  • The winning SSP partner is sent to GAM with a crucial value targeting hb_pb = 2.62.
  • Because the order has the exact same CPM worth, GAM understands that there is a quote at $2.62.
  • GAM runs an AdX auction and has to pay more than $2.62 in order to win the quote and display a Google Ad.
  • []As I discussed above, you would require to construct line items in GAM with specific granularity, state 0.01– and for the CPM variety $0-$20, you would need to produce 2,000 line products, which are impossible to do by hand.

    []For that, you would need to use GAM API.

    []Unfortunately, there are no strong services that you can merely download and run in one click.

    []It is a rather complicated task, however thanks to contributors who developed API tools (although they are not actively supporting them), we can still customize it a little and make it work.

    []Let’s dive into how to establish Google Ad Manager and comprehend the following:

    Action 1: Make It Possible For API Access

    []In the Google Advertisement supervisor Worldwide > General settings section, make certain API access is made it possible for.

    []Click the Include service account button and develop a user with the sample name “GAM API USER” and email “[email protected]” with admin rights.

    Screenshot from Google Advertisement Supervisor, December 2022 Action 2: Create A New Job

    Browse to Google API Console

    []Credentials page. From the project drop-down, pick Develop

    []a new project, get in a name for the task, and, additionally, edit the provided Job ID. Click Create.

    []On the Qualifications page, []select Develop credentials, then choose Service account key.Select New service account, and choose JSON

    []. Click Develop to download a file including a private key. Screenshot from Google API Console Credentials page, Deccember 2022 Screenshot from Google API Console Qualifications page, Deccember 2022 Fill in the service account details you’ve produced above. Assign the function “owner” and produce the service account OAuth2 qualifications. Then, click the created user and create JSON type key, and download it. Screenshot from Google API Console Qualifications page, Deccember 2022 Step 3: Download Job Download the job zip file and

    unzip it, directory site(additionally, you can utilize the git command tool to clone the repo). Install composer for your operating system in order to build the project. Step 4: Modification your PHP.INI Modification your php.ini( located at/ xampp/php/php. ini)file and make it possible for”

    []extension=soap”by removing”;” in front of and set”soap.wsdl _ cache_ttl=0″ and reboot Apache from the control board of XAMPP. Step 5: Create Subfolders And Build The Task Once you have whatever set up

    and unzipped, open composer.json file and modification”googleads/googleads-php-lib”:”^ 44.0.0 “to use the most recent variation” googleads/googleads-php-lib “:”^ 59.0.0″. Check for the most fresh variation at the minute you perform this. Browse and replace in/ app []/ folder of the project”v201911″with” v202202″, since that git project was

    []n’t updated because 2019, to use the latest variation course of libraries. Open the command line of your PC and switch to the directory site where you have actually unzipped the files(using cd command or right-click inside the folder” Git celebration here “if you have git installed), and run author update in the PC terminal or git terminal. It will create subfolders and construct the task. Action 6: Set Up Your Google Advertisement Manager Qualifications Move the downloaded JSON secret “gam-api-54545-0c04qd8fcb. json” file into the root folder of

    the task you have actually constructed. Next, download adsapi_php. ini file []and established your Google Ad Supervisor credentials in it. networkCode= “899899” applicationName =”My GAM APP” jsonKeyFilePath=”

    []D: xampp htdocs dfp-prebid-lineitems gam-api-54545-0c04qd8fcb. json”scopes=”https://www.googleapis.com/auth/dfp” impersonatedEmail =” [email protected]”jsonKeyFilePath is the outright directory site path to the JSON crucial file in the folder root. Step 7: Set The Content Of The File Lastly, navigate to the file/ script/tests/ConnexionTest

    []. php and set the material of the file like listed below: putenv(‘ HOUSE =’. dirname( __ DIR __ ).

    “/./” ); require __ DIR __.’/./ []./ vendor/autoload. php’; $traffickerId=(new App AdManager UserManager ()) -> getUserId (); if(is_numeric($traffickerId))echo” n====Connexion OK=== = n n”; else echo” n===Connexion KO==== n n “; In your terminal(or git celebration console) test the connection by running the command(if you remain in the/ script/tests/ folder). php ConnexionTest.php You should see a message”= == =Connection OK====” Action 8: Configure The Parameters Browse to the

    file/ script/tests/ConnexionTest. php in your task and open it. Copy and paste the below code into that file, and set up the criteria in the $entry and$buckets varieties per your needs.

    []putenv(‘ HOUSE= ‘. dirname (__ DIR __).”/./”); require __ DIR __.’/././ vendor/autoload. php ‘; usage App Scripts HeaderBiddingScript;$bucket_range=variety(); $Your_Advertiser_Name=’Sample_Advertiser’; $buckets=[“buckets”=> [[‘accuracy’=> 2,’minutes ‘=> 0,’max’= > 4.00,’increment’= > 0.01], [‘ accuracy ‘= > 2, ‘min’ => 4.01, ‘max’ => 8.00, ‘increment’ => 0.05],]]; foreach ($ containers [” buckets”] as $k => $bucket)

    []Additionally you can also specify ‘geoTargetingList’ => “dz, pk, ke, pt” or customized crucial value targeting customTargeting’ => [‘ amp_pages’ => yes’] if you desire your header bidding to work only when the customized key value is set.

    []Run the command below and it will start creating line products per the pail settings you have actually defined.

    []php ConnexionTest.php

    []There is a tool using Python that is used similarly; you might want to give it a try also.

    Debugging

    []For debugging, there are a few internet browser add-ons you can utilize to see if the auction runs without errors.

    []Alternatively, open your web page URL using “/? pbjs_debug=real” specification at the end of the URL, and enjoy console logs messages.

    []You need to ensure that hb_pb secret worths are passed to Google Ad Supervisor. Use “/? google_console=1” at the end of the URL to open the GAM console, and click on “Shipment Diagnostics” of each ad unit.

    []You should see that hb_pb worths are set and passed to the ad server.

    Screenshot from Google API Console Credentials page, Deccember 2022

    Pick An Authorization Management System

    []Users’ personal privacy is one of the most important factors, and you want to make sure that you abide by both GDPR and GPP.

    []The detailed directions on how to establish an authorization management system in your wrapper are here.

    []There are many companies which adhere to IAB’s newest standards, and here are a few of the most popular ones:

    Conclusion

    []You may discover it unexpected that establishing header bidding involves many actions, however it is actually worth it to carry out. It can quickly increase your income by +30% or more by creating selling pressure on Google Ads.

    []This guide is for technically smart users– however if you have questions and problems, there is an Adops slack channel you may subscribe to and ask questions to the community.

    []I hope that after reading this short article, you will find it much easier to set up header bidding and boost the money making of your website.

    []More resources:

    []Included Image: Best SMM Panel