RE: The endpoint and JSON data when making a POST request using curl

2019-06-04 Thread Google Ads API Forum Advisor Prod
Hello, Glad you were able to create the campaign. The end point for Google Ads API is googleads.googleapis.com and the code sample for CURL operations is not yet available. I will update my team regarding your interest. Also, we see most of the advertisers using the client libraries that are pr

Re: The endpoint and JSON data when making a POST request using curl

2019-06-03 Thread f s
Thank you so much, Sai. I was able to create an empty campaign. I've put the successful code below. const rp = require('request-promise-native'); const customer_id = 1234567890; const developerToken = '***'; const loginCustomerId = 9876543210; const accessToken = '**

Re: The endpoint and JSON data when making a POST request using curl

2019-06-03 Thread f s
Thanks a lot, and I'm sorry, but I deleted the previous question for a reason. Even if you have sample code, it's hard work... 2019年6月4日火曜日 4時57分27秒 UTC+9 adsapiforumadvisor: > > Hello, > > I see that your request needed below corrections: > >1. The campaign_budget should be a resource name

RE: The endpoint and JSON data when making a POST request using curl

2019-06-03 Thread Google Ads API Forum Advisor Prod
Hello, I see that your request needed below corrections: The campaign_budget should be a resource name instead of the actual budget, that says you have to create the budget before even creating the campaign and use that resource name here in the campaign creation. There is no labels field in th

Re: The endpoint and JSON data when making a POST request using curl

2019-06-02 Thread f s
I'll show you all of the code. 'use strict'; const rp = require('request-promise-native'); const accessToken = ''; // replace correctly const customer_id = 1234567890; // replace correctly const putCampaign = async () => { try { const url = `https://googleads.googleapis.com/v1/cus

Re: The endpoint and JSON data when making a POST request using curl

2019-06-02 Thread f s
I'll show you all of the code. 'use strict'; const rp = require('request-promise-native'); const accessToken = ''; // replace correctly const customer_id = 1234567890; // replace correctly const putCampaign = async () => { try { const url = `https://googleads.googleapis.com/v1/cus

Re: The endpoint and JSON data when making a POST request using curl

2019-06-02 Thread f s
I'll show you all of the code via node.js. 'use strict'; const rp = require('request-promise-native'); const accessToken = ''; // replace correctly const customer_id = 1234567890; // replace correctly const putCampaign = async () => { try { const url = `https://googleads.googleap

Re: The endpoint and JSON data when making a POST request using curl

2019-06-02 Thread f s
I read the indicated document and tried the following code. const url = `https://googleads.googleapis.com/v1/customers/${customer_id}/campaignBudgets:mutate` ; const operations = { 'operations': [ { 'create': { 'name': 'new Budgets 1', 'amount_micros': 10, 'total_amount_micros': 10,

RE: The endpoint and JSON data when making a POST request using curl

2019-05-30 Thread Google Ads API Forum Advisor Prod
Hello, Looks like you are missing the required parameters while creating the campaigns. The date should be MMDD format, the status should be PAUSED, campaign_budget and bidding_strategy_type fields also required to create the campaign. The complete example to create campaigns via CURL is no

Re: The endpoint and JSON data when making a POST request using curl

2019-05-29 Thread revarasi Sofa
service korsi sopa dibandung Pada tanggal Kam, 30 Mei 2019 10.25, f s menulis: > I must use Node.js, curl and JSON, NOT library. So, I need endpoint and > JSON data. > I'm coding with a test account and I'd like to make one campaign. Could > you give me some examples of endpoint and JSON data? >