Documentation for Ads Management
The admin panel allows administrators to:
Square
or Horizontal
.sidebar
, homepage
, profile
, category
, blog
s).When creating or editing an ad, the following fields are used:
Square
or Horizontal
).sidebar
, homepage
, profile
, category
, blogs
).To integrate Google AdSense:
Settings Panel:
Navigate to Settings -> Global Settings (Google AdSense ID) in the admin panel. In the settings (see below), the administrator can specify a googleAdsenseId
(for example, “ca-pub-3940256099942544”). This field is stored in the settings model.
SEO Component:
The SEO component (using react-helmet-async) dynamically inserts the AdSense script if a googleAdsenseId is provided in the settings:
This ensures that the AdSense library is loaded on every page.
or
In your React components that render this code (using dangerouslySetInnerHTML), you should call window.adsbygoogle.push() (wrapped in a useEffect) to initialize the ad.
The admin panel component (AdsPage) provides the following functionalities:
1. A form for creating/editing ads with the fields listed above.
2. A list of existing ads:
This documentation covers:
adCode
field.Link
field (for Image ads) and displays the current image in edit mode.Ads API Documentation The API allows dynamic control over Ads API Documentation processes. More details in the API Reference section
Documentation for Ads Management
The admin panel allows administrators to:
Square
or Horizontal
.sidebar
, homepage
, profile
, category
, blog
s).When creating or editing an ad, the following fields are used:
Square
or Horizontal
).sidebar
, homepage
, profile
, category
, blogs
).To integrate Google AdSense:
Settings Panel:
Navigate to Settings -> Global Settings (Google AdSense ID) in the admin panel. In the settings (see below), the administrator can specify a googleAdsenseId
(for example, “ca-pub-3940256099942544”). This field is stored in the settings model.
SEO Component:
The SEO component (using react-helmet-async) dynamically inserts the AdSense script if a googleAdsenseId is provided in the settings:
This ensures that the AdSense library is loaded on every page.
or
In your React components that render this code (using dangerouslySetInnerHTML), you should call window.adsbygoogle.push() (wrapped in a useEffect) to initialize the ad.
The admin panel component (AdsPage) provides the following functionalities:
1. A form for creating/editing ads with the fields listed above.
2. A list of existing ads:
This documentation covers:
adCode
field.Link
field (for Image ads) and displays the current image in edit mode.Ads API Documentation The API allows dynamic control over Ads API Documentation processes. More details in the API Reference section