CalloutFeedItem issue on v201702

17 views
Skip to first unread message

Eric Kwok

unread,
Mar 9, 2017, 9:27:50 AM3/9/17
to AdWords API Forum
Hi,

My program get error when I change to use AdWords API from v201609 to v201702.

Please see below the program code first:
        function A:
final List<SitelinkFeedItem> items = this.createSiteLinkFeedItems(lang, storeId);
final ExtensionSetting setting = new ExtensionSetting();
setting.setExtensions(items.toArray(new SitelinkFeedItem[items.size()]));

        function B:
final List<CalloutFeedItem> items = this.createCalloutFeedItems(lang, storeId);
final ExtensionSetting setting = new ExtensionSetting();
setting.setExtensions(items.toArray(new CalloutFeedItem[items.size()]));


When using v201609, it works fine, both SitelinkFeedItem and CalloutFeedItem list items can be set into ExtensionSetting.

When using v201702, it gets error:
The method setExtensions(ExtensionFeedItem[]) in the type ExtensionSetting is not applicable for the arguments (CalloutFeedItem[])

Does anyone know what happen to this?

Thanks

Eric

Shwetha Vastrad (AdWords API Team)

unread,
Mar 9, 2017, 2:25:38 PM3/9/17
to AdWords API Forum
Hi Eric,

I was able to successfully add a CalloutFeedItem using the v201702 version of the API using the Java client library. Could you send over SOAP request and response logs so I can take a look? Please use Reply privately to author when responding.

Thanks,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages