How to query targeting data from Google AdWords Reporting API? - google-ads-api

I have create a simple Report in the API that shows how many clicks/impressions were there per targeting combination (e.g. 18-24 male, 18-24 female, etc.). This is very easy to do in the GUI as shown on the picture below.
The problem is I cannot figure out how to do anything like that in the Reporting API. I tried Campaign Performance Report, but it says Age, Gender does not exist as a field and I have not found a field age or gender in the documentation at all.
Is it possible to query this data? Maybe there is some way to "convert" UI report to the AWQL or something like that?

Related

How to extract conversion results based on different attribution models from the Google Adwords 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.

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.

Check if Campaign Has Changes

I'm currently working with Adwords API and I like to ask if there is a way on how can check if a campaign has changed? (Campaigns's name, keywords, etc etc...) As far as I researched the only way to check is by using the customer sync services, but it only checks for the campaign's common settings. Keywords and Text Ads are not included. I'm using Java by the way.

How do I get all financial records related to a job using IPP v2

My company wants to integrate our app with Quickbooks using IPP v2 API. We would like to retrieve all financial records related to a job. I have been playing around with the API using the API explorer. I see that I have to retrieve the data separately using entities like Bill, Invoice, Journal, etc. However, I didn't seem to find a way to filter the data returned in those entities by job.
Currently, I have to query the entire Bill table for example and to look for JobId under ReimbursableInfo myself. It's not feasible since I have to do the same thing for other tables.
Am I missing something from here?
In docs, JobID is not mentioned as a filterable attribute.
Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/bill#Retrieving_Bills_Using_a_Query_Filter
You need to do client side filtering.
For Invoice, you can use JobIdSet attribute.
Ref - https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/invoice
Thanks

ios google api issue

I need to add a very common Google functionality to an iPhone app I am developing. The idea is that the user is presented with a TextBox where he can write an address (i.e.: "Amsterdam av)". The thing is that I want to add some "help" for him, se when he writes a street name, the app will show him a list of partial matches, like google Maps does here:
sample http://www.timotteo.com.ar/google.png
I canĀ“t find the exact class in the google API. It doesn't need to be as fast as google's own search, maybe the user can write "amst" and press a search button, to be presented with a list of partial matches. The API I'm looking for show return in some way a list with posibilities. All I could find for now where method that gives you the lat/long when you feed it with a specific address. Does somebody know what combination of methods/classes I should use? Maybe some example?
Txs in advance!
Perhaps you are looking for the autocomplete feature of the Places API:
https://developers.google.com/maps/documentation/javascript/places#places_autocomplete
This won't autocomplete for all addresses or streets, but rather for businesses, notable landmarks, etc.
If you want autocomplete for street addresses, I do not believe that is available through any documented APIs. That doesn't mean workarounds don't exist, but they may depend on more details about your use case. (For example, if you only care about a narrow geographic area, it may be possible to simply have a list of all the streets in your own database and handle the AJAX call yourself.)
Actully what I was looking for is this:
http://maps.google.com/maps/geo?q=amsterdam%201543&output=xml&oe=utf8&sensor=true&hl=es&gl=ar
That URL returns and XML with all the autocomplete options. All I have to do is parse that XML and voila! There I have my list.

Resources