*Any examples, tutorials or tips to use the API to automate changes based on certain conditions?*
*For example: Pause all ads that have less than 100 clicks in the last year.* This kind of automation is a very common use case. And there are a lot of Google Ads Scripts for these automations (e.g. https://groups.google.com/g/adwords-scripts/c/0wTLmPmxIQY), but I haven't found any examples to do it with the API. I guess it will require something similar to the get_responsive_search_ads.py <https://github.com/googleads/google-ads-python/blob/main/examples/basic_operations/get_responsive_search_ads.py> example to get all the ads that fill the conditions required and then use something similar to pause_ad.py <https://github.com/googleads/google-ads-python/blob/main/examples/basic_operations/pause_ad.py> to pause the ads. But I guess you need some kind of loop/iterator to go through all the elements (in my example, pause all the ads that fill the conditions), so the code from pause_ad.py would have to be changed a lot (because that code seems to be only for a single ad). Is that the best solution? Or are there easier or more efficient ways to do this? Any docs or code examples that I can check about this? (I'm using Python, but examples from other languages would be OK too). I've managed to get the client library examples working separately, but I'm struggling to bring all the pieces together to make something that is really useful. Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/2cfcb125-4480-4790-b42a-12dafca6d065n%40googlegroups.com.