Adsense Ad Slot Id
NOTE: If you haven’t got any ideas of how to create a Google Adsense, please take a look at this document first
Allowing putting your advertisement in specific pages or in all pages
- Google AdSense Publisher ID: Enter your Google AdSense Publisher ID
- Top Page Ads – AdSense Ads Slot ID: If you want to display Adsense in Top, enter Google AdSense Ad Slot ID here. If left empty, “Top Page Ads – Custom Code” will be used.
- Top Page Ads – Custom Code: Enter custom code for Top Page Ads.
- Top Content Ads – AdSense Ads Slot ID: If you want to display Adsense in Top, enter Google AdSense Ad Slot ID here. If left empty, “Top Content Ads – Custom Code” will be used.
From that Adsense unit, you need to note down two things. First your Google pub-id and second slot id of the Ad block. Now proceed to Avinashtech WordPress Author area by logging in. Navigate to Adsense advertising in Avinashtech Dashboard. Here you need to input your Google pub-id and second slot id of the Ad block. Once you have the Publisher ID and Ad Slot ID entered (or imported) you can change ad type, ad size (fixed, fixed by viewport or responsive) and ad type for AMP pages. Once you are happy with the settings click on the generate button and the the plugin will generate ad code for the AdSense ad in the code window of the current block. AdSense program policies do not permit any alteration to AdSense code which artificially inflates ad performance or harms advertiser conversions. Your publisher account offers a number of options when generating the ad code, which AdSense hope will allow you to create an ad layout that fits in with your site.
- Top Content Ads – Custom Code: Enter custom code for Top Content Ads.
- Archives Page Ads – AdSense Ads Slot ID: If you want to display Adsense in Top, enter Google AdSense Ad Slot ID here. If left empty, “Archives Page Ads – Custom Code” will be used.
- Archives Page Ads – Custom Code: Enter custom code for Archives Page Ads.
- Single Post Ads 1 – AdSense Ads Slot ID: If you want to display Adsense in Top, enter Google AdSense Ad Slot ID here. If left empty, “Single Post Ads 1 – Custom Code” will be used.
- Single Post Ads 1 – Custom Code: Enter custom code for Single Post Ads 1.
- Single Post Ads 2 – AdSense Ads Slot ID: If you want to display Adsense in Top, enter Google AdSense Ad Slot ID here. If left empty, “Single Post Ads 2 – Custom Code” will be used.
- Single Post Ads 2 – Custom Code: Enter custom code for Single Post Ads 2.
Adsense Ad Slot Ideas
- Bottom Content Ads – AdSense Ads Slot ID: If you want to display Adsense in Bottom, enter Google AdSense Ad Slot ID here. If left empty, “Bottom Ads – Custom Code” will be used
- Bottom Content Ads – Custom Code: Enter custom code for Bottom Ads.
- Bottom Page Ads– Adsense Ads Slot ID: If you want to display Adsense in Bottom, enter Google AdSense Ad Slot ID here. If left empty, “Bottom Page Ads – Custom Code” will be used.
- Bottom Page Ads – Custom Code: Enter custom code for Bottom Content Ads.
- Wall Ads Left – AdSense Ads Slot ID: If you want to display Adsense in Wall Ads Left, enter Google AdSense Ad Slot ID here. If left empty, “Wall Ads Left – Custom Code” will be used
- Wall Ads Left – Custom Code: Enter custom code for Wall Ads Left
- Wall Ads Right – AdSense Ads Slot ID: If you want to display Adsense in Wall Ads Right, enter Google AdSense Ad Slot ID here. If left empty, “Wall Ads Right – Custom Code” will be used
- Wall Ads Right – Custom Code: Enter custom code for Wall Ads Right
- Video Player Side-Ads Left – AdSense Ads Slot ID: This Ads appears on the Left Side of Video Player (full-width layout only). Enter Google AdSense Ad Slot ID here. If left empty, “Video Player Side-Ads Left – Custom Code” will be used
- Video Player Side-Ads Left – Custom Code: Custom Code for Video Player Side-Ads Left
- Video Player Side-Ads Right – AdSense Ads Slot ID: This Ads appears on the Right Side of Video Player (full-width layout only). If left empty, “Single Post Ads 2 – Custom Code” will be used
- Video Player Side-Ads Right – Custom Code: Custom Code for Video Player Side-Ads Right
Note: Any HTML or shortcode can be used in Custom Code for Advertising.
Ads can be Google Adsense or custom code which is defined in Theme Options > Advertising. If you don’t have Google Adsense ID, you can use custom code to place banners, for example:
<a href='http://website-url.com'><img src='http://yoursite.com/images/banner.jpg'/></a>
Adsense Ad Slot Idea
The table below lists the attributes that can be set with the googletag.PubAdsService.set(key, value)
or googletag.Slot.set(key, value)
methods. These AdSense attributes are typically set when creating or editing ad slots in DFP. These methods allow the publisher to override these server-side settings on a per-request basis.
New attribute | Legacy attribute | Example | Allowed values |
---|---|---|---|
|
|
| valid AdSense channel IDs, separated by '+' |
|
|
|
|
|
|
|
|
|
|
| hexadecimal colors |
|
|
| hexadecimal colors |
|
|
| hexadecimal colors |
|
|
| hexadecimal colors |
|
|
| hexadecimal colors |
|
|
|
|
|
|
| valid URL |
The table below lists the attributes that can be set with the googletag.PassbackSlot.set(key, value)
method. These methods allow the publisher to override these settings for the Passback context.
New attribute | Legacy attribute | Example | Allowed values |
---|---|---|---|
|
|
| valid URL |