Posts tagged with google-ads-api

I have a nuxt App which makes use of the nuxt community module gtm-module: https://github.com/nuxt-community/gtm-module/ which takes care of google tag manager stuff.

I now have the case that I need to add Adwords into the mix. According to this source (https://support.google.com/google-ads/answer/7548399?hl=en#adapt_gtag) it should be easy to just add another config id – the AW-CONVERSION_ID – to my global site tag.

Unfortunately the gtm-module does neither describe how to handle Adwords nor how to add custom stuff to the site tag.

<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID">   </script> <script>window.dataLayer = window.dataLayer || [];   function gtag(){dataLayer.push(arguments);}   gtag('js', new Date());   gtag('config', 'GA_TRACKING_ID');   gtag('config','AW-CONVERSION_ID'); // THIS IS WHAT I NEED ADDITIONALLY</script> 

Does anyone know how I could accomplish the described solution here (https://support.google.com/google-ads/answer/7548399?hl=en#adapt_gtag) but with the nuxt gtm community module?

Help is very much appreciated.

Cheers

I am currently importing conversions (Store Sales Direct Conversion) into Google Ads using UI on every month. I am creating data to import to Google Ads in CSV format and then upload it using UI. Current Method: Google Ads > Conversions > Uploads

I need to automate this process using Google Ads API and its Python module. How can I get this done? What are the steps required to complete this job?

Tried Option didn't work used in app.py

os.environ['PYTHONHTTPSVERIFY'] = '0' ssl._create_default_https_context = ssl._create_unverified_context 

using flask

data = report_downloader.DownloadReport( report, output, skip_report_header=False, skip_column_header=False, skip_report_summary=False, include_zero_impressions=True) 

and trying to get ACCOUNT_PERFORMANCE_REPORT working fine on local system when used tiangolo/uwsgi-nginx-flask:python3.6 as docker base image and deployed giving below error

 File "/google-analytics/helper_service/service.py", line 328, in sync_google_ads_word_data skip_report_summary=False, include_zero_impressions=True) File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 405, in Wrapper return utility_method(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/googleads/adwords.py", line 1268, in DownloadReport output, **kwargs) File "/usr/local/lib/python3.6/site-packages/googleads/adwords.py", line 1540, in _DownloadReport response = self._DownloadReportAsStream(post_body, **kwargs) File "/usr/local/lib/python3.6/site-packages/googleads/adwords.py", line 1614, in _DownloadReportAsStream response = self.url_opener.open(request) File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/usr/local/lib/python3.6/urllib/request.py", line 1361, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/local/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)> 

This page https://www.perlentaucher.de/static/yl-raw.html has a div at the beginning that I want to close.

If I run

parent.document.getElementById('div-gpt-ad-1407836088099-0').style.display='none'; 

in the console of Google Chrome, the div will close. However if I put this code inside of a google ad manager third party creative. I always get the error "Uncaught TypeError: Cannot read property 'style' of null"

I am using Python version 3.7.7, Trying to run to code for 'ads_service.search'. That gave me the error that 'Specified Google Ads API version "v3" does not exist'

import argparse import sys import google.ads.google_ads.client ADS_PAGE_SIZE = 1000 def main(client, customer_id):   ads_service = client.get_service('GoogleAdsService', version='v3')   query = ('SELECT change_status.resource_name, '            'change_status.last_change_date_time, '            'change_status.resource_type, '            'change_status.campaign, '            'change_status.ad_group, '            'change_status.resource_status, '            'change_status.ad_group_ad, '            'change_status.ad_group_criterion, '            'change_status.campaign_criterion '            'FROM change_status '            'WHERE change_status.last_change_date_time DURING YESTERDAY '            'ORDER BY change_status.last_change_date_time')   response = ads_service.search(customer_id, query=query,                                 page_size=ADS_PAGE_SIZE)