Requesting monthly search volume from Google Adwords API C#

I have looked at other questions on here but I can’t seem to find a clear example or a visual studio project that I can just run after setting it up in the developer console.

I know that I would need to use TargetingIdeaService but how would I go by doing this? I am new to this API so could someone walk through each step?

I’ve looked at the following code:

TargetingIdeaSelector selector = new TargetingIdeaSelector();
selector.setRequestType(RequestType.IDEAS);
selector.setIdeaType(IdeaType.KEYWORD);

selector.setRequestedAttributeTypes(new AttributeType[] {
AttributeType.KEYWORD_TEXT,
AttributeType.SEARCH_VOLUME,
AttributeType.AVERAGE_CPC,
AttributeType.COMPETITION
});

Then setting the keywords:

RelatedToQuerySearchParameter relatedToQuerySearchParameter =
new RelatedToQuerySearchParameter();
relatedToQuerySearchParameter.setQueries(new String[]
{"bakery", "pastries", "birthday cake"});

selector.setSearchParameters(
new SearchParameter[] {relatedToQuerySearchParameter});

However, I’m still confused on how to go by this.

Note: Hardly used the front-end of Adwords.

Thanks in advance.

You could help in PHP also.


Source: php

Leave a Reply