Hi, I've been going through the migration from Google AdWords to Google Ads, and unfortunately since you have discontinued giving examples unlike the previous api (which made it way easier due to the abundance of examples https://developers.google.com/adwords/api/docs/samples/java/remarketing) I have to ask my questions here.
As per the documentation, I'm going to use ConversionUploadService (it's associated methods) https://developers.google.com/google-ads/api/docs/migration/services Previously, 1) I used to use OfflineConversionFeed for setting data (setConversionName, setGoogleClickId etc). This is now replaced by ClickConversion feed = ClickConversion.newBuilder() .setConversionAction(StringValue.of(e.getName())).build() //ofcourse adding all parameters such as gclid, conversionTime etc 2) For creating the uploadRequest : UploadClickConversionsRequest clickConversionRequest = UploadClickConversionsRequest.newBuilder().addAllConversions(feedCollection).build(); //feedCollection is just an arrayList of ClickConversion and the data is from point (1) 3) For creating the client : ConversionUploadServiceClient conversionUploadServiceClient = googleAdsClient.getLatestVersion().createConversionUploadServiceClient(); --This is where the problem starts-- 4) UploadClickConversionsResponse response = conversionUploadServiceClient.uploadClickConversions(clickConversionRequest); a) I am unable to log any failure for this step, the job kind of just hangs? I have waited about 1-2 mins, but I'm just restricting it to 5 entries, so 1-2 mins seems high, so I DONT THINK time is an issue. b) The logs I've setup might be wrong, but since it logs everything from the above 3 points, I'm skeptical that is the problem. (see Request/Response Logging in this document https://github.com/googleads/google-ads-java/blob/master/README.md) c) I have tried using the second method accepting parameters (customerId,List<ClickConversions>), but the problem persists. Am I going the right way? How do I call the mutate method? Since there are no examples, this is getting really inconvenient. This is the exact thing that I'm trying to refactor (the example is from your sample in adwords). There a lack of usage documentation which is making it difficult. // Get the OfflineConversionFeedService. OfflineConversionFeedServiceInterface offlineConversionFeedService = adWordsServices.get(session, OfflineConversionFeedServiceInterface.class); // Associate offline conversions with the existing named conversion tracker. If this tracker // was newly created, it may be a few hours before it can accept conversions. OfflineConversionFeed feed = new OfflineConversionFeed(); feed.setConversionName(conversionName); feed.setConversionTime(conversionTime); feed.setConversionValue(conversionValue); feed.setGoogleClickId(gClid); OfflineConversionFeedOperation offlineConversionOperation = new OfflineConversionFeedOperation(); offlineConversionOperation.setOperator(Operator.ADD); offlineConversionOperation.setOperand(feed); OfflineConversionFeedReturnValue offlineConversionReturnValue = offlineConversionFeedService .mutate(new OfflineConversionFeedOperation[] {offlineConversionOperation}); -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/812f6177-fc4f-40c7-8c72-4643f6acb60e%40googlegroups.com.
