This project integrates the Google Ads API with OpenAI's GPT-4 to generate campaign optimization suggestions based on campaign performance data.
- Retrieves campaign data from Google Ads.
- Generates optimization suggestions using OpenAI's GPT-4.
- Logs operations and errors for monitoring and debugging.
To set up your local development environment:
git clone https://github.com/endcycles/google-ads-gpt.git
cd google-ads-gpt
npm install
Create a .env file in the root directory with the following content:
OPENAI_API_KEY=
GOOGLE_ADS_CLIENT_ID=
GOOGLE_ADS_CLIENT_SECRET=
GOOGLE_ADS_DEVELOPER_TOKEN=
Run the script with:
node index.js
Contributing
This project is open-sourced under the MIT License. See the LICENSE file for more information.
This project is not affiliated with Google or OpenAI.
LICENSE:
MIT License
Copyright (c) 2023 FastMVP.net
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.