Skip to content

add support for Ads Assistant header via middleware#1152

Open
ajs424 wants to merge 3 commits into
mainfrom
ads-assistant-prepend
Open

add support for Ads Assistant header via middleware#1152
ajs424 wants to merge 3 commits into
mainfrom
ads-assistant-prepend

Conversation

@ajs424
Copy link
Copy Markdown
Contributor

@ajs424 ajs424 commented Apr 16, 2026

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
Copy link
Copy Markdown
Contributor Author

ajs424 commented Apr 20, 2026

@bshaffer PTAL

Copy link
Copy Markdown
Contributor

@bshaffer bshaffer left a comment

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
Copy link
Copy Markdown
Contributor Author

ajs424 commented Apr 20, 2026

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
Copy link
Copy Markdown
Contributor Author

ajs424 commented May 5, 2026

@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
Copy link
Copy Markdown
Contributor Author

ajs424 commented May 14, 2026

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

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