Placeholder Image

字幕列表 影片播放

由 AI 自動生成
  • (gentle music)

    (溫柔的音樂)

  • - Unique to Google, it's possible to write your own code

    - 谷歌的獨特之處在於,可以編寫自己的代碼

  • and execute it within the Google Ads platform

    並在谷歌廣告平臺內執行

  • to automate your campaigns.

    以使你的活動自動化。

  • Let's see how this works.

    讓我們看看這是如何運作的。

  • Let me click here into Tools and Settings.

    讓我點擊這裡進入工具和設置。

  • Under BULK ACTIONS, we're going to go to Scripts.

    在BULK ACTIONS下,我們要去看Scripts。

  • This is where you can see all the different scripts

    在這裡你可以看到所有不同的腳本

  • that you have running, as well as how often they run,

    以及它們運行的頻率。

  • and whether they're enabled.

    以及它們是否被啟用。

  • You can also click in Options

    你也可以在選項中點擊

  • and then choose to Run the script or Edit it.

    然後選擇運行該腳本或編輯它。

  • We're going to create a new script,

    我們要創建一個新的腳本。

  • and we're going to use this script right here.

    我們將在這裡使用這個腳本。

  • Don't worry too much if you don't know how to code.

    如果你不知道如何編碼,也不要太擔心。

  • This is really just to show you how the platform works,

    這其實只是為了向你展示該平臺的工作原理。

  • so you can work with the developer

    所以你可以與開發商合作

  • to write scripts for you.

    來為你寫腳本。

  • Every script has a few different sections.

    每個劇本都有幾個不同的部分。

  • So first is the function, and that is called main.

    是以,首先是函數,這被稱為main。

  • It's always called main

    它總是被稱為主

  • because that's what Google looks for to execute the script.

    因為那是谷歌尋找的執行腳本的方式。

  • Within the function, you have this section here,

    在這個功能中,你有這個部分。

  • which is the main script.

    這是主腳本。

  • First thing you look at is the selection.

    你看的第一件事是選擇。

  • So this is selecting all of the campaigns

    是以,這是在選擇所有的運動

  • within the AdsApp, which is the Google API.

    在AdsApp內,也就是谷歌的API。

  • And then we're going to order them by cost descending

    然後,我們將按成本降序排列它們

  • for the date range of yesterday,

    為昨天的日期範圍。

  • and we're going to limit this query to 10

    我們將把這個查詢限制在10個以內

  • and then just get all of those campaigns.

    然後就得到所有這些運動。

  • The logger is something that allows you

    記錄器是一種可以讓你

  • to print to the console so you can debug

    來打印到控制檯,這樣你就可以調試

  • and see what the script has actually done for you.

    並看看這個腳本究竟為你做了什麼。

  • Then this final section here is a loop, a while loop.

    然後這裡的最後一節是一個循環,一個while循環。

  • So it's saying while the campaigns have next,

    所以它說,雖然運動有下一步。

  • meaning when there is another campaign in the list,

    指的是當列表中存在另一個運動時。

  • then select that campaign and then log

    然後選擇該活動,然後登錄

  • the cost for that campaign yesterday.

    昨日,該運動的費用。

  • Okay, so don't worry too much if you didn't follow along.

    好吧,所以如果你沒有跟上,也不要太擔心。

  • This is just how a script typically looks.

    這只是一個腳本的典型外觀。

  • So if I copy this script and then go to Scripts again,

    是以,如果我複製這個腳本,然後再次進入腳本。

  • click New Script.

    單擊 "新腳本"。

  • So now I have my unnamed script

    所以現在我有了我的未命名的腳本

  • I need to copy and paste in here.

    我需要複製和粘貼在這裡。

  • And again, make sure that it's in this function main.

    再說一遍,確保它是在這個函數main中。

  • The next thing I need to do is AUTHORIZE,

    我需要做的下一件事是AUTHORIZE。

  • and then click Allow.

    然後點擊允許。

  • That's going to let you run the script ads yourself.

    這將會讓你自己運行腳本廣告。

  • Once you have a script,

    一旦你有了一個腳本。

  • you can preview the script to see what it would do.

    你可以預覽該腳本,看看它將做什麼。

  • So let's click PREVIEW.

    是以,讓我們點擊PREVIEW。

  • You can see that this script is running here.

    你可以看到,這個腳本正在這裡運行。

  • If we go to the LOGS,

    如果我們去看LOGS。

  • we can actually see what it's printed out.

    我們實際上可以看到它打印出來的東西。

  • So as expected, first, it printed out 10 campaigns

    是以,正如預期的那樣,首先,它打印出10個運動

  • with most costs yesterday,

    與昨天的大部分費用。

  • and then for every campaign with cost descending

    然後對每一個運動的成本遞減

  • printed out the cost.

    打印出來的費用。

  • So we can see here US Agency Types.

    是以,我們可以在這裡看到美國的機構類型。

  • It was the campaign that spent the most yesterday.

    這是昨天花費最多的競選活動。

  • We only scratched the surface here,

    我們在這裡只觸及了表面。

  • but you can imagine there are infinite possibilities

    但你可以想象有無限的可能性

  • for automating your work with the Google Ads scripts.

    用於使你的工作與谷歌廣告腳本自動化。

  • So many possibilities for automation,

    這麼多自動化的可能性。

  • it can be hard to know what to start with.

    很難知道該從什麼開始。

  • In this lesson, we're going to cover

    在本課中,我們將介紹

  • some of the most common types of scripts.

    一些最常見的腳本類型。

  • So the first one we're going to look at is a Link Checker.

    是以,我們要看的第一個項目是鏈接檢查器。

  • What this does is when you configure it,

    這樣做的目的是當你配置它的時候。

  • it looks through your whole account,

    它查看了你的整個賬戶。

  • checks the links that you're linking to from your ads,

    檢查你的廣告所鏈接的鏈接。

  • and then makes sure that they're not broken.

    然後確保它們不被破壞。

  • If it leads to a 404 or error page,

    如果它導致一個404或錯誤頁面。

  • then it's going to flag that immediately to you,

    那麼它就會立即向你標示出來。

  • so you can fix your campaigns

    所以你可以修復你的運動

  • and not waste your advertising budget.

    而不是浪費你的廣告預算。

  • In order to use these scripts,

    為了使用這些腳本。

  • you just need to scroll down to the bottom,

    你只需要向下滾動到底部。

  • and you can see the whole source code here.

    而且你可以在這裡看到整個源代碼。

  • You can copy it here and then paste that

    你可以把它複製到這裡,然後再粘貼

  • into your Google Ads scripts.

    進入你的谷歌廣告腳本。

  • Follow the instructions for set up and you should be good.

    按照說明進行設置,你應該是好的。

  • The next one we're going to look at

    接下來我們要看的是

  • is the Account Anomaly Detector.

    是賬戶異常檢測器。

  • What this does is tell you if performance

    它的作用是告訴你,如果性能

  • has shifted drastically up or down in specific campaigns.

    在特定的運動中出現了急劇上升或下降的變化。

  • Again, you can configure this how you like.

    同樣,你可以按你喜歡的方式進行配置。

  • There are lots of different interesting features.

    有很多不同的有趣功能。

  • If you follow this set of instructions

    如果你遵循這套訓示

  • and copy and paste the script,

    並複製和粘貼該腳本。

  • it's going to work in your account.

    它將會在你的賬戶中發揮作用。

  • The final one we're going to look at is the Ad Customizer.

    我們要看的最後一個是廣告定製器。

  • So this one's a bit more advanced.

    是以,這個人有點高級。

  • What this allows you to do is to dynamically update

    這允許你做的是動態地更新

  • values in your ad text.

    你的廣告文本中的價值。

  • So for example, if you were selling concert tickets,

    是以,舉例來說,如果你在銷售音樂會門票。

  • you could automatically update the prices

    你可以自動更新價格

  • as they change in your product feed.

    因為它們在你的產品資料中發生了變化。

  • This one is a bit more difficult to set up,

    這個是比較難設置的。

  • but Google has written some pretty interesting information

    但谷歌寫了一些相當有趣的資訊

  • about how this works.

    關於這一點是如何工作的。

  • If you can follow along, great.

    如果你能跟上,太好了。

  • If not, then I recommend talking to a developer

    如果沒有,那麼我建議與開發人員交談

  • who can help you.

    誰可以幫助你。

  • If you start with these three scripts,

    如果你從這三個腳本開始。

  • you already have a pretty good foundation to build on

    你已經有了一個相當好的基礎,可以在此基礎上繼續發展。

  • for further Google Ads automation.

    以進一步實現谷歌廣告自動化。

  • (casual music)

    (休閒音樂)

(gentle music)

(溫柔的音樂)

字幕與單字
由 AI 自動生成

單字即點即查 點擊單字可以查詢單字解釋