spotonlive / laravel-google-ads

Google Ads API for Laravel
MIT License
64 stars 58 forks source link

two different errors #13

Closed fonko closed 8 years ago

fonko commented 8 years ago

Hi sr, thanks for your library.

im getting two different erros, first error was error2

and then i thought maybe i needed to add the Lumen part of your readme, then after following those steps i got:

error3

i must be doing something wrong, im new to laravel and this api so im a little confuse.

i have set your code as a function inside a controller, like this:

http://pastebin.com/HDXkkZs7

but maybe im doing it wrong, i saw you have a class Service with this code but i actually don't understand what to do with that class, this is why i set a controller and then call it from a route (domain.com/controllerfunction) with your code.

nikolajlovenhardt commented 8 years ago

Hello @fonko,

The SoapFault exception is not related to this libarary. You'll need to ask in in the official google-ads-php library instead (https://github.com/googleads/googleads-php-lib).

Regarding your second question I'm not quite sure on how you've implemented this. If you're using Laravel, then it doesn't make sense, that you're including the Lumen service provider?

fonko commented 8 years ago

thanks for your answer nikolaj, actually im brand new to laravel so im not sure about lumen. If i should include, or not, the Lumen part described in your steps. But without this lumen part i was getting a nice looking json campania de prueba

and the issue was regarding the mutate() function.

anyhow, i will try to find out whats going on with this googleads-php-lib

if you have any suggestinos i will be very thankful ! :)

nikolajlovenhardt commented 8 years ago

@fonko You'll have to ask in the Google ads repository.