Re: "(403) Customer is not an AdSense Host." ?

206 views
Skip to first unread message

Jose Alcérreca (AdSense API Team)

unread,
Feb 13, 2013, 8:40:33 AM2/13/13
to adsen...@googlegroups.com
Hi there,

That's really difficult to debug remotely. Has your sandbox been activated? Anyway, I'd recommend you use the APIs Explorer to test the calls:


If you use an incognito window you can make sure that you're using your correct sandbox account.

Cheers,
Jose


---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers.google.com/adsense


On Sunday, 10 February 2013 14:45:14 UTC, DM wrote:
Hello,

I'm updating my code to use v4.1 and was testing association with my sandbox account. Managed to authenticate, yet, by calling the "start" function from the API library, following exception showed up:
 
Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/adsensehost/v4.1/associationsessions/start?productCode=AFC&websiteUrl=www.example.com&key=mykey: (403) Customer is not an AdSense Host.' in /path/libraries/Google/io/Google_REST.php:66 Stack trace: #0 /path/libraries/Google/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 /path/libraries/Google/service/Google_ServiceResource.php(177): Google_REST::execute(Object(Google_HttpRequest)) #2 /path/libraries/Google/contrib/Google_AdsensehostService.php(161): Google_ServiceResource->__call('start', Array) #3 /path/libraries/Adsense.php(52): Google_AssociationsessionsServiceResource->start('AFC', 'www.example in/path/libraries/Google/io/Google_REST.php on line 66

Any ideas? 

Jose Alcérreca (AdSense API Team)

unread,
Feb 18, 2013, 6:08:10 AM2/18/13
to adsen...@googlegroups.com
Hi,

Have you activated your sandbox account? If so, please send us an e-mail (adsense...@google.com) with the account you're using so we can check its status. 

Thanks,
Jose


---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers.google.com/adsense


On Sunday, 17 February 2013 15:54:58 UTC, DM wrote:
Thanks, I tried there as well - same error. 

Just to confirm - what exactly is expected to be provided as websiteUrl and what the formatting is supposed to be (with http:// or not)?

sax2sax

unread,
Feb 18, 2013, 6:28:03 AM2/18/13
to adsen...@googlegroups.com
Hello,

Yes, we activated it - buki...@gmail.com.

-Dimitar

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

Jose Alcérreca (AdSense API Team)

unread,
Feb 20, 2013, 12:32:54 PM2/20/13
to adsen...@googlegroups.com
Hi,

Everything seems right. Can you copy the header and response from the APIs explorer and paste it in an e-mail to the aforementioned address?

Thank you,
Jose

---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


Google Inc.| Developer Relations | AdSense API Team | developers.google.com/adsense


Reply all
Reply to author
Forward
0 new messages