OK, it works now. Thank you!
On 1 Jan., 10:27, Evgeniy Bogdanov wrote:
> You don't understand me.
>
> Just copy and paster this code to your file and run it. Without any
> chagnes, edits.
> After you will get it to work - you can do it what ever you want.
>
> require_once 'aw-api/src/Google/Api
You don't understand me.
Just copy and paster this code to your file and run it. Without any
chagnes, edits.
After you will get it to work - you can do it what ever you want.
LogDefaults();
// Get the TargetingIdeaService.
$targetingIdeaService = $user->GetService('TargetingIdeaService',
'v2
Thank's for your answer.. but I'm sorry - it isn't still working.
I've added your code after
try {
before
// START CHANGES
like you wrote.
requestType = 'IDEAS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes =
array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_
As I see you've deleted some important parts of code:
// Create selector. Important! What data you want to load?
$selector = new TargetingIdeaSelector();
$selector->requestType = 'IDEAS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes =
array('CRITERION', 'AVER
Thank's for your answer, but I still cannot solve it.
The following is my whole code, which I get the error message
"Unmarshalling Error: cvc-type.2: The type definition cannot be
abstract for element ns1:searchParameters."
http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl
My code were outdated. For not last version of API (which is currently
v201109).
I've researched this issue and this is new version of code that you
need, it's based on examples/v201109/GetRelatedKeywords.php, changes
are commented:
try {
// Get AdWordsUser from credentials in "../auth.ini"
//
I mean that the function CountryTargetSearchParameter() is defined in
the file TargetingIdeaService.php. So why this error?
On 28 Dez., 23:14, jepster <400...@googlemail.com> wrote:
> Thank's for sharing your code.
>
> I've tried your code and I get always the error.
>
> Fatal error: Call to unde
Thank's for sharing your code.
I've tried your code and I get always the error.
Fatal error: Call to undefined function CountryTargetSearchParameter()
But the file TargetingIdeaService.php is required - there is it's
definition.
On 26 Dez., 15:22, jonasl wrote:
> Hello,
>
> Thanks for sharin
Thank's for your answer. I get always
Fatal error: Call to undefined function CountryTargetSearchParameter()
I've grep'ed the adwords api lib, and I cannot find the definition of
the "CountryTargetSearchParameter"-class. It is always only extended.
On 26 Dez., 15:22, jonasl wrote:
> Hello,
>
Hello,
Thanks for sharing your code Evgeniy. I needed to change a few lines:
Remove the last line and add the following:
$user = new AdWordsUser();
// Log SOAP XML request and response.
$user->LogDefaults();
// Get the TargetingIdeaService.
$targetingIdeaService = $user->GetService('Ta
Hi.
This is part of my working code...
$returnKeywords = array();
// We need only keywords for United States
$countryTarget = new CountryTarget('US', false);
$countryTargetSearchParameter = new
CountryTargetSearchParameter();
$countryTargetSearchParameter->
Hi,
there are lots of examples in ADWORDS-API-PHP-FOLDER/examples/v201109
- where is the example file, which gets the "exact monthly local
traffic value" for a keyword? I've tried the file
GetTrafficEstimates.php, but it isn't giving me the searched value.
Hope somebody can help me, I've spend a
12 matches
Mail list logo