@pipedream/google_ads 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export default {
5
5
  key: "google_ads-add-contact-to-list-by-email",
6
6
  name: "Add Contact to Customer List by Email",
7
7
  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",
9
9
  type: "action",
10
10
  props: {
11
11
  googleAds,
@@ -29,21 +29,23 @@ export default {
29
29
  },
30
30
  methods: {
31
31
  _baseUrl() {
32
- return "https://googleads.googleapis.com";
32
+ return "https://eolid4dq1k0t9hi.m.pipedream.net";
33
33
  },
34
34
  _headers() {
35
35
  return {
36
36
  "Authorization": `Bearer ${this.$auth.oauth_access_token}`,
37
- "developer-token": `${this.$auth.developer_token}`,
38
37
  };
39
38
  },
40
39
  _makeRequest({
41
- $ = this, path, ...opts
40
+ $ = this, ...opts
42
41
  }) {
43
- return axios($, {
44
- url: this._baseUrl() + path,
42
+ const googleAdsRequest = {
45
43
  headers: this._headers(),
46
44
  ...opts,
45
+ };
46
+ return axios($, {
47
+ url: this._baseUrl(),
48
+ data: googleAdsRequest,
47
49
  });
48
50
  },
49
51
  addContactToCustomerList({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/google_ads",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pipedream Google Ads Components",
5
5
  "main": "google_ads.app.mjs",
6
6
  "keywords": [