Hello Rohit, Yep, I just don't think there's anything specific that I can recommend--even if there is a current regex that's being used on the server-side, it's definitely subject to change, and using the methods that we provide for checking ads and criteria before submission is the only way to be sure that all requirements are meant before trying to upload them.
But, if you want to impose some general checking on your end, here are a few relevant links describing some policies that you should comply with, which should be current as of now: https://adwords.google.com.au/support/bin/answer.py?answer=6314 http://adwords.google.com/support/bin/static.py?page=guidelines.cs&topic=9271&subtopic=9280 Cheers, -Jeff Posnick, AdWords API Team On Dec 7, 11:35 am, Rohit <[EMAIL PROTECTED]> wrote: > Jeff: > > Seems like Nick would want to validate this on the client side even > before sending it to the server. > > If the checkAds() method internally used regex to validate each > property in the Ad definition, it would be useful to open that up to > API users (including us) so they can preform client side validation > before submitting a request to the AdWords API server(s). Agreed that > this wouldn't be a 'catch all' validation but some level of client > side validation (before submission to the server) almost always > improves user experience. > > - Rohit > > On Dec 4, 8:09 am, AdWords API Advisor <[EMAIL PROTECTED]> > wrote: > > > Hello Nick, > > > I don't have a catch-all regex for you, but I'd recommend that you > > make use of the checkAds() and checkCriteria() methods to validate > > your ads and criteria (or at least a subset of them that you think > > might have issues) before trying to upload them. The methods cost a > > fraction of what a request to add the ads or criteria costs, and they > > should flag policy errors or any other type of issue that would > > prevent them from being accepted. > > > Cheers, > > -Jeff Posnick, AdWords API Team > > > On Dec 3, 11:16 pm, Nick Retallack <[EMAIL PROTECTED]> wrote: > > > > What regular expression should I use to ensure my ad has a valid > > > displayUrl before I waste API points trying to upload it?- Hide quoted > > > text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
