简体   繁体   English

如何通过php Adwords api获取我的MCC帐户Compains

[英]How to get my MCC account compains by php Adwords api

I have my manager account with some campaigns on it. 我的经理帐户上有一些广告系列。 When I run GetCampaigns.php example from GitHub it shows Number of results found: 0 . 当我从GitHub运行GetCampaigns.php示例时,它显示Number of results found: 0 As I found out MCC acoount's campaigns are "invisible" for API. 正如我发现的那样,MCC acoount的广告系列对于API是“不可见的”。 The thing is that I have a task to show campaigns with its data exactly from this MCC account. 事实是,我有一个任务要确切显示来自此MCC帐户的广告系列及其数据。 Is there a way I can solve my problem? 有什么办法可以解决我的问题?

Even though you can see campaigns for a manager account in the Google Ads web interface, these actually belong to the sub-accounts of the MCC. 即使您可以在Google Ads网络界面中看到经理帐户的广告系列,但它们实际上都属于MCC的子帐户 Managed accounts themselves don't have campaigns. 托管帐户本身没有广告系列。

What you'll probably want to do is to get the list of managed accounts using the ManagedCustomerService and then iterate over the returned account IDs, running GetCampaigns.php for each of them. 您可能想要做的是使用ManagedCustomerService获取管理帐户列表,然后遍历返回的帐户ID, GetCampaigns.php为每个ID运行GetCampaigns.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM