-
Notifications
You must be signed in to change notification settings - Fork 46
New developers must use the Google Ads API #34
Comments
Hi @SamuelCompary Good find! I will take a look at this and see how we can update the package. Here is the upgrade guide we'll need to follow on the migration to the new API details. If you find a faster way to implement these changes let me know and we can do some pull requests. Hopefully, it's only fixing a few auth issues and the package updates on the googleads lib change the endpoints. I'm currently busy on a project, so unable to look into this upgrade just yet, but feel free if it looks like it might be easy. |
I'm trying to get this working. It's way above my skill level but I'm trying and have some feedback after a few tries. What I've done so far: In composer.json update: Next on my Laravel project I connected to
Next I could do composer update. At that point I just tried this in tinker but as you will see still same API versioning issue:
So I went back to the "upgrade guide" but then noted that:
To see what I mean, check the below screenshot. Two PHP libraries, and the one seems to "standing still" in terms of updates. At this point I though, okay, let me remove However, now there is a new error:
I see this code is in Am I correct in assuming all of this must be migrated to the new API? Like where do I even start? Am I even on the right track? Any other tips to move this forward? I'm dying to use this API with Laravel and would hate to revert to a vanilla library. I need generics when analyzing ad accounts which is exactly what this library gives me. |
Not sure if this is of help? There is a Laravel sample app: https://github.com/googleads/googleads-php-lib/tree/master/examples/AdWords/LaravelSampleApp Edit: I also couldn't get the Laravel App working and tried to log an issue... Then after battling on for another few hours I came to the conclusion because I've recently registered as a Google API user I won't be able to use the old library. So the idea of implementing the new library is sound, as least for new users. The next major issue is I can't even get their examples working. It seems the new PHP library is a big departure from the old one, much more complex. For example, the code below is the example https://github.com/googleads/google-ads-php/blob/main/examples/BasicOperations/GetCampaigns.php The problem is this "improved" getCampaings uses streaming and GRPC and although it's possible to install on Linux it's not easy at all. Also to me at this point it seems the new Google Ads PHP API is a dramatic departure from the old one and a lot of code will have to be rewritten, I guess, to work using streams. For my limited time budget, this is unfortunately a dead end but I would love to hear feedback from other users. |
I've actually written a fluent query builder for GQL, to use with the Google ADS Api, for reporting anyway. I'm not sure it fits into the existing framework you have setup, but I'd be willing to share! |
@zacksmash That would be pretty cool. More tools the better! As for an update to this issue, I will be making an update to get this API back to work on new users have reported. Sorry for the delay. |
Hi,
I'm currently trying to use this package with newly generated Google Ads credentials. And when running
LaravelAds::googleAds()->with($accountNumber)->reports($startDate, $endDate)->getAccountReport();
an exception occurs with the messageDetails: [fieldPath: ; trigger: New developers must use the Google Ads API: https://developers.google.com/google-ads/api/docs/start; errorString: QuotaCheckError.INVALID_TOKEN_HEADER]
.It seems like newly created credentials must use their new API.
Are there any plans to make this package use their new API so we that recently created our API credentials can actually use the Google Ads part of this package?
The text was updated successfully, but these errors were encountered: