Posts under category Google

I'm completly lost !I started to use Google Ads for my B2C Saas and I need to send conversion event to it.

I use stripe as payment provider. So I use webhook on my backend to handle payment.success event and trigger an event 'purchase' with Google Measurement Protocol. It's working half of the time and and I don't see events in real time in the debugview.

🤔 My first question is Measurement Protocol the good way to do in this context ?

🤔 Secondly, is it possible to use Google Tag Manager to fetch purchase events from HTTP requests done with Google Measurement Protocol and relay them to Google Ads?

Backend -- (purchase event) --> GTM --> Google ADS (Conversion) & GA4

Here a payload example I use to test :

{     "client_id": "1770912193.1700571402",     "user_id": "***************",     "timestamp_micros": "1700585815945000",     "non_personalized_ads": true,     "events": [         {             "name": "purchase",             "params": {                 "items": [],                 "currency": "EUR",                 "transaction_id": "123456789",                 "value": 6.60,                 "debug_mode": 1             }         }     ] } 

I am working on a project to extract data from Google Ads campaigns using Python. However, I'm facing an issue when trying to use the 'from google.ads.google_ads.client import GoogleAdsClient'

library, and it's giving me the error

'ModuleNotFoundError: No module named 'google.ads.google_ads''.

I have already installed the 'google-ads' library using pip. I'm currently stuck on this problem, and I would appreciate any guidance or solutions from anyone who has experience with this. Your help is highly valued.

Libraries already installed google 3.0.0 google-ads 22.1.0 google-api-core 2.14.0 google-auth 2.23.4 google-auth-httplib2 0.1.1 google-auth-oauthlib 1.1.0 googleads 40.0.0 googleapis-common-protos 1.61.0 grpcio 1.59.3 grpcio-status 1.59.2 proto-plus 1.22.3 protobuf 3.17.3

I am using the following code to insert Google Ads at three slots on my website. However, I am getting the following error:

Uncaught TagError: adsbygoogle.push() error: No slot size for availableWidth=0

<div align="center"> <!-- Sidebar Ads --> <ins class="adsbygoogle"      style="display:block"      data-ad-client="(ad-client-xxxxx)"      data-ad-slot="(xxxxx)"      data-ad-format="auto"      data-full-width-responsive="true"></ins> </div> <script>(adsbygoogle = window.adsbygoogle || []).push({});</script> 

I tried the solution described in the following stack overflow question:

TagError: adsbygoogle.push() error: No slot size for availableWidth=0 when i use responsive ads

However, that didn't seem to help!

I am just now getting this message but on my dashboard, everything is active and in my code, I have the correct adunits with a banner ad. I have downloads and they are growing but now I am seeing that ads are not showing up. How do I get this corrected outside of contacting the help desk?

I validated my code with the correct id's.

Description: I am only using com.google.android.gms packaged classes for AD Id and Remote config and all the code is being run on IO Dispatcher. I feel this is happening internally on Google's side. Still I want your inputs how this can be fixed from my side or whether it can be fixed or not?

Full stack trace:

at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1659) at libcore.io.BlockGuardOs.stat(BlockGuardOs.java:419) at libcore.io.ForwardingOs.stat(ForwardingOs.java:846) at android.app.ActivityThread$AndroidOs.stat(ActivityThread.java:8143) at java.io.UnixFileSystem.getLength(UnixFileSystem.java:330) at java.io.File.length(File.java:968) at auen.a(:com.google.android.gms@233717044@23.37.17 (190400-570218080):25) at aufq.e(:com.google.android.gms@233717044@23.37.17 (190400-570218080):252) at aufq.b(:com.google.android.gms@233717044@23.37.17 (190400-570218080):450) at auft.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):141) at aevp.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):3) at android.content.ContentProvider.query(ContentProvider.java:1417) at mgp.superQuery(:com.google.android.gms@233717044@23.37.17 (190400-570218080):2) at com.google.android.chimera.ContentProvider.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):2) at aevp.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):20) at android.content.ContentProvider.query(ContentProvider.java:1513) at mgp.superQuery(:com.google.android.gms@233717044@23.37.17 (190400-570218080):1) at com.google.android.chimera.ContentProvider.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):1) at mgp.query(:com.google.android.gms@233717044@23.37.17 (190400-570218080):2) at android.content.ContentProvider$Transport.query(ContentProvider.java:281) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:107) at android.os.Binder.execTransactInternal(Binder.java:1226) at android.os.Binder.execTransact(Binder.java:1163) # via Binder call with stack: at android.os.StrictMode.readAndHandleBinderCallViolations(StrictMode.java:2497) at android.os.Parcel.readExceptionCode(Parcel.java:2417) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:139) at android.content.ContentProviderProxy.query(ContentProviderNative.java:481) at android.content.ContentProviderClient.query(ContentProviderClient.java:196) at android.content.ContentProviderClient.query(ContentProviderClient.java:178) at bau.a(PG:30) at bkd.a(PG:1) at aqp.run(PG:27) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:344) at qco.run(PG:4) at qah.run(PG:3) at java.lang.Thread.run(Thread.java:1012) at qdi.run(PG:5)