Skip to content

add support for Ads Assistant header via middleware#1152

Merged
ajs424 merged 4 commits into
mainfrom
ads-assistant-prepend
Jun 16, 2026
Merged

add support for Ads Assistant header via middleware#1152
ajs424 merged 4 commits into
mainfrom
ads-assistant-prepend

Conversation

@ajs424

@ajs424 ajs424 commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Note: I encountered local environment issues with the gRPC extension version that prevented local tests from passing (v1.65.5 vs expected). I'm relying on the CI to verify the logic, as the environment there should be correctly configured.

Change-Id: Ia8e2cbea26aba8942303c760939d3f1074bd3b2c
@ajs424

ajs424 commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

@bshaffer PTAL

@bshaffer bshaffer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all seems good but we should have a test to verify this behavior works as expected!

Comment thread src/Google/Ads/GoogleAds/Lib/V20/AdsAssistantHeaderMiddleware.php Outdated
$headers[self::$LINKED_CUSTOMER_ID] = [$this->linkedCustomerId];
}
if (!is_null($this->adsAssistant)) {
$headers[self::$ADS_ASSISTANT_HEADER_NAME] = [$this->adsAssistant];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are okay with removing this header in favor of the new header? We don't want to send both?

Change-Id: I8a732385a29484892b982d914219e9080c040947
@ajs424

ajs424 commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

This all seems good but we should have a test to verify this behavior works as expected!

good call - wrote up and committed tests. Feel free to take a look.

@ajs424

ajs424 commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

@bshaffer Can I get an updated review on whether this looks good to merge or not

Comment thread src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php
Comment thread src/Google/Ads/GoogleAds/Lib/V22/GoogleAdsGapicClientTrait.php
Comment thread src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php
Comment thread src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php
Comment thread tests/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilderTest.php Outdated
Change-Id: I4953801db515a20ca681cf08be23f5234a121eff
@ajs424

ajs424 commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

@bshaffer Updated and got all tests passing. PTAL so I can go ahead with a merge

Change-Id: I7cc6ade8a91924cd2b2de6dbe9faa848d1752861
@ajs424 ajs424 merged commit 96e43ac into main Jun 16, 2026
5 checks passed
@ajs424 ajs424 deleted the ads-assistant-prepend branch June 16, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants