Campaign, Adgroup and ADs Relation

20 views
Skip to first unread message

Isaac Choe

unread,
May 27, 2020, 10:44:47 AM5/27/20
to AdWords API and Google Ads API Forum
Hello,

I am using the google APIs and had a question about the relationships between Campaigns, AdGroups and Ads.


When I make sample calls and reference the documentation for example, I do not see a direct campaign ID in the AdGroup object. I do see a campaign field and when I view the data, it is the resource name (abc/123/xyz/456). I suppose I can parse out the IDs that way but is there a better way to map these and link them together with direct ID fields?

Thank you.

Google Ads API Forum Advisor Prod

unread,
May 27, 2020, 2:23:14 PM5/27/20
to is...@triadms.com, adwor...@googlegroups.com
Hi Isaac,

Thank you for reaching out to us. I see that you want to connect the Campaign ID to the Ad Group when you call it in a request or reporting query. You are able to do this by querying campaign ID while querying AdGroup metrics and fields, as AdGroup supports Campaign fields (as shown in the attributed resources section of the AdGroup Reporting documentation). Let me know if you have further questions.

Thank you,
Bryan, Google Ads API Team

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