Hi All,
Thank you for reaching out to the Google Ads Scripts Forum Channel.
@Sigurd - Thank you for providing your insights to this.
@Antoine - I believe Sigurd’s recommendation is correct. You would need to use specific selectors for the different types of campaigns Google Ads Scripts supports. You may find them in the documentation here: https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp.
Upon checking the error you encountered, I would recommend to follow the sample implementation found in the documentation here <https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_performancemaxcampaignselector>. The structure of the selector (or in your case, the iterator) should have a small `p` at the front of the word `performance`. Kindly refer to the snippet of code below:
var campaignIterator = AdsApp.performanceMaxCampaign()
.withCondition("Name = '" + campaignName + "'")
.get();
Let us know if you encounter any further issues or have any clarifications. If an error is encountered again, kindly provide your Google Ads account ID as well as the name of the script and a screenshot of the error so we’re able to further assist you. Kindly scrub any private data when posting information or images here as this forum is public.
![]() |
Google Ads Scripts Team |
Hi Antoine,
Kindly disregard the snippet of code that was previously sent and please refer to the snippet of code below:
var campaignIterator = AdsApp.performanceMaxCampaigns()
.withCondition("Name = '" + campaignName + "'")
.get();
Again, let us know if you encounter any further issues or have any clarifications. If an error is encountered again, kindly provide your Google Ads account ID as well as the name of the script and a screenshot of the error so we’re able to further assist you. Kindly scrub any private data when posting information or images here as this forum is public.


--
-- 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/mpG5naLkUsA/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/CbHfA000000000000000000000000000000000000000000000RX07TJ00GX1ETyaFQqKRlsiItH3NuA%40sfdc.net.
Antoine Paulet | Labelium Senior Director Media
460, rue Saint Catherine O., Suite 510, Montréal, QC H3B 1A7
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/a8abeaad-592e-48b5-95ea-49b47dd90b94n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/923997d8-1eff-4513-abd7-0bdbe05d0bf6n%40googlegroups.com.
--
-- 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/4bd87e90-7eec-48e8-8682-91417b53ca64n%40googlegroups.com.