외부 데이터 통합
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
중요한 데이터 (인벤토리, 전환 등)는 Google Ads 도메인 외부에 있는 경우가 많습니다. 마찬가지로 Google Ads UI가 데이터 시각화에 항상 완벽한 도구는 아닐 수 있습니다. Google Ads 스크립트를 사용하면 외부 데이터 소스와 쉽게 통합할 수 있습니다.
Google Sheets
Google 스프레드시트 (Google Drive에 있음)는 모든 기능을 갖춘 웹 기반 스프레드시트 솔루션입니다. Google Ads 스크립트를 사용하면 스프레드시트 서비스를 통해 스프레드시트를 읽고 쓸 수 있습니다. 프로그래매틱 방식으로 스프레드시트를 만들고, 데이터를 채우고, 글꼴과 색상을 지정하고, 다른 사용자와 공유할 수도 있습니다. 스크립트에서 사용할 수 있는 방법은 다음과 같습니다.
- 보고서 시각화
- 스프레드시트에서는 다양한 유형의 차트를 제공합니다. 차트가 포함된 스프레드시트를 설정하여 데이터를 시각화한 다음 스크립트에서 데이터 소스를 가져와 차트를 자동으로 업데이트할 수 있습니다.
- 데이터 소스
- 데이터를 직접 입력하거나 다른 소스의 데이터를 입력하는 스프레드시트를 만들 수 있습니다. 그러면 스크립트가 데이터를 읽고 처리하여 계정을 업데이트할 수 있습니다. 예를 들어 스프레드시트에 새 키워드를 입력하면 매일 실행되는 스크립트에 의해 계정에 추가됩니다.
- 중간 데이터 저장
- 스프레드시트는 실행될 때 실행 상태에 관한 정보를 저장하여 다음 실행 시 중단한 부분부터 다시 시작할 수 있습니다. 예를 들어 계정의 모든 광고 그룹을 처리해야 하지만 30분 실행 시간 제한보다 오래 걸리는 경우 처리한 광고 그룹을 기록할 수 있습니다. 스크립트가 다시 실행되면 스프레드시트를 확인하여 시작할 위치를 파악하므로 중복된 작업을 수행하지 않습니다.
Google Drive
스크립트가 Google Drive에서 임의의 파일을 만들고, 찾고, 수정할 수 있는 DriveApp
를 사용하여 Google Drive를 더욱 효과적으로 활용할 수 있습니다. 이는 앞에서 설명한 대로 데이터 소스 또는 중간 데이터 저장소로 사용할 수 있습니다.
차트
차트 서비스를 통해 데이터 시각화를 개선할 수도 있습니다. 이 완전한 차트 빌드 서비스를 사용하면 데이터 시각화 요구사항을 광범위하게 관리할 수 있습니다.
JDBC
Google Cloud SQL, MySQL, Microsoft SQL Server, Oracle 데이터베이스와 같은 외부 JDBC 호환 데이터베이스에 연결할 수 있습니다. 설정 안내는 이 가이드를 참고하세요.
이메일
Google Ads 스크립트를 사용하면 메일 서비스를 통해 이메일을 보낼 수 있습니다. 이메일은 스크립트에서 필요한 관련 정보를 자신에게 알리는 데 사용할 수 있습니다. 예를 들어 전체 보고서 링크가 포함된 요약을 메일로 보낼 수 있습니다. 맞춤 HTML로 이메일 메시지를 맞춤설정하고 이미지를 추가할 수도 있으므로 스크립트에서 전문적인 보고서를 클라이언트에게 직접 보낼 수 있습니다. 첨부파일을 사용하여 대규모 보고서를 전송할 수 있습니다.
URL 가져오기
Google Ads 스크립트를 사용하면 URL 가져오기 서비스를 사용하여 임의 URL의 콘텐츠를 가져올 수 있습니다. 이 기능은 다음과 같은 다양한 기회를 제공합니다.
- 인벤토리 정보를 보고하는 비밀번호로 보호된 피드를 웹사이트에 설정합니다. 그런 다음 계정 변경사항을 적용하기 위해 Google Ads 스크립트를 통해 액세스합니다.
- 외부 이벤트에 관한 정보를 가져오고 이 정보를 기반으로 계정 관리 결정을 내립니다. 예를 들어 HTTP 기반 API에서 날씨 정보를 가져와 타겟 지역에 비가 올 때마다 입찰가를 조정하거나 광고를 사용 설정할 수 있습니다.
- 웹에서 다양한 API를 사용할 수 있습니다. HTTP 인터페이스가 있는 모든 항목에 액세스할 수 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-27(UTC)
[null,null,["최종 업데이트: 2025-08-27(UTC)"],[[["\u003cp\u003eGoogle Ads Scripts facilitates integration with external data sources for enhanced data analysis and automation.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Sheets, Drive, and Charts services can be used for data visualization, storage, and reporting within Google Ads Scripts.\u003c/p\u003e\n"],["\u003cp\u003eExternal databases and custom web applications can be connected to Google Ads Scripts via JDBC and URL Fetching services.\u003c/p\u003e\n"],["\u003cp\u003eEmail functionality enables automated notifications and reporting based on script outputs.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Ads Scripts empowers users to programmatically control and automate Google Ads campaigns with external data and services.\u003c/p\u003e\n"]]],[],null,["# External Data Integration\n\nImportant data (inventory, conversions, etc.) often reside outside the Google\nAds domain. Likewise, the Google Ads UI may not always be the perfect\ntool for data visualization. Google Ads scripts provide an easy way to\nintegrate with external data sources.\n\nGoogle Spreadsheets\n-------------------\n\nGoogle Spreadsheets (found in [Google Drive](//drive.google.com)) are a\nfull-featured web-based spreadsheet solution. Google Ads scripts lets you read\nfrom and write to spreadsheets through the\n[Spreadsheet Service](/apps-script/reference/spreadsheet). You can also\nprogrammatically create a spreadsheet, populate it with data, format its fonts\nand colors, and share it with others. Some of the ways you can use them in your\nscripts include:\n\nReport visualization\n: Spreadsheets offer various types of charts. You can set up a spreadsheet with\n a chart to visualize your data, and then import the data source from a script to\n automatically update the chart.\n\nData source\n: You can create a spreadsheet where you manually input data (or input data\n from some other source). A script can then read and process the data to update\n your account. For example, you can enter new keywords to a spreadsheet that are\n then added to your account by a daily running script.\n\nIntermediate data store\n: A spreadsheet can store information about its execution state as it runs, so\n that it can pick up where it left off on the next execution. For example, if\n you need to process all ad groups in your account but it takes longer than the\n [30 minute execution time limit](/google-ads/scripts/docs/limits), you can\n record the ones you process as you go. When the script executes again, it can\n check the spreadsheet to figure out where to start so it doesn't duplicate any\n work.\n\nGoogle Drive\n------------\n\nYou can further leverage Google Drive with\n[`DriveApp`](/apps-script/reference/drive/drive-app) which lets scripts create,\nfind, and modify arbitrary files on Google Drive. This can be used as a data\nsource or intermediate datastore as previously shown.\n\nCharts\n------\n\nEnhanced data visualization is also available through the\n[Charts Service](/apps-script/reference/charts). This full-fledged chart\nbuilding service gives you extensive control over your data visualization\nneeds.\n\nJDBC\n----\n\nYou can connect to external JDBC-compliant databases such as Google Cloud SQL,\nMySQL, Microsoft SQL Server, and Oracle databases. See [this\nguide](/apps-script/guides/jdbc) for set-up instructions.\n\nEmail\n-----\n\nGoogle Ads scripts let you send out emails through the\n[Mail Service](/apps-script/reference/mail). Email can be used for\nnotifying yourself of any pertinent information you need from the script; for\nexample, mailing out a summary with a link to a full report. You can customize\nthe email message with custom HTML and even add images, allowing the script to\nsend professional-looking reports directly to your clients. Attachments can be\nused to send large reports.\n\nURL fetching\n------------\n\nGoogle Ads scripts let you fetch the content of an arbitrary URL using the\n[Url Fetch Service](/apps-script/reference/url-fetch). This feature opens\nup a range of opportunities:\n\n- Set up a password-protected feed on your website that reports inventory information. Then, access it through a Google Ads script in order to apply account changes.\n- Fetch information about external events and make account management decisions based on that information. For example, you could fetch weather information from an HTTP-based API and adjust bids or enable ads whenever it's raining in your target area.\n- There are a wide variety of APIs available across the web; anything that has an HTTP interface is accessible."]]