how to use curl to create an customer

128 views
Skip to first unread message

陈以

unread,
Jan 28, 2021, 11:02:31 AM1/28/21
to AdWords API and Google Ads API Forum
Hi all:
I want to use cURL to send our request to Google Ads API, and I have 2 querstions. 
 looking forward for your answers.

1. What is the difference between the CustomerService and CustomerFeedService.
2. How can I make a CURL to create an customer? The product documentation on :  https://developers.google.com/google-ads/api/docs/account-management/create-account  tells us to use CreateCustomerClient method on the CustomerService rather than a "mutate" method, but we have to uses CURL to complete our mission, because our development language is C++, not access to the client libraries(which include Java,C#,PHP,Python,Ruby,Perl).
here's my code example:

 curl --request POST \
--header "Content-Type: application/json"  \
--header "Authorization: Bearer XXX"  \
--header "developer-token: kxILp-C_Bvxx" \
     --data @create_budget.json \
 
create_budget.json 
{
  operations:
  [
{
  create:
  {
name: "new budget 234",
amount_micros: "60000000"
  }
}
  ],
  "validate_only":"true"
}

We are expecting a reply, thank tou very much!


企业咚咚20210128235047.png

陈以

unread,
Feb 21, 2021, 10:32:45 PM2/21/21
to AdWords API and Google Ads API Forum
Is there anybody who can answer me? 
Expecting your allowance.
Reply all
Reply to author
Forward
0 new messages