keyword "Content" coming instead of actual keyword in Google Adwords Api - ruby-on-rails-3

I am encountering issue in fetching the keywords report with google adwords api.
Everything else is coming proper but for some keywords its giving "Content" as keword text.
Please could any one suggest me what should I do to get actual keyword.
I am using gem 'google-adwords-api'.
Thanks in advance.

It is a special fake keyword returned by AdWords for the "contextual display" stats for each ad group. (the actual per-keyword stats on the display network are given in the separate DISPLAY_KEYWORDS_PERFORMANCE_REPORT)
From the official developer guides: https://developers.google.com/adwords/api/docs/guides/reporting-concepts#keywordid3000000
In single attribution reports, all keywords that triggered impressions
on the display network will be represented by a special keyword (text:
Content) with ID 3000000.
Example
Keyword ID,Impressions
23458623485,2
23655322314,2
23953456345,2
3000000,4
If you target keywords and placements for Display Only and
run an Ad Performance report, you'll get a row for each ad and
triggering criteria combination for placements, and a single row with
ad and ID 3000000 which accounts for all the display keywords that
triggered that ad (where single attribution chose the keyword rather
than a placement).

Related

Apigee Integration: How to use listEntitiesPageSize parameter in conjunction with the listEntitiesPageToken parameter o navigate through the pages

Good day everyone,
we are trying to have through the use of the integrations of the Apigee service of google all the rows in a bigquery table that have a certain value in a field.
this operation is quite easy to do, but when we have more than 200 lines as a result, problems arise.
The problem is that using the integration to connect to BigQuery I am not returning any listEntitiesPageToken value and not even any listEntitiesNextPageToken value
so i can't figure out how i can go about navigating the result pages
Has anyone had the same problem? What do you suggest?
In the tutorial: "https://cloud.google.com/apigee/docs/api-platform/integration/connectors-task#configure-the-connectors-task" is write : "For example, if you are expecting 1000 records in your result set, you can set the listEntitiesPageSize to 100. So when the Connectors task runs for the first time, it returns the first 100 records, the next 100 records in the second run and so on."
And there is a tip: "Use the listEntitiesPageSize parameter in conjunction with the listEntitiesPageToken parameter to navigate through the pages."
I used the tutorial to understand how to use the task for loop and I understood that I should create a "subintegration" which must be called by a "main integration" for each element present in a list / array.
But what what can i do since these tokens are empty?

Google Analytic dimensions different from web to API

I have a strange error that i am not sure how to handle.
We have GA monitoring a non-English website ( we are a global brand) and some of the campaign values in GA have the native language ( in this case symbols). So when we do custom channel grouping in GA any campaign that matches the criteria goes into this custom grouping. (the channel grouping is set up using something like campaign like 'KOREAN LANGUAGE HERE').
However when i fetch the data via the API for custom channel groupings the data for this row/campaign is not the Korean value but a simplified English value. I've matched the rows due to the transactions/users/session counts - its the same row.
What on earth is going on? Does google provide a name/title type of framework for campaigns? Is it translating the custom channel grouping somehow?
Any help appreciated.

How to run two queries i) from: ii) keyword using Postman's Twitter API?

I am new to Postman and have successfully got started using the Twitter API v2 collection. I'm able to run a single query 'from:ukhomeoffice' and separately run a query using a keyword but when I try to run both i.e. selecting x2 queries the response = "message": "Duplicate parameters are not allowed: the query query parameter"
What I'm looking to do is search for tweets from a particular user (in my case the UK home office) also containing a keyword. Is there a way to do this?
Many thanks!

Google Data Studio Case statement query

I have a data studio report built that needs some filtering added in, the filters are based on what type of adwords campaign there are.
The shopping ads are determined by the campaign name having the word shopping in it. Anything which does not have the word shopping is considered a search or text ad.
I know it is a case statement of some sort, which used the campaign name field, I just cannot get it right.
The expected output would be 2 filters, one called "Shopping" which is all shopping ads, the other would be "Search". All campaigns would come under one of the 2 options
CASE WHEN REGEXP_MATCH(campaignName, '.*shopping.*') THEN 'Shopping Ad'
ELSE 'Search Ad' END
this is assuming that your campaign name field is called campaignName. It also is case sensitive. You are supposed to be able to put (?i) at the beginning of the expression to flag case insensitivity, but Data Studio is very finicky, and the documentation and error messages aren't very good. I would try it and see if it works, although you have probably moved on by now.

Bigquery Active User count not accurate (Google Analytics)

I have Google Analytics integrated to Bigquery and I'm trying to write a query to fetch Active Users that should match with the number on GA Portal.
Here's the query I've written;
SELECT
date(date) as date,
EXACT_COUNT_DISTINCT(fullVisitorId) as daily_active_users,
FROM TABLE_DATE_RANGE([<project_id>:<dataset>.ga_sessions_],
TIMESTAMP('2018-01-01'),
TIMESTAMP(CURRENT_DATE()))
group by date
order by date desc
The numbers I get in response are somehow related to the ones Google Analytics shows me, but they aren't a 100% accurate.
The numebers I get in return are slightely higher than the ones on the portal and I assume I need to put a where clause to filter a property GA might be filtering on the portal.
Your query looks fine to me. Assuming that you're looking at the same GA view as the one linked to BigQuery, I think that the problem could be sampling.
Even if the GA UI says that "This report is based on 100% of sessions.", try to export it as an Unsampled Report and check the numbers (in my experience, the users metric sometimes doesn't match between unsampled reports and default reports without sampling).