Skip to content

Commit 294cd74

Browse files
Updating component code to use PD Proxy for requests. (#11842)
* Updating component code to use PD Proxy for requests. * Version bump.
1 parent ce5586d commit 294cd74

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

components/google_ads/actions/add-contact-to-list-by-email/add-contact-to-list-by-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "google_ads-add-contact-to-list-by-email",
66
name: "Add Contact to Customer List by Email",
77
description: "Adds a contact to a specific customer list in Google Ads. Lists typically update in 6 to 12 hours after operation. [See the documentation](https://developers.google.com/google-ads/api/docs/remarketing/audience-segments/customer-match/get-started)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
googleAds,

components/google_ads/google_ads.app.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,23 @@ export default {
2929
},
3030
methods: {
3131
_baseUrl() {
32-
return "https://googleads.googleapis.com";
32+
return "https://eolid4dq1k0t9hi.m.pipedream.net";
3333
},
3434
_headers() {
3535
return {
3636
"Authorization": `Bearer ${this.$auth.oauth_access_token}`,
37-
"developer-token": `${this.$auth.developer_token}`,
3837
};
3938
},
4039
_makeRequest({
41-
$ = this, path, ...opts
40+
$ = this, ...opts
4241
}) {
43-
return axios($, {
44-
url: this._baseUrl() + path,
42+
const googleAdsRequest = {
4543
headers: this._headers(),
4644
...opts,
45+
};
46+
return axios($, {
47+
url: this._baseUrl(),
48+
data: googleAdsRequest,
4749
});
4850
},
4951
addContactToCustomerList({

components/google_ads/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/google_ads",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Google Ads Components",
55
"main": "google_ads.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)