Hello there,

I am trying to get list of all ad groups associated with my customer id, I 
am using the following code to do that:

            using (var service = 
(AdGroupService)user.GetService(AdWordsService.v201809.AdGroupService))
            {
                var selector = new Selector()
                {
                    fields = new string[] {AdGroup.Fields.Id, 
AdGroup.Fields.Name},
                };
                var entries = service.get(selector);

                return entries.entries;
            }

but it returns zero entries.

In the web UI interface I can see active ad groups. What am I doing wrong.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/99128d37-0407-4311-8b65-eb9409f797c3%40googlegroups.com.

Reply via email to