> For the complete documentation index, see [llms.txt](https://doc.appflow.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.appflow.ai/docs/google-ads.md).

# 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&amp;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&amp;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&amp;token=5b486aff-7a39-4cb0-9167-e7992569b90f" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.appflow.ai/docs/google-ads.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
