From 57c0295c095bf614cc773ebbfa20e6381692a383 Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 2 Aug 2024 11:36:05 +0100 Subject: [PATCH] v1 launch --- README.md | 31 +++++++++++++++++++++++-------- script.js | 3 +-- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 19a325b..9b336cf 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,24 @@ -# Really Great Ads - -## Integration +# Really Great Ads Integration Guide +Welcome to the Really Great Ads integration guide. This documentation will help you seamlessly integrate Really Great Ads into your website. +## Getting Started +To display ads on your website, follow these steps: +Add the Ad Container: Include the following HTML where you want the ads to appear on your page. ```html -
+``` + +You can customize the container ID by changing `adverts-container` to any other ID of your choice. Make sure to use the same ID in the JavaScript code. - +Include the Script: Add the following script to your page to initialize the ads. +```html -``` \ No newline at end of file +``` + +## Important Notes + +- **Custom Container ID**: If you want to use a different container ID, ensure that you update the containerId variable in the script to match the ID used in the HTML. + +- **Placement ID**: Replace the uniqueId with your own placement ID provided by Really Great Ads. This ID is essential for loading the correct advertisements. + +By following these instructions, you will successfully integrate Really Great Ads into your website, ensuring a seamless display of ads for your users. + +If you encounter any issues or have further questions, please contact our support team. \ No newline at end of file diff --git a/script.js b/script.js index d89c8a5..439a362 100644 --- a/script.js +++ b/script.js @@ -1,7 +1,6 @@ (function() { - // Function to fetch adverts data from the internal API function fetchAdverts(uniqueId, currentUrl) { - const apiEndpoint = 'https://reallygreatads.test/api/placement'; // Update with your API endpoint + const apiEndpoint = 'https://api.reallygreatads.com/v1/placement'; const payload = { uniqueId: uniqueId, url: currentUrl