Re: Problem with inserting an AdUnit for AFMC

45 views
Skip to first unread message

Jose Alcérreca (AdSense API Team)

unread,
Jan 28, 2013, 6:16:19 AM1/28/13
to adsen...@googlegroups.com
Hi Dmitry!

That one has a quick fix: use "WAP_SINGLE" or "WAP_DOUBLE" as size.

The returned error should be "Invalid ad unit size", so we'll fix that on our end.

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


On Monday, 28 January 2013 02:22:34 UTC, adingo.ap...@gmail.com wrote:
Hi,

I have a problem with inserting an AdUnit for an AFMC.

Here is an AdUnit (AFMC) I am trying to insert...



{

 "name": "Test Mobile",
 "customStyle": {
  "colors": {
   "background": "ffffff",
   "border": "000000",
   "text": "000000",
   "title": "000000",
   "url": "0000ff"
  },
  "corners": "SQUARE",
  "font": {
   "family": "ARIAL",
   "size": "MEDIUM"
  },
  "kind": "adsensehost#adStyle"
 },
 "kind": "adsensehost#adUnit",
 "mobileContentAdsSettings": {
  "markupLanguage": "XHTML",
  "scriptingLanguage": "PHP",
  "size": "SIZE_320_50",
  "type": "TEXT"
 }
}
 
...and it is the response I got.

 
400 Bad Request
 
- Show headers -
  
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "Invalid ad unit type."
   }
  ],
  "code": 400,
  "message": "Invalid ad unit type."
 }
}

Could you please give me an exact working example of JSON for AFMC?

Thank you,

Dmitry
Reply all
Reply to author
Forward
0 new messages