सुझाव

सुझाव, Google Ads की ओर से अपने-आप जनरेट होते हैं. इनसे आपको अपने खाते को ऑप्टिमाइज़ करने के तरीके के बारे में आइडिया मिलते हैं. जैसे, किसी सीमित कैंपेन के लिए बजट बढ़ाना या काम के कीवर्ड जोड़ना. सुझावों के टाइप की पूरी सूची देखने के लिए, Google Ads API का दस्तावेज़ देखें.

सुझाव पाना

सुझाव पाने के लिए, AdsApp.recommendations() सिलेक्टर, का इस्तेमाल करें. यह अन्य सिलेक्टर की तरह ही काम करता है. इसकी मदद से, यह तय किया जा सकता है कि किस तरह के सुझाव दिखाए जाएं:

const selector = AdsApp.recommendations()
  .withCondition('recommendation.type IN (CAMPAIGN_BUDGET)');
const recommendations = selector.get();

सुझावों को लागू करना

सुझाव पाने के बाद, उन्हें इस तरह लागू करें:

for (const recommendation of recommendations) {
  // 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();
  }
}