From Google Ad Manager, select Delivery > Native. Click Create Native Ad.
Select the HTML & CSS editor option.
2. Define ad settings
For Ad size you can specify a specific size for the ad unit or specify the “fluid” size. In this case we’ll go with Fluid.
Select New format under Custom format. (If you’ve already created an ad unit with the format you want, you can select Existing format and select the format to apply to this ad unit.)
3. Style your native ad
You can add HTML and CSS to define your native ad template. To allow for native impression trackers and click trackers within a Prebid native creative template, you’ll need to include a CDN-hosted script in the HTML, as shown here (see Example HTML below for the full script):
Native impression and click tracking requirements
Any link that should fire a click tracker needs to include a pbAdId attribute set to hb_adid. This attribute is required because the script needs the bidId/adId, which can be filled in only by the targeting key on the ad server, not from within the script.
If this creative is served, it will fire impression trackers on load. Clicking the link will fire the click tracker and the link will work as normal, in this case going to the hb_native_linkurl destination.
Example HTML and CSS:
4. Create new native order and line items
Add the native format created in Step 1 under Inventory Sizes (in this case, “Prebid Native Format”)
Be sure to set inventory targeting and key-value targeting on hb_pb corresponding to the line item’s CPM.
5. Create a new native creative
Be sure to select the format you created in Step 1 (in this case, “Prebid Native Format”)
Under Click-through URL, add any value. This will be overwritten by Prebid.