How can I get the adGroup information if the adGroup doesn't add any ads in it

21 views
Skip to first unread message

Eitan Shay

unread,
Feb 16, 2015, 1:31:15 AM2/16/15
to adwor...@googlegroups.com
Hi,

I am using the GetTextAds class in example code but I cannot get the adGroups without any ads in it.
When using AdGroupAdService, I can only get the adGroups that have adGroup and TextAd both.

But I want to add some text ads to those adGroups without ads in it.
Is there a way to do it?

Thanks a lot!

Danial Klimkin

unread,
Feb 16, 2015, 9:44:06 AM2/16/15
to adwor...@googlegroups.com
Hello Eitan,


Please use the AdGroupService to manage Ad groups.


-Danial, AdWords API Team.

Eitan Shay

unread,
Feb 16, 2015, 8:54:45 PM2/16/15
to adwor...@googlegroups.com
Hi Danial,

Can you please tell me how to use AdGroupService to get the adGroups that don't have any ads in it.
I know AdGroupService is meant to manage ad groups but I cannot get ads information in the ad group through the AdGroup interface.
Can you give more details?

Thanks a lot!

Eitan Shay

unread,
Feb 16, 2015, 11:30:58 PM2/16/15
to adwor...@googlegroups.com
I have found a little complex solution.
First I use AdGroupService to get all adGroup Ids then use AdGroupAdService to get all ads belonging to some adGroup Id like GetTextAds.java in the example code.
If page.getTotalNumEntries() == 0, namely we don't have any ads, so I can add some ads in the adGroup.

I was hoping I could get the ad group information from the AdGroupAd interface but seems I cannot.
Reply all
Reply to author
Forward
0 new messages