Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Agregue campañas y sus palabras clave en la matriz

Estoy tratando de exportar palabras clave y campañas de mis anuncios de Google con las siguientes condiciones:

  • clics > 10
  • conversiones = 0
  • intervalo de fechas = este mes

Aquí está el código:

 function main() { var spreadsheetUrl = 'FINAL URL'; var spreadsheet = SpreadsheetApp.openByUrl(spreadsheetUrl); var ss = spreadsheet.getSheetByName('Sheet1'); ss.clear(); var sheetarray = [ ['keyword', 'campaign name', 'clicks', 'conversions'] ]; var keywords = AdsApp.keywords() .withCondition("Clicks > 10") .withCondition("Conversions = 0") .forDateRange("THIS_MONTH") .get(); var campaigns = AdsApp.campaigns() .get(); while (keywords.hasNext()) { var keyword = keywords.next(); var campaign = campaigns.next(); sheetarray.push([ keyword.getText(), campaign.getName(), keyword.getStatsFor("THIS_MONTH").getClicks(), keyword.getStatsFor("THIS_MONTH").getConversions() ]); }

El problema que tengo es que las campañas no son en las que están las palabras clave.

¿Alguien puede ayudar?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!