Tuesday, January 29, 2013

Digest for adsense-api@googlegroups.com - 3 Messages in 2 Topics

Group: http://groups.google.com/group/adsense-api/topics

    "Sérgio Gomes" <sergiomdgomes@gmail.com> Jan 28 04:13AM -0800  

    Hi Tony,
     
    No worries, just email us on adsenseapi-tech@google com with your AdSense
    account ID (or email) and the domain you're trying to add, and we'll look
    into it for you.
     
    Cheers,
    Sérgio
     
    ---
    Sérgio Gomes
    Developer Relations
     
    Google UK Limited
    Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
    9TQ
    Registered in England Number: 3977902
     
     
    On Saturday, 26 January 2013 03:15:57 UTC, Tony J wrote:

     

    adingo.api.sandbox@gmail.com Jan 27 06:22PM -0800  

    Hi,
     
    I have a problem with inserting an AdUnit for an AFMC.
     
    Here is an AdUnit (AFMC) I am trying to insert...
     
    POST
    https://www.googleapis.com/adsensehost/v4.1/accounts/pub-1938774xxxxxxxxx/adclients/ca-mb-pub-1938774xxxxxxxxx/adunits?key={MY_API_KEY}
     
     
    {
     
    "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

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Jan 28 03:16AM -0800  

    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 <https://developers.google.com/adsense/>
     

     

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.
 
 

No comments:

Post a Comment