Forums › Forums › White Hat SEO › PPC › Google Ads – How to email notify when Ad Status changes to “Approved (Limited)”?
-
Google Ads – How to email notify when Ad Status changes to “Approved (Limited)”?
Posted by seohelper on May 12, 2020 at 5:23 amI know one can get notified when an ad is disaproved but is there a way to get notified when it’s status changes to Approved (but limited)?
DTBlocks replied 5 years ago 1 Member · 3 Replies -
3 Replies
-
MaximusDynasty
GuestMay 12, 2020 at 7:20 amI don’t think there is an option for that. You can write a custom script for that and set a frequency to it based on your need.
-
DTBlocks
GuestMay 12, 2020 at 7:36 amOnly ever done this for pausing/enabling ads, but you can check Rules.
-
Fackyall
GuestMay 12, 2020 at 12:05 pmSo, i was gonna post something about how that it can be done via scripts and link to the resources, but instead i just made the script.
This will get the job done, but the mail will be ugly as hell as i cant be arsed to format it properly for aesthetics, if you want and got some coding experience you can format it properly at the step before the mail is sent.
(right now it’ll just add a phrase (variable called result) into an array and then mail the array as is)
​
​
NOTE: This is a MCC-level script, if you want to run it at account-level (eg. add it to just a single account) comment out/remove lines 7,8 and 9 (below the comment).
I also recommend you add this script via another account so that the ‘from’ field in the mail is shown, else it’ll be a mail from you to you and that can mess things up (Have had problems with this in other cases)
​
​
>var email = ‘[[email protected]](mailto:[email protected])’
>
>var accname = “account name”
>
>//only add this if you want to run the script at MCC level (will only check the named account)
>
>var body = []
>
>function main(){
>
>//Remove these 3 lines if you dont want to run it at MCC-level eg. Inside a single account
>
>var accIte = AdsManagerApp.accounts().withCondition(‘Name = “+accname+”‘).get()
>
>var acc = [accIte.next](https://accIte.next)()
>
>[AdsManagerApp.select](//AdsManagerApp.select)(acc)
>
>var adIte = [AdsApp.ads](https://AdsApp.ads)().withCondition(‘CampaignStatus = ENABLED’).withCondition(‘AdGroupStatus = ENABLED’).get()
>
>while (adIte.hasNext()){
>
>var ad = [adIte.next](https://adIte.next)()
>
>var PAS = ad.getPolicyApprovalStatus()
>
>var cmp = ad.getBaseCampaign().getName()
>
>var adg = ad.getBaseAdGroup().getName()
>
>Logger.log(PAS)
>
>if (PAS == “APPROVED_LIMITED”){
>
>Logger.log(“found a limited ad in the adgroup “+adg+” in the campaign “+cmp)
>
>var result = “found a limited ad in the adgroup “+adg+” in the campaign “+cmp
>
>body.push(result)
>
>}
>
>}
>
>if (body.length > 0){
>
>MailApp.sendEmail(email, “Found limited ads in account “+AdsApp.currentAccount().getName(), body)
>
>}}​
holla at me if you got any questions or can’t get it to work.
​
edit:
Forgot to mention that you’d want to schedule this daily or even hourly (depending on how often you want to check)
Log in to reply.