https://github.com/cmmasaba/ms-ads-integration
Extract ads performance data from Microsoft Ads platform and store in BigQuery
https://github.com/cmmasaba/ms-ads-integration
bigquery microsoft-ads python
Last synced: 2 months ago
JSON representation
Extract ads performance data from Microsoft Ads platform and store in BigQuery
- Host: GitHub
- URL: https://github.com/cmmasaba/ms-ads-integration
- Owner: cmmasaba
- License: mit
- Created: 2025-07-02T17:31:43.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-17T20:19:11.000Z (11 months ago)
- Last Synced: 2025-07-17T23:53:42.745Z (11 months ago)
- Topics: bigquery, microsoft-ads, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MICROSOFT ADS INTEGRATION
Download data on ad performance from Microsoft Ads and store it in BigQuery for further processing.
[Official Docs](https://learn.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13)
## Set Up Steps
These steps outline how to get necessary tokens and access to the MS Ads platform:
1. Register your application on Azure to get `CLIENT_ID`, `CLIENT_SECRET` and `TENANT_ID`([docs](https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-register?view=bingads-13)).
2. Get the `DEVELOPER_TOKEN` for MS Ads Developer Portal ([docs](https://learn.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token)).
3. Get the `CUSTOMER_ID (also called Manager Account ID)` and `CUSTOMER_ACCOUNT_ID (also called Account ID)` from MS Ads portal ([docs](https://avanser.zohodesk.com/portal/en/kb/articles/microsoft-ads-how-to-find-your-customer-id-and-account-id)).
2. Request user consent ([docs](https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-consent?view=bingads-13)).
3. Get access and refresh tokens ([docs](https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth-get-tokens?view=bingads-13)).
4. Fill in the necessary environment variables in the .env file
5. Ready to make API calls.