> 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="/files/KE2IsDTbsIIMzCdNdE79" alt=""><figcaption></figcaption></figure>

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

<div><figure><img src="/files/xqxqXUIk4OQgGFBCRObb" alt=""><figcaption></figcaption></figure> <figure><img src="/files/MAwDFuSm0e8BBNb5jr7A" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
