Re: google ads api product link invitation reference

2024-05-24 Thread Ansh Ved
Hi,

I have already sent all the details in the previous mails. Kindly check

On Fri, 24 May, 2024, 3:30 pm Google Ads API Forum Advisor,
 wrote:

> Hi,
>
> In order to debug your issue further, kindly provide us with the earlier
> requested complete API logs (request
> 
> , response
> 
> , request-id
> 
>  and request header
> )
> generated on your device while receiving an empty array when fetching the
> pending invitations.
>
> You can share the requested details via *Reply privately to the author
> option* or a *direct private reply *to this email.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> 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/CA%2BBLo0vEbC2YTVDDVyhhajYqbCzUvGUKY9wamMPV6M8Jkre5GA%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-23 Thread Ansh Ved
Hi

My original problem is this itself
When I am printing the Pending Product Link Invitations
I am recieving an empty array
I have provided the details in the previous mails

Please let me know why am I not being able to see my pending invitations

On Fri, 24 May, 2024, 10:00 am Google Ads API Forum Advisor,
 wrote:

> Hi Ansh,
>
> I would like to inform you that it is not possible to accept product link
> invitations via the Google Ads API. However, you can use the API to
> retrieve the list of pending user invitations and manage the invitations.
> Please follow the documents Managing User Access Invitations
> 
>  and
> Linking product accounts
> 
>  to
> get more information.
>
> I hope this helps! Feel free to get back to us in case of any further
> queries.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> 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/CA%2BBLo0sz8fcJh%2B6EnO0700iK2BEa0JqrreQhUbHcYXBo%2Bk0RHQ%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-23 Thread Ansh Ved
Hi,

I am not trying to manage video ads via Google Ads API. I want to accept
product invitations using Google Ads API.

If there is something else please let me know.

Need to get this done at the earliest.

On Fri, May 24, 2024 at 1:42 AM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> We have an update for you. I would like to inform you that it is not
> possible to manage video ads via Google Ads API.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0sr4JnzQ_3BeOerQ3ouLWC0O_Ha44qUYDsUzSvh9LNsAA%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-23 Thread Ansh Ved
Hi,

Thank you for your response. I understand that your team is currently
addressing the issue. However, I wanted to express that this situation is
causing a significant bottleneck in my application’s functionality.
Therefore, I kindly request if it’s possible to expedite the development
and resolution of this issue.

Your assistance in fast-tracking this would be greatly appreciated.

Thank you for your understanding and support.

On Thu, May 23, 2024 at 5:17 PM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> I would like to inform you that our team is currently working on this
> issue. One of our teammates will get back to you once we have an update on
> this. Meanwhile your patience is appreciated.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0t99oE2eLNUegdviQ9wOeyYeAj5-Xsqoc6TDNHyT8uFCA%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-22 Thread Ansh Ved
Hi,

Request Headers
array(5) {
  ["headers"]=>
  array(3) {
["x-goog-request-params"]=>
array(1) {
  [0]=>
  string(22) "customer_id=8166733962"
}
["developer-token"]=>
array(1) {
  [0]=>
  string(22) "QFflzpuSvBBusAuhpTm8iA"
}
["login-customer-id"]=>
array(1) {
  [0]=>
  string(10) "7471886550"
}
  }
  ["timeoutMillis"]=>
  NULL
  ["transportOptions"]=>
  array(0) {
  }
  ["retrySettings"]=>
  NULL
  ["audience"]=>
  string(33) "https://googleads.googleapis.com/;
}

These are the headers, We are unable to get the request-id since the
response code is 200
Also I am able to get the correct youtube product links connected to my
account. This makes sure that the headers are correct.

The only issue that I am facing is that product link invitation is giving
an empty response. If there is a way to get the request id for a 200
response code please let me know
I cannot see any request-id unless the request fails.
If i try to get $response->requestId or $response->getRequestId()
It gives me errors like requestId does not exist or getRequestId() is not a
function

Is there a way to fastrack this?

Please let me know

On Thu, May 23, 2024 at 3:58 AM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> To further investigate your issue, kindly provide the request-id
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> and request header
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
> generated at your end when hitting the API, as we couldn’t find the
> request-id and header in the provided code snippet.
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0swCJu9SA6AeXdm60JDCBoPtV1KDTjNEebzxtL5dzZEcA%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-22 Thread Ansh Ved
Hi,

I have enabled logging from the guide. I am sending you the updated code
and the logs. There are no errors or warnings. The request code is 200.

Here is my updated code.

public function listPendingYoutubeLinkInvitations($customerId)
{
$googleAdsServiceClient = $this->client->
getGoogleAdsServiceClient();
$query = 'SELECT product_link_invitation.resource_name FROM
product_link_invitation';

$logger = $this->client->getLogger();
$logger->info("Executing query: $query for customer ID: $customerId"
);

$response = $googleAdsServiceClient->
search(SearchGoogleAdsRequest::build($customerId, $query));

$logger->info('Response: ' . json_encode($response));

$invitations = [];
foreach ($response->iterateAllElements() as $row) {
$invitationResourceName = $row->getProductLinkInvitation()->
getResourceName();
$invitations[] = [
'resource_name' => $invitationResourceName,
];
}

$logger->info('Query executed successfully, invitations fetched.',
$invitations);

return $invitations;
}



Here is my log output
[2024-05-22T14:41:07.675860+00:00] google-ads-logger.INFO: Google Ads
Service logger initialized. [] []
[2024-05-22T14:41:08.419727+00:00] google-ads-logger.INFO: Executing query:
SELECT product_link_invitation.resource_name FROM product_link_invitation
for customer ID: 8166733962 [] []
[2024-05-22T14:41:12.181379+00:00] google-ads-logger.INFO: Response: {} []
[]
[2024-05-22T14:41:12.182676+00:00] google-ads-logger.INFO: Query executed
successfully, invitations fetched. [] []

On Wed, May 22, 2024 at 11:22 AM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> In order to assist you further, kindly provide us with the complete API
> logs (request
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and response
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  with request-id
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and request header
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
> generated at your end while you are receiving an empty array when fetching
> the pending invitations.
>
> Since you are using the PHP client library, if you haven't enabled logging
> yet, I would request you to enable it by referring to this guide PHP
> <https://developers.google.com/google-ads/api/docs/client-libs/php/logging>
> .
>
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0uXbsCisv35G7SSNPeHSqDu-%3DxKYkZmdihoXjdiNS-3Ew%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-21 Thread Ansh Ved
Hi,

There is a pending request on my Google Ads Account. Sharing a screenshot
for your reference
[image: image.png]

On Tue, May 21, 2024 at 11:31 PM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> Upon checking your account, I could see that there are no
> product_link_invitation requests received for the Youtube product. This
> might be the reason that you are getting an empty response via API. Could
> you please confirm from your end, if you are able to see any pending
> product_link_invitation requests in your account.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0tG%3Ds77TiK5_Oanc_7hR9MoAviTE7YECYPGwJj41_o-PA%40mail.gmail.com.


Re: google ads api product link invitation reference

2024-05-21 Thread Ansh Ved
Hi,
As per my original query. I have already tried using
ProductLinkInvitationService.UpdateProductLinkInvitation method to update
the status of the ProductLinkInvitation to ACCEPTED or REJECTED.

Please find the code below. I am not able to see any pending invitations or
accepted invitations even though I have them here.
I want to fetch those invitations first and then accept the correct one.

I am trying to use the Google AdWords API to accept invitations sent from
the YouTube Account.

I have already set up the connection. Using the PHP library for V16:
https://github.com/googleads/google-ads-php/

I am using this with Laravel

I sent a get request to get the list of product invitation links, but I am
receiving an empty array. I could successfully fetch campaigns from Google
ads.

/// This works well /
public function getAllCampaigns($customerId)
{
$googleAdsServiceClient =
$this->client->getGoogleAdsServiceClient();
$query = '
SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id
';

$stream = $googleAdsServiceClient->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);

$allCampaigns = [];
foreach ($stream->iterateAllElements() as $row) {
$allCampaigns[] = [
'campaign_id' => $row->getCampaign()->getId(),
'campaign_name' => $row->getCampaign()->getName()
];
}

return $allCampaigns;
} / This does not work /
public function listPendingYoutubeLinkInvitations($customerId)
{
$googleAdsServiceClient = $this->client->
getGoogleAdsServiceClient();
$query = '
SELECT product_link_invitation.status,
product_link_invitation.type,
product_link_invitation.product_link_invitation_id,
product_link_invitation.resource_name FROM product_link_invitation
';

$stream = $googleAdsServiceClient->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);

$invitations = [];
foreach ($stream->iterateAllElements() as $row) {
$invitations[] = $row->getProductLink();
}

return $invitations;
}

Please let me know how to proceed.


On Tue, May 21, 2024 at 5:18 PM Google Ads API Forum Advisor
 wrote:

> Hi,
>
> Based on the information provided, I understand that you are looking for
> guidance on how to accept the product invitation using the Google Ads API.
> You can use the ProductLinkInvitationService.UpdateProductLinkInvitation
> <https://developers.google.com/google-ads/api/reference/rpc/v16/ProductLinkInvitationService#updateproductlinkinvitation>
>  method
> to update the status of the ProductLinkInvitation
> <https://developers.google.com/google-ads/api/reference/rpc/v16/ProductLinkInvitation>
>  to ACCEPTED or REJECTED.
> I would recommend you to kindly refer to the "Ways to link accounts
> <https://developers.google.com/google-ads/api/docs/account-management/linking-product-accounts#ways_to_link_accounts>"
> documentation for more information.
>
> This message is in relation to case
> "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>

-- 
Thanks & Regards,
Ansh Ved
+91 8898898131
https://anshved.github.io

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CA%2BBLo0t%3DH8q5B46AcAu%3Db%3DuDgW0Z2z%2BH4bLpLhgbaMEo-Z-c6w%40mail.gmail.com.


Google Ads API Product Link Invitation Reference

2024-05-20 Thread Ansh Ved
Hi,
I am trying to use the Google AdWords API to accept invitations sent from 
the YouTube Account. 

I have already set up the connection. Using the PHP library for V16: 
https://github.com/googleads/google-ads-php/

I am using this with Laravel

I sent a get request to get the list of product invitation links, but I am 
receiving an empty array. I could successfully fetch campaigns from Google 
ads.

/// This works well /
public function getAllCampaigns($customerId) 
{
$googleAdsServiceClient = 
$this->client->getGoogleAdsServiceClient();
$query = '
SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id
';

$stream = $googleAdsServiceClient->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);

$allCampaigns = [];
foreach ($stream->iterateAllElements() as $row) {
$allCampaigns[] = [
'campaign_id' => $row->getCampaign()->getId(),
'campaign_name' => $row->getCampaign()->getName()
];
}

return $allCampaigns; 
} / This does not work /
public function listPendingYoutubeLinkInvitations($customerId)
{
$googleAdsServiceClient = $this->client->
getGoogleAdsServiceClient();
$query = '
SELECT product_link_invitation.status, 
product_link_invitation.type, 
product_link_invitation.product_link_invitation_id, 
product_link_invitation.resource_name FROM product_link_invitation
';

$stream = $googleAdsServiceClient->searchStream(
SearchGoogleAdsStreamRequest::build($customerId, $query)
);

$invitations = [];
foreach ($stream->iterateAllElements() as $row) {
$invitations[] = $row->getProductLink();
}

return $invitations;
}

I have also tried listing customer_client_invitation and customer_invitation
Everything just gives me an empty array [].


Can someone help me with this ??
Am I missing something?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f3694ea8-7db2-4152-9b5e-f79eaa8eff6en%40googlegroups.com.