RE: Google Ads API: The customer is not in the allow-list for this asset type

2023-04-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hello,

Thanks for reaching out to the Google Ads API Forum.

For our team to further check, would you be able to share with us the complete 
API logs (request and response with request-id) generated on your end showing 
this error? You may send the requested logs via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead. Additionally, for your 
question on how to add customers to the allow-list, you need to contact your 
Google account manager to request for access to features accessible to 
customers on the allow-list.

Reference links:

request: 
https://developers.google.com/google-ads/api/docs/concepts/field-service#request
response: 
https://developers.google.com/google-ads/api/docs/concepts/field-service#response
request-id: 
https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id

Regards,

Google Ads API Team
ref:_00D1U1174p._5004Q2kUaUA: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 
"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/Fai5x0RT0IMW00keAw7COYQr-r8uWGedUQkw%40sfdc.net.


Re: Google Ads API: The customer is not in the allow-list for this asset type

2021-12-07 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Joe,

Certain assets are still being added to accounts, as mentioned in this blog 
post. It mentions that the following assets will be available by the end of the 
year:

Price assets
Hotel Callout assets
Mobile App assets
Call assets
Call to action assets

If you are still unable to use this asset by the end of the year, please let us 
know.

Regards,
Matt
Google Ads API Team


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

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2Ruvb2: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/zpNfW0R3R2WB00gSxoD-CoSKGrluZfWLhanQ%40sfdc.net.


Re: Google Ads API: The customer is not in the allow-list for this asset type

2021-12-06 Thread j...@eulerity.com
Hi Google Ads Team,

I'm also trying to migrate my feed based call extensions to asset based 
extensions and am getting this error when attempting to create the 
CallAsset.

Here's the java code I'm using, followed by the error code with request id 
and a stack trace:

AssetOperation operation = AssetOperation.*newBuilder*()

.setCreate(Asset.*newBuilder*()

.setCallAsset(CallAsset.*newBuilder*()

.setCountryCode(countryCode).setPhoneNumber(phone)))

.build();


String resourceName;

// Gets the Asset Service client.

try (AssetServiceClient assetServiceClient = 
client.createAssetServiceClient()) {

// Issues the request and returns the resource name of the new Promotion 
asset.

MutateAssetsResponse response = assetServiceClient.mutateAssets(String.
*valueOf*(customerId),

ImmutableList.*of*(operation));

resourceName = response.getResults(0).getResourceName();

*log*.info("Created CallAsset with resource name " + resourceName);

} catch (ApiException e) {

throw new ExternalApiException(e);

}


CampaignAssetOperation op = CampaignAssetOperation

.*newBuilder*().setCreate(CampaignAsset.*newBuilder*
().setAsset(resourceName)

.setFieldType(*AssetFieldType*.*CALL*).setCampaign(ResourceNames.*campaign*(customerId,
 
campaignId)))

.build();


// Creates a service client.

try (CampaignAssetServiceClient campaignAssetServiceClient = 
client.createCampaignAssetServiceClient()) {

// Issues the mutate request.

MutateCampaignAssetsResponse response = campaignAssetServiceClient

.mutateCampaignAssets(String.*valueOf*(customerId), Lists.*newArrayList*
(op));

// Prints some information about the result.

for (MutateCampaignAssetResult result : response.getResultsList()) {

*log*.info("Attached CallAsset to campaign");

}

} catch (ApiException e) {

throw new ExternalApiException(e);

}



Caused by: com.google.ads.googleads.v9.errors.GoogleAdsException: errors {
  error_code {
asset_error: CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE
  }
  message: "The customer is not in the allow-list for this asset type."
  trigger {
string_value: "CALL"
  }
  location {
field_path_elements {
  field_name: "operations"
  index: 0
}
  }
}
request_id: "gLMRh6DpOosHAGYjnUsoKw"

at 
com.google.ads.googleads.v9.errors.GoogleAdsException$Factory.createException(GoogleAdsException.java:42)
at 
com.google.ads.googleads.v9.errors.GoogleAdsException$Factory.createException(GoogleAdsException.java:34)
at 
com.google.ads.googleads.lib.BaseGoogleAdsException$Factory.createGoogleAdsException(BaseGoogleAdsException.java:105)
at 
com.google.ads.googleads.lib.callables.GoogleAdsExceptionTransformation.transform(GoogleAdsExceptionTransformation.java:36)
at 
com.google.ads.googleads.lib.callables.ExceptionTransformingUnaryCallable$ExceptionTransformingFuture.onFailure(ExceptionTransformingUnaryCallable.java:82)
at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:68)
at 
com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1074)
at 
com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
at 
com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1213)
at 
com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:983)
at 
com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:771)
at 
com.google.api.gax.retrying.BasicRetryingFuture.handleAttempt(BasicRetryingFuture.java:200)
at 
com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.handle(CallbackChainRetryingFuture.java:135)
at 
com.google.api.gax.retrying.CallbackChainRetryingFuture$AttemptCompletionListener.run(CallbackChainRetryingFuture.java:117)
at 
com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:30)
...
at 
io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: com.google.api.gax.rpc.AsyncTaskException: Asynchronous 
task failed
at 
com.google.api.gax.rpc.ApiExceptions.callAndTranslateApiException(ApiExceptions.java:57)
at 
com.google.api.gax.rpc.UnaryCallable.call(UnaryCallable.java:112)
at 
com.google.ads.googleads.v9.services.AssetServiceClient.mutateAssets(AssetServiceClient.java:313)
at 
com.google.ads.googleads.v9.services.AssetServiceClient.mutateAssets(AssetServiceClient.java:279)
 
Caused by: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Request 
contains an invalid argument.
at io.grpc.Status.asRuntimeException(Status.java:535)
... 17 

Re: Google Ads API: The customer is not in the allow-list for this asset type

2021-12-01 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello Shirly,

Thank you for reaching out to us.

Can you also share to us the complete API logs (request and response with 
request-id) generated when the error was encountered? Since you're using PHP, 
you can enable logging via this guide.

You can then send those requested details via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead.

Regards,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2Ruvb2: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/GbYQE0R3H3OS00kpXoYOlwQ1-hzQ995UuXRQ%40sfdc.net.


Re: Google Ads API: The customer is not in the allow-list for this asset type

2021-12-01 Thread Shirly J

Hi GoogleTeam,

Geting Google Ads API: The customer is not in the allow-list for this asset 
type error.

public function createCallForAsset()
{
$callAsset = new Asset([
'type' => AssetType::CALL,
'call_asset' => new CallAsset(['country_code' => $this->countryCode, 
'phone_number' 
=> $this->phoneNumber])
]);

$assetOperation = new AssetOperation();
$assetOperation->setCreate($callAsset);
$assetServiceClient = $this->googleAdsClient->getAssetServiceClient();
$response = $assetServiceClient->mutateAssets($this->clientId, [
$assetOperation]);
$assetResourceName = $response->getResults()[0]->getResourceName();
printf("Created an asset with resource name: '%s'.%s", $assetResourceName, 
PHP_EOL);
return $assetResourceName;
}
Could you please let me know what is missing?

Thanks,
Shirly
On Monday, 22 November 2021 at 04:30:58 UTC adsapi wrote:

> Hello,
>
> Thank you for reaching out to us.
>
> Can you further elaborate on your concern so we can better assist you? Can 
> you also share to us the complete API logs (request 
> 
>  and response 
> 
>  with request-id 
> 
> )?
>
> Please send the requested details via the *Reply privately to author* option. 
> If this option is not available, you may send the details directly to our 
> *googleadsapi-supp...@google.com 
> * alias instead.
>
> 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] 
> Mark Kevin Albios 
> Google Ads API Team 
>   
>  
>
> ref:_00D1U1174p._5004Q2Ruvb2: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/67184eaf-0018-491f-9387-2e5523071a86n%40googlegroups.com.


RE: Google Ads API: The customer is not in the allow-list for this asset type

2021-11-21 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hello,

Thank you for reaching out to us.

Can you further elaborate on your concern so we can better assist you? Can you 
also share to us the complete API logs (request and response with request-id)?

Please send the requested details via the Reply privately to author option. If 
this option is not available, you may send the details directly to our 
googleadsapi-supp...@google.com alias instead.

Regards,

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

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2Ruvb2: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/U6OIX0R2YHV900098tCkeaRlCr-2D6AuwAFA%40sfdc.net.