Friday, September 6, 2013

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

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

    Arslan Hassan <arslan.tune@gmail.com> Sep 01 10:47PM -0700  

    Hi
    I am having following issues
     
    1 - Change callback url
    Error
     
    > (start) unknown parameter: 'callbackUrl'
     
    Code i am using
     
    > $HostService->associationsessions->start(array('afc', 'afv', 'afmc'), '
    > tune.pk',array('callbackUrl'=>BASEURL.'/revenue_success.php'));
     
     
    2 - When i gave access to arslan.tune @ gmail.com / i can see it in the
    3rd-party access with the *0% *of referral revenue?
    3 - I am bit confused here, if Tune.pk(Sandbox account) is the host or the
    client? because I was testing and used my other account 'arslan.cb @
    gmail.com' to give access and it gave me this error
     
    Error calling GET : (403) Customer is not an AdSense Host.
     
    *Customer is not an AdSense Host.*
     
     
    Tune.pk is the client while who signs up is the host?
     
    4 - If user account is blocked after signing up, how do we get notified?
     
    5 - and one last question (for now)
    this test url is not giving any results, am i doing something wrong?
    http://googleads.g.doubleclick.net/pagead/ads?client=ca-video-afvtest&ad_type=video&correlator=13133333333&output=xml_vast2&=http%3A%2F%2Fexample.com%2Fpage%3Fkey%3Dvalue%26key2%3Dvalue2&adtest=on
     
     
    Thanks
    - AH

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Sep 02 02:56AM -0700  

    Hi there!
     
    1. The PHP client library does not allow unknown parameters to be passed,
    I'm afraid. The workaround for this is
    a. You can change the callback URL on our side, although it's a manual
    process and can take a couple of weeks.
    b. Look for class Google_AssociationsessionsServiceResource and add
    'callbackUrl' to the start function as a parameter.
     
    2. and 3. What do you mean with "gave access"? Associated? You have to
    authenticate with your host account (arslan.tune) and only use the
    publisher account for the association flow. You will never have to use
    OAuth2 with your publisher account. I'd recommend you to create new
    accounts when associating with the sandbox host, not to use existing ones.
     
    4. You can check that with the associationsession.verify method.
     
    5. Sandbox accounts do not show ads.
     
    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
     
    On Monday, 2 September 2013 06:47:58 UTC+1, Arslan Hassan wrote:

     

    Arslan Hassan <arslan.tune@gmail.com> Sep 02 07:03AM -0700  

    Hi Jose
     
    1. The PHP client library does not allow unknown parameters to be passed,
    > I'm afraid. The workaround for this is
    > b. Look for class Google_AssociationsessionsServiceResource and add
    > 'callbackUrl' to the start function as a parameter.
     
     
    Its working, thanks.
     
    2. and 3. What do you mean with "gave access"? Associated? You have to
    > publisher account for the association flow. You will never have to use
    > OAuth2 with your publisher account. I'd recommend you to create new
    > accounts when associating with the sandbox host, not to use existing ones.
     
     
    Ok, correct me if i am wrong, i first get access from adsense host using
    arslan.tune
    $googleApiClient->getAccessToken();
     
    once i have a token, i will associate publishers?
    $adSenseHostService->associationsessions ->start
     
    If thats correct, i WAS doing it wrong because now i have created a new
    account which is working.
     
    and the last question, no.5
     
    Even if I use my current AFV enabled adsense account as client, it does not
    display anything...?
    and what is the purpose of adtest parameter?
     
    and can you please confirm if this is the correct adTag
    http://googleads.g.doubleclick.net/pagead/ads?client=ca-video-4660751223571148&ad_type=video&description_url=http%3A%2F%2Ftune.pk%2Fpage%3Fkey%3Dvalue%26key2%3Dvalue2
     
    where ca-video-4660751223571148 is my adsense enabled account.
     
    Thanks
    - AH
     
    On Monday, September 2, 2013 2:56:51 PM UTC+5, Jose Alcérreca (AdSense API
    Team) wrote:

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Sep 02 07:16AM -0700  

    Hi again,
     
    2. and 3. your summary is perfect. That will work.
     
    5. If the ad is generated with the Host API using a sandbox account, it
    won't show ads. I can't confirm about adTags as it's outside the scope of
    the API. Tags must be generated with the adunits.getAdCode method, not
    manually.
     
    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
     
     
    On Monday, 2 September 2013 15:03:28 UTC+1, Arslan Hassan wrote:

     

    Arslan Hassan <arslan.tune@gmail.com> Sep 04 01:09AM -0700  

    Hi
    I have an account associated an account with products AFV , AFC and AFMC
    but when i get ad-clients , it only returns
     
     
    "items": [
    {
    "kind": "adsensehost#adClient",
    "id": "ca-mb-pub-1607118212479286",
    "productCode": "AFMC",
    "supportsReporting": true
    },
    {
    "kind": "adsensehost#adClient",
    "id": "ca-pub-1607118212479286",
    "productCode": "AFC",
    "supportsReporting": true
    }
    ]
    }
     
     
    What could be the reason?
     
    On Monday, September 2, 2013 7:16:50 PM UTC+5, Jose Alcérreca (AdSense API
    Team) wrote:

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Sep 04 03:29AM -0700  

    Hi again,
     
    AFV doesn't have the same structure as AFC or AFMC, as it doesn't use ad
    units, so it's not available in adclients.list.
     
    Make sure that associationsessions.verify shows the correct product list
    after the association is done.
     
    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
     
    On Wednesday, 4 September 2013 09:09:30 UTC+1, Arslan Hassan wrote:

     

    Arslan Hassan <arslan.tune@gmail.com> Sep 04 05:18AM -0700  

    So, whats the possible solution for generating Vast ad tag?
     
    On Wednesday, September 4, 2013 3:29:05 PM UTC+5, Jose Alcérreca (AdSense
    API Team) wrote:

     

    "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Sep 04 07:36AM -0700  

    Hi!
     
    In this page you'll find a "host" parameter below "optional parameters":
     
    https://support.google.com/adsense/answer/3112148?hl=en&ref_topic=1706004%27
     
    You can even add custom channels using the h_ch parameter.
     
    If you need more details about it ask in the IMA SDKs forum as this is
    outside the scope of the AdSense APIs:
     
    https://developers.google.com/interactive-media-ads/
     
    Hope that helps.
     
    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
     
    On Wednesday, 4 September 2013 13:18:36 UTC+1, Arslan Hassan wrote:

     

    Filippo Silvestro <filippo.silvestro@altervista.it> Sep 04 07:24AM -0700  

    Hi there,
    I have an user that is unable to complete the signup flow for the Host Api.
    His Google AdSense account should be already active, but when we try to
    verify the token at the end of the signup flow we receive an error 500.
    The user's account id is: pub-945868795393291

     

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

1 comment:

  1. If you are in search of the highest paying Bitcoin advertising network, sign-up for MellowAds.

    ReplyDelete