Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2022-01-02 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello Algirdas,

Thank you for reaching out to us.

As mentioned by my colleague (Peter) on the previous thread, currently 
supported asset based extensions are listed here and other types would follow 
later. In the meantime, we recommend that you keep an eye to our blog for 
future updates or any announcements on when image extensions can be included.

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2QGllD:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/C5uvJ0R54CA600eHgnu0EwRFS7AEFb-zYRSg%40sfdc.net.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-12-31 Thread Algirdas Jarockis
Hello there.
I have the same error. Here 
https://developers.google.com/google-ads/api/docs/extensions/extensions it 
is stated that feed items are deprecated but still can't use the new way to 
link assets. When it is planned to support Image type assets?

On Wednesday, November 24, 2021 at 4:23:21 AM UTC+2 adsapi wrote:

> Hi Shirly,
>
> Thank you for providing additional details.
>
> Image assets can be set for certain types of ads, as seen here 
> .
>  
> However, it currently cannot be used for extensions.
>
> Listed here 
> 
>  are 
> the asset based extensions that are currently supported and can be 
> created/managed via the API, and stating that other types would follow 
> later. For now, you may keep an eye on our blog 
>  for 
> updates or announcements on when image extensions can be included.
>
> If you wish to create image extensions for your account, you may reach out 
> to the Google Ads Product Support team instead, via this link 
> , to confirm whether this 
> is already possible via the Google Ads UI.
>
> I hope this helps.
>
> Best regards,
>
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>   
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QGllD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0fa2f447-8fb7-4c54-b703-e11cd0380b5an%40googlegroups.com.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-23 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Shirly,

Thank you for providing additional details.

Image assets can be set for certain types of ads, as seen here. However, it 
currently cannot be used for extensions.

Listed here are the asset based extensions that are currently supported and can 
be created/managed via the API, and stating that other types would follow 
later. For now, you may keep an eye on our blog for updates or announcements on 
when image extensions can be included.

If you wish to create image extensions for your account, you may reach out to 
the Google Ads Product Support team instead, via this link, to confirm whether 
this is already possible via the Google Ads UI.

I hope this helps.

Best regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2QGllD:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/rEw5G0R321AF00Q8bdL8qCQCWd7aHJAcvEdQ%40sfdc.net.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-23 Thread Shirly J


Hi Aryeh,

Thank you for the information. I have followed the same documentation. But 
getting the same error

1. Create ImageAsset for ImageExtension

// Creates an asset.
$asset = new Asset([
'type' => AssetType::IMAGE,
'image_asset' => new ImageAsset(['data' => $imageContent])
]);

// Creates an asset operation.
$assetOperation = new AssetOperation();
$assetOperation->setCreate($asset);

// Issues a mutate request to add the asset.
$assetServiceClient = $this->googleAdsClientSession->getAssetServiceClient
();
$response = $assetServiceClient->mutateAssets(
$clientId,
[$assetOperation]
);
if (!empty($response->getResults())) {
$addedImageAsset = $response->getResults()[0];
return $addedImageAsset->getResourceName();
}

2. Add asset to AdGroup

//adgroupassetOperation
$adGroupAssetOperation = new AdGroupAssetOperation([
'create' => new AdGroupAsset([
'asset' => $imageAssetResourceName,
'field_type' => AssetFieldType::MARKETING_IMAGE,
'ad_group' => ResourceNames::forAdGroup($clientId, $adGroupId)
])
]);

$adGroupAssetServiceClient = $this->googleAdsClientSession->
getAdGroupAssetServiceClient();
$response = $adGroupAssetServiceClient->mutateAdGroupAssets($clientId, [
$adGroupAssetOperation]);

Could you please point out what is missing?

Thanks


On Monday, 22 November 2021 at 20:46:38 UTC adsapi wrote:

> Hi Shirley,
>
> Please note that the CampaignAsset, AdGroupAsset and CustomerAsset works 
> only for assets that are associated with an Extension 
> 
> .
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>  
> Regards, 
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QGllD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/27398c75-11d5-435a-a97f-0ce7a1e7585an%40googlegroups.com.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-23 Thread Shirly J
Hi Aryeh,

Thank you for the information. I have followed the same documentation. But 
getting the same error

1. Create ImageAsset for ImageExtension

// Creates an asset.
$asset = new Asset([
'type' => AssetType::IMAGE,
'image_asset' => new ImageAsset(['data' => $imageContent])
]);

// Creates an asset operation.
$assetOperation = new AssetOperation();
$assetOperation->setCreate($asset);

// Issues a mutate request to add the asset.
$assetServiceClient = $this->googleAdsClientSession->getAssetServiceClient
();
$response = $assetServiceClient->mutateAssets(
$clientId,
[$assetOperation]
);
if (!empty($response->getResults())) {
$addedImageAsset = $response->getResults()[0];
return $addedImageAsset->getResourceName();
}

2. Add asset to AdGroup

Shirly J
22 Nov 2021, 09:42:36 (yesterday) 
to AdWords API and Google Ads API Forum
Hi,

I am trying to do the same(adding image extension to adgroup).

//adgroupassetOperation
$adGroupAssetOperation = new AdGroupAssetOperation([
'create' => new AdGroupAsset([
'asset' => $imageAssetResourceName,
'field_type' => AssetFieldType::MARKETING_IMAGE,
'ad_group' => ResourceNames::forAdGroup($clientId, $adGroupId)
])
]);

$adGroupAssetServiceClient = $this->googleAdsClientSession->
getAdGroupAssetServiceClient();
$response = $adGroupAssetServiceClient->mutateAdGroupAssets($clientId, [
$adGroupAssetOperation]);

Could you please point out what is missing?

Thanks
On Monday, 22 November 2021 at 20:46:38 UTC adsapi wrote:

> Hi Shirley,
>
> Please note that the CampaignAsset, AdGroupAsset and CustomerAsset works 
> only for assets that are associated with an Extension 
> 
> .
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>  
> Regards, 
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QGllD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/da819fe5-25c3-494f-9b7c-fc1059092a41n%40googlegroups.com.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-22 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Shirley,

Please note that the CampaignAsset, AdGroupAsset and CustomerAsset works only 
for assets that are associated with an Extension.

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2QGllD:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Rv1eU0R2ZR0Y004kKdYMtNSGm6TRqtWjJDcg%40sfdc.net.


Re: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-22 Thread Shirly J
Hi,

I am trying to do the same(adding image extension to adgroup).

//adgroupassetOperation
$adGroupAssetOperation = new AdGroupAssetOperation([
'create' => new AdGroupAsset([
'asset' => $imageAssetResourceName,
'field_type' => AssetFieldType::MARKETING_IMAGE,
'ad_group' => ResourceNames::forAdGroup($clientId, $adGroupId)
])
]);

$adGroupAssetServiceClient = $this->googleAdsClientSession->
getAdGroupAssetServiceClient();
$response = $adGroupAssetServiceClient->mutateAdGroupAssets($clientId, [
$adGroupAssetOperation]);

I am getting the same error : *The given field type is not supported to be 
added directly via asset links.*
assetLinkError: *UNSUPPORTED_FIELD_TYPE*
stringValue: *MARKETING_IMAGE*

could anyone help?

Thanks

On Tuesday, 2 November 2021 at 06:49:06 UTC adsapi wrote:

> Hi Shawn,
>
> Thank you for reaching out to our API support team.
>
> Could you confirm if what you intend to do is use assets in ads? If yes 
> then the link you provided should indeed be the appropriate guide.
>
> However, since you appear to be using the AdGroupAssetService 
> ,
>  
> then its typical usage is for creating asset based extensions as discussed 
> here 
> 
> . 
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QGllD:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2319ea29-85e4-491b-989d-20f3b7ff9ba0n%40googlegroups.com.


RE: asset_link_error when trying to ad image asset to adgroup in google ads api (php)

2021-11-02 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Shawn,

Thank you for reaching out to our API support team.

Could you confirm if what you intend to do is use assets in ads? If yes then 
the link you provided should indeed be the appropriate guide.

However, since you appear to be using the AdGroupAssetService, then its typical 
usage is for creating asset based extensions as discussed here.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2QGllD:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/pyo0T0R1XMXF005DZ1znyzS8COev2iFd7DyQ%40sfdc.net.