I try to add ImageAd to my google adwords script. My code view like this:
.....
$img = new Image();
$imagedata = file_get_contents($ad_data['link']);
$base64 = base64_encode($imagedata);
echo $base64;
$img->data = $base64;
$textAd = new ImageAd();
$textAd->name = $ad_data['imagename']." #".uniqid();
$textAd->image = $img;
...
And now I have got this error:
An error has occurred: [ImageError.INVALID_IMAGE @
> operations[0].operand.ad.image.data]
>
Input image source view like this: /var/www/my/site/imagefolder/m7im4.png
Do you have any idea ?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/9f077252-9aaa-46f8-915a-b7720706552c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.