Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Google DFP Advertising Management system to advertise on a website

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains how to use Google DFP Advertising Management system to advertise on the website. Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use Google DFP Advertising Management system to advertise on the website.

Many websites will place some advertisements to maintain the operation of the website through advertising revenue, and even use this model to run the website as a business. Google's AdSense is the most popular online advertiser at present, and most of the advertisements on the website are published through AdSense.

AdSense's advertising policy clearly stipulates a limit on the number of advertisements. There can only be three advertising units, three link units and two search boxes in a web page. Generally speaking, large advertising units are mainly used on websites. Normally, three advertisements are sufficient, but for some websites that are particularly rich in content, a page is very long. In fact, placing more than three ads will not have much impact on readers, but limited by the rules of AdSense, there is nothing we can do about it in the end.

Later, Google bought DoubleClick for 3.1 billion and launched DFP, an advertising management system. Users can publish and manage their own advertisements through DFP, or play ads from AdSense or other network networks. When choosing ads to be played, DFP will let Google AdSense compete with other advertising networks to improve publishers' revenue. In other words, DFP will choose the ads with the best revenue to broadcast first. In theory, this would be better than putting AdSense ads directly.

Because the number of advertisements in AdSense is separate from DFP, we can use AdSense to put three advertising units, and the rest is to use DFP. Many websites broadcast more than three large advertising units in this way. Of course, you must carefully measure whether your web content and layout are suitable for placing so many advertisements. Too many ads tend to make the whole page disorganized. This should be carefully considered before placing advertisements.

However, DFP is only responsible for the delivery of ads, not the act of payment, and all payments are made directly by advertisers or advertising networks such as AdSense.

The following is the process of using DFP services to place advertisements on a website.

STEP 1

To advertise on your website, first select "add Advertising Unit" in the "Advertising Space" of DFP.

STEP 2

Input advertising-related information, the "program code" part of the code in English to take an easy to identify the code, the rest of the field probably everyone can understand, I will not explain.

STEP 3

In the section where the AdSense ad space is set, remember to enable it, or check "use AdSense to maximize revenue from unsold and remaining advertising space", so that DFP can play AdSense ads.

STEP 4

After adding the advertising unit, add a new location and click "add location".

In fact, the meaning of the location is the same as the AdSense channel, so that advertising owners can know the location of the advertisement.

STEP 5

Fill in the basic information about the location and select the advertising unit contained in this location.

STEP 6

Fill in the information used in AdWords. The information to be filled in here is almost the same as the channel in AdSense. Anyway, you can fill in the information according to the location of your advertisement.

Press Save when you are finished.

STEP 7

Open the new ad unit just above and click "generate Advertising Code" at the top right.

STEP 8

Select Google publisher Advertising Code.

STEP 9

Adjust the code options, and if you don't know what these are for, the practical default values are fine.

STEP 10

Post the generated HTML code in your own web page.

The resulting HTML code has two segments, the first of which is placed between and:

Var googletag = googletag | | {}; googletag.cmd = googletag.cmd | | []; (function () {var gads = document.createElement ('script'); gads.async = true; gads.type =' text/javascript'; var useSSL = 'https:' = = _ document.location.protocol; gads.src = (useSSL? 'https:':' http:') +'/ / www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName ('script') [0]; Node [XSS _ clean] .insertBefore (gads, node);}) () Googletag.cmd.push (function () {googletag.defineSlot ('/ 54009424) googletag.enableServices (), [336,280], 'div-gpt-ad-1432171343962-0') .addService (googletag.pubads ()); googletag.pubads (). Googletag.enableServices ();)

The second paragraph is in the position where the advertisement is to be displayed:

Googletag.cmd.push (function () {googletag.display ('div-gpt-ad-1432171343962-0');})

Cnblogs still uses this method now.

Var googletag = googletag | | {}; googletag.cmd = googletag.cmd | | []; googletag.cmd.push (function () {googletag.defineSlot ('/ 1090369) and A1 frames, [468,60], 'div-gpt-ad-1547816814884-0') .addService (googletag.pubads ()) Googletag.defineSlot ('/ 1090369Universe, [300,250], 'div-gpt-ad-1546331539224-0') .addService (googletag.pubads ()); googletag.defineSlot (' / 1090369Universe, [300,250], 'div-gpt-ad-1539007469525-0') .addService (googletag.pubads ()) Googletag.defineSlot ('/ 1090369Universe, [300,250], 'div-gpt-ad-1546331252242-0') .addService (googletag.pubads ()); googletag.defineSlot (' / 1090369 Universe B4hammer, [300,250], 'div-gpt-ad-1546331385104-0') .addService (googletag.pubads ()); googletag.pubads () .enableSingleRequest (); googletag.enableServices ();}) / * /

Display

Googletag.cmd.push (function () {googletag.display ('div-gpt-ad-1547816814884-0');}) Googletag.cmd.push (function () {googletag.display ('div-gpt-ad-1546331539224-0');})

Cnblogs is the last load on the page.

The HTML code is finished after being pasted, but usually when the newly added ad unit is put on the page, it is not immediately displayed. I waited for about a few minutes before I saw the ad normally appear on the page.

Summary of experience

It has to be said that Google's DFP advertising management system is a very powerful product, which is a handy weapon for webmasters who need to manage on-site advertising. A variety of advertising mode settings, coupled with the Adsense Advertising Alliance, make the best use of the advertising location in the station, as well as advertiser management, providing advertising data to customers to view and so on. Whether you are managing multiple sites or only one site, webmasters should not miss this tool.

Although DFP is a very powerful advertising management tool, there are some twists and turns in operation logic when beginners come into contact with the system (maybe my understanding is different), so talk about my previous operational errors and experience on the standard version of DFP Advertising Management system.

1. Insufficient advertising resources available

When a new advertising order is created, it may prompt "insufficient advertising resources available", but it is clear that there is a vacant advertising space. In fact, this is not a real shortage of available advertising resources, but a problem with DFP. I do not know whether it is BUG or deliberately. New orders are basically prompted for this when they are just added. At this time, check "overbooking this order item" and save it successfully. It is said that this prompt will be prompted when checking advertising resources a few days before the order is added, and it will be normal about seven days before it is added.

2. Advertising unit and display location

For example, if there are two advertising positions of the same size in the same sidebar, create a new "Sidebar" display location, and then build two "Sidebar-Top" and "Sidebar-Bottom" advertising units, which belong to this display location.

It seems that such a description is a normal logical behavior, but the result is that the ads in two different advertising units will be strung together so that An ads cannot be displayed in "Sidebar-Top", while B ads are displayed in "Sidebar-Bottom", where the location is the only fixed place. In other words, the display position can not be written too large. If you want to fix the display position of an advertisement, you can only build "Sidebar-Top" and "Sidebar-Bottom" display positions.

Advertising unit and display location are two relative attributes. An advertising unit can be subordinate to several display locations, and a display location can also contain several advertising units.

3. Generate advertising code

In order to display an advertisement on a page, you need to insert an ad code into the page, and each ad unit is a separate code. The code is divided into two segments, one in the tag and the other in the specific advertising location. But unlike Adsense's ad code, ID is fixed, DFP's ad unit code, each time "generate code", the code in the ID value will change, so two pieces of advertising code must be implanted into the page code at the same time.

If only part of the code is copied in the first generation, and the code in the specific location is copied again in the second generation, the ID in the two ad codes will be different.

4. Order status

The newly added order does not take effect in real time, and it needs to be reviewed after adding the new order item. even if the advertising content is already displayed on the page, it may take a while for the status in the order to display "putting in" normally.

5. Type of advertisement

If the ad location is bought out by time, the ad type must choose "sponsor" in order to set 100% display at the target.

6. Report

Unlike AdSense effect reports, which are generated automatically every day, reports in DFP need to be generated manually before they can be displayed.

7. About the number of displays

I still wonder about this point.

The number of ad displays in DFP does not seem to be counted by the code at the specific display location, but by the code added to the tag, which means that if you add a display location on the home page and a content page, each of which has a type of "sponsored" ad content, then the number of display of the two ad content will be exactly the same.

Obviously, the PV values of the home page and the content page are unlikely to be the same.

At this point, I believe you have a deeper understanding of "how to use the Google DFP advertising management system to publish advertisements on the website". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report