Comments (5)
Items is a collection of the entries from the query to the a adwords service.
I think it's not a package issue but it's simply that there is not result for that query.
from laravel-google-ads.
When I dd($results->items()). There are results.
Illuminate\Support\Collection Object
(
[items:protected] => Array
(
[0] => Google\AdsApi\AdWords\v201710\cm\Campaign Object
(
[id:protected] => 1030742633
[campaignGroupId:protected] =>
[name:protected] => Campaign 1
[status:protected] => PAUSED
[servingStatus:protected] => SERVING
[startDate:protected] =>
[endDate:protected] =>
[budget:protected] => Google\AdsApi\AdWords\v201710\cm\Budget Object
(
[budgetId:protected] =>
[name:protected] =>
[amount:protected] =>
[deliveryMethod:protected] =>
[referenceCount:protected] =>
[isExplicitlyShared:protected] =>
[status:protected] =>
)
[conversionOptimizerEligibility:protected] =>
[adServingOptimizationStatus:protected] =>
[frequencyCap:protected] =>
[settings:protected] =>
[advertisingChannelType:protected] =>
[advertisingChannelSubType:protected] =>
[networkSetting:protected] =>
[labels:protected] =>
[biddingStrategyConfiguration:protected] =>
[campaignTrialType:protected] =>
[baseCampaignId:protected] =>
[forwardCompatibilityMap:protected] =>
[trackingUrlTemplate:protected] =>
[urlCustomParameters:protected] =>
[vanityPharma:protected] =>
[selectiveOptimization:protected] =>
)
)
)
from laravel-google-ads.
Interesting, let me have a deeper look...
from laravel-google-ads.
Hi @keithslater ,
Checking the result you pasted, the Google\AdsApi\AdWords\v201710\cm\Campaign object doesn't have any public property so that's why json_encode function returns "nothing".
In order to achieve so, you'll have to loop over all items and build that desired format by yourself..
from laravel-google-ads.
Got it, thanks.
from laravel-google-ads.
Related Issues (20)
- Error when getting refresh token HOT 2
- How to create/update campaign using this packages ?
- Multiple accounts
- usage for hiearchy accounts HOT 3
- How to install with "googleads/googleads-php-lib": "^40.0"? HOT 7
- AuthenticationError.OAUTH_TOKEN_INVALID HOT 1
- php artisan config:cache HOT 3
- How to add campaign account to MCC account
- Get all accounts HOT 4
- The service 'CampaignService' is not found HOT 1
- How to solve guzzle error HOT 3
- Client error: `POST https://oauth2.googleapis.com/token` resulted in a `400 Bad Request` response: { "error": "invalid_grant", "error_description": "Bad Request" }
- Environment HOT 1
- redirect_uri_mismatch HOT 1
- New Google Ads API
- Error while installing Edujugon / laravel-google-ads HOT 2
- count(): Argument #1 ($value) must be of type Countable|array, null given
- AdWords API which you are accessing has been discontinued. Use the new Google Ads API instead. Please visit https://ads-developers.googleblog.com/2021/04/upgrade-to-google-ads-api-from-adwords.html
- Update the google-ads.php file
- nee to Upadate for 2021
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-google-ads.