Hello, Well, it's a bit of a hack, but if you have a list of criteria ids and wanted to determine which of them don't belong in a given ad group, you could make an updateCriteria() call and only set the criterionType, id, and adGroupId properties on each in the array of criteria you pass in (only set those three properties to ensure that nothing else, like bids or destination URLs, get updated accidentally). Your call will fail and you should get back a SOAP fault listing all the invalid criterion ids in your request. I'd recommend throwing one dummy criterion id in there just for good measure, to ensure that the updateCriteria() call does in fact fail on the off chance that all your other ids are valid. You'll get charged 3 API units for every invalid criterion id you pass in.
Of course, you should really run some reports and make sure that you get your local data synced up! Cheers, -Jeff Posnick, AdWords API Team On Jan 22, 1:20 am, worldtourism <[email protected]> wrote: > Hi, > > I am trying to set up automated daily checking of my keywords throught > the use of GetCriterionStats > but when i try to use GetCriterionStats of one of my adgroups i get an > error saying criterion does not exist. > As my list is really large i dont want to go through them one by one > to see when is the wrong criterion(my local db > must have gotten out of sync with the live one) > > Is there anyway to query the api and see which criteria do not belong > to an adgroup? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
