Home
Contact
About
Allnews
Home
Configure Your Looker Studio Connector
Configure Your Looker Studio Connector
Configure Your Looker Studio Connector
/>
Looker Studio Connector Configuration
Configure Your Looker Studio Connector
API Key:
API Endpoint:
Data Type:
Select Data Type
Sales Data
User Data
Metrics
Submit Configuration
Configuration saved successfully!
An error occurred. Please try again.
Copy HTML Code
<!DOCTYPE html> <html lang="en"> <head> <base target="_top"> <meta charset="UTF-8"> <title>Looker Studio Connector Configuration</title> <style> body { font-family: Arial, sans-serif; margin: 20px; max-width: 600px; margin-left: auto; margin-right: auto; background-color: #e5e7eb; } .container { background-color: #ffffff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h1 { color: #1e3a8a; text-align: center; } label { display: block; margin-top: 15px; font-weight: bold; color: #1f2937; } input[type="text"], input[type="password"], select { width: 100%; padding: 8px; margin-top: 5px; border: 1px solid #d1d5db; border-radius: 4px; box-sizing: border-box; background-color: #f9fafb; } button { background-color: #2563eb; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; margin-top: 20px; width: 100%; } button:hover { background-color: #1e40af; } .error, .success { margin-top: 10px; padding: 10px; border-radius: 4px; display: none; } .error { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } .success { background-color: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; } </style> </head> <body> <div class="container"> <h1>Configure Your Looker Studio Connector</h1> <form id="configForm"> <label for="apiKey">API Key:</label> <input type="password" id="apiKey" name="apiKey" placeholder="Enter your API key" required> <label for="endpoint">API Endpoint:</label> <input type="text" id="endpoint" name="endpoint" placeholder="Enter the API endpoint URL" required> <label for="dataType">Data Type:</label> <select id="dataType" name="dataType" required> <option value="">Select Data Type</option> <option value="sales">Sales Data</option> <option value="users">User Data</option> <option value="metrics">Metrics</option> </select> <button type="button" onclick="submitConfig()">Submit Configuration</button> </form> <div id="message" class="success">Configuration saved successfully!</div> <div id="error" class="error">An error occurred. Please try again.</div> </div> <script> function submitConfig() { var form = document.getElementById('configForm'); var formData = { apiKey: form.apiKey.value, endpoint: form.endpoint.value, dataType: form.dataType.value }; document.getElementById('message').style.display = 'none'; document.getElementById('error').style.display = 'none'; google.script.run.withSuccessHandler(onSuccess).withFailureHandler(onFailure).processConfig(formData); } function onSuccess(response) { document.getElementById('message').style.display = 'block'; document.getElementById('configForm').reset(); setTimeout(function() { document.getElementById('message').style.display = 'none'; }, 3000); } function onFailure(error) { document.getElementById('error').textContent = "Error: " + error.message; document.getElementById('error').style.display = 'block'; setTimeout(function() { document.getElementById('error').style.display = 'none'; }, 5000); } </script> </body> </html>
rsd
https://feeds.feedburner.com/allnews247/dtJQZ5p1S42
Social Plugin
Multiplex ad
I