googleads / googleads/googleads-php-lib
Unable to create Audio VAST redirect Creatives
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 676
- Forks
- 754
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm struggling creating Audio VAST redirect creative.
The function creating a Google\AdsApi\AdManager\v202411\VastRedirectCreative is as follows
$size = new Size();
$size->setWidth($width);
$size->setHeight($height);
$size->setIsAspectRatio(false);
$creative = new VastRedirectCreative();
// $creative->setName($name . ' - Audio ' .$width . 'X' . $height)
$creative->setName('Audio Creative - Audio 1x1 - TEST')
->setAdvertiserId($this->order->getAdvertiserId())
->setVastXmlUrl($snippet)
->setDuration(1000)
->setSize($size)
->setIsAudio(true)
->setVastRedirectType(VastRedirectType::LINEAR);
return $creative;
This creates the following object, sent through API
object(Google\AdsApi\AdManager\v202411\VastRedirectCreative)#72 (20) {
["advertiserId":protected]=>
int(5759434305)
["id":protected]=>
NULL
["name":protected]=>
string(33) "Audio Creative - Audio 1x1 - TEST"
["size":protected]=>
object(Google\AdsApi\AdManager\v202411\Size)#84 (3) {
["width":protected]=>
int(1)
["height":protected]=>
int(1)
["isAspectRatio":protected]=>
bool(false)
}
["previewUrl":protected]=>
NULL
["policyLabels":protected]=>
NULL
["appliedLabels":protected]=>
NULL
["lastModifiedDateTime":protected]=>
NULL
["customFieldValues":protected]=>
NULL
["thirdPartyDataDeclaration":protected]=>
NULL
["adBadgingEnabled":protected]=>
NULL
["vastXmlUrl":protected]=>
string(48) "https://cypher-deezer.doubleclick.net/deal-audio"
["vastRedirectType":protected]=>
string(6) "LINEAR"
["duration":protected]=>
int(1000)
["companionCreativeIds":protected]=>
NULL
["trackingUrls":protected]=>
NULL
["vastPreviewUrl":protected]=>
NULL
["sslScanResult":protected]=>
NULL
["sslManualOverride":protected]=>
NULL
["isAudio":protected]=>
bool(true)
}
However, the API returns me
object(Google\AdsApi\AdManager\v202411\VastRedirectCreative)#98 (20) {
["advertiserId":protected]=>
int(5759434305)
["id":protected]=>
int(138507646241)
["name":protected]=>
string(26) "Audio Creative - Audio 1x1"
["size":protected]=>
object(Google\AdsApi\AdManager\v202411\Size)#133 (3) {
["width":protected]=>
int(1)
["height":protected]=>
int(1)
["isAspectRatio":protected]=>
bool(false)
}
["previewUrl":protected]=>
NULL
["policyLabels":protected]=>
NULL
["appliedLabels":protected]=>
NULL
["lastModifiedDateTime":protected]=>
object(Google\AdsApi\AdManager\v202411\DateTime)#86 (5) {
["date":protected]=>
object(Google\AdsApi\AdManager\v202411\Date)#95 (3) {
["year":protected]=>
int(2025)
["month":protected]=>
int(2)
["day":protected]=>
int(17)
}
["hour":protected]=>
int(9)
["minute":protected]=>
int(29)
["second":protected]=>
int(49)
["timeZoneId":protected]=>
string(19) "America/Los_Angeles"
}
["customFieldValues":protected]=>
NULL
["thirdPartyDataDeclaration":protected]=>
NULL
["adBadgingEnabled":protected]=>
bool(false)
["vastXmlUrl":protected]=>
string(48) "https://cypher-deezer.doubleclick.net/deal-audio"
["vastRedirectType":protected]=>
string(6) "LINEAR"
["duration":protected]=>
int(1000)
["companionCreativeIds":protected]=>
NULL
["trackingUrls":protected]=>
NULL
["vastPreviewUrl":protected]=>
string(268) "http://partner.googleadservices.com/gampad/ads?gct=_amSq-f3wg8KYIoYXSpWCAUQJEoAUjBodHRwczovL2N5cGhlci1kZWV6ZXIuZG91YmxlY2xpY2submV0L2RlYWwtYXVkaW-4AaHqy_2DBPACAfgCAZADAfADAuoEAjABmggCEgDKAQJAARja5829BigAMNqDg8UGOABYAXCN5M29Bg&iu=22331957889&gdfp_req=1&output=xml_vast2"
["sslScanResult":protected]=>
string(9) "UNSCANNED"
["sslManualOverride":protected]=>
string(11) "NO_OVERRIDE"
["isAudio":protected]=>
bool(false)
}
Any idea?
Thanks!
Gabriel
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the function that constructs Google\AdsApi\AdManager\v202411\VastRedirectCreative and compare the submitted object with the returned object, focusing on isAudio and the other changed fields. Check the v202411 VastRedirectCreative API behavior and determine whether the returned false value is expected; done means identifying a reproducible library issue or documenting that the change is controlled by the API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100