Re: An error has occurred: { "error": "invalid_grant", "error_description": "Bad Request", "error_uri": "" }

2016-10-25 Thread akshat agrawal


On Monday, October 24, 2016 at 10:22:24 AM UTC+5:30, akshat agrawal wrote:
>
> Hi Joyce,
>

Thanks it worked. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fd85187c-5001-49d3-9c8f-8cfd6c991629%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error": "invalid_grant", "error_description": "Bad Request", "error_uri": "" }

2016-10-23 Thread 'Joyce Lava' via AdWords API Forum
Hi Akshat,

This error normally happens if you missed something in the configuration of 
OAuth2 credentials or refresh token. Could you please confirm if you 
followed this guide 
 
carefully 
and which app type have you configured? Also, please make sure that when 
generating the refresh token, you are using the same login used to create 
the OAuth2 credentials. 

Regards,
Joyce, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/06da2deb-000a-43ed-8fb8-7e10eee703a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


An error has occurred: { "error": "invalid_grant", "error_description": "Bad Request", "error_uri": "" }

2016-10-23 Thread akshat agrawal
Hi,

Can anyone explain what this error is all about.

thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5eff2e79-f0b1-4d1a-a125-ca89931703a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2015-03-23 Thread Andy Steinhauf
Hello,

I tried it again as suggested above, but it resulted in the same error. I 
open'd an issue:

https://github.com/googleads/googleads-php-lib/issues/84

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/de234e71-1ba1-4e56-b87d-1cf41f7869eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2015-03-16 Thread Anash P. Oommen (AdWords API Team)
Hi Andy,

Could you double-check your steps against the ones listed 
on https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0? If 
that doesn't work, pls open an issue 
on https://github.com/googleads/googleads-php-lib/issues and I'll ask the 
PHP library maintainer to follow up with you.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Thursday, March 12, 2015 at 4:06:50 AM UTC-4, Andy Steinhauf wrote:
>
> Hello,
>
> Thanks a lot for your answer. I recreated the refresh token, but the error 
> still occurs.
>
> best regards
>
>
> Andy
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/fe40e080-f33e-4bc8-bce6-6611b0ba03df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2015-03-12 Thread Andy Steinhauf
Hello,

Thanks a lot for your answer. I recreated the refresh token, but the error 
still occurs.

best regards


Andy

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3a9cce3d-71ef-4428-8b67-5c921e756415%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2015-03-11 Thread Anash P. Oommen (AdWords API Team)
Hi Andy,

Try regenerating the refresh token once more. Looks like the refreshtoken 
grant changed after it was issued.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Wednesday, March 11, 2015 at 2:58:50 PM UTC-4, Andy Steinhauf wrote:
>
> Hello,
>
> I'm make my first steps with the adwords api and PHP. I've an client-id, 
> client-secret and refreshtoken, but after / during authentification a get 
> the above error.
>
> What exactly does it mean ? How I can fix it ?
>
>
> Thanks in advance...
>
>
> Andy
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9ec081bc-5e26-4b39-9539-d0079a25b1fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


An error has occurred: { "error" : "invalid_grant" }

2015-03-11 Thread Andy Steinhauf
Hello,

I'm make my first steps with the adwords api and PHP. I've an client-id, 
client-secret and refreshtoken, but after / during authentification a get 
the above error.

What exactly does it mean ? How I can fix it ?


Thanks in advance...


Andy

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ef984aed-45ab-4b05-b8a3-175e92a2f90e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2014-07-09 Thread Michael Cloonan (AdWords API Team)
gt; Thanks for removing the message.
>>>>>>
>>>>>> I think this is the XML send :
>>>>>>
>>>>>> >>>>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>>>>>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
>>>>>>  (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
>>>>>> PHP/5.3.3)IdNameNameASCENDING0500
>>>>>>
>>>>>>
>>>>>> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
>>>>>> (AdWords API Team):
>>>>>>>
>>>>>>> Hi Jur,
>>>>>>>
>>>>>>> Sorry I didn't mean to post client id and client secret. 
>>>>>>> I wanted to know what account did use to get your client id and 
>>>>>>> client secret.
>>>>>>>
>>>>>>> If you used your MCC account under which your test account is in or 
>>>>>>> the test account itself for getting client id and secret,
>>>>>>> the CampaignService.get should work. 
>>>>>>>
>>>>>>> Also I wanted to confirm the xml request log for 
>>>>>>> CampaignService.get. 
>>>>>>> Specifically clientCustomerId (for your test account) was included 
>>>>>>> in the soap header. 
>>>>>>>
>>>>>>> Best,
>>>>>>> - Takeshi,
>>>>>>>
>>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>>
>>>>>>>> Hello Takeshi,
>>>>>>>>
>>>>>>>> Clientid: xxx
>>>>>>>> Client_secreat:xxx
>>>>>>>>
>>>>>>>> I use the standard getCampainsExample function:
>>>>>>>>
>>>>>>>> // Include the AdWordsUser
>>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>>
>>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>>> ADWORDS_VERSION);
>>>>>>>>
>>>>>>>>   // Create selector.
>>>>>>>>   $selector = new Selector();
>>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>>
>>>>>>>>   // Create paging controls.
>>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>>
>>>>>>>>   do {
>>>>>>>> // Make the get request.
>>>>>>>> $page = $campaignService->get($selector);
>>>>>>>>
>>>>>>>> // Display results.
>>>>>>>> if (isset($page->entries)) {
>>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>>> $campaign->name, $campaign->id);
>>>>>>>>   }
>>>>>>>> } else {
>>>>>>>>   print "No campaigns were found.\n";
>>>>>>>> }
>>>>>>>>
>>>>>>>> // Advance the paging index.
>>>>>>>> $selector->paging->startIndex += 
>>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>>> }
>>>>>>>>
>>>>>>>> try {
>>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>>   $user = new AdWordsUser();
>>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>>   $user->LogAll();
>>>>>>>>   
>>>>>>>>   // Run the example.
>>>>>>>>   GetCampaignsExample($user);
>>>>>>>> } catch (Exception $e) {
>>>>>>>> print_r($e);
>>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>>> (AdWords API Team):
>>>>>>>>>
>>>>>>>>> Hi Jur, 
>>>>>>>>>
>>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>>
>>>>>>>>> Best,
>>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>>
>>>>>>>>>> Hello Guys,
>>>>>>>>>>  
>>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>>> "invalid_grant" } 
>>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>>  
>>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>>  
>>>>>>>>>> Regards,
>>>>>>>>>>  
>>>>>>>>>> Jur
>>>>>>>>>>  
>>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>>
>>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2014-07-07 Thread youfindadword . test
 account itself for getting client id and secret,
>>>>>> the CampaignService.get should work. 
>>>>>>
>>>>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>>>>> Specifically clientCustomerId (for your test account) was included in 
>>>>>> the soap header. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi,
>>>>>>
>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Takeshi,
>>>>>>>
>>>>>>> Clientid: xxx
>>>>>>> Client_secreat:xxx
>>>>>>>
>>>>>>> I use the standard getCampainsExample function:
>>>>>>>
>>>>>>> // Include the AdWordsUser
>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>
>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>> ADWORDS_VERSION);
>>>>>>>
>>>>>>>   // Create selector.
>>>>>>>   $selector = new Selector();
>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>
>>>>>>>   // Create paging controls.
>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>
>>>>>>>   do {
>>>>>>> // Make the get request.
>>>>>>>     $page = $campaignService->get($selector);
>>>>>>>
>>>>>>> // Display results.
>>>>>>> if (isset($page->entries)) {
>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>> $campaign->name, $campaign->id);
>>>>>>>   }
>>>>>>> } else {
>>>>>>>   print "No campaigns were found.\n";
>>>>>>> }
>>>>>>>
>>>>>>> // Advance the paging index.
>>>>>>> $selector->paging->startIndex += 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>> }
>>>>>>>
>>>>>>> try {
>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>   $user = new AdWordsUser();
>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>   $user->LogAll();
>>>>>>>   
>>>>>>>   // Run the example.
>>>>>>>   GetCampaignsExample($user);
>>>>>>> } catch (Exception $e) {
>>>>>>> print_r($e);
>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>> (AdWords API Team):
>>>>>>>>
>>>>>>>> Hi Jur, 
>>>>>>>>
>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>
>>>>>>>>> Hello Guys,
>>>>>>>>>  
>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>> "invalid_grant" } 
>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>  
>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>  
>>>>>>>>> Regards,
>>>>>>>>>  
>>>>>>>>> Jur
>>>>>>>>>  
>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>
>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2014-07-07 Thread youfindadword . test
he test account itself for getting client id and secret,
>>>>>> the CampaignService.get should work. 
>>>>>>
>>>>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>>>>> Specifically clientCustomerId (for your test account) was included in 
>>>>>> the soap header. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi,
>>>>>>
>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Takeshi,
>>>>>>>
>>>>>>> Clientid: xxx
>>>>>>> Client_secreat:xxx
>>>>>>>
>>>>>>> I use the standard getCampainsExample function:
>>>>>>>
>>>>>>> // Include the AdWordsUser
>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>
>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>> ADWORDS_VERSION);
>>>>>>>
>>>>>>>   // Create selector.
>>>>>>>   $selector = new Selector();
>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>
>>>>>>>   // Create paging controls.
>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>
>>>>>>>   do {
>>>>>>> // Make the get request.
>>>>>>>     $page = $campaignService->get($selector);
>>>>>>>
>>>>>>> // Display results.
>>>>>>> if (isset($page->entries)) {
>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>> $campaign->name, $campaign->id);
>>>>>>>   }
>>>>>>> } else {
>>>>>>>   print "No campaigns were found.\n";
>>>>>>> }
>>>>>>>
>>>>>>> // Advance the paging index.
>>>>>>> $selector->paging->startIndex += 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>> }
>>>>>>>
>>>>>>> try {
>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>   $user = new AdWordsUser();
>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>   $user->LogAll();
>>>>>>>   
>>>>>>>   // Run the example.
>>>>>>>   GetCampaignsExample($user);
>>>>>>> } catch (Exception $e) {
>>>>>>> print_r($e);
>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>> (AdWords API Team):
>>>>>>>>
>>>>>>>> Hi Jur, 
>>>>>>>>
>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>
>>>>>>>>> Hello Guys,
>>>>>>>>>  
>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>> "invalid_grant" } 
>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>  
>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>  
>>>>>>>>> Regards,
>>>>>>>>>  
>>>>>>>>> Jur
>>>>>>>>>  
>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>
>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2014-07-07 Thread fans913
>>>>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>>>>> Specifically clientCustomerId (for your test account) was included in 
>>>>>> the soap header. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi,
>>>>>>
>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Takeshi,
>>>>>>>
>>>>>>> Clientid: xxx
>>>>>>> Client_secreat:xxx
>>>>>>>
>>>>>>> I use the standard getCampainsExample function:
>>>>>>>
>>>>>>> // Include the AdWordsUser
>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>
>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>> ADWORDS_VERSION);
>>>>>>>
>>>>>>>   // Create selector.
>>>>>>>   $selector = new Selector();
>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>
>>>>>>>   // Create paging controls.
>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>
>>>>>>>   do {
>>>>>>> // Make the get request.
>>>>>>> $page = $campaignService->get($selector);
>>>>>>>
>>>>>>> // Display results.
>>>>>>> if (isset($page->entries)) {
>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>> $campaign->name, $campaign->id);
>>>>>>>   }
>>>>>>> } else {
>>>>>>>   print "No campaigns were found.\n";
>>>>>>> }
>>>>>>>
>>>>>>> // Advance the paging index.
>>>>>>> $selector->paging->startIndex += 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>> }
>>>>>>>
>>>>>>> try {
>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>   $user = new AdWordsUser();
>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>   $user->LogAll();
>>>>>>>   
>>>>>>>   // Run the example.
>>>>>>>   GetCampaignsExample($user);
>>>>>>> } catch (Exception $e) {
>>>>>>> print_r($e);
>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>> (AdWords API Team):
>>>>>>>>
>>>>>>>> Hi Jur, 
>>>>>>>>
>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>
>>>>>>>>> Hello Guys,
>>>>>>>>>  
>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>> "invalid_grant" } 
>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>  
>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>  
>>>>>>>>> Regards,
>>>>>>>>>  
>>>>>>>>> Jur
>>>>>>>>>  
>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>
>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2014-07-07 Thread youfindadword . test
he test account itself for getting client id and secret,
>>>>>> the CampaignService.get should work. 
>>>>>>
>>>>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>>>>> Specifically clientCustomerId (for your test account) was included in 
>>>>>> the soap header. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi,
>>>>>>
>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Takeshi,
>>>>>>>
>>>>>>> Clientid: xxx
>>>>>>> Client_secreat:xxx
>>>>>>>
>>>>>>> I use the standard getCampainsExample function:
>>>>>>>
>>>>>>> // Include the AdWordsUser
>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>
>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>> ADWORDS_VERSION);
>>>>>>>
>>>>>>>   // Create selector.
>>>>>>>   $selector = new Selector();
>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>
>>>>>>>   // Create paging controls.
>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>
>>>>>>>   do {
>>>>>>> // Make the get request.
>>>>>>>     $page = $campaignService->get($selector);
>>>>>>>
>>>>>>> // Display results.
>>>>>>> if (isset($page->entries)) {
>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>> $campaign->name, $campaign->id);
>>>>>>>   }
>>>>>>> } else {
>>>>>>>   print "No campaigns were found.\n";
>>>>>>> }
>>>>>>>
>>>>>>> // Advance the paging index.
>>>>>>> $selector->paging->startIndex += 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>> }
>>>>>>>
>>>>>>> try {
>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>   $user = new AdWordsUser();
>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>   $user->LogAll();
>>>>>>>   
>>>>>>>   // Run the example.
>>>>>>>   GetCampaignsExample($user);
>>>>>>> } catch (Exception $e) {
>>>>>>> print_r($e);
>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>> (AdWords API Team):
>>>>>>>>
>>>>>>>> Hi Jur, 
>>>>>>>>
>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>
>>>>>>>>> Hello Guys,
>>>>>>>>>  
>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>> "invalid_grant" } 
>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>  
>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>  
>>>>>>>>> Regards,
>>>>>>>>>  
>>>>>>>>> Jur
>>>>>>>>>  
>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>
>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-26 Thread Takeshi Hagikura (AdWords API Team)
>>>> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
>>>>>> (AdWords API Team):
>>>>>>>
>>>>>>> Hi Jur,
>>>>>>>
>>>>>>> Sorry I didn't mean to post client id and client secret. 
>>>>>>> I wanted to know what account did use to get your client id and 
>>>>>>> client secret.
>>>>>>>
>>>>>>> If you used your MCC account under which your test account is in or 
>>>>>>> the test account itself for getting client id and secret,
>>>>>>> the CampaignService.get should work. 
>>>>>>>
>>>>>>> Also I wanted to confirm the xml request log for 
>>>>>>> CampaignService.get. 
>>>>>>> Specifically clientCustomerId (for your test account) was included 
>>>>>>> in the soap header. 
>>>>>>>
>>>>>>> Best,
>>>>>>> - Takeshi,
>>>>>>>
>>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>>
>>>>>>>> Hello Takeshi,
>>>>>>>>
>>>>>>>> Clientid: xxx
>>>>>>>> Client_secreat:xxx
>>>>>>>>
>>>>>>>> I use the standard getCampainsExample function:
>>>>>>>>
>>>>>>>> // Include the AdWordsUser
>>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>>
>>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>>> ADWORDS_VERSION);
>>>>>>>>
>>>>>>>>   // Create selector.
>>>>>>>>   $selector = new Selector();
>>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>>
>>>>>>>>   // Create paging controls.
>>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>>
>>>>>>>>   do {
>>>>>>>> // Make the get request.
>>>>>>>> $page = $campaignService->get($selector);
>>>>>>>>
>>>>>>>> // Display results.
>>>>>>>> if (isset($page->entries)) {
>>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>>> $campaign->name, $campaign->id);
>>>>>>>>   }
>>>>>>>> } else {
>>>>>>>>   print "No campaigns were found.\n";
>>>>>>>> }
>>>>>>>>
>>>>>>>> // Advance the paging index.
>>>>>>>> $selector->paging->startIndex += 
>>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>>> }
>>>>>>>>
>>>>>>>> try {
>>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>>   $user = new AdWordsUser();
>>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>>   $user->LogAll();
>>>>>>>>   
>>>>>>>>   // Run the example.
>>>>>>>>   GetCampaignsExample($user);
>>>>>>>> } catch (Exception $e) {
>>>>>>>> print_r($e);
>>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>>> (AdWords API Team):
>>>>>>>>>
>>>>>>>>> Hi Jur, 
>>>>>>>>>
>>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>>
>>>>>>>>> Best,
>>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>>
>>>>>>>>>> Hello Guys,
>>>>>>>>>>  
>>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>>> "invalid_grant" } 
>>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>>  
>>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>>  
>>>>>>>>>> Regards,
>>>>>>>>>>  
>>>>>>>>>> Jur
>>>>>>>>>>  
>>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>>
>>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-26 Thread Robert Rafai
Look at my Posting:
https://groups.google.com/forum/?hl=en#!topic/adwords-api/ka19cZNbQo8

Its not the Refresh_token, it is the Authcode.
I have inserted in the getrefreshtoken.php and then i got the refresh_token.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-23 Thread Jur
;>>> the CampaignService.get should work. 
>>>>>>
>>>>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>>>>> Specifically clientCustomerId (for your test account) was included in 
>>>>>> the soap header. 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi,
>>>>>>
>>>>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Takeshi,
>>>>>>>
>>>>>>> Clientid: xxx
>>>>>>> Client_secreat:xxx
>>>>>>>
>>>>>>> I use the standard getCampainsExample function:
>>>>>>>
>>>>>>> // Include the AdWordsUser
>>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>>
>>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>>   // Get the service, which loads the required classes.
>>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>>> ADWORDS_VERSION);
>>>>>>>
>>>>>>>   // Create selector.
>>>>>>>   $selector = new Selector();
>>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>>
>>>>>>>   // Create paging controls.
>>>>>>>   $selector->paging = new Paging(0, 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>>
>>>>>>>   do {
>>>>>>> // Make the get request.
>>>>>>> $page = $campaignService->get($selector);
>>>>>>>
>>>>>>> // Display results.
>>>>>>> if (isset($page->entries)) {
>>>>>>>   foreach ($page->entries as $campaign) {
>>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>>> $campaign->name, $campaign->id);
>>>>>>>   }
>>>>>>> } else {
>>>>>>>   print "No campaigns were found.\n";
>>>>>>> }
>>>>>>>
>>>>>>> // Advance the paging index.
>>>>>>> $selector->paging->startIndex += 
>>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>>> }
>>>>>>>
>>>>>>> try {
>>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>>   $user = new AdWordsUser();
>>>>>>>   // Log every SOAP XML request and response.
>>>>>>>   $user->LogAll();
>>>>>>>   
>>>>>>>   // Run the example.
>>>>>>>   GetCampaignsExample($user);
>>>>>>> } catch (Exception $e) {
>>>>>>> print_r($e);
>>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>>> (AdWords API Team):
>>>>>>>>
>>>>>>>> Hi Jur, 
>>>>>>>>
>>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>>> you run the GetRefreshToken.php script?
>>>>>>>> And can you please share the request xml when you run the 
>>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> - Takeshi, AdWords API Team
>>>>>>>>
>>>>>>>>
>>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>>
>>>>>>>>> Hello Guys,
>>>>>>>>>  
>>>>>>>>> I'm working on my first Google Adwords API application, but I 
>>>>>>>>> can't get passed the oauth2 verification.
>>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>>> "invalid_grant" } 
>>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>>  
>>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>>  
>>>>>>>>> Regards,
>>>>>>>>>  
>>>>>>>>> Jur
>>>>>>>>>  
>>>>>>>>> MMC id : 916-243-9387
>>>>>>>>>
>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-22 Thread Takeshi Hagikura (AdWords API Team)
tion:
>>>>>>
>>>>>> // Include the AdWordsUser
>>>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>>>
>>>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>>>   // Get the service, which loads the required classes.
>>>>>>   $campaignService = $user->GetService('CampaignService', 
>>>>>> ADWORDS_VERSION);
>>>>>>
>>>>>>   // Create selector.
>>>>>>   $selector = new Selector();
>>>>>>   $selector->fields = array('Id', 'Name');
>>>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>>>
>>>>>>   // Create paging controls.
>>>>>>   $selector->paging = new Paging(0, 
>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>>>
>>>>>>   do {
>>>>>> // Make the get request.
>>>>>> $page = $campaignService->get($selector);
>>>>>>
>>>>>> // Display results.
>>>>>> if (isset($page->entries)) {
>>>>>>   foreach ($page->entries as $campaign) {
>>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>>> $campaign->name, $campaign->id);
>>>>>>   }
>>>>>> } else {
>>>>>>   print "No campaigns were found.\n";
>>>>>> }
>>>>>>
>>>>>> // Advance the paging index.
>>>>>> $selector->paging->startIndex += 
>>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>>> }
>>>>>>
>>>>>> try {
>>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>>   $user = new AdWordsUser();
>>>>>>   // Log every SOAP XML request and response.
>>>>>>   $user->LogAll();
>>>>>>   
>>>>>>   // Run the example.
>>>>>>   GetCampaignsExample($user);
>>>>>> } catch (Exception $e) {
>>>>>> print_r($e);
>>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>>> (AdWords API Team):
>>>>>>>
>>>>>>> Hi Jur, 
>>>>>>>
>>>>>>> What clientId and clientSecret are you passing to the script when 
>>>>>>> you run the GetRefreshToken.php script?
>>>>>>> And can you please share the request xml when you run the 
>>>>>>> GetCampaign (except for the sensitive info)? 
>>>>>>>
>>>>>>> Best,
>>>>>>> - Takeshi, AdWords API Team
>>>>>>>
>>>>>>>
>>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>>
>>>>>>>> Hello Guys,
>>>>>>>>  
>>>>>>>> I'm working on my first Google Adwords API application, but I can't 
>>>>>>>> get passed the oauth2 verification.
>>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, 
>>>>>>>> but I get the error : An error has occurred: { "error" : 
>>>>>>>> "invalid_grant" } 
>>>>>>>> when I request a list of campaines in my test account.
>>>>>>>>  
>>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>>  
>>>>>>>> Regards,
>>>>>>>>  
>>>>>>>> Jur
>>>>>>>>  
>>>>>>>> MMC id : 916-243-9387
>>>>>>>>
>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-22 Thread Jur
;>>>> // Display results.
>>>>> if (isset($page->entries)) {
>>>>>   foreach ($page->entries as $campaign) {
>>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>>> $campaign->name, $campaign->id);
>>>>>   }
>>>>> } else {
>>>>>   print "No campaigns were found.\n";
>>>>> }
>>>>>
>>>>> // Advance the paging index.
>>>>> $selector->paging->startIndex += 
>>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>>> }
>>>>>
>>>>> try {
>>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>>   // relative to the AdWordsUser.php file's directory.
>>>>>   $user = new AdWordsUser();
>>>>>   // Log every SOAP XML request and response.
>>>>>   $user->LogAll();
>>>>>   
>>>>>   // Run the example.
>>>>>   GetCampaignsExample($user);
>>>>> } catch (Exception $e) {
>>>>> print_r($e);
>>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>>> }
>>>>>
>>>>>
>>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>>> (AdWords API Team):
>>>>>>
>>>>>> Hi Jur, 
>>>>>>
>>>>>> What clientId and clientSecret are you passing to the script when you 
>>>>>> run the GetRefreshToken.php script?
>>>>>> And can you please share the request xml when you run the GetCampaign 
>>>>>> (except for the sensitive info)? 
>>>>>>
>>>>>> Best,
>>>>>> - Takeshi, AdWords API Team
>>>>>>
>>>>>>
>>>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>>>
>>>>>>> Hello Guys,
>>>>>>>  
>>>>>>> I'm working on my first Google Adwords API application, but I can't 
>>>>>>> get passed the oauth2 verification.
>>>>>>> I could get a refresh_token with the GetRefreshToken.php script, but 
>>>>>>> I get the error : An error has occurred: { "error" : "invalid_grant" } 
>>>>>>> when 
>>>>>>> I request a list of campaines in my test account.
>>>>>>>  
>>>>>>> Hope someone can help me out in the right direction.
>>>>>>>  
>>>>>>> Regards,
>>>>>>>  
>>>>>>> Jur
>>>>>>>  
>>>>>>> MMC id : 916-243-9387
>>>>>>>
>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Takeshi Hagikura (AdWords API Team)
Hi Jur,

The SOAP xml looks right to me. 

So next, what account did you use in api console to retrieve your client id 
and client secret?
Also did you replace the refresh_token in your auth.ini by the refresh 
token returned in GetRefreshToken.php?

Best,
- Takeshi, 

On Wednesday, August 21, 2013 11:05:34 PM UTC+9, Jur wrote:
>
> Hello Takeshi,
>
> I think the error is in this part of the code in the file 
> /Common/Lib/AdsSoapClient.php:
> $response = parent::__soapCall($function_name, $arguments, $options,
>   $input_headers, $output_headers);
>
> Hope you can help me!
>
> Regards,
>
> Jur
>
> Op woensdag 21 augustus 2013 13:53:06 UTC+2 schreef Jur:
>>
>> Hello Takeshi,
>>
>> I did find it a strange request, but I did send it anyway :-)
>> Thanks for removing the message.
>>
>> I think this is the XML send :
>>
>> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
>>  (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
>> PHP/5.3.3)IdNameNameASCENDING0500
>>
>>
>> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
>> (AdWords API Team):
>>>
>>> Hi Jur,
>>>
>>> Sorry I didn't mean to post client id and client secret. 
>>> I wanted to know what account did use to get your client id and client 
>>> secret.
>>>
>>> If you used your MCC account under which your test account is in or the 
>>> test account itself for getting client id and secret,
>>> the CampaignService.get should work. 
>>>
>>> Also I wanted to confirm the xml request log for CampaignService.get. 
>>> Specifically clientCustomerId (for your test account) was included in 
>>> the soap header. 
>>>
>>> Best,
>>> - Takeshi,
>>>
>>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>>
>>>> Hello Takeshi,
>>>>
>>>> Clientid: xxx
>>>> Client_secreat:xxx
>>>>
>>>> I use the standard getCampainsExample function:
>>>>
>>>> // Include the AdWordsUser
>>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>>
>>>> function GetCampaignsExample(AdWordsUser $user) {
>>>>   // Get the service, which loads the required classes.
>>>>   $campaignService = $user->GetService('CampaignService', 
>>>> ADWORDS_VERSION);
>>>>
>>>>   // Create selector.
>>>>   $selector = new Selector();
>>>>   $selector->fields = array('Id', 'Name');
>>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>>
>>>>   // Create paging controls.
>>>>   $selector->paging = new Paging(0, 
>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>>
>>>>   do {
>>>> // Make the get request.
>>>> $page = $campaignService->get($selector);
>>>>
>>>> // Display results.
>>>> if (isset($page->entries)) {
>>>>   foreach ($page->entries as $campaign) {
>>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>>> $campaign->name, $campaign->id);
>>>>   }
>>>> } else {
>>>>   print "No campaigns were found.\n";
>>>> }
>>>>
>>>> // Advance the paging index.
>>>> $selector->paging->startIndex += 
>>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>>> }
>>>>
>>>> try {
>>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>>   // relative to the AdWordsUser.php file's directory.
>>>>   $user = new AdWordsUser();
>>>>   // Log every SOAP XML request and response.
>>>>   $user->LogAll();
>>>>   
>>>>   // Run the example.
>>>>   GetCampaignsExample($user);
>>>> } catch (Exception $e) {
>>>> print_r($e);
>>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>>> }
>>>>
>>>>
>>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>>> (AdWords API Team)

Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Jur
Hello Takeshi,

I think the error is in this part of the code in the file 
/Common/Lib/AdsSoapClient.php:
$response = parent::__soapCall($function_name, $arguments, $options,
  $input_headers, $output_headers);

Hope you can help me!

Regards,

Jur

Op woensdag 21 augustus 2013 13:53:06 UTC+2 schreef Jur:
>
> Hello Takeshi,
>
> I did find it a strange request, but I did send it anyway :-)
> Thanks for removing the message.
>
> I think this is the XML send :
>
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
>  (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
> PHP/5.3.3)IdNameNameASCENDING0500
>
>
> Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
> (AdWords API Team):
>>
>> Hi Jur,
>>
>> Sorry I didn't mean to post client id and client secret. 
>> I wanted to know what account did use to get your client id and client 
>> secret.
>>
>> If you used your MCC account under which your test account is in or the 
>> test account itself for getting client id and secret,
>> the CampaignService.get should work. 
>>
>> Also I wanted to confirm the xml request log for CampaignService.get. 
>> Specifically clientCustomerId (for your test account) was included in the 
>> soap header. 
>>
>> Best,
>> - Takeshi,
>>
>> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>>
>>> Hello Takeshi,
>>>
>>> Clientid: xxx
>>> Client_secreat:xxx
>>>
>>> I use the standard getCampainsExample function:
>>>
>>> // Include the AdWordsUser
>>> require_once LIB_PATH . '/AdWordsUser.php';
>>>
>>> function GetCampaignsExample(AdWordsUser $user) {
>>>   // Get the service, which loads the required classes.
>>>   $campaignService = $user->GetService('CampaignService', 
>>> ADWORDS_VERSION);
>>>
>>>   // Create selector.
>>>   $selector = new Selector();
>>>   $selector->fields = array('Id', 'Name');
>>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>>
>>>   // Create paging controls.
>>>   $selector->paging = new Paging(0, 
>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>>
>>>   do {
>>> // Make the get request.
>>> $page = $campaignService->get($selector);
>>>
>>> // Display results.
>>> if (isset($page->entries)) {
>>>   foreach ($page->entries as $campaign) {
>>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>>> $campaign->name, $campaign->id);
>>>   }
>>> } else {
>>>   print "No campaigns were found.\n";
>>> }
>>>
>>> // Advance the paging index.
>>> $selector->paging->startIndex += 
>>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>>> }
>>>
>>> try {
>>>   // Get AdWordsUser from credentials in "../auth.ini"
>>>   // relative to the AdWordsUser.php file's directory.
>>>   $user = new AdWordsUser();
>>>   // Log every SOAP XML request and response.
>>>   $user->LogAll();
>>>   
>>>   // Run the example.
>>>   GetCampaignsExample($user);
>>> } catch (Exception $e) {
>>> print_r($e);
>>>   printf("An error has occurred: %s\n", $e->getMessage());
>>> }
>>>
>>>
>>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>>> (AdWords API Team):
>>>>
>>>> Hi Jur, 
>>>>
>>>> What clientId and clientSecret are you passing to the script when you 
>>>> run the GetRefreshToken.php script?
>>>> And can you please share the request xml when you run the GetCampaign 
>>>> (except for the sensitive info)? 
>>>>
>>>> Best,
>>>> - Takeshi, AdWords API Team
>>>>
>>>>
>>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>>
>>>>> Hello Guys,
>>>>>  
>>>>> I'm working on my first Google Adwords API application, but I can't 
>>>>> get passed the oauth2 verification.
>>>>> I c

Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-21 Thread Jur
Hello Takeshi,

I did find it a strange request, but I did send it anyway :-)
Thanks for removing the message.

I think this is the XML send :

http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306";>823-418-1279RIS_Online_Conversion
 (AwApi-PHP/4.4.0, Common-PHP/5.0.0, 
PHP/5.3.3)IdNameNameASCENDING0500


Op dinsdag 20 augustus 2013 17:37:50 UTC+2 schreef Takeshi Hagikura 
(AdWords API Team):
>
> Hi Jur,
>
> Sorry I didn't mean to post client id and client secret. 
> I wanted to know what account did use to get your client id and client 
> secret.
>
> If you used your MCC account under which your test account is in or the 
> test account itself for getting client id and secret,
> the CampaignService.get should work. 
>
> Also I wanted to confirm the xml request log for CampaignService.get. 
> Specifically clientCustomerId (for your test account) was included in the 
> soap header. 
>
> Best,
> - Takeshi,
>
> On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>>
>> Hello Takeshi,
>>
>> Clientid: xxx
>> Client_secreat:xxx
>>
>> I use the standard getCampainsExample function:
>>
>> // Include the AdWordsUser
>> require_once LIB_PATH . '/AdWordsUser.php';
>>
>> function GetCampaignsExample(AdWordsUser $user) {
>>   // Get the service, which loads the required classes.
>>   $campaignService = $user->GetService('CampaignService', 
>> ADWORDS_VERSION);
>>
>>   // Create selector.
>>   $selector = new Selector();
>>   $selector->fields = array('Id', 'Name');
>>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>>
>>   // Create paging controls.
>>   $selector->paging = new Paging(0, 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>
>>   do {
>> // Make the get request.
>> $page = $campaignService->get($selector);
>>
>> // Display results.
>> if (isset($page->entries)) {
>>   foreach ($page->entries as $campaign) {
>> printf("Campaign with name '%s' and ID '%s' was found.\n",
>> $campaign->name, $campaign->id);
>>   }
>> } else {
>>   print "No campaigns were found.\n";
>> }
>>
>> // Advance the paging index.
>> $selector->paging->startIndex += 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>> }
>>
>> try {
>>   // Get AdWordsUser from credentials in "../auth.ini"
>>   // relative to the AdWordsUser.php file's directory.
>>   $user = new AdWordsUser();
>>   // Log every SOAP XML request and response.
>>   $user->LogAll();
>>   
>>   // Run the example.
>>   GetCampaignsExample($user);
>> } catch (Exception $e) {
>> print_r($e);
>>   printf("An error has occurred: %s\n", $e->getMessage());
>> }
>>
>>
>> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
>> (AdWords API Team):
>>>
>>> Hi Jur, 
>>>
>>> What clientId and clientSecret are you passing to the script when you 
>>> run the GetRefreshToken.php script?
>>> And can you please share the request xml when you run the GetCampaign 
>>> (except for the sensitive info)? 
>>>
>>> Best,
>>> - Takeshi, AdWords API Team
>>>
>>>
>>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>>
>>>> Hello Guys,
>>>>  
>>>> I'm working on my first Google Adwords API application, but I can't get 
>>>> passed the oauth2 verification.
>>>> I could get a refresh_token with the GetRefreshToken.php script, but I 
>>>> get the error : An error has occurred: { "error" : "invalid_grant" } when 
>>>> I 
>>>> request a list of campaines in my test account.
>>>>  
>>>> Hope someone can help me out in the right direction.
>>>>  
>>>> Regards,
>>>>  
>>>> Jur
>>>>  
>>>> MMC id : 916-243-9387
>>>>
>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-20 Thread Takeshi Hagikura (AdWords API Team)
Hi Jur,

Sorry I didn't mean to post client id and client secret. 
I wanted to know what account did use to get your client id and client 
secret.

If you used your MCC account under which your test account is in or the 
test account itself for getting client id and secret,
the CampaignService.get should work. 

Also I wanted to confirm the xml request log for CampaignService.get. 
Specifically clientCustomerId (for your test account) was included in the 
soap header. 

Best,
- Takeshi,

On Tuesday, August 20, 2013 8:54:23 PM UTC+9, Jur wrote:
>
> Hello Takeshi,
>
> Clientid: xxx
> Client_secreat:xxx
>
> I use the standard getCampainsExample function:
>
> // Include the AdWordsUser
> require_once LIB_PATH . '/AdWordsUser.php';
>
> function GetCampaignsExample(AdWordsUser $user) {
>   // Get the service, which loads the required classes.
>   $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);
>
>   // Create selector.
>   $selector = new Selector();
>   $selector->fields = array('Id', 'Name');
>   $selector->ordering[] = new OrderBy('Name', 'ASCENDING');
>
>   // Create paging controls.
>   $selector->paging = new Paging(0, 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>
>   do {
> // Make the get request.
> $page = $campaignService->get($selector);
>
> // Display results.
> if (isset($page->entries)) {
>   foreach ($page->entries as $campaign) {
> printf("Campaign with name '%s' and ID '%s' was found.\n",
> $campaign->name, $campaign->id);
>   }
> } else {
>   print "No campaigns were found.\n";
> }
>
> // Advance the paging index.
> $selector->paging->startIndex += 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>   } while ($page->totalNumEntries > $selector->paging->startIndex);
> }
>
> try {
>   // Get AdWordsUser from credentials in "../auth.ini"
>   // relative to the AdWordsUser.php file's directory.
>   $user = new AdWordsUser();
>   // Log every SOAP XML request and response.
>   $user->LogAll();
>   
>   // Run the example.
>   GetCampaignsExample($user);
> } catch (Exception $e) {
> print_r($e);
>   printf("An error has occurred: %s\n", $e->getMessage());
> }
>
>
> Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
> (AdWords API Team):
>>
>> Hi Jur, 
>>
>> What clientId and clientSecret are you passing to the script when you run 
>> the GetRefreshToken.php script?
>> And can you please share the request xml when you run the GetCampaign 
>> (except for the sensitive info)? 
>>
>> Best,
>> - Takeshi, AdWords API Team
>>
>>
>> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>>
>>> Hello Guys,
>>>  
>>> I'm working on my first Google Adwords API application, but I can't get 
>>> passed the oauth2 verification.
>>> I could get a refresh_token with the GetRefreshToken.php script, but I 
>>> get the error : An error has occurred: { "error" : "invalid_grant" } when I 
>>> request a list of campaines in my test account.
>>>  
>>> Hope someone can help me out in the right direction.
>>>  
>>> Regards,
>>>  
>>> Jur
>>>  
>>> MMC id : 916-243-9387
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-20 Thread Jur
Hello Takeshi,

Clientid: 
535034169318-5vb9ld76jrt5htp9860ps5k6kjqua6c6.apps.googleusercontent.com
Client_secreat:fEQ5CL5xL9s-joJI990A-8C4 

I use the standard getCampainsExample function:

// Include the AdWordsUser
require_once LIB_PATH . '/AdWordsUser.php';

function GetCampaignsExample(AdWordsUser $user) {
  // Get the service, which loads the required classes.
  $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);

  // Create selector.
  $selector = new Selector();
  $selector->fields = array('Id', 'Name');
  $selector->ordering[] = new OrderBy('Name', 'ASCENDING');

  // Create paging controls.
  $selector->paging = new Paging(0, 
AdWordsConstants::RECOMMENDED_PAGE_SIZE);

  do {
// Make the get request.
$page = $campaignService->get($selector);

// Display results.
if (isset($page->entries)) {
  foreach ($page->entries as $campaign) {
printf("Campaign with name '%s' and ID '%s' was found.\n",
$campaign->name, $campaign->id);
  }
} else {
  print "No campaigns were found.\n";
}

// Advance the paging index.
$selector->paging->startIndex += 
AdWordsConstants::RECOMMENDED_PAGE_SIZE;
  } while ($page->totalNumEntries > $selector->paging->startIndex);
}

try {
  // Get AdWordsUser from credentials in "../auth.ini"
  // relative to the AdWordsUser.php file's directory.
  $user = new AdWordsUser();
  // Log every SOAP XML request and response.
  $user->LogAll();
  
  // Run the example.
  GetCampaignsExample($user);
} catch (Exception $e) {
print_r($e);
  printf("An error has occurred: %s\n", $e->getMessage());
}


Op maandag 19 augustus 2013 10:30:24 UTC+2 schreef Takeshi Hagikura 
(AdWords API Team):
>
> Hi Jur, 
>
> What clientId and clientSecret are you passing to the script when you run 
> the GetRefreshToken.php script?
> And can you please share the request xml when you run the GetCampaign 
> (except for the sensitive info)? 
>
> Best,
> - Takeshi, AdWords API Team
>
>
> On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>>
>> Hello Guys,
>>  
>> I'm working on my first Google Adwords API application, but I can't get 
>> passed the oauth2 verification.
>> I could get a refresh_token with the GetRefreshToken.php script, but I 
>> get the error : An error has occurred: { "error" : "invalid_grant" } when I 
>> request a list of campaines in my test account.
>>  
>> Hope someone can help me out in the right direction.
>>  
>> Regards,
>>  
>> Jur
>>  
>> MMC id : 916-243-9387
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: An error has occurred: { "error" : "invalid_grant" }

2013-08-19 Thread Takeshi Hagikura (AdWords API Team)
Hi Jur, 

What clientId and clientSecret are you passing to the script when you run 
the GetRefreshToken.php script?
And can you please share the request xml when you run the GetCampaign 
(except for the sensitive info)? 

Best,
- Takeshi, AdWords API Team


On Friday, August 9, 2013 1:15:48 AM UTC+9, Jur wrote:
>
> Hello Guys,
>  
> I'm working on my first Google Adwords API application, but I can't get 
> passed the oauth2 verification.
> I could get a refresh_token with the GetRefreshToken.php script, but I get 
> the error : An error has occurred: { "error" : "invalid_grant" } when I 
> request a list of campaines in my test account.
>  
> Hope someone can help me out in the right direction.
>  
> Regards,
>  
> Jur
>  
> MMC id : 916-243-9387
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


An error has occurred: { "error" : "invalid_grant" }

2013-08-09 Thread Jur
Hello Guys,
 
I'm working on my first Google Adwords API application, but I can't get 
passed the oauth2 verification.
I could get a refresh_token with the GetRefreshToken.php script, but I get 
the error : An error has occurred: { "error" : "invalid_grant" } when I 
request a list of campaines in my test account.
 
Hope someone can help me out in the right direction.
 
Regards,
 
Jur
 
MMC id : 916-243-9387

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.