Groups
Groups
Sign in
Groups
Groups
AdSense API Forum
Conversations
About
Send feedback
Help
Using getAdCode() in PHP?
43 views
Skip to first unread message
d...@viewex.co.uk
unread,
Feb 10, 2015, 7:01:03 AM
2/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adsen...@googlegroups.com
Hi,
Can I use AdUnit.getAdCode() in PHP?
I can't find it in get_class-methods() of my ad unit.
How do I generate the actual HTML ad code (async + sync) rather than returning the plain number?
Cheers
Dean Lukies (Adsense API Team)
unread,
Feb 10, 2015, 2:43:18 PM
2/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adsen...@googlegroups.com
Hi,
Is this what you are looking for?
$result = $service->accounts_adunits->getAdCode($accountId, $adClientId, $adUnitId);
print $result['adCode'];
thanks,
Dean
PS: I wanted to remind people about
stackoverflow.com
and the
adsense-api tag
!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages