توصیهها بهطور خودکار توسط Google Ads تولید میشوند و ایدههایی برای راههایی برای بهینهسازی حساب شما، مانند افزایش بودجه کمپین برای یک کمپین محدود یا با افزودن کلمات کلیدی مرتبط، ارائه میدهند. فهرست کامل انواع توصیهها را در اسناد Google Ads API مشاهده کنید.
بازیابی توصیه ها
برای بازیابی توصیهها، از انتخابگر AdsApp.recommendations() استفاده کنید، که به طور مشابه با انتخابگرهای دیگر کار میکند و به شما امکان میدهد شرایطی را در مورد نوع توصیههایی که باید بازگردانید مشخص کنید:
constselector=AdsApp.recommendations().withCondition('recommendation.type IN (CAMPAIGN_BUDGET)');constrecommendations=selector.get();
توصیه ها را اعمال کنید
هنگامی که توصیه ها را واکشی کردید، آنها را به این صورت اعمال کنید:
for(constrecommendationofrecommendations){// Perform whatever check here that works for your use case.// You can also potentially skip this step if you've sufficiently narrowed// down what recommendations you're selecting initially with customized// withCondition clauses in the previous step.if(shouldApply(recommendation)){recommendation.apply();}}
تاریخ آخرین بهروزرسانی 2025-03-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-03-04 بهوقت ساعت هماهنگ جهانی."],[[["Google Ads automatically generates recommendations to optimize your account, including suggestions like budget increases and keyword additions."],["You can retrieve specific recommendations using the `AdsApp.recommendations()` selector and filtering by recommendation type."],["Before applying a recommendation, ensure it aligns with your campaign goals and advertising policies, especially when adding new keywords."],["Applying recommendations is done using the `apply()` method after fetching and potentially filtering them."]]],[]]