Blocksy Pro Content Block Hands-on Tutorial: Implementing Automatic Ad Insertion (Google AdSense Support)

exist WordPress The flexibility of inserting ads in a website often means complex code or repetitive page editing work. Instead of using Blocksy Pro Themeof "Content Blocks" feature, which allows for efficient and automated ad placement, is especially suited for WooCommerce Malls and content blogs use it.

This post will show you hands-on how to use the Blocksy Pro content block feature, theAutomated embedding of static ads and Google AdSense dynamic ads, No need to modify the original article or product page. ,,

Image[1]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites

What is Blocksy Pro's Content Blocks feature?

Blocksy Pro Content Blocks is a tool to insert customized content anywhere on the page, with support:

  • Static advertising graphics
  • Third-party advertising codes (e.g. AdSense)
  • Set display conditions for product categories, article types, devices, etc.
  • Dynamic insertion into article paragraphs

It is based entirely on Gutenberg Editor builds without writing code.

Inserting Static Ads on WooCommerce Product Pages

Take the example of promoting cell phone cases to demonstrate how to automatically display ads on product pages in specific categories:

Step 1: Enable Hook Display Location

Go to any product page, click on the toolbar in the top of the page "Hook Locations"Selection "Show WooCommerce Hooks", page will show all supported insertion locations.

Image [2]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites

Step 2: Select Ad Insertion Point

Click on the small pencil icon where you want to insert the ad (e.g. above a short description of the product) to go to the content block editing page.

Image [3] - Blocksy Pro Content Block Hands-On: The Complete Way to Insert Ads Efficiently on WordPress Websites

Step 3: Insertion of advertising content

Name it "Phone Case Advertisement", and then insert the advertisement content designed in advance, which can be used with the Gutenberg Reusable blocks to quickly load existing ad designs.

Image [4] - Blocksy Pro Content Block Hands-On: The Complete Way to Insert Ads Efficiently on WordPress Websites

Step 4: Setting Display Conditions

Click on the upper right corner of the Blocksy Set the icon and add display conditions:

  • Type:Post with taxonomy ID
  • Condition: Displayed only on product pages that are categorized as "Mobile Phone".
Image [5]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites

It can also be set:

  • Device visibility (e.g. mobile-only display)
  • Expiry time (for time-limited advertising)
Image [6] - Blocksy Pro Content Block Hands-On: The Complete Way to Insert Ads Efficiently on WordPress Websites

Dynamic insertion of Google AdSense ads in articles

Now we realize the effect of automatically inserting AdSense ads after the first two paragraphs of a blog post.

Step 1: Create a new content block

go into WordPress Backend → Blocksy → Content Blocks → Add New, named "Google Blog Ad".

Image [7] - Blocksy Pro Content Block Hands-On: The Complete Way to Insert Ads Efficiently on WordPress Websites

Step 2: Insert Ad Code

Insert the Google AdSense ad code in the Gutenberg editor (replace it with your ad unit code when you actually use it).

Image [8] - Blocksy Pro Content Block Hands-On: The Complete Way to Insert Ads Efficiently on WordPress Websites

Step 3: Setting the Insertion Position

Select from "Location":

  • After certain number of blocks
  • Set to "2" to show ads after the second content block in the article
Image [9]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites

Step 4: Setting Display Conditions

  • Type:Single Post, indicating that it will only be displayed on the article page
Image [10]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites

After saving, you can automatically realize the insertion of ads in all articles by paragraph position.

Preview and Verification of Ad Effectiveness

You can browse through the front:

  • Ads do not appear on product pages that are not categorized as "mobile".
Image [11]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites
  • Display advertisement graphics on the product page of "Mobile" category.
Image [12]-Blocksy Pro Content Block Hands-on: the complete method of efficiently inserting ads into WordPress websites
  • In any blog post, AdSense ads appear after the 2nd paragraph
Image [13] - Blocksy Pro Content Block Hands-On: The Complete Method for Efficiently Inserting Ads on WordPress Websites

The whole process does not require modification of existing content, and ads are displayed flexibly and accurately.

More application scenarios to expand

  • Holiday Promotional Auto Banner
  • Notification of new product releases
  • Logged-in users and visitors see different content
  • Insert different advertisements by language in multilingual websites

Blocksy content blocks combine hooks and display conditions that can be used to create a personalized content system.

summarize

Blocksy Pro The content block function is not only suitable for layout control, but also a powerful tool for automating and fine-tuning the display of ads. Compared to using plugins or writing code to insert ads, Blocksy's approach is lighter and more controllable.

If you're running WooCommerce Malls, content blogs, or ad cash sites, may want to try this feature to bring more possibilities to their website operations.

Recent Updates


Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
Customer Service
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by: thieves will be rats and mice courage
THE END
If you like it, support it.
kudos1232 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments