Hi, What is the variable "conversion" in conversion.getDateTime(). Thanks
On Wednesday, June 23, 2021 at 10:46:27 PM UTC+5:30 Pete Lavetsky (AdWords API Guru) wrote: > Hey Priya, > > We ran into this too and here's how we do it in Java: > > final String conversionDateTime = ZonedDateTime.of(conversion.getDateTime(), > ZoneId.of("UTC")).format(DateTimeFormatter.ofPattern("yyyy-MM-dd > hh:mm:ss")) + "+00:00"; // ignore the totaly hack tacked on at the end > https://bugs.openjdk.java.net/browse/JDK-8066806 > > Hope that helps > Pete > > On Wednesday, June 23, 2021 at 7:21:48 AM UTC-4 priya....@bold.com wrote: > >> I am using the date in UTC or ETC/GMT which was working fine with adwords >> API, but according to the new google Ads API I get the below error. >> >> "The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:m., at >> conversions[0].conversion_date_time" >> >> In adwords API, I used as below: >> ConversionDateTime= ConversionTime.Value.ToString("yyyyMMdd HHmmss") + " >> Etc/GMT" >> >> Please advise how to use this in google Ads API. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/5bbe124a-7e0a-41b1-adc5-0fc0d6e03545n%40googlegroups.com.