Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MANY Issues - especially ExpandedTextAds. #197

Closed
sylvainmtl68 opened this issue Dec 24, 2016 · 7 comments
Closed

MANY Issues - especially ExpandedTextAds. #197

sylvainmtl68 opened this issue Dec 24, 2016 · 7 comments
Assignees
Labels

Comments

@sylvainmtl68
Copy link

Hi!

I just tried to run the AddCompleteCampaignsUsingBatchJob.php to get an overview of the various changes in the new library. When I tried that same script in the old library last, it went very smoothly, not this time with the new library.

Here are some issues I encountered, in my 2 hours of testing that file and trying to make it work.

  • I had to comment out part of the BatchJobsDelegate.php file because it couldn’t find the GuzzleLogMessageHandler apparently. (yet, I installed the new library with Composer and all the files seem to be there, including the ones from Guzzle.

  • In the keywords part, you add «!!! », which causes the keyword to be rejected due CriterionError.KEYWORD_HAS_INVALID_CHARS

  • You forgot to use Google\AdsApi\AdWords\v201609\cm\ExpandedTextAd in the batch processing file.

  • Then in the ExpandedTextAd part, you call for function setHeadline(), but it doesn’t exist… the functions are called setHeadlinePart1() and setHeadlinePart2().

  • Inversely, the script calls for setDescription1() and setDescription2(), but it’s only setDescription().

  • Still in the ExpandedTextAd section… you try to see the DisplayUrl and FinalUrls, but there are no functions defined in the ExpandedTextAd class for that and we get an error saying we cannot define those.

I tried to tweak it out, but I couldn’t make it work. I looked at the examples section in the AddExpandedTextAds.php file, and the code there to create ExpandedTextAds doesn’t work either.

So, totally unable to create text ads… none of the provided examples work.

@fiboknacky
Copy link
Member

Hello @sylvainmtl68,

I'm really sorry for your inconvenience.
We'll work on the fix very soon.

As for the keywords part, we deliberately add !!! for 50% of keywords created just to demonstrate how the BatchJobService and BatchJobs deal with such a case.
So this works as intended. If you wish to create valid keywords, please modify that method accordingly.

For other issues, I'll work on a fix and push to the repo later.

Best,
Knack

@sylvainmtl68
Copy link
Author

sylvainmtl68 commented Dec 24, 2016 via email

@sylvainmtl68
Copy link
Author

sylvainmtl68 commented Dec 24, 2016 via email

@fiboknacky
Copy link
Member

Hi Sylvain,

Thanks for more information.
Would you mind clarifying more what kinds of issues you're faced with when you include campaign extensions?
Is it similar to issue #192?

Regards,
Knack

@sylvainmtl68
Copy link
Author

sylvainmtl68 commented Dec 24, 2016 via email

@fiboknacky
Copy link
Member

Hi @sylvainmtl68

Thanks for more information.

Regarding the CallOutFeedItem issue, this occurs only in the old XML deserializer because it still uses the classes manually added by ourselves.
The deserializer in this new version makes use of the batch job related classes generated by WSDL, just similar to other classes related to SOAP services.

As for

error: Call to a member function setAccessible() on null in
/home/dealerbreacher/googleads-php-lib-master_oldone/src/Google/Api/Ads/AdWords/Util/XmlDeserializer.php
on line 140

I found that mostly it's because users get SOAP services' ApiError mixed with reporting ApiError.
This is unfortunately confusing because we didn't support namespacing in the deprecated branch yet.

Clearly doing require_once for only classes related to SOAP services or classes related to reporting would resolve such as issue.

FYI, as for the main issue you've reported, we're working on the fix.

Cheers,
Knack

@vtsao
Copy link
Contributor

vtsao commented Jan 11, 2017

These issues are fixed in release v25.1.0.

@vtsao vtsao closed this as completed Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants