0

Can Someone help debug?

Hi,

I'm trying to make a call to see the available inventory there is in the system. Can someone provide their insight on what I maybe doing wrong?

SearchInventory Service

1. add site using addSite - Working
2. activate site using ActivateSite - Working
3. created order with addOrder - Working
4. group added using addAdGroup - Working
5. target profile is created with addTargetingProfile - Working
6. to add placement used addPlacement – Problem coming here

We are running following code and it returns an internal server error.

$placement_service = createClient("PlacementService", $advertiserAccountID, $accountLocation);
$placement = execute($placement_service,"addPlacement",
array("placement"=>array(
'adGroupID'=>100285389,
'startDate'=>'2010-02-01T00:00:00-05:00',
'guaranteedSettings'=>array(
'adFormatID'=>'2075001',
'pricingModel'=>'CPM',
'revenueModel'=>'NotApplicable',
'deliveryModel'=>'Impressions',//ImpressionBased
'contentTopicID'=>array('ID'=>4788501),
'placementTarget'=>array(
'ID'=>'SelfManagedPublisher',
'type'=>'SelfManagedPublisher',
),
'adSizeID'=>2082501
),
'endDate'=>'2010-02-05T00:00:00-05:00'
)
)
);


Much appreciation if someone can help out

by
3 Replies
  • It seems that problem is here:

    'placementTarget'=>array(
    'ID'=>'SelfManagedPublisher',
    'type'=>'SelfManagedPublisher',
    )

    you must pass publisher's accountID via ID field instead of 'SelfManagedPublisher'.

    More over, if you set deliveryMode as 'Impressions' then you need to pass impressionGoal value.


    P.S. I have a problem with addPlacement too. Please, take a look at my post http://developer.yahoo.net/forum/index.php?showtopic=4337. May be you know how to get some network ID (or publisher ID) to set a placement.
    0
  • QUOTE (Dmitry @ Feb 3 2010, 09:49 PM) <{POST_SNAPBACK}>
    It seems that problem is here:

    'placementTarget'=>array(
    'ID'=>'SelfManagedPublisher',
    'type'=>'SelfManagedPublisher',
    )

    you must pass publisher's accountID via ID field instead of 'SelfManagedPublisher'.

    More over, if you set deliveryMode as 'Impressions' then you need to pass impressionGoal value.


    P.S. I have a problem with addPlacement too. Please, take a look at my post http://developer.yahoo.net/forum/index.php?showtopic=4337. May be you know how to get some network ID (or publisher ID) to set a placement.




    Thanks! It looks like we are now in the same position as you. Can any other community members/readers help us out?
    0
  • I've just found out that the content topic IDs that listed here

    http://help.yahoo.com/l/us/yahoo/ewsapt/we...r_tgt_ctpc.html

    is not the same that were returned by TargetingDictionaryService (http://help.yahoo.com/l/us/yahoo/ewsapt/webservices/reference/services/wsr_targetingdictionaryservice.html;_ylt=AttUJqbde2tWAoeJHHn2flcYo3dG).

    I use ID provided by TargetingDictionaryService.
    0
This forum is locked.

Recent Posts

in General - APT