After reading several similar questions from this forum, I think I understand the problem.
1) The documentation of CustomerSyncService is dreadful. It is specially difficult to instantiate a DateTimeRange which will not return an INVALID_TIMEZONE error. It is also specially difficult to understand that changes are grouped into the highest possible granularity level. If *n* > 1 AdGroups were modified, CustomerSyncService can only tell that the Campaign was modified but it cannot say which AdGroups were modified. 2) I cannot use the CustomerSyncService to recover the wrongly removed AdGroupAds because many AdGroup's were modified in unison (removing several Ads from each AdGroup). If the "Change History" service from the UI worked propertly I would still have a chance to recover the deleted Ads I'll be waiting for a reply on this issue if possible, Thanks El jueves, 11 de junio de 2015, 15:00:24 (UTC-3), sebastia...@despegar.com escribió: > > Hello, > I want to use the CustomerSyncService to recover deleted AdGroupAd's. I am > basically using a similar implementation as this one > <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201409/accountmanagement/GetAccountChanges.java> > . > > In a few lines, the program does the following: > - gets the AdwordsSession for a specific target account > - gets all campaign ids through CampaignService > - gets CustomerChangeData through CustomerSyncService > - gets CampaignChangeData > - gets AdGroupChangeData > - calls AdGroupChangeData#getChangedAds() > > However, the AdGroupChangeData is not showing anything. I am using a > DateTimeRange with my local timezone, and the dates are within the last > couple of weeks. > > I need to do this for several accounts and campaigns, because I had an > accident and thousands of AdGroupAds were wrongly removed. > > I also want to clarify that I tried downloading the change history of each > account from the UI but it was all to no avail. Every time I tried to > download the change history report, the downloaded CSV was truncated. This > is why I opted out of that possibility and decided to use > CustomerSyncService. > > Is there any way I can download reports which let me recover the wrongly > removed AdGroupAds? > Thanks, > > seb. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a48f5c7a-cbad-4f3a-9e32-55375cd1e0e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.