This article describes the steps you need to take in AdSense and on your site or app to embed GameSnacks games.
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
- Sign the GameSnacks distribution agreement.
- 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.
- 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 getexample.com/page
. url
is mandatory.- It's your responsibility to adhere to the legal requirements for all privacy and consent parameters.
- You can use
- If you're an app distributor or a web distributor who's not using a compliant CMP, then you need to:
- 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. - 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 getexample.com/page
. url
is mandatory.tfcd
,tfua
, andnpa
are optional depending on your region and IAB TCF usage.
- Identify when a user meets the following conditions:
Showing ads
Make sure that ads will work correctly in your games.
- 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>
- Add
- If you're a app distributor, complete the following steps:
- Integrate the Google Mobile Ads (GMA) SDK into your app:
- Integrate the WebView API for Ads
- 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.