Re: getting stuck while making a asset group

2023-11-27 Thread Tanish Gupta
But I am making asset group how can i find asset group id?
On Tuesday, 28 November 2023 at 03:17:59 UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for getting back to us.
>
> Kindly note that asset group resource names have the form 
> 'customers/{customer_id}/assetGroups/{asset_group_id}'. Please refer to 
> this link 
>  
> for more information.
>
> Hope this helps. If you have any more queries, please feel free to get 
> back to us.
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02qV4cQ:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/130cd797-47ea-47e8-99b4-301bd46f84b2n%40googlegroups.com.


Re: getting stuck while making a asset group

2023-11-27 Thread Tanish Gupta
My query is how can i generate theassetGroupResourceName while making the 
asset group
On Monday, 27 November 2023 at 20:54:43 UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi Tanish,
>
> Thank you for reaching out to the Google Ads API support team.
>
> By reviewing your query, I understand that you are trying to implement an 
> asset group. You may refer to the Asset groups 
> 
>  
> for more details. You may follow the sample on how to Link asset groups 
> to asset 
> 
> .
>
> In order to investigate your issue, provide us with the complete API logs (
> *request* 
> 
>  and *response* 
> 
>  with *request-id* 
> 
>  and *request header* 
> )
>  
> generated at your end.
>
> If you are using a client library and haven't enabled the logging yet, I 
> would request you to enable logging for the specific client library that 
> you are using. You can refer to the guides *Java* 
> 
> , *.Net* 
> 
> , *PHP* 
> 
> , *Python* 
> 
> , *Ruby* 
> 
>  or *Perl* 
>  
> to 
> enable logging at your end. For REST interface requests, you can enable 
> logging via the curl command by using the -i flag.
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02qV4cQ:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/9a448157-9896-450b-b038-fd5ff1eeded7n%40googlegroups.com.


Getting stuck while making a asset group

2023-11-27 Thread Tanish Gupta
Hi 

I am stuck while making asset group other than this i am able to make 
assets.

AssetGroup assetGroup =
AssetGroup.newBuilder()
.setName("Performance Max asset group #" + "_test")
.setCampaign(campaignResourceName)
.addFinalUrls("http://www.example.com";)
.addFinalMobileUrls("http://www.example.com";)
.setStatus(AssetGroupStatusEnum.AssetGroupStatus.PAUSED)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupOperation assetGroupOperation =
AssetGroupOperation.newBuilder().setCreate(assetGroup).build();
mutateOperations.add(
MutateOperation.newBuilder().setAssetGroupOperation(assetGroupOperation).build());
for (String resourceName : headLinesResponse) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.HEADLINE)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : descriptionheadLinesResponse) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.DESCRIPTION)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : LongheadLinesResponse) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.LONG_HEADLINE)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : businessReponse) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.BUSINESS_NAME)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : marketingimage) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.MARKETING_IMAGE)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : squareMarketing) {
AssetGroupAsset assetGroupAsset =
AssetGroupAsset.newBuilder()
.setFieldType(AssetFieldTypeEnum.AssetFieldType.SQUARE_MARKETING_IMAGE)
.setAsset(resourceName)
.setResourceName("customers/2966251517/assetGroupAssets/-1")
.build();
AssetGroupAssetOperation assetGroupAssetOperation =
AssetGroupAssetOperation.newBuilder().setCreate(assetGroupAsset).build();
mutateOperations.add(
MutateOperation.newBuilder()
.setAssetGroupAssetOperation(assetGroupAssetOperation)
.build());
}
for (String resourceName : logo) {
String resourceName = 
ResourceNames.campaign(Long.parseLong(saInfo.getAccountId()), 
20803713825L);
assetGroup = AssetGroup.newBuilder()
.setName("test_group")
.setCampaign(resourceName)
.setFinalUrls(0,("http://www.example.com";))
.setFinalMobileUrls(0,("http://www.example.com";))
.build();
AssetGroupOperation assetGroupAssetOperation =
AssetGroupOperation.newBuilder().setCreate(assetGroup).build();
getCampaignSharedSetService().mutate((assetGroupAssetOperation), saInfo
.getAccountId());

Thanks
Tanish

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving