How to pass the search query to the landing page URL of a Google Ads (search) - google-ads-api

When a user clicks a google ad, then I would like to pass the search query to the landing page via the utm_term parameter.
User goes to www.google.de and searches for "development software grails company ny"
Our google Ad shows, when the search query contains "software development"
The user clicks the Ad and is being send to http://www.ourcompany.com/?utm_term=development+software+grails+comapny+ny
The problem here is, that I can't find the value track variable which saves the search query and I think none exists. I only found {keyword} however, that will only report the keyword against which the search query matched succesfully.
In https://support.google.com/google-ads/answer/6305348?hl=en there is no such variable, which refers to the search query.
Also on this page https://support.newengen.com/hc/en-us/articles/360014178033-Understanding-UTMs-for-Search it does not report one. Only Microsoft bing seems to have one called {SearchQuery}.
Does google allow to capture the "search query" of the user and pass it to the landing page of the google ad or is this simply not possible???

The only Google Ads Value Track parameter you can use for URL parameters to used by Google Analytics for example is {keyword}.
It isn't exactly the query that was typed by the user, but the keyword that fired your Ad to show up, thus the keyword / expression you have been bidding on for that click.
The exact search query typed by the end user isn't available for privacy reasons (you shouldn't be able to match a visit on your site with an exact search query). However you keep getting aggregates in the Google Ads Search Term report https://support.google.com/google-ads/answer/2472708?hl=en
Bing Ads / Microsoft Advertising offers the same feature set with the same limitation through the {keyword} parameter https://help.ads.microsoft.com/#apex/3/en/56799/2

Related

How can I change accounts when I am trying to open up a restricted Google Form?

My web browser is logged into multiple Google accounts and I have a restricted Google Form URL like this that I need to open with a specific account.
https://docs.google.com/forms/d/e/XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx/viewform
Google Forms does not have a UI method to switch accounts like many of their other products and it will always try to open the form with the default account (the first one that you authenticated against in your web browser).
Is there a way to make it open in the right account?
As it turns out there is, although this is not apparent anywhere on Google's help site from what I could find.
If you modify the URL and add u/1/ immediately after https://docs.google.com/forms/ then you will be logged into the form using the second Google account that you are authenticated against in your browser.
Note: You will be redirected during this process, so the final URL in your browser will look a little different, but you should be connected to the form with the right account.
https://docs.google.com/forms/u/1/d/e/XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx/viewform
You can change that number to match whichever account that you want to use.
Not sure how to determine the account number?
Look at your Google Mail URL for the account you want. It will look something like this (and has the number you need in it): https://mail.google.com/mail/u/0/#inbox
Also, remember that your Google accounts start counting from 0. So, your first account is 0, your second one is 1, etc.

Google multiple accounts - In URL selection by email instead of by user number

When accessing multiple Google accounts from the browser, with multiple accounts logged in, Google will allow selecting the proper account using a number that identifies the chronologically logged in user, with the syntax:
https://<service-name>/u/<user-number>/
For instance:
https://mail.google.com/mail/u/0/#inbox
https://contacts.google.com/u/2/preview/all
I wonder if is there a way to use an URL where the user-number is replaced with the user email....
This seems to work for Gmail
On Desktop:
https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F%3Fauthuser%3DUSERNAME%40DOMAIN&service=mail&Email=USERNAME#DOMAIN
For mobile:
https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fmu%2Fmp%2F%3Fauthuser%3DUSERNAME%40DOMAIN&service=mail&Email=USERNAME#DOMAIN
Use this solution https://mail.google.com/mail/u/?authuser=user#gmail.com
Taken from this link https://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account/49168#49168
For Google calendar, use:
https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fb%2FUSERNAME%40DOMAIN&Email=USERNAME#DOMAIN
Thats what I got from altering the Riccardo's URL.

Twitter Phirehose - Getting a user stream of user other than the logged in user

$sc = new FilterTrackConsumer(OAUTH_TOKEN, OAUTH_SECRET, Phirehose::METHOD_FILTER);
$sc->setTrack(getTrackKeywords());
$sc->consume();
returns tweets that contain certain keywords, from any users.
$sc = new MyUserConsumer(OAUTH_TOKEN, OAUTH_SECRET);
$sc->consume();
returns tweets by the authorized (logged-in) user.
How do I get a stream that returns tweets tweeted by a specific user-- a user other than the one logged in / oauthed?
I think I found it.
$sc->setFollow(array(
1234, 5678, 901234573 //The user IDs of the twitter accounts to follow. All of
//these users must have given your app permission.
));
If you just want the public tweets of a set of users, take a look at the example/filter-track.php code that comes with Phirehose, but use setFollow() instead of setTrack(). The parameter to setFollow() is a list of Twitter IDs (Important: you have to convert screen names to twitter IDs yourself, first). More on that here: https://dev.twitter.com/docs/streaming-apis/parameters#follow
Note: Those users do not need to have given you permission: you are just seeing what they are showing to the world.
If you want to get all Twitter activity from a bunch of users then you need to use Twitter's Site Stream API. See example/sitestream.php in the Phirehose files for that. (I was the one who wrote that example, but I have never been able to test it: Site stream has been in closed beta since the Dawn Of Time, and it is so "closed" they even ignore our requests for a developer test account!)
The middle ground is the User Streams API. This allows you to get all Twitter activity but for just one user. If you can get each user to not just permission your app, but also give you their secret keys, you could run multiple Phirehose instances, one per user, and amalgamate all the data in a central database. This would be the poor-man's Site Streams :-)

Inviting *all* your friends to the Facebook Application

At the moment, using the requests dialogue I can get a multi-friend selector come up when I want the user to invite their friends to my application (that's when the "to" parameter isn't defined). On Chrome / Safari - this is a new window, but is there any way of having all of the users friends already selected?
Otherwise - is there a way to put together a request / invite to all of the users friends? I've tried getting an array of all the user's friends id's into the "to" parameter, but that gives an error on FB.
I've seen a few applications on facebook that do make it possible for the user to "select all" or "invite all" of their friends - http://blog.fbsocialapps.com/2011/10/5-ways-to-tune-your-requests-to-improve-the-virality-of-your-facebook-application/
Edit - As mentioned in the comments, I'm doing this on RoR using the omniauth gem + JS SDK. I was hoping that someone may have come across this problem, and can share a solution. My intentions are not to spam, but make it easier for the user to share the application if it's worth sharing.
Basically what the apps mentioned on the site you posted are doing is to use a custom friend selector (See also: Requests Pro-Tips, Pro-Tip 2: Create a Custom Multi-Friend Selector).
This is pretty easy and straight-forward – read the list of the users friends, generate the kind of HTML you’d like them to be displayed with (a Form, an UL, IMG elements with the friends profile picture, Checkboxes to select friends, …). If you don’t want to use the JS SDK, you can do that (reading friends list + generate the HTML) server-side as well in your RoR app.
Only the part where the user can select all friends at once is probably best done client-side – loop through all the HTML elements representing the listed friends, and check the checkboxes via script. Pretty easy if you are for example using jQuery or something.
(Of course this could also be done by just having a checkbox labeled “send request to all friends”, and see if this is checked server-side and then send request to all friends – but that would not provide direct feedback that all friends are selected now to the user on the page.)
Then you could just send the form with all/some friends marked in it to your server-side app, generate the URL for the request dialog there and put the friend’s ids into the toparameter, and redirect the user’s browser to it.

Google AdWords user conversions not showing up

I am running an AdWords campaign and I am having trouble with the conversion tracking code. Basically, I believe I know what the problem is but just do not know how to fix it. When a user signs up for the website, they have to fill out the registration form. After they fill out the registration form, it will take them to PayPal where they have to make their payment.
Once they make their payment on PayPal, the user is returned back to the website and greeted with a "Thank You for Registering Message". On this page, the "Thank You for Registering Message" page, I have the Google AdWords conversion tracking code installed at the bottom of the page before the closing </body> tag. For some reason though, in my AdWords account, the conversion data does not show up.
The reason I believe this is happening is because the user is leaving the website to checkout at PayPal and is then returned to our website. We know that the users are coming from our online AdWords campaigns but we would like to see this data in our reports. Is there a setting or something that needs to be added/changed to the conversion tracking code to get this to work?
When you provide your "thank you" page link to PayPal, try adding the utm_nooverride=1 parameter to the URL. This should tell Google Analytics not to give PayPal credit for the referral, but rather attribute the conversion to the original channel that it came from (in this case AdWords)
Example: http://example.com/purchase/thankyou.html?utm_nooverride=1
You need to exclude the paypal host from your google analytics settings, otherwise it si considered as the "referral".
settings / property / exclude hosts.

Resources