Notification

Please make sure to visit Your AdSense Page where you can find personalized information about your account to help you succeed with AdSense.

GameSnacks

How to embed GameSnacks games on your site or app

This article describes the steps you need to take in AdSense and on your site or app to embed GameSnacks games.

Tip: If you're interested in being a distribution partner on GameSnacks, please complete the GameSnacks interest form.

Before you start

Make sure you have an AdSense account. If you don't have one yet, you can create an AdSense account or contact AdSense Support for assistance.

Instructions

  1. Sign the GameSnacks distribution agreement.
  2. In your AdSense account, add the site where you intend to host GameSnacks. Learn how to add a new site to your AdSense sites list.
    Note: If you're an app distributor, add an alternative site that you own. We won't show ads on this site. We'll only use this site to verify your ownership.

User consent

Decide how you want to collect user consent for privacy regulations.

  1. If you're a web distributor using a consent management platform (CMP) that complies with the IAB Europe Transparency & Consent Framework (TCF) v2.0, such as the "Privacy & messaging" tab in AdSense, then you need to embed GameSnacks on your site like this:

    gamesnacks.com/embed/GAME_CENTER_ID?url=example.com/page

    Notes:
    • You can use window.location.href to get example.com/page.
    • url is mandatory.
    • It's your responsibility to adhere to the legal requirements for all privacy and consent parameters.
  2. If you're an app distributor or a web distributor who's not using a compliant CMP, then you need to:
    1. Identify when a user meets the following conditions:
      When a user: Use this parameter: To comply with:
      Is a child TFCD (Tag for Child Directed Treatment)
      • Children's Online Privacy Protection Act (COPPA)
      Is under the age of consent TFUA (Tag for users under the age of consent)
      • General Data Protection Regulation (GDPR)
      • Age Appropriate Design Code (AADC)
      Disables ad personalization NPA (Non-personalized ads)
      • General Data Protection Regulation (GDPR)
      • Lei Geral de Proteção de Dados (LGPD)
      Note: Depending on the local laws of the region where you operate, you may not be required to do any of the above. However, it is your responsibility to comply with your local laws and regulations.
    2. Embed GameSnacks on your site or app with the correct parameters, either:
      • gamesnacks.com/embed/GAME_CENTER_ID?url=example.com/page&npa=npa&tfcd=tfcd&tfua=tfua

        Or

      • gamesnacks.com/embed/GAME_CENTER_ID/game/gameId?url=example.com/page&npa=npa&tfcd=tfcd&tfua=tfua
      Notes:
      • You can use window.location.href to get example.com/page.
      • url is mandatory.
      • tfcd, tfua, and npa are optional depending on your region and IAB TCF usage.

Showing ads

Make sure that ads will work correctly in your games.

  1. If you're a web distributor, complete the following step:
    • Add allow="autoplay" to the GameSnacks iframe.
      Example

      <iframe src="gamesnacks.com/embed/GAME_CENTER_ID?url=example.com/page" allow="autoplay"> </iframe>

  2. If you're a app distributor, complete the following steps:
    1. Integrate the Google Mobile Ads (GMA) SDK into your app:
    2. Integrate the WebView API for Ads
    3. Enable "auto play" and "sound on" on WebView:
    Note: If ads don't appear on your site or app, please send us an email at gamesnacks-contactus@google.com.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu