Hi, I m getting null value when try to remarketingUserList.getConversionTypes(); Getting d userlist id from adwords when try to get the remarketingUserList.getConversionTypes()) ,got null value....
Below is my testing code...... for (UserList userList : page.getEntries()) { System.out.printf("User list with name '%s', id '%d', status '%s', and number of " + "users '%d' was found.\n", userList.getName(), userList.getId(), userList.getStatus(), userList.getSize()); // Capture the ID(s) of the conversion. for (UserList userListResult : page.getEntries()) { if (userListResult instanceof RemarketingUserList) { RemarketingUserList remarketingUserList = (RemarketingUserList) userListResult; for (UserListConversionType userListConversionType : remarketingUserList.getConversionTypes()) { conversionIds.add(userListConversionType.getId().toString()); System.out.println("Hi"+userListConversionType.getId().toString()); } } } // Create predicate and selector. Predicate predicate = new Predicate(); predicate.setField("Id"); predicate.setOperator(PredicateOperator.IN); predicate.setValues(conversionIds.toArray(new String[0])); Selector selector2 = new Selector(); selector2.setFields(new String[] {"Id"}); selector2.setPredicates(new Predicate[] {predicate}); // Get all conversion trackers. Map<Long, AdWordsConversionTracker> conversionTrackers = new HashMap<Long, AdWordsConversionTracker>(); ConversionTrackerPage page2 = conversionTrackerService.get(selector2); if (page2 != null && page2.getEntries() != null) { for (ConversionTracker conversionTracker : page2.getEntries()) { conversionTrackers.put(conversionTracker.getId(), (AdWordsConversionTracker) conversionTracker); } } // Display user lists. for (UserList userListResult :page.getEntries()) { System.out.printf("User list with name '%s' and id '%d' was added.\n", userListResult.getName(), userListResult.getId()); // Display user list associated conversion code snippets. if (userListResult instanceof RemarketingUserList) { RemarketingUserList remarketingUserList = (RemarketingUserList) userListResult; for (UserListConversionType userListConversionType : remarketingUserList.getConversionTypes()) { System.out.printf("Conversion type code snippet associated to the list:\n%s\n", conversionTrackers.get(userListConversionType.getId()).getSnippet()); } } } } } else { System.out.println("No user lists were found."); } -- Warm Regards. Ashok Acharya. Mb:+91-9561422852 -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en