Posts tagged with google-ads-api

I would like to make link that open the Google Ads website in a new tab.

The link doesn't work in Chrome through. There seems to be some kind of block stopping the new tab from opening even though I have been told by Google that such a link would not violate their terms in any way.

Could anyone assist me in how to get the link to work please

<a href="https://ads.google.com/home" target="_blank">Link to Google Ads</a> 

When creating a code snippets in Google Ads to track conversions on a landing page, I found that all the Functions have the same name: gtag_report_conversion(url)

Since I have 2-4 of these functions per page, I want to rename each function so that all two to four links don't call the same function.

This is the original code output from Google Ads for two links (I put xxxxx where my account number is located):

<script> function gtag_report_conversion(url) {   var callback = function () {     if (typeof(url) != 'undefined') {       window.location = url;     }   };   gtag('event', 'conversion', {       'send_to': 'AW-xxxxxxxx/v__WCOP96KwBEMGY46ID',       'event_callback': callback   });   return false; } </script> 
<script> function gtag_report_conversion(url) {   var callback = function () {     if (typeof(url) != 'undefined') {       window.location = url;     }   };   gtag('event', 'conversion', {       'send_to': 'AW-xxxxxxxx/q5SwCMKl9KwBEMGY46ID',       'event_callback': callback   });   return false; } </script> 

Can I rename each function with an _a and _b so that my link calls them like this?

<a href="link" onclick="gtag_report_conversion_a();">Link ONE</a>

<a href="link" onclick="gtag_report_conversion_b();">Link TWO</a>

Each function has a unique number after my account number, so I want to make sure the reports are accurate.

Google recently changed to this new format, so there is limited information on changing the function names nowadays -- thank you for any help anyone can provide!

Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist

I have created a report with Data Studio taking values from GA and I have defined a table with several data like age, sex, hour, total users and transaccions.

At the end of the table it shows the total of transactions which are 8 and this data is correct. But If I seek this transactions in the table I only found 2.

Here you can see the table ordered by transactions and you can see how there is only 2.

And these are the sources of the data of the table:

Am I doing something wrong? How can I get the eight transactions in their own column?

Edit I:

The table are ordered descendent by the column "Transactions" (Transacciones) so all the transactions are showed in the first rows. In this case, we've got only 2 transactions.

I have created a Google Ads campaign and for all the url's I have defined an standard url to track them. These url are for example: http://www.example.com/?url_source=s1&utm_medium=m1&utm_campaign=c1. I use this page https://ga-dev-tools.appspot.com/campaign-url-builder/ to create them.

But, when I go to Acquisition > All the traffic > Source/Medium I see that most of these url are not tracked correctly and are tracked like google/cpc and not with the values given in variables utm_source and utm_medium

What happen? How can I do to track correctly all the url's?