I saw the campaign on Adwords, but I cant get it by Java SDK

34 views
Skip to first unread message

je...@urad.com.tw

unread,
Mar 29, 2018, 6:45:07 PM3/29/18
to AdWords API Forum
Hi,

I using the Java SDK with v201710,

I have a question about to get the Campaign(1336308160) infos,
when I tried to get a Campaign(1336308160) info by this selector,

Selector{fields=[Id, Name], ordering=[], predicates=[Predicate{field=Id, operator=IN, values=[1336308160]}]}

I found the campaign is existed, but I can not fetch it by SDK, I don't know why ?




then I download a AdGroups report(ADGROUP_PERFORMANCE_REPORT) of the Campaign(1336308160) by SDK,
its succeed to download (Include zero impression == true), 

if I can not access campaign info, why download adGroup report succeed ?
and how to fix it to get the campaign info ?

AdWordsServicesInterface adWordsServices = AdWordsServices.getInstance();
CampaignService campaignService = adWordsServices.get(adWordsSession, CampaignServiceInterface.class);

Selector selector = new SelectorBuilder()
           
.fields(CampaignField.Id, CampaignField.Name)
           
.in(CampaignField.Id, "1336308160")
           
.build();

CampaignPage campaignPage = campaignService.get(selector);


Sorry, English is not my native language,

thanks your help.

Dhanya Sundararaju (AdWords API Team)

unread,
Mar 30, 2018, 11:44:53 AM3/30/18
to AdWords API Forum
Hi Jerry,

Thank you for sending all the details that helped us to troubleshoot efficiently. Unfortunately, Video campaigns are not supported via the API services but are supported in reports. Please let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team

je...@urad.com.tw

unread,
Mar 30, 2018, 10:41:13 PM3/30/18
to AdWords API Forum
Hi Dhanya

Thanks your information,
I will try with campaign reports.

best wish.

Dhanya Sundararaju (AdWords API Team)於 2018年3月30日星期五 UTC+8下午11時44分53秒寫道:
Reply all
Reply to author
Forward
0 new messages