Skip to content

Instantly share code, notes, and snippets.

View jcatama's full-sized avatar

Albert Catama jcatama

  • Sydney, NSW
  • 16:52 (UTC +11:00)
  • LinkedIn in/jcatama
View GitHub Profile
"""
This script acts as an ai driven adtech agent that automatically audits your Google Ads account for underperforming "Poor" or "Average" strength assets.
It leverages Gemini 2.0 or available alternatives models to generate high converting => "Excellent" headlines based on your campaign's context and then uses the Google Ads API to instantly update your live ads.
This loop ensures your campaignss maintain maximum auction priority and lower costs by constantly feeding the Google AI optimized creative signals.
"""
import os
import sys
from google import genai
from google.ads.googleads.client import GoogleAdsClient
@jcatama
jcatama / google_drive.py
Created August 25, 2022 02:51
Python Google Drive Upload
def search(name):
"""
Handles search quesry
Parameters
----------
name : str, required
query string
https://developers.google.com/drive/api/guides/search-files#query_string_examples