Hi all,
I'm facing a problem where some of the campaigns seem unable to grab by using the Adwords API but I was able to see it in the Adwords UI.
Here are the factions of the code:
CampaignService campaignService = (CampaignService)user.GetService(AdWordsService.v201710.CampaignService);
Selector selectorCS = new Selector();
selectorCS.fields = new string[] { "Id", "Name", "Status" };
selectorCS.paging = new Paging();
Predicate predicateCS = new Predicate();
predicateCS.field = "CampaignStatus";
predicateCS.@operator = PredicateOperator.IN;
predicateCS.values = new string[] { "ENABLED", "PAUSED", "REMOVED" };
selectorCS.predicates = new Predicate[] { predicateCS };
CampaignPage page = new CampaignPage();
page = campaignService.get(selectorCS);
if (page.totalNumEntries > 0)I have authenticated successfully by using OAuth with the necessary credentials. Some of the clientCustomerID that I supplied managed to get something out (page.totalNumEntries > 0), but not all even the campaign status is "Enabled".
Appreciate the help from all the experts. Please enlightened me a little