# Google Ads

当我们项目需要拉取google ads数据时，需要进行如下操作：

1.登录google ads账号，绑定服务账号 <google-ads@appflow-ai-dash.iam.gserviceaccount.com>

文档：[向服务账号授予访问权限](https://developers.google.com/google-ads/api/docs/get-started/select-account?hl=zh-cn#grant_access_to_the_service_account)

2.完成上述的授权步骤之后，服务账号会自动接受邀请

3.把账号的login\_customer\_id复制到appflow

<figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2FFI6cdLTZ4EhOCpLaO7Wg%2Fimage-20250411-093014.png?alt=media&#x26;token=df34dbd7-a3cf-4806-a07a-dfb19786eccf" alt=""><figcaption></figcaption></figure>

4.在appflow, Setting → Applications ->选择对应app, Edit → integrations → Google Ads, 打开开关，将login\_customer\_id填写到appflow （ps: 因为不需要-字符，appflow会自动去掉）

<div><figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2FW9I0odfRGBIFUvRasoLT%2Fimage-20250411-094504.png?alt=media&#x26;token=cde82d0b-7e92-4ba0-92a1-c2ad86d37d67" alt=""><figcaption></figcaption></figure> <figure><img src="https://1902080327-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTUSTYqtR8RNNkx3qqWf9%2Fuploads%2FXAP4mxkSxVodpryW0eiW%2FXnip2025-04-11_17-44-09.jpg?alt=media&#x26;token=5b486aff-7a39-4cb0-9167-e7992569b90f" alt=""><figcaption></figcaption></figure></div>
