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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.