Can't get ad groups for enabled campaigns? (Google Ads API)

27 views
Skip to first unread message

Michael

unread,
Aug 12, 2019, 5:04:45 PM8/12/19
to AdWords API and Google Ads API Forum
Hey, I've trying to get started with the Google Ads API in order to pull some of the data that we regularly use in the Google Ads UI.

However, I can't seem to pull any ad groups from our enabled campaigns.

SELECT
  campaign
.id,
  campaign
.name,
  campaign
.status,
  ad_group
.id,
  ad_group
.name
FROM ad_group
WHERE campaign
.status = 'ENABLED'

When I take out the WHERE clause, there are no issues, so I'm confused about what might be going wrong here.



**Confidentiality**
The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should please notify the sender by reply. Any opinions expressed are not necessarily those of the company.

We may monitor all incoming and outgoing emails in line with current legislation. We have taken steps to ensure that this email and attachments are free from any virus, but it remains your responsibility to ensure that viruses do not adversely affect you.

Google Ads API Forum Advisor Prod

unread,
Aug 13, 2019, 12:03:14 PM8/13/19
to mic...@yousician.com, adwor...@googlegroups.com
Hello Michael,

Your query looks good, I have used he same query on my test account it pulled results. Could you please double check whether the account from which you are pulling has campaigns in enables status? If the problem persists, please share the client customer id using reply privately to the author option.

Regards,
Sai Teja, Google Ads API Team

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