Skip to content

Commit 594b3db

Browse files
Update README.md
1 parent 07ba96d commit 594b3db

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

components/google_ads/README.md

+2-16
Original file line numberDiff line numberDiff line change
@@ -108,21 +108,9 @@ const resp = await pd.makeProxyRequest(
108108

109109
### Using the Connect REST API
110110

111-
```javascript
112-
# First, obtain an OAuth access token to authenticate to the Pipedream API
113-
114-
curl -X POST https://api.pipedream.com/v1/oauth/token \
115-
-H "Content-Type: application/json" \
116-
-d '{
117-
"grant_type": "client_credentials",
118-
"client_id": "{your_oauth_client_id}",
119-
"client_secret": "{your_oauth_client_secret}"
120-
}'
121-
122-
# The response will include an access_token. Use it in the Authorization header below.
123-
124-
# Base64 encode the Pipedream endpoint for Google Ads: https://googleads.m.pipedream.net
111+
- Remember to use the Base64 encoded Pipedream endpoint for Google Ads: https://googleads.m.pipedream.net
125112

113+
```bash
126114
curl -X POST "https://api.pipedream.com/v1/connect/{your_project_id}/proxy/{url_safe_base64_encoded_url}?external_user_id={external_user_id}&account_id={apn_xxxxxxx}" \
127115
-H "Authorization: Bearer {access_token}" \
128116
-H "x-pd-environment: {development | production}" \
@@ -131,6 +119,4 @@ curl -X POST "https://api.pipedream.com/v1/connect/{your_project_id}/proxy/{url_
131119
"method": "GET",
132120
# "data": {} # If you need to send a body with a POST request, define it here
133121
}'
134-
135-
# Parse and return the data you need
136122
```

0 commit comments

Comments
 (0)