Closed yooouuri closed 7 years ago
Hi @yooouuri
First, could you confirm where you got the example code above please? I assume that you wish to create campaigns, but it doesn't look like ours.
In particular, in your code, there is a line for creating $budgetService
:
$budgetService = $adWordsService->getService(BudgetService::class, $customerClientId);
But it doesn't look the same as ours:
$budgetService = $adWordsServices->get($session, BudgetService::class);
In addition, we have only AdWordsServices
class, not AdWordsService
(no s).
So, I'm not quite sure if the code you got is correct.
As for the SOAP log, it failed because you've used the campaign service to create a budget, which is not allowed. To solve this, let's clarify first where you got the above code.
Thanks in advance!
Knack
Hello @fiboknacky
As you can see, the package does the same.
It gives me a service and automatically add the needed credentials.
Thanks for your response.
As for the SOAP log, it failed because you've used the campaign service to create a budget, which is not allowed.
I see the problem, needed to clear the $operations = [];
array, thanks for the heads up
Using this package for laravel: https://github.com/nikolajlovenhardt/laravel-google-ads
When i try to create a campaign, the following error occur:
soap.log: http://pastebin.com/raw/TmU6XSfp
Copied from the "Basic Operations Samples"
Receiving campaigns with the sample code works...