Some Campaigns missing in using Google Adwords API

135 views
Skip to first unread message

Raymond Au Yong

unread,
Jan 23, 2018, 4:51:44 AM1/23/18
to AdWords API Forum

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


Bharani Cherukuri (AdWords API Team)

unread,
Jan 23, 2018, 12:35:11 PM1/23/18
to AdWords API Forum
Hi Raymond, 

I see that you're querying for all the campaigns that are Enabled, Paused and Removed. This will return all the Campaign details with their status under the specific client account. Also, please note that video campaigns are currently not supported by the AdWords API Services. If you're still experiencing a discrepancy, could you share us the complete SOAP request and response logs along with the clientCustomerId, so I can take a look? Please use Reply privately to author option to share the details. 

Regards,
Bharani, AdWords API Team

Raymond Au Yong

unread,
Jan 23, 2018, 10:20:26 PM1/23/18
to AdWords API Forum
Hi Bharani, 

Thanks for your reply. I have messaged you privately on the request. On top of that, may I know is there any difference in API capability between C# and JAVA? 

Bharani Cherukuri (AdWords API Team)

unread,
Jan 24, 2018, 10:59:03 AM1/24/18
to AdWords API Forum
Hello Raymond, 

Thank you for the details. I see that the client customer ID provided has only video campaigns. Video campaigns are currently not supported by the AdWords API Services. It could be the reason as to why you're noticing the discrepancy. Video campaigns are supported only in reports. You could get the details of these campaigns via the Campaign Performance report and the Video Performance report

This said, there is not much difference between the C# and Java API client libraries. These libraries illustrate the AdWords API functionality, making it easier to develop apps quickly. You may refer to these links (JavaC#) for more information about the installation instructions and code examples. 
Reply all
Reply to author
Forward
0 new messages