Which url to call AdWords and BigQuery from ads script ( w/ a service account)

15 views
Skip to first unread message

EladB

unread,
Jun 5, 2021, 8:39:27 PM6/5/21
to AdWords API and Google Ads API Forum
Hi,

I want to write an Ads-script to call GoogleAds url nad BQ url using a service account.

I saw this code. 
Are my urls to the GAds and BQ api correct?


Thanks!

=====================
  // Natural Language API Sentiment URL
  var url =
  
  
  
  
  var options = {
    method: 'POST',
    contentType: 'application/json',
    payload: JSON.stringify(body)
  };
  var response = authUrlFetchApp.fetch(url, options);
  var result = JSON.parse(response.getContentText());
  Logger.log(result);
  if (result.entities) {
    // return a list of identified entities
    return result.entities;
  }
  throw Error('No entities response returned');
}

Google Ads API Forum Advisor

unread,
Jun 9, 2021, 10:33:18 PM6/9/21
to adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

Please note that this forum is dedicated for Google Ads API / AdWords API related concerns only. With this, our team can only provide support also on the said APIs only.

That being said, since it appears that your concern is Google Ads scripts related, then I would suggest posting your concern here instead to get support from the more equipped team that can provide assistance here.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I0ZqH:ref
Reply all
Reply to author
Forward
0 new messages