Ad group status changed from enabled to paused .. but it's NOT

49 views
Skip to first unread message

Tomasz Iwaszkiewicz

unread,
Jun 18, 2019, 9:58:32 AM6/18/19
to Google Ads Scripts Forum
My script sends "PAUSE" signal to particular AdGroups. 
I receive the message Ad group status changed from enabled to paused

But AdGoups are still enabled eventually. 
Should I do something more than (adGroup.pause(); ) ? 



Zrzut ekranu 2019-06-18 o 15.54.54.png

Google Ads Scripts Forum Advisor Prod

unread,
Jun 18, 2019, 12:12:39 PM6/18/19
to adwords-scripts+apn2wqemec_qjcfa...@googlegroups.com, adwords-scripts+apn2wqemec_qjcfa...@googlegroups.co, adwords...@googlegroups.com
Hi Tomasz,

Can you please provide your CID and script name? We will need to look at the full script and check the account for reasons why the entity is becoming re-enabled (e.g. possible other automatic process enabling the entity).

Thanks,
Matt 
Google Ads Scripts Team

ref:_00D1U1174p._5001UBnxIQ:ref

Tomasz Iwaszkiewicz

unread,
Jun 18, 2019, 3:05:04 PM6/18/19
to Google Ads Scripts Forum on behalf of adsscriptsforumadvisor
Hi, 
my CID: 127-699-7041
theres only one script: 
Pause if temp high :  (scriptId=3399408)

Thank You for such a quick response.
Tom.


Wiadomość napisana przez Google Ads Scripts Forum on behalf of adsscriptsforumadvisor <adwords...@googlegroups.com> w dniu 18.06.2019, o godz. 18:12:

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/3kX3MWK6BkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/rwfmg000000000000000000000000000000000000000000000PTAYCX00DOz9VLhbRTOimSXIZUrmyw%40sfdc.net.

Google Ads Scripts Forum Advisor Prod

unread,
Jun 18, 2019, 3:34:58 PM6/18/19
to adwords...@googlegroups.com
Hello,

Looking at the change history, the source of the ad group pausing/enabling is the script you mentioned. The script does contain enabling and pausing conditions that are called from the function, start_stop_adgroups (temp), which is called on line 44. The condition for pausing or enabling within that function's definition is: 

  var campState = (temp > 24)? true : false  //line 71

The script runs hourly. If you do not want the enabling condition, you could remove the 'else' block on line 87.

Regards,

Tomasz Iwaszkiewicz

unread,
Jun 18, 2019, 4:06:02 PM6/18/19
to Google Ads Scripts Forum on behalf of adsscriptsforumadvisor
Line 87 is commented:   //adGroup.enable();
And line 67 changed to be always true
but it’s not the case. 

Clicking Preview and:
  • Script runs, 
  • pausing AdGrous, 
  • Reporting changes from enable to paused 
  • but all AdGrous are still green. 
 

Wiadomość napisana przez Google Ads Scripts Forum on behalf of adsscriptsforumadvisor <adwords...@googlegroups.com> w dniu 18.06.2019, o godz. 21:34:

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/3kX3MWK6BkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.

Google Ads Scripts Forum Advisor Prod

unread,
Jun 18, 2019, 4:18:45 PM6/18/19
to adwords...@googlegroups.com
Hello,

The script did not have these changes when I investigated an hour ago (e.g. commented out adGroup.enable) and the temp condition has been changed to '24' from '0'.  

If you clicked 'preview' instead of 'run' the changes won't take place. Preview mode simply tells you the changes that would have taken place if you chose to actually run the script (note that scripts services, such as spreadsheet app or mail app, will execute even in preview mode). 

Tomasz Iwaszkiewicz

unread,
Jun 18, 2019, 4:25:59 PM6/18/19
to Google Ads Scripts Forum on behalf of adsscriptsforumadvisor
OK, I clicked Run without preview instead of Preview:

And log contains:

6/18/2019 10:20:32 PM
AdGroup Name: Worki. Enabled: false


But it’s not true. Adgroup Worki is Enabled = green. 
Should i wait for the effect to be visible?

Tom.




Wiadomość napisana przez Google Ads Scripts Forum on behalf of adsscriptsforumadvisor <adwords...@googlegroups.com> w dniu 18.06.2019, o godz. 22:18:

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/3kX3MWK6BkQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.

Tomasz Iwaszkiewicz

unread,
Jun 18, 2019, 4:41:09 PM6/18/19
to Google Ads Scripts Forum on behalf of adsscriptsforumadvisor
OK. I see it. 
I have to force refresh the view by clicking rounded arrow. 

It works. Thank you. 
Simple lesson learned: preview is not changing the state. 

Tom.

Wiadomość napisana przez Tomasz Iwaszkiewicz <tom...@iwaszkiewicz.eu> w dniu 18.06.2019, o godz. 22:25:
Reply all
Reply to author
Forward
0 new messages