Friday, January 4, 2013

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

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

    "Sérgio Gomes (AdSense API Team)" <adsenseapiadvisor+sergio@google.com> Jan 03 04:05AM -0800  

    Hi Ronen,
     
    Let me answer your questions by number:
     
    1. The 400 errors are likely because these are sandbox accounts, yes. I'm
    not entirely sure what mechanism is used to prevent them from serving, but
    I know they will not serve ads (since they're only for testing). The fact
    that you say the API call is working correctly seems to validate this.
     
    2. It's always best to create the ad unit with your preferred style (the
    one you'll be using most of the time). You could then later override it
    when generating the ad code, in case there's a property you need to change,
    but we don't currently make this functionality available through the API,
    so you'd have to parse and modify the generated ad code (which is a bit
    icky). As for size, that cannot be overridden since it has the potential to
    affect page rendering (which is why we won't let you change it once you
    create the ad unit), so you need a separate ad unit in that case.
     
    3. Ah, that's incorrect, it should be "SLIGHTLY_ROUNDED", not "ROUNDED".
    I'll try to get that page fixed.
     
    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
     
     

     

    ronena@codeoasis.com Jan 03 04:22AM -0800  

    Hi Sérgio,
     
    Thanks for your quick answer.
     
    One more question please. Once I go to production (or now if I only want to
    make sure displaying ads really do work), how can I have a host account
    that can actually display ads? I understand that a sandbox account is for
    testing, but how can I get a hold of an account that can be used for
    production?
     
    Thanks again,
     
    On Thursday, January 3, 2013 2:05:35 PM UTC+2, Sérgio Gomes (AdSense API
    Team) wrote:

     

    "Sérgio Gomes (AdSense API Team)" <adsenseapiadvisor+sergio@google.com> Jan 03 04:49AM -0800  

    Hi Ronen,
     
    Once you go live, your existing (production) AdSense account will be
    enabled for Host functionality. Publisher accounts created with that one
    will be production AdSense accounts, which are able to serve ads. I'm
    afraid there's no way for you to test this now, unless you're already an
    existing host, using v3. :-/
     
    Oh, as a sidenote, you should keep the sandbox account even after you go
    live, so that you have a test account if you ever want to develop new
    features!
     
    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
     

     

    "Sérgio Gomes (AdSense API Team)" <adsenseapiadvisor+sergio@google.com> Jan 03 03:48AM -0800  

    Hi there,
     
    Hmm, that's a good point, we should add that information to our
    documentation, thanks. In the meantime, I'm attaching the list below, for
    all the ad unit properties:
     
    customStyle.corners
    SQUARE
    SLIGHTLY_ROUNDED
    VERY_ROUNDED
     
     
    customStyle.font.family
    ACCOUNT_DEFAULT_FAMILY
    ADSENSE_DEFAULT_FAMILY
    ARIAL
    TIMES
    VERDANA

     
    customStyle.font.size
    ACCOUNT_DEFAULT_SIZE
    ADSENSE_DEFAULT_SIZE
    SMALL
    MEDIUM
    LARGE
     

    contentAdsSettings.type
    TEXT
    TEXT_IMAGE
    IMAGE
    LINK

     
    contentAdsSettings.size
    Regular ad unit sizes:
     
    SIZE_728_90
    SIZE_468_60
    SIZE_336_280
    SIZE_320_50
    SIZE_300_600
    SIZE_300_250
    SIZE_250_250
    SIZE_200_200
    SIZE_234_60
    SIZE_180_150
    SIZE_160_600
    SIZE_125_125
    SIZE_120_600
    SIZE_120_240
    SIZE_970_90
     
    Link ad unit sizes:
    SIZE_728_15
    SIZE_468_15
    SIZE_200_90
    SIZE_180_90
    SIZE_160_90
    SIZE_120_90
     
    And for mobile ad units:
    WAP_SINGLE
    WAP_DOUBLE
     

    mobileContentAdsSettings.markupLanguage
    XHTML
    WML
    CHTML
     

    mobileContentAdsSettings.scriptingLanguage
    PHP
    CGI
    JSP
    ASP
     
     
    Hope I didn't forget anything!
     
    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 Thursday, 3 January 2013 07:47:05 UTC, sorry chou wrote:

     

    sorry chou <sorry.chou@gmail.com> Jan 03 04:25AM -0800  

    HIHI:
     
    you saved my life :)
     
    thank you~
     
    Sérgio Gomes (AdSense API Team)於 2013年1月3日星期四UTC+8下午7時48分44秒寫道:

     

    "Sérgio Gomes (AdSense API Team)" <adsenseapiadvisor+sergio@google.com> Jan 03 03:45AM -0800  

    Hmm, sounds like the PHP client isn't handling arrays correctly. Perhaps
    file a bug on the client's issue tracker<http://code.google.com/p/google-api-php-client/issues/list>?
    The author should be able to help you figure out the issue.
     
    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 Thursday, 3 January 2013 07:54:30 UTC, sorry chou 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 post to this group, send email to adsense-api@googlegroups.com.
To unsubscribe from this group, send email to adsense-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.

No comments:

Post a Comment