4/10/2022»»Sunday

Adsense Ad Slot Id

4/10/2022
    48 - Comments

NOTE: If you haven’t got any ideas of how to create a Google Adsense, please take a look at this document first

Adsense ad slot ideasAdsense Ad Slot Id

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

Adsense

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.

Slot
New attributeLegacy attributeExampleAllowed values

adsense_channel_ids

google_ad_channel

271828183+314159265

valid AdSense channel IDs, separated by '+'

adsense_ad_types

google_ad_type

text_image

text, image, text_image

adsense_ad_format

google_ad_format

250x250_as

468x60_as, 234x60_as, 125x125_as, 120x600_as, 160x600_as, 180x150_as, 120x240_as, 200x200_as, 250x250_as, 300x250_as, 336x280_as, 728x90_as

adsense_background_color

google_color_bg

#000000

hexadecimal colors

adsense_border_color

google_color_border

#000000

hexadecimal colors

adsense_link_color

google_color_link

#000000

hexadecimal colors

adsense_text_color

google_color_text

#000000

hexadecimal colors

adsense_url_color

google_color_url

#000000

hexadecimal colors

adsense_ui_features

google_ui_features

rc:10

rc:10 for very rounded corners, rc:6 for slightly rounded corners, rc:0 for square corners (default)

page_url

N/A

www.mysite.com

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 attributeLegacy attributeExampleAllowed values

page_url

N/A

www.mysite.com

valid URL