Hi, Thanks for your Response. I successfully implemented URL suffixes for Search and Display campaigns, but for some reason I'm encountering an issue when trying to apply them to Video campaigns.
Error: TypeError: videoAd.urls(...).setFinalUrlSuffix is not a function function main() { var customerIds = ["..."]; for (var i = 0; i < customerIds.length; i++) { var account = AdsManagerApp.accounts().withIds([customerIds[i]]).get(). next(); AdsManagerApp.select(account); Logger.log("Processing account: " + account.getCustomerId()); var query = ` SELECT campaign.id, campaign.name, campaign.status, campaign.advertising_channel_type FROM campaign `; var campaignIterator = AdsApp.report(query).rows(); processCampaigns(campaignIterator); } } function processCampaigns(campaignIterator) { var source = "google"; while (campaignIterator.hasNext()) { var row = campaignIterator.next(); var campaignId = row["campaign.id"]; var campaignName = row["campaign.name"]; var channelType = row["campaign.advertising_channel_type"]; if (channelType === "VIDEO") { var videoAdIterator = AdsApp.videoAds() .withCondition("CampaignId = " + campaignId) .get(); while (videoAdIterator.hasNext()) { var videoAd = videoAdIterator.next(); var videoName = videoAd.getName(); var finalSuffix = encodeURI( "utm_source=" + source + "&utm_medium=video" + "&utm_campaign=" + encodeURIComponent(campaignName) + "&utm_content=" + encodeURIComponent(videoName) + "&utm_term={keyword}" ); Logger.log("Final URL Suffix: " + finalSuffix); // Set the final URL suffix for the video ad videoAd.urls().setFinalUrlSuffix(finalSuffix); } } } } Google Ads API Forum Advisor schrieb am Montag, 2. Dezember 2024 um 20:50:50 UTC+1: > Hi, > > Thank you for reaching out to the Google Ads API support team. > > I would like to inform you that the finalUrlSuffix > <https://developers.google.com/google-ads/api/reference/rpc/v18/Campaign#final_url_suffix> > > in Google Ads can be applied to all campaign types. > > Hope this helps. If you have any more queries, please feel free to get > back to us. > > This message is in relation to case > "ref:!00D1U01174p.!5004Q02vGmzJ:ref" (ADR-00277410) > > Thanks, > > [image: Google Logo] Google Ads API Team > Feedback > How was our support today? > > [image: rating1] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=5004Q00002vGmzJ> > > [image: rating2] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=5004Q00002vGmzJ> > > [image: rating3] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=5004Q00002vGmzJ> > > [image: rating4] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=4&entry.295079254=5004Q00002vGmzJ> > > [image: rating5] > <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/formResponse?usp=pp_url&entry.141427034=5&entry.295079254=5004Q00002vGmzJ> > > > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 visit https://groups.google.com/d/msgid/adwords-api/aa05d0d2-e265-4f56-85e1-426307227f71n%40googlegroups.com.