Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Return results from two countrys in Adwords API

Avatar of Pedro Chagas
Pedro ChagasFlag for Portugal asked on
PHPWeb Development Software
2 Comments1 Solution496 ViewsLast Modified:
Hi E's, For get relation keywords I use Adwords API.
========================
# Create seed keyword structure.
$seed_keyword =
  '<negative>false</negative>' .
  '<text>'.$wordforapi.'</text>' .
  '<type>Exact</type>';
$use_synonyms = '<useSynonyms>true</useSynonyms>';

# Get keyword variations.
$request_xml =
  '<getKeywordVariations>' .
  '<seedKeywords>' . $seed_keyword . '</seedKeywords>' .
  $use_synonyms .
  '<languages>pt</languages>' .
  '<countries>PT</countries>' .
  '</getKeywordVariations>';
===========================
In line of code you can see above, I tell to the API, I want relation keywords of word "europe", from Portuguese language and from Portugal country.
I want extend the result for two country's at the same time. I don't know if adwords api accept this.

So, if I want extend the country to Portugal and Brazil at the same time what I put between <countries>....</countries>.
I try to put PT-BR and PT, BR, and the system return this error: This country code is not valid.  PT-BR.
Maybe what I want is not possible, but I have to make sure.

Regards, JC
ASKER CERTIFIED SOLUTION
Avatar of HyperDawn
HyperDawnFlag of United Kingdom of Great Britain and Northern Ireland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers