Posts tagged with node.js

Problem: I can't figure out how, using the Node.js google-ads-api, to add a user to a Google Ads remarketing user list.

I can create the user list:

async createUserList() {     const mutation = await this.customer.userLists.create({         name: '<USERLIST_NAME>',         membership_life_span: 60,         membership_status: enums.UserListMembershipStatus.OPEN,         basic_user_list: {             actions: [{                 remarketing_action: '<REMARKETING_ACTION_RESOURCE_NAME>',             }]         }     })     console.log(`created userlist ${mutation.results[0]}`)     return mutation.results[0] } 

I'm still trying to read the Google Ads Api documentation to see if I'm misunderstanding the intended workflow with remarketing, but I do expect adding users to a user list programmatically to be a supported functionality.

I am trying to make a WhatsApp bot inspired by the functioning of Discord bots, the bot will work in WhatsApp groups.

I have looked up the official WhatsApp Business API but I am not sure that they will not approve my number as it is just a hobby project and not a proper "business".

There is an alternative though and that is the Twilio WhatsApp API. However, they provide you with a sandbox. I can interact with it in DMs but as the sandbox number is a business account, I cannot add it to a group like discord.

I intend to write a server in python or node.

Can anyone share a solution or workaround? Only if I could add the Twilio number to a group my problem will be solved. Though I am ready to use any other API/Solutions for this.

I'm running a node.js app on a VPS and my advertising for that app was stopped, because Google Adwords has flagged my site for malicious software.

I've contacted them and they said it was because of an image that was sourced from a malicious site. https://jloog.com/images/medieval-clipart-cup-19.jpg

Now I've put that link there myself, so it was not injected or anything. I just wanted to use that image, which I found through Google Images. So, I didn't even upload it to my server.

The link has now been removed for over two weeks, but after resubmitting my campaigns for approval, my site is still being flagged for the same reason. I searched in the shell with grep in my entire project but that link is nowhere in my code.

So what is causing the problem and how can I resolve this situation?

I am building a Node.js application that receives messages from WhatsApp via Twilio. Sending text messages is not a problem, but when I try to send the current location from the users WhatsApp account I cannot find the coordinates in the request object sent to the server.

This is what I am doing to see what is being sent to the app from Twilio.

app.post('/incoming', (req, res) => { var incomingMessage = req.body.Body; console.log(incomingMessage); }); 

When I share my current location with the app, the request body is empty.

Can anyone shed any light on this or explain how WhatsApp shares a users location within the app?

Thanks.