Group: http://groups.google.com/group/adsense-api/topics
- Generating Ads with PHP [5 Updates]
- Sean <neolocutus@gmail.com> Apr 12 11:04AM -0700
Do you need to get the list of available product types from AdClient first
to build ads?
Like this part of the returned array from the get function
Array ( [kind] => adsensehost#adClient [id] => ca-host-pub-15831278XXXXXXXX
[productCode] => AFC_HOST [supportsReporting] => 1 )
for the insert statement for the adUnit function. accountID is the pubID
of the end user correct? So what value should be for adClientID? I think
that is where I'm stuck.
Sean
On Friday, April 12, 2013 3:00:03 AM UTC-6, Jose Alcérreca (AdSense API
Team) wrote:
- "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Apr 15 10:06AM -0700
Hi there,
The ad client id would be ca-host-pub-15831278XXXXXXXX.
Cheers!
---
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 <https://developers.google.com/adsense/>
On Friday, 12 April 2013 19:04:00 UTC+1, Sean wrote:
- Sean <neolocutus@gmail.com> Apr 15 05:58PM -0700
This is my settings from the test page
Which lead to this
On Monday, April 15, 2013 11:06:13 AM UTC-6, Jose Alcérreca (AdSense API
Team) wrote:
- Sean <neolocutus@gmail.com> Apr 15 05:50PM -0700
When using the the sample php code, and plug in all the numbers for both
IDs I get the following error about adclient not found. Which makes no
sense as to why it is doing that.
*Fatal error*: Uncaught exception 'Google_ServiceException' with message
'Error calling POST
https://www.googleapis.com/adsensehost/v4.1/accounts/pub-25716040XXXXXXXXX/adclients/74197XXXXXXXXXX.apps.googleusercontent.com/adunits?key=AIzaSyDCXXXXXXXXXvkxQBU1JYplaoNwc5-E:
(404) Ad client not found.'
I've been trying to use the try it console from here :
https://developers.google.com/adsense/host/v4.1/accounts/adunits/insert
When i fill in the accountID and adClientID and leave the adUnit section
blank, I can get the same AdClient not found error as above. And when I
fill in the AdCode section to see what response I get, I get this
503 Service Unavailable
- Show headers -
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 503,
"message": "Backend Error"
}
}
I'm wondering if either I'm still missing something, or because I can't get it to work right that there is either a bug in the php sample code that isn't getting the ad unit info through the API correctly, or if something else isn't working quite right.
Sean
On Monday, April 15, 2013 11:06:13 AM UTC-6, Jose Alcérreca (AdSense API
Team) wrote:
- "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Apr 16 01:39AM -0700
Hi Sean,
You're using the Client ID from the APIs console, not the "ca-pub-XXXXXXXX"
ad client ID.
/adsensehost/v4.1/accounts/pub-25716040XXXXXXXXX/adclients/*
74197XXXXXXXXXX.apps.googleusercontent.com*/adunits
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 <https://developers.google.com/adsense/>
On Tuesday, 16 April 2013 01:50:04 UTC+1, Sean wrote:
You received this message because you are subscribed to the Google Group adsense-api.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
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+unsubscribe@googlegroups.com.
To post to this group, send email to adsense-api@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.
Finallу my husbanԁ gеts а cаll at
ReplyDeletewοrk, from hіs frіend's wife. Copies of all receipt for any other expenses that are a direct result of the accident (However, be prepared that some may not be allowed. Your current vehicles insurance provider could have given you the greatest rate as you were married, but that doesn''.