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

Add GenerateKeywordIdeas example #13

Merged
merged 4 commits into from
Jan 9, 2019
Merged

Conversation

fiboknacky
Copy link
Member

No description provided.

Change-Id: Ic84b25e49cc41e62f029cced8a4b5ddda849d19a
Copy link

@jimper jimper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

foreach ($response->getResults() as $result) {
/** @var GenerateKeywordIdeaResult $result */
// Note that the competition printed below is enum value.
// For example, a value of 2 will be returned when the competition is 'LOW'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanet, could you pls file a bug against the code generator component to make the rendering of this value better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been in my radar.
The proto lib will release a util that helps this soon already. It should be launched soon next year.

use Google\ApiCore\ApiException;
use Google\Protobuf\StringValue;

/** This example generates keyword ideas from a list of seed keywords. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or a seed page URL.

Change-Id: Ifd2f8cd5f47d504394b54798bf818f78511d1d32
examples/Planning/GenerateKeywordIdeas.php Show resolved Hide resolved
);
}

// Specify the optional arguments of the request as a keywordSeed, UrlSeed,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Capitalize 'k' in 'keywordSeed' for consistency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rather change the other places in this line to lower case to be consistent with the similar sentences in the other line and with the code.

Change-Id: Iebc8d0de3a864df92cfee80f4d43d3e4a9d48792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants