Get campaigns from manager account

11 views
Skip to first unread message

YuDi Huang

unread,
Nov 22, 2020, 4:12:54 PM11/22/20
to adwor...@googlegroups.com
Hi,

I used google-ads-ruby gem, and I want to get all campaigns and ad_groups under the manager account, what should I do?

I though there were two ways.

One is that I get campaigns directly by manager account. But when i use client.service.google_ads, I got error message: "Request contains an invalid argument." 

So I tried another way that is operating sub_account directly. But when I use list_accessible_customers(),and  there is not sub_account's resource_name. That means i can't operate the sub_account directly, right?

So, how can I get campaigns from manager account?

Google Ads API Forum Advisor Prod

unread,
Nov 23, 2020, 11:15:13 AM11/23/20
to huang...@gmail.com, adwor...@googlegroups.com
Hello,

In order to get the campaigns in your account, you will need to call the service from the client account level. There is currently no way to do this from the manager level.

Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q27vr2p:ref
Reply all
Reply to author
Forward
0 new messages