What you will need
- A Google account
- A Google Ads account (free to create)
Step 1 — Create your Google Cloud Project
1
Go to console.cloud.google.com and sign in.
2
Click the project selector at the top → New Project → pick a name → Create.
Step 2 — Turn on Google Ads API
1
In your project, open APIs & Services → Library.
2
Search Google Ads API → click it → Enable.
Step 3 — Make OAuth Credentials
1
Go to APIs & Services → Credentials → Create Credentials → OAuth client ID.
2
If asked, configure the consent screen (External → App name → Save).
3
Choose Web application. Add an Authorized redirect URI:
https://YOUR-DOMAIN.com/market/api/google_ads.php
https://YOUR-DOMAIN.com/market/api/google_ads.php
4
Copy your Client ID and Client Secret.
Step 4 — Paste in your App Config
1
Open this file: market/config/google_ads_config.php.
2
Update the values like this:
You can request a Developer Token inside your Google Ads account (Tools → API Center). It may need approval.
Step 5 — Connect the Account
1
Visit your site page that starts Google login (your app will provide a button).
2
Sign in to Google and approve. You will return to your redirect link.
Nice! Your app can now talk to Google Ads and pull performance data.