How to extract conversion results based on different attribution models from the Google Adwords API - google-ads-api

I need to extract data from the adwords API to allow me to see the impact of different attribution models on conversion. I'm visualising my adwords data in the Klipfolio tool. My adwords account is set up to use the position based model but I'd also like to show last click conversions. This is essentially the data which is available in the adwords manager interface. I'm making my API calls via the supermetrics tool but can also create them directly in Klipfolio.
I'm not entirely familiar with the adwords query language but it does look like that there is a field for attribution type.
I've got as far as extracting data via this, using the Klipfolio interface:
SELECT
Date,Conversions,ConversionTypeName
FROM CAMPAIGN_PERFORMANCE_REPORT
DURING {date.add(-7).format('yyyyMMdd')},{date.today.format('yyyyMMdd')}
Exactly what I'm looking for is WHERE function where I can specify a different type of attribution model from the current.
I cannot obtain this data from our Google Analytics data as our conversion data from GA is, unfortunately, duplicated. We're using the adword's conversion tags de-duplication functions to get around this issue.
I'd be very grateful if anyone could share an example of how an API request could look with the attribution model field present or, indeed, give some feedback on whether this is even possible.

Hi you can find more information about the CAMPAIGN_PERFORMANCE_REPORT report here
You can find there the WHERE and SELECT fields like this:
SELECT CampaignName, Clicks, Impressions, Cost
FROM CAMPAIGN_PERFORMANCE_REPORT
WHERE Impressions < 10
DURING LAST_30_DAYS'
Usually the reason for the duplications it's the selection of SELECT parameters, but I cannot say this for sure without more information.

Related

Google Spreadsheet API Developer

I am no longer trying "to embed Google Maps so when I click on it opens Google Maps with 100 meters radius." I understand "Google Maps is not a part of the core services.
I am now trying to use a Work Around without Google Maps and am now asking for help with the "Work Around"....
I want to be able to use the method from this YouTube video to create the Search option another Google support team rep(Vienna) referred me to. In the video he did a search for shoes, shirts and dresses to find his customers. I want to do a search by zip and/or city and state to find mine...."Google Sheets - Search, QUERY function"===https://www.youtube.com/watch?v=VSGKO5gx974
I need help with this part as well with the Google Sheets function list. Which Google Sheet function or a combination of functions will allow me to do the 150-200 meters radius search within the "Google Sheets"? I am not tech savvy and need help to determine which ones can be used. Here are some of the functions that appear to be able to be used from what I think FLATTEN, FREQUENCY, LINEST, MAP, MMULT MDETERM , SUMX2PY2, DAVERAGE, DCOUNTA, DSTDEV, DVAR, DELTA, FILTER, SORT, SORTN, UNIQUE, QUERY, ISFORMULA, CELL, ect.... ===https://support.google.com/docs/table/25273?hl=en#query=
The Viennes also sent a link. https://developers.google.com/maps/documentation/routes_preferred/support#:~:text=Before%20you%20call%2C%20make%20sure,1%2D877%2D355%2D5787
As I was looking over the page, I came across the link to theMarketplace.
I was wondering which one of those databases could be used in the function to accomadate what I am trying to accomplish. Is it the Zip Code Tabulation Area, Geolocation API, CARTO, Roads, API, Routes API. Maps JavaScriprt API, ect....
With those three things listed above, I am sure something can come close to doing a radius/range search in Google Sheets.
If any, at least by the City and/or State search.
I am in need of a Developer, can you suggest one?

Difference in results between google ad words API and keyword planner console

I’m trying to forecast the value of various keywords using the google Adwords API, using the traffic estimator service. So far, the clicks, costs per click, and other metrics returned through the API don’t come anywhere close to those retrieved through the Keyword Planner console. There are several adjustable forecast parameters in the console such as language, location, and search network, and I tried to match these parameters in the API.
I'm wondering if there is some other element that needs to be adjusted that I'm missing. For example, the console gives you the option to "select an ad group" for the forecast, and I'm not sure how this would be applied within the API.
If you're interested in obtaining the results that the KW planner provides in the Ads web UI, you'd need to use the TargetingIdeaService instead of the TrafficEstimatorService.
There's also a reference document with some pointers explaining how to map the web settings with the TargetingIdeaSelector values available in the API.
Note that in my experience, you'll sometimes still find discrepancies between what's shown in the web UI and the stats provided by the API. This is also a recurring theme in the Ads API forum (just search for "TargetingIdeaService Difference" or similar).

Import data from another source into Adobe Analytics

I’m trying to tie data from another product with my data inside of Adobe Analytics.
We have Adobe Analytics javascript on our website collecting data and we use a third party tool to track how users interact with certain parts of the website. We’re trying to use the Adobe API to tie the data together.
So far we’ve gone down the path of using the Data Insertion API, but it wasn’t quite right as it’s meant to be used as a replacement for the JS, from what I can tell.
We also explored using the Data Sources API. Now the documentation for this suggests you can use a transaction ID to tie offline data with the data collected from the JS, we’ve tried this and it doesn’t match the data up. We’re now exploring using Visitor ID to tie the sessions together but we’re having problems uploading any rows with the Visitor ID column, Adobe just returns the error “Column header: ‘visitorid’ is not a valid column header”. We’ve tried several different variations of visitor id, such as “visitor_id”, “visitor-id”, “vistor id”, etc and still no luck.
The end goal is for us to be able to upload data to Adobe that will update/add eVars for already existing sessions earlier that day. How would I go about doing this? Is there something I'm missing or doing wrong?
Edit: I managed to solve this problem by using the Adobe SAINT API. When a user arrives at the site, we push an eVar for that user with a unique ID and then the day after we use the SAINT API and the unique ID in the eVar we pushed previously to add the additional data we needed.
It could be a good idea to look back at the Data Insertion API and combine it with the visitorId approach where you tie existing/old visitorID's to new eVars and use the timestamp to "update" the dataset.
Although this is experimental, it might be worth a try.
Best regards,

Trouble Showing Value of SFDC Conversion in AdWords

Screenshots and similar explanation found at my post in the AdWords community help forum
Whereas most, usual AdWords conversions center around an event happening on your site (often via Google Analytics), Google now (as of ~6 months ago, I believe) offers the ability to track conversions that occur in Salesforce, automatically, by looking for specified "Opportunity Stages" on the Opportunity object in Salesforce. Example: When a given lead is qualified, and their stage is updated to reflect that, this now counts as a secondary conversion in AdWords.
Now I have normal conversions which measure how many people have created an account, and I can measure how many of those accounts are actually potential customers. I love this. It's automatic and gives us pretty granular insight.
The workflow is:
Lead clicks on search or display ad
Arrives at landing page, is assigned a GCLID
Ideally the lead signs up and self identifies
Code on our site sends all the lead's self-provided information PLUS their GCLID into our database AND into Salesforce, where the GCLID is retained in a separate field (called GCLID)
When that lead is converted to an opportunity in Salesforce, the GCLID transfers from the individual lead to the Opportunity object for the account
AdWords polls once daily at midnight for any opportunities where the GCLID field is filled out AND they have reached a specified stage (post qualification)
When AdWords polls the SFDC API and a record matches those criteria, it imports that GCLID, the date of creation, and the value (field named "Amount") that is assigned to the lead.
AdWords is supposed to measure that 1) the conversion occurred (which it does) and 2) the VALUE of the conversion that is determined by a field in SFDC.
I'm having trouble with step 8. I can see the AdWords import history and it's detecting the conversion AND the value, but the VALUE is not appearing in any AdWords report of any kind. All values associated with that conversion are 0, though the conversions themselves are registering.
I've now spoken with AdWords support reps directly and have solicited advice from their community forum, no luck. Anyone have any idea of why this might happen?
Per this FAQ, it sounds like AdWords looks for the conversion value in the Opportunity's Expected Review field.

Adwords Api get click data + keywords

Is it possible to use the glcid supplied from Ad words to pull data from the AdWords API?
In particular I would be looking for cost of a click and the keywords used to search for the advert.
Generaly, you can use GCLID in API, for example when importing offline conversions after conversion happened and you somehow saved GCLID. Unfortunately, in Keywords report, passing GCLID parameter as argument is not supported.
Using Gclid for import
Keywords performance report

Resources