Still not work,On the attachment send my files for you.
Additionaly it's my console output :)
php AddCampaigns.php
Campaign with name 'Interplanetary Cruise #57989a843a515' and ID '633313135' was added.
Campaign with name 'Interplanetary Cruise #57989a843a69a' and ID '633313138' was added.
php AddAdGroups.php
(At first set ID 633313135)
Ad group with name 'Earth to Mars Cruise #57989ad55901d' and ID '32086324818' was added.
Ad group with name 'Earth to Mars Cruise #57989ad55909f' and ID '32086324938' was added.
php AddKeywords.php
(At first set ID to 32086324818)
PHP Notice: Undefined index: text in test/googleads-php-lib/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php on line 1825
PHP Notice: Undefined index: in test/googleads-php-lib/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php on line 1825
PHP Fatal error: Uncaught Error: Cannot access empty property in test/googleads-php-lib/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php:1825
Stack trace:
#0 test/googleads-php-lib/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php(1825): Criterion->__set('', 'mars cruise 579...')
#1 test/googleads-php-lib/examples/AdWords/v201605/BasicOperations/AddKeywords.php(49): Criterion->__set('text', 'mars cruise 579...')
#2 test/googleads-php-lib/examples/AdWords/v201605/BasicOperations/AddKeywords.php(104): AddKeywordsExample(Object(AdWordsUser), '32086324818')
#3 {main}
thrown in test/googleads-php-lib/src/Google/Api/Ads/AdWords/v201605/AdGroupCriterionService.php on line 1825
W dniu wtorek, 26 lipca 2016 11:09:43 UTC+2 użytkownik Joyce Lava napisał:
Hello,Apologies but my PHP knowledge is quite limited. However, seeing the codes, it seems that you have not yet added the CriterionUserList as the AdGroupCriterion. You seemed to be missing the ADD operator for the BiddableAdGroupCriterion. After doing the ADD operator, you need to call the AdGroupCriterionService.mutate operation.To avoid confusion, I recommend to do the following:1. Run the AddAdGroups.php example code with the TargetingSetting as USER_INTEREST_AND_LIST2. After doing #1, run the AddKeywords.php example code. Use the adGroupId obtained from #1. From the AddKeywords.php example code, just replace the Keyword object to be the CriterionUserList object.Please let me know the results after doing the steps above.Best Regards,Joyce, AdWords API Team
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e49d1526-8c5b-4c0c-a501-d46ff5b819fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment