Hi,
Thank you for reaching out to the Google Ads Scripts support team.
I would suggest that you create a separate loop for PMax and standard campaign types. Also, to set a target roas bidding amount, use below methods.
Standard campaigns: AdsApp.CampaignBidding.setTargetRoas(targetRoas) PMax campaigns: AdsApp.PerformanceMaxCampaignBidding.setTargetRoas(targetRoas)
I would recommend that you refer to the AdsApp.CampaignBidding and AdsApp.PerformanceMaxCampaignBidding documents for more information.
I hope this helps! Kindly get back to us if the issue still persists.
![]() |
Google Ads Scripts Team |
I tried implementing a separate loop, but the bug still seems to be present. The bug causes the target to be changed in some accounts, but not in all. Therefore, not in all campaigns.
I am sharing the code below:
https://pastebin.com/GGm7rPrV
In the following image, you can see the infinite loop:
What do you suggest I do?
Thank you, Salvatore
Hi,
In order to investigate the issue further, could you please provide us with the below details?
--
-- 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 the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/ik_WT000000000000000000000000000000000000000000000SGTV4A008JHSBntaTaeEJ6MRLMrvbA%40sfdc.net.