Hello,
You could use below Java example code to handle the
CustomerSyncError.INVALID_CAMPAIGN_ID error gracefully.
try{
accountChanges = customerSyncService.get(customerSyncSelector);
}catch (ApiException e) {
for (ApiError error : e.getErrors()) {
if (error instanceof CustomerSyncError && ((CustomerSyncError)
error).getReason().equals(CustomerSyncErrorReason.INVALID_CAMPAIGN_ID)) {
CustomerSyncError customerSyncError = (CustomerSyncError) error;
//System.out.println("Catching
CustomerSyncError.INVALID_CAMPAIGN_ID");
}
}
}
Cheers,
Umesh, AdWords API Team.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/e655f41f-9e95-4cc6-b6f2-de9b7bd4723f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.