Enabling Google Ads

12. Enabling Google Ads in Laravel Web Panel

12.1. Before integrating Google Ads, ensure:

  • You have a Google AdSense or Google Ads account.
  • Your domain is approved by Google for ads.

12.2. Sign in to Google AdSense

Go to https://adsense.google.com and sign in with your Google account.

12.3. Get Your Google Ad Client ID

1. Once logged in, go to the “Account” section from the left menu.

2. Click on “Account information.”

3. Find your Publisher ID (it looks like this): pub-1234567890123456

4. This is your Google Ad Client ID.

12.4. Create an Ad Unit to Get Ad Slot ID

1. From the left menu, go to “Ads” → “By ad unit”.

2. Click “Display ads” (or choose another format like In-feed, In-article).

3. Enter a name for your ad unit.

4. Configure the ad size and type.

5. Click “Create”.

12.5. Copy the Ad Slot ID

1. After creating the ad unit, AdSense will show you a code like this:

<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-1234567890123456"
     data-ad-slot="9876543210"
     ...
</ins>

From this:

  • Ad Client ID = ca-pub-1234567890123456
  • Ad Slot ID = 9876543210