@elbwalker/destination-web-google-ads
Version:
Google Ads web destination for walkerOS
64 lines (50 loc) • 1.56 kB
Markdown
Made to be used with
[](https://www.npmjs.com/package/@elbwalker/walker.js) from
[](https://github.com/elbwalker/walkerOS).
More detailed information and examples can be found in the
[](https://www.elbwalker.com/docs/destinations/google-ads).
Start by setting up the config for the destination. Optional fields as comments.
Destinations can be used via node or directly in the browser.
Learn more about the
[](https://www.elbwalker.com/docs/destinations/) in general and read
the detailled
[](https://www.elbwalker.com/docs/destinations/google-ads#configuration).
```js
const config = {
custom: {
conversionId: 'AW-123456789',
currency: 'EUR',
defaultValue: 1,
},
mapping: {
// e.g. order
entity: {
// e.g. complete
action: {
custom: {
label: 'abc',
id: 'order_id',
value: 'revenue',
},
},
},
},
};
```
```sh
npm i --save @elbwalker/destination-web-google-ads
```
```ts
import { elb } from '@elbwalker/walker.js';
import destinationGoogleAds from '@elbwalker/destination-web-google-ads';
elb('walker destination', destinationGoogleAds, config);
```
Feel free to contribute by submitting an
[](https://github.com/elbwalker/walkerOS/issues), starting a
[](https://github.com/elbwalker/walkerOS/discussions) or getting in
[](https://calendly.com/elb-alexander/30min).